split settings items

This commit is contained in:
fyears 2021-11-07 00:24:02 +08:00
parent 3a14f86880
commit d3b812c8fa

View File

@ -180,7 +180,9 @@ class SaveRemoteSettingTab extends PluginSettingTab {
containerEl.empty(); containerEl.empty();
containerEl.createEl("h2", { text: "Settings for Save Remote" }); containerEl.createEl("h1", { text: "Save Remote" });
containerEl.createEl("h2", { text: "S3" });
new Setting(containerEl) new Setting(containerEl)
.setName("s3Endpoint") .setName("s3Endpoint")
@ -247,9 +249,10 @@ class SaveRemoteSettingTab extends PluginSettingTab {
}) })
); );
containerEl.createEl("h2", { text: "General" });
new Setting(containerEl) new Setting(containerEl)
.setName("password") .setName("encryption password")
.setDesc("password") .setDesc("Password for E2E encryption. Empty for no password.")
.addText((text) => .addText((text) =>
text text
.setPlaceholder("") .setPlaceholder("")