update packages; run formatter

This commit is contained in:
mProjectsCode 2024-01-27 21:50:20 +01:00
parent 75f3a5903c
commit 9257d8e722
5 changed files with 388 additions and 265 deletions

View file

@ -157,7 +157,6 @@ Now you select the result you want and the plugin will cast it's magic and creat
- you can find this ID in the URL
- e.g. for "Bioshock 2" the URL looks like this `https://www.mobygames.com/game/45089/bioshock-2/` so the ID is `45089`
### Problems, unexpected behavior or improvement suggestions?
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-media-db-plugin/issues).

642
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -50,7 +50,6 @@ export class MobyGamesAPI extends APIModel {
year: new Date(result.platforms[0].first_release_date).getFullYear().toString(),
dataSource: this.apiName,
id: result.game_id,
} as GameModel),
);
}

View file

@ -73,8 +73,7 @@ export default class MediaDbPlugin extends Plugin {
this.app.workspace.on('file-menu', (menu, file) => {
if (file instanceof TFolder) {
menu.addItem(item => {
item
.setTitle('Import folder as Media DB entries')
item.setTitle('Import folder as Media DB entries')
.setIcon('database')
.onClick(() => this.createEntriesFromFolder(file));
});