prep for release
This commit is contained in:
parent
fac8abf701
commit
bf33e7567c
8 changed files with 113 additions and 6026 deletions
|
|
@ -18,23 +18,24 @@ export interface MediaDbPluginSettings {
|
|||
openNoteInNewTab: boolean;
|
||||
useDefaultFrontMatter: boolean;
|
||||
enableTemplaterIntegration: boolean;
|
||||
apiToggle: {
|
||||
OMDbAPI: {
|
||||
movie: boolean;
|
||||
series: boolean;
|
||||
game: boolean;
|
||||
};
|
||||
MALAPI: {
|
||||
movie: boolean;
|
||||
series: boolean;
|
||||
};
|
||||
SteamAPI: {
|
||||
game: boolean;
|
||||
};
|
||||
MobyGamesAPI: {
|
||||
game: boolean;
|
||||
};
|
||||
};
|
||||
// TODO: disabled for now, as i currently don't have the time to fix this from the original PR that introduced it (#133)
|
||||
// apiToggle: {
|
||||
// OMDbAPI: {
|
||||
// movie: boolean;
|
||||
// series: boolean;
|
||||
// game: boolean;
|
||||
// };
|
||||
// MALAPI: {
|
||||
// movie: boolean;
|
||||
// series: boolean;
|
||||
// };
|
||||
// SteamAPI: {
|
||||
// game: boolean;
|
||||
// };
|
||||
// MobyGamesAPI: {
|
||||
// game: boolean;
|
||||
// };
|
||||
// };
|
||||
movieTemplate: string;
|
||||
seriesTemplate: string;
|
||||
mangaTemplate: string;
|
||||
|
|
@ -83,23 +84,23 @@ const DEFAULT_SETTINGS: MediaDbPluginSettings = {
|
|||
openNoteInNewTab: true,
|
||||
useDefaultFrontMatter: true,
|
||||
enableTemplaterIntegration: false,
|
||||
apiToggle: {
|
||||
OMDbAPI: {
|
||||
movie: true,
|
||||
series: true,
|
||||
game: true,
|
||||
},
|
||||
MALAPI: {
|
||||
movie: true,
|
||||
series: true,
|
||||
},
|
||||
SteamAPI: {
|
||||
game: true,
|
||||
},
|
||||
MobyGamesAPI: {
|
||||
game: true,
|
||||
},
|
||||
},
|
||||
// apiToggle: {
|
||||
// OMDbAPI: {
|
||||
// movie: true,
|
||||
// series: true,
|
||||
// game: true,
|
||||
// },
|
||||
// MALAPI: {
|
||||
// movie: true,
|
||||
// series: true,
|
||||
// },
|
||||
// SteamAPI: {
|
||||
// game: true,
|
||||
// },
|
||||
// MobyGamesAPI: {
|
||||
// game: true,
|
||||
// },
|
||||
// },
|
||||
movieTemplate: '',
|
||||
seriesTemplate: '',
|
||||
mangaTemplate: '',
|
||||
|
|
@ -280,73 +281,73 @@ export class MediaDbSettingTab extends PluginSettingTab {
|
|||
});
|
||||
});
|
||||
|
||||
containerEl.createEl('h3', { text: 'APIs Per Media Type' });
|
||||
containerEl.createEl('h5', { text: 'Movies' });
|
||||
new Setting(containerEl)
|
||||
.setName('OMDb API')
|
||||
.setDesc('Use OMDb API for movies.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.movie).onChange(data => {
|
||||
this.plugin.settings.apiToggle.OMDbAPI.movie = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new Setting(containerEl)
|
||||
.setName('MAL API')
|
||||
.setDesc('Use MAL API for movies.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.MALAPI.movie).onChange(data => {
|
||||
this.plugin.settings.apiToggle.MALAPI.movie = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
containerEl.createEl('h5', { text: 'Series' });
|
||||
new Setting(containerEl)
|
||||
.setName('OMDb API')
|
||||
.setDesc('Use OMDb API for series.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.series).onChange(data => {
|
||||
this.plugin.settings.apiToggle.OMDbAPI.series = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new Setting(containerEl)
|
||||
.setName('MAL API')
|
||||
.setDesc('Use MAL API for series.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.MALAPI.series).onChange(data => {
|
||||
this.plugin.settings.apiToggle.MALAPI.series = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
containerEl.createEl('h5', { text: 'Games' });
|
||||
new Setting(containerEl)
|
||||
.setName('OMDb API')
|
||||
.setDesc('Use OMDb API for games.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.game).onChange(data => {
|
||||
this.plugin.settings.apiToggle.OMDbAPI.game = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new Setting(containerEl)
|
||||
.setName('Steam API')
|
||||
.setDesc('Use OMDb API for games.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.SteamAPI.game).onChange(data => {
|
||||
this.plugin.settings.apiToggle.SteamAPI.game = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new Setting(containerEl)
|
||||
.setName('MobyGames API')
|
||||
.setDesc('Use MobyGames API for games.')
|
||||
.addToggle(cb => {
|
||||
cb.setValue(this.plugin.settings.apiToggle.MobyGamesAPI.game).onChange(data => {
|
||||
this.plugin.settings.apiToggle.MobyGamesAPI.game = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
// containerEl.createEl('h3', { text: 'APIs Per Media Type' });
|
||||
// containerEl.createEl('h5', { text: 'Movies' });
|
||||
// new Setting(containerEl)
|
||||
// .setName('OMDb API')
|
||||
// .setDesc('Use OMDb API for movies.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.movie).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.OMDbAPI.movie = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// new Setting(containerEl)
|
||||
// .setName('MAL API')
|
||||
// .setDesc('Use MAL API for movies.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.MALAPI.movie).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.MALAPI.movie = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// containerEl.createEl('h5', { text: 'Series' });
|
||||
// new Setting(containerEl)
|
||||
// .setName('OMDb API')
|
||||
// .setDesc('Use OMDb API for series.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.series).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.OMDbAPI.series = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// new Setting(containerEl)
|
||||
// .setName('MAL API')
|
||||
// .setDesc('Use MAL API for series.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.MALAPI.series).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.MALAPI.series = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// containerEl.createEl('h5', { text: 'Games' });
|
||||
// new Setting(containerEl)
|
||||
// .setName('OMDb API')
|
||||
// .setDesc('Use OMDb API for games.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.OMDbAPI.game).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.OMDbAPI.game = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// new Setting(containerEl)
|
||||
// .setName('Steam API')
|
||||
// .setDesc('Use OMDb API for games.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.SteamAPI.game).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.SteamAPI.game = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
// new Setting(containerEl)
|
||||
// .setName('MobyGames API')
|
||||
// .setDesc('Use MobyGames API for games.')
|
||||
// .addToggle(cb => {
|
||||
// cb.setValue(this.plugin.settings.apiToggle.MobyGamesAPI.game).onChange(data => {
|
||||
// this.plugin.settings.apiToggle.MobyGamesAPI.game = data;
|
||||
// void this.plugin.saveSettings();
|
||||
// });
|
||||
// });
|
||||
|
||||
containerEl.createEl('h3', { text: 'New File Location' });
|
||||
// region new file location
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue