polish titles and comments
This commit is contained in:
parent
4865a797aa
commit
d53569fe71
@ -302,6 +302,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
|
|
||||||
containerEl.createEl("h1", { text: "Remotely Save" });
|
containerEl.createEl("h1", { text: "Remotely Save" });
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for general
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const generalDiv = containerEl.createEl("div");
|
const generalDiv = containerEl.createEl("div");
|
||||||
generalDiv.createEl("h2", { text: "General" });
|
generalDiv.createEl("h2", { text: "General" });
|
||||||
|
|
||||||
@ -327,12 +331,20 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for general chooser (part 1/2)
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
// we need to create the div in advance of any other service divs
|
// we need to create the div in advance of any other service divs
|
||||||
const serviceChooserDiv = generalDiv.createEl("div");
|
const serviceChooserDiv = generalDiv.createEl("div");
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for s3
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const s3Div = containerEl.createEl("div", { cls: "s3-hide" });
|
const s3Div = containerEl.createEl("div", { cls: "s3-hide" });
|
||||||
s3Div.toggleClass("s3-hide", this.plugin.settings.serviceType !== "s3");
|
s3Div.toggleClass("s3-hide", this.plugin.settings.serviceType !== "s3");
|
||||||
s3Div.createEl("h2", { text: "Remote For S3 (-compatible)" });
|
s3Div.createEl("h2", { text: "Remote For S3 or compatible" });
|
||||||
|
|
||||||
s3Div.createEl("p", {
|
s3Div.createEl("p", {
|
||||||
text: "Disclaimer: This plugin is NOT an official Amazon product.",
|
text: "Disclaimer: This plugin is NOT an official Amazon product.",
|
||||||
@ -451,6 +463,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for dropbpx
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const dropboxDiv = containerEl.createEl("div", { cls: "dropbox-hide" });
|
const dropboxDiv = containerEl.createEl("div", { cls: "dropbox-hide" });
|
||||||
dropboxDiv.toggleClass(
|
dropboxDiv.toggleClass(
|
||||||
"dropbox-hide",
|
"dropbox-hide",
|
||||||
@ -571,6 +587,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for onedrive
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const onedriveDiv = containerEl.createEl("div", { cls: "onedrive-hide" });
|
const onedriveDiv = containerEl.createEl("div", { cls: "onedrive-hide" });
|
||||||
onedriveDiv.toggleClass(
|
onedriveDiv.toggleClass(
|
||||||
"onedrive-hide",
|
"onedrive-hide",
|
||||||
@ -685,6 +705,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for webdav
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const webdavDiv = containerEl.createEl("div", { cls: "webdav-hide" });
|
const webdavDiv = containerEl.createEl("div", { cls: "webdav-hide" });
|
||||||
webdavDiv.toggleClass(
|
webdavDiv.toggleClass(
|
||||||
"webdav-hide",
|
"webdav-hide",
|
||||||
@ -784,15 +808,19 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for general chooser (part 2/2)
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
// we need to create chooser
|
// we need to create chooser
|
||||||
// after s3Div and webdavDiv being created
|
// after all service-div-s being created
|
||||||
new Setting(serviceChooserDiv)
|
new Setting(serviceChooserDiv)
|
||||||
.setName("Choose service")
|
.setName("Choose service")
|
||||||
.setDesc("Choose a service.")
|
.setDesc("Choose a service.")
|
||||||
.addDropdown(async (dropdown) => {
|
.addDropdown(async (dropdown) => {
|
||||||
dropdown.addOption("s3", "S3 (-compatible)");
|
dropdown.addOption("s3", "S3 or compatible");
|
||||||
dropdown.addOption("dropbox", "Dropbox");
|
dropdown.addOption("dropbox", "Dropbox");
|
||||||
dropdown.addOption("webdav", "Webdav");
|
dropdown.addOption("webdav", "Webdav (beta)");
|
||||||
dropdown.addOption("onedrive", "OneDrive (alpha)");
|
dropdown.addOption("onedrive", "OneDrive (alpha)");
|
||||||
dropdown
|
dropdown
|
||||||
.setValue(this.plugin.settings.serviceType)
|
.setValue(this.plugin.settings.serviceType)
|
||||||
@ -818,6 +846,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for import and export functions
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
// import and export
|
// import and export
|
||||||
const importExportDiv = containerEl.createEl("div");
|
const importExportDiv = containerEl.createEl("div");
|
||||||
importExportDiv.createEl("h2", { text: "Import and Export Settings" });
|
importExportDiv.createEl("h2", { text: "Import and Export Settings" });
|
||||||
@ -838,6 +870,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
"You should open a camera or scan-qrcode app, to manually scan the QR code."
|
"You should open a camera or scan-qrcode app, to manually scan the QR code."
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
// below for debug
|
||||||
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
const debugDiv = containerEl.createEl("div");
|
const debugDiv = containerEl.createEl("div");
|
||||||
debugDiv.createEl("h2", { text: "Debug" });
|
debugDiv.createEl("h2", { text: "Debug" });
|
||||||
const syncPlanDiv = debugDiv.createEl("div");
|
const syncPlanDiv = debugDiv.createEl("div");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user