Added API authorization for Boardgame Geek
This commit is contained in:
parent
3b4dace1aa
commit
51f7df2d40
3 changed files with 27 additions and 2 deletions
|
|
@ -16,6 +16,7 @@ export interface MediaDbPluginSettings {
|
|||
MobyGamesKey: string;
|
||||
GiantBombKey: string;
|
||||
ComicVineKey: string;
|
||||
BoardgameGeekKey: string;
|
||||
sfwFilter: boolean;
|
||||
templates: boolean;
|
||||
customDateFormat: string;
|
||||
|
|
@ -79,6 +80,7 @@ const DEFAULT_SETTINGS: MediaDbPluginSettings = {
|
|||
MobyGamesKey: '',
|
||||
GiantBombKey: '',
|
||||
ComicVineKey: '',
|
||||
BoardgameGeekKey: '',
|
||||
sfwFilter: true,
|
||||
templates: true,
|
||||
customDateFormat: 'L',
|
||||
|
|
@ -222,6 +224,17 @@ export class MediaDbSettingTab extends PluginSettingTab {
|
|||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
new Setting(containerEl)
|
||||
.setName('Boardgame Geek Key')
|
||||
.setDesc('API key for "www.boardgamegeek.com".')
|
||||
.addText(cb => {
|
||||
cb.setPlaceholder('API key')
|
||||
.setValue(this.plugin.settings.BoardgameGeekKey)
|
||||
.onChange(data => {
|
||||
this.plugin.settings.BoardgameGeekKey = data;
|
||||
void this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('SFW filter')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue