mirror of
https://github.com/liufree/obsidian-querydash.git
synced 2026-07-22 05:41:49 +00:00
feat: delete smaple
This commit is contained in:
parent
785569ae36
commit
319b43ee21
2 changed files with 0 additions and 49 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import {App, Modal} from "obsidian";
|
||||
|
||||
class SampleModal extends Modal {
|
||||
constructor(app: App) {
|
||||
super(app);
|
||||
}
|
||||
|
||||
onOpen() {
|
||||
const {contentEl} = this;
|
||||
contentEl.setText('Woah!');
|
||||
}
|
||||
|
||||
onClose() {
|
||||
const {contentEl} = this;
|
||||
contentEl.empty();
|
||||
}
|
||||
}
|
||||
|
||||
export default SampleModal;
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
import {App, PluginSettingTab, Setting} from "obsidian";
|
||||
import QueryDashPlugin from "../main";
|
||||
|
||||
class SampleSettingTab extends PluginSettingTab {
|
||||
plugin: QueryDashPlugin;
|
||||
|
||||
constructor(app: App, plugin: QueryDashPlugin) {
|
||||
super(app, plugin);
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
display(): void {
|
||||
const {containerEl} = this;
|
||||
|
||||
containerEl.empty();
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Setting #3')
|
||||
.setDesc('It\'s a secret')
|
||||
.addText(text => text
|
||||
.setPlaceholder('Enter your secret')
|
||||
.setValue(this.plugin.settings.mySetting)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.mySetting = value;
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
export default SampleSettingTab;
|
||||
Loading…
Reference in a new issue