mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-26 21:37:05 +00:00
Remove obsolete settings wizard
This commit is contained in:
@@ -89,7 +89,7 @@ function suggestRemoteConfigurationName(parsed: RemoteConfigurationResult): stri
|
||||
export function paneRemoteConfig(
|
||||
this: ObsidianLiveSyncSettingTab,
|
||||
paneEl: HTMLElement,
|
||||
{ addPanel, addPane }: PageFunctions
|
||||
{ addPanel }: PageFunctions
|
||||
): void {
|
||||
{
|
||||
/* E2EE */
|
||||
@@ -553,83 +553,6 @@ export function paneRemoteConfig(
|
||||
// );
|
||||
|
||||
void addPanel(paneEl, $msg("obsidianLiveSyncSettingTab.titleNotification"), () => {}).then((paneEl) => {
|
||||
paneEl.addClass("wizardHidden");
|
||||
new Setting(paneEl).autoWireNumeric("notifyThresholdOfRemoteStorageSize", {}).setClass("wizardHidden");
|
||||
new Setting(paneEl).autoWireNumeric("notifyThresholdOfRemoteStorageSize", {});
|
||||
});
|
||||
|
||||
// new Setting(paneEl).setClass("wizardOnly").addButton((button) =>
|
||||
// button
|
||||
// .setButtonText($msg("obsidianLiveSyncSettingTab.buttonNext"))
|
||||
// .setCta()
|
||||
// .setDisabled(false)
|
||||
// .onClick(async () => {
|
||||
// if (!(await checkConfig(checkResultDiv))) {
|
||||
// if (
|
||||
// (await this.plugin.confirm.askYesNoDialog(
|
||||
// $msg("obsidianLiveSyncSettingTab.msgConfigCheckFailed"),
|
||||
// {
|
||||
// defaultOption: "No",
|
||||
// title: $msg("obsidianLiveSyncSettingTab.titleRemoteConfigCheckFailed"),
|
||||
// }
|
||||
// )) == "no"
|
||||
// ) {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// const isEncryptionFullyEnabled =
|
||||
// !this.editingSettings.encrypt || !this.editingSettings.usePathObfuscation;
|
||||
// if (isEncryptionFullyEnabled) {
|
||||
// if (
|
||||
// (await this.plugin.confirm.askYesNoDialog(
|
||||
// $msg("obsidianLiveSyncSettingTab.msgEnableEncryptionRecommendation"),
|
||||
// {
|
||||
// defaultOption: "No",
|
||||
// title: $msg("obsidianLiveSyncSettingTab.titleEncryptionNotEnabled"),
|
||||
// }
|
||||
// )) == "no"
|
||||
// ) {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// if (!this.editingSettings.encrypt) {
|
||||
// this.editingSettings.passphrase = "";
|
||||
// }
|
||||
// if (!(await this.isPassphraseValid())) {
|
||||
// if (
|
||||
// (await this.plugin.confirm.askYesNoDialog(
|
||||
// $msg("obsidianLiveSyncSettingTab.msgInvalidPassphrase"),
|
||||
// {
|
||||
// defaultOption: "No",
|
||||
// title: $msg("obsidianLiveSyncSettingTab.titleEncryptionPassphraseInvalid"),
|
||||
// }
|
||||
// )) == "no"
|
||||
// ) {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// if (isCloudantURI(this.editingSettings.couchDB_URI)) {
|
||||
// this.editingSettings = { ...this.editingSettings, ...PREFERRED_SETTING_CLOUDANT };
|
||||
// } else if (this.editingSettings.remoteType == REMOTE_MINIO) {
|
||||
// this.editingSettings = { ...this.editingSettings, ...PREFERRED_JOURNAL_SYNC };
|
||||
// } else {
|
||||
// this.editingSettings = { ...this.editingSettings, ...PREFERRED_SETTING_SELF_HOSTED };
|
||||
// }
|
||||
// if (
|
||||
// (await this.plugin.confirm.askYesNoDialog(
|
||||
// $msg("obsidianLiveSyncSettingTab.msgFetchConfigFromRemote"),
|
||||
// { defaultOption: "Yes", title: $msg("obsidianLiveSyncSettingTab.titleFetchConfig") }
|
||||
// )) == "yes"
|
||||
// ) {
|
||||
// const trialSetting = { ...this.initialSettings, ...this.editingSettings };
|
||||
// const newTweaks = await this.services.tweakValue.checkAndAskUseRemoteConfiguration(trialSetting);
|
||||
// if (newTweaks.result !== false) {
|
||||
// this.editingSettings = { ...this.editingSettings, ...newTweaks.result };
|
||||
// this.requestUpdate();
|
||||
// } else {
|
||||
// // Messages should be already shown.
|
||||
// }
|
||||
// }
|
||||
// this.changeDisplay("30");
|
||||
// })
|
||||
// );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user