refactor plugin, split into modules

This commit is contained in:
Nystik
2026-03-27 19:53:19 +01:00
parent 59a1c293bf
commit 47cf768e26
7 changed files with 448 additions and 216 deletions

View File

@@ -0,0 +1,17 @@
const { Setting } = require("obsidian");
function display(containerEl) {
containerEl.createEl("h2", { text: "Ignis General Settings" });
new Setting(containerEl)
.setName("Example toggle")
.setDesc("This is a test toggle to prove the Setting API works.")
.addToggle((toggle) => {
toggle.setValue(false);
toggle.onChange((value) => {
console.log("[ignis] Toggle:", value);
});
});
}
module.exports = { display };