()
| 23 | } |
| 24 | |
| 25 | display(): void { |
| 26 | const {containerEl} = this; |
| 27 | |
| 28 | containerEl.empty(); |
| 29 | containerEl.createEl('h2', {text: 'Embed Code File Settings'}); |
| 30 | |
| 31 | new Setting(containerEl) |
| 32 | .setName('Included Languages') |
| 33 | .setDesc('Comma separated list of included languages.') |
| 34 | .addText(text => text |
| 35 | .setPlaceholder('Comma separated list') |
| 36 | .setValue(this.plugin.settings.includedLanguages) |
| 37 | .onChange(async (value) => { |
| 38 | this.plugin.settings.includedLanguages = value; |
| 39 | await this.plugin.saveSettings(); |
| 40 | })); |
| 41 | |
| 42 | new Setting(containerEl) |
| 43 | .setName("Font color of title") |
| 44 | .addText(text => text |
| 45 | .setPlaceholder('Enter a color') |
| 46 | .setValue(this.plugin.settings.titleFontColor) |
| 47 | .onChange(async (value) => { |
| 48 | this.plugin.settings.titleFontColor = value; |
| 49 | await this.plugin.saveSettings(); |
| 50 | })); |
| 51 | |
| 52 | new Setting(containerEl) |
| 53 | .setName('Background color of title') |
| 54 | .addText(text => text |
| 55 | .setPlaceholder('#00000020') |
| 56 | .setValue(this.plugin.settings.titleBackgroundColor) |
| 57 | .onChange(async (value) => { |
| 58 | this.plugin.settings.titleBackgroundColor = value; |
| 59 | await this.plugin.saveSettings(); |
| 60 | })); |
| 61 | } |
| 62 | } |
nothing calls this directly
no test coverage detected