diff --git a/.prettierrc b/.prettierrc index bdf0dfc..92a539a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,5 +3,5 @@ "tabWidth": 4, "printWidth": 120, "semi": true, - "endOfLine": "crlf" + "endOfLine": "lf" } diff --git a/src/modules/features/ModuleObsidianSetting.ts b/src/modules/features/ModuleObsidianSetting.ts index 876693c..02fd121 100644 --- a/src/modules/features/ModuleObsidianSetting.ts +++ b/src/modules/features/ModuleObsidianSetting.ts @@ -75,10 +75,7 @@ export class ModuleObsidianSettings extends AbstractObsidianModule implements IO const settings = { ...this.settings }; settings.deviceAndVaultName = ""; if (this.usedPassphrase == "" && !(await this.getPassphrase(settings))) { - this._log( - "Failed to retrieve passphrase. data.json contains unencrypted items!", - LOG_LEVEL_NOTICE - ); + this._log("Failed to retrieve passphrase. data.json contains unencrypted items!", LOG_LEVEL_NOTICE); } else { if ( settings.couchDB_PASSWORD != "" || @@ -144,10 +141,7 @@ export class ModuleObsidianSettings extends AbstractObsidianModule implements IO } const passphrase = await this.getPassphrase(settings); if (passphrase === false) { - this._log( - "No passphrase found for data.json! Verify configuration before syncing.", - LOG_LEVEL_URGENT - ); + this._log("No passphrase found for data.json! Verify configuration before syncing.", LOG_LEVEL_URGENT); } else { if (settings.encryptedCouchDBConnection) { const keys = [ diff --git a/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.ts b/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.ts index b1530b6..26809ba 100644 --- a/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.ts +++ b/src/modules/features/SettingDialogue/ObsidianLiveSyncSettingTab.ts @@ -885,10 +885,7 @@ Store only the settings. **Caution: This may lead to data corruption**; database await this.plugin.$allSuspendExtraSync(); this.reloadAllSettings(); this.editingSettings.isConfigured = true; - Logger( - "Syncing has been disabled, fetch and re-enabled if desired.", - LOG_LEVEL_NOTICE - ); + Logger("Syncing has been disabled, fetch and re-enabled if desired.", LOG_LEVEL_NOTICE); await this.saveAllDirtySettings(); this.closeSetting(); await delay(2000); @@ -935,14 +932,16 @@ Store only the settings. **Caution: This may lead to data corruption**; database .setName("Manual setup") .setDesc("Not recommended, but useful if you don't have a Setup URI") .addButton((text) => { - text.setButtonText("Start").onClick(async () => { - await this.enableMinimalSetup(); + text.setButtonText("Start").onClick(async () => { + await this.enableMinimalSetup(); + }); }); - }); - + new Setting(paneEl) .setName("Enable LiveSync") - .setDesc("Only enable this after configuring either of the above two options or completing all configuration manually.") + .setDesc( + "Only enable this after configuring either of the above two options or completing all configuration manually." + ) .addOnUpdate(visibleOnly(() => !this.isConfiguredAs("isConfigured", true))) .addButton((text) => { text.setButtonText("Enable").onClick(async () => { @@ -967,7 +966,7 @@ Store only the settings. **Caution: This may lead to data corruption**; database // await this.plugin.addOnSetup.command_copySetupURI(); eventHub.emitEvent(EVENT_REQUEST_COPY_SETUP_URI); }); - }); + }); }); void addPanel(paneEl, "Reset").then((paneEl) => { new Setting(paneEl) @@ -1717,10 +1716,7 @@ I appreciate you for your great dedication. ...this.editingSettings, ...presetPeriodic, }; - Logger( - "Configured synchronization mode: Periodic", - LOG_LEVEL_NOTICE - ); + Logger("Configured synchronization mode: Periodic", LOG_LEVEL_NOTICE); } else { Logger("Configured synchronization mode: DISABLED", LOG_LEVEL_NOTICE); this.editingSettings = { diff --git a/src/modules/features/SettingDialogue/settingConstants.ts b/src/modules/features/SettingDialogue/settingConstants.ts index a688f7d..3dbea0d 100644 --- a/src/modules/features/SettingDialogue/settingConstants.ts +++ b/src/modules/features/SettingDialogue/settingConstants.ts @@ -137,11 +137,11 @@ export const SettingInformation: Partial