From f27512c7eebef4c67bf9577362a2546ea2372088 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Sun, 7 Jun 2026 23:41:20 +0200 Subject: [PATCH] Enhance Sync settings section --- src/lib/components/SettingsPanel.svelte | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/lib/components/SettingsPanel.svelte b/src/lib/components/SettingsPanel.svelte index df7323a..7c79fcb 100644 --- a/src/lib/components/SettingsPanel.svelte +++ b/src/lib/components/SettingsPanel.svelte @@ -1397,18 +1397,22 @@ -

Sync your notes to your own WebDAV server (Nextcloud, ownCloud, a NAS). Your vault stays local on each device; the server is the shared hub.

+

Sync your vault to your own WebDAV server (Nextcloud, ownCloud, a NAS).

{#if syncProvider === 'webdav'}

Server URL

- { syncUrl = (e.target as HTMLInputElement).value; }} onblur={saveSyncSettings} /> -

Full WebDAV URL of the folder to sync into. On Nextcloud: https://your-server/remote.php/dav/files/USERNAME/FolderName

+
+ { syncUrl = (e.target as HTMLInputElement).value; }} onblur={saveSyncSettings} /> +
+

WebDAV folder URL, e.g. https://your-server/remote.php/dav/files/USER/Folder

Username

- { syncUsername = (e.target as HTMLInputElement).value; }} onblur={saveSyncSettings} /> +
+ { syncUsername = (e.target as HTMLInputElement).value; }} onblur={saveSyncSettings} /> +

Password

@@ -1422,7 +1426,7 @@ {/if}
-

Use an app password / token, not your main account password. Stored locally on this device (like AI keys).

+

Use an app password, not your main one. Stored locally on this device.

@@ -1472,7 +1476,7 @@ {#if $appConfig?.last_sync_time}

Last sync: {new Date($appConfig.last_sync_time).toLocaleString()}

{/if} -

Manual sync. If the same note was edited on two devices, the second version is kept as a "(conflict ...)" copy so nothing is lost.

+

If a note is edited on two devices, both are kept (one as a "(conflict)" copy).

Automatic Sync

@@ -1481,18 +1485,18 @@ {/each}
-

Sync automatically on this interval.

+

How often to sync in the background.

@@ -1730,6 +1734,7 @@ .setting-hint { font-size: 13px; color: var(--text-tertiary); + margin-top: 6px; } .setting-toggle {