mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Add WebDAV sync provider (manual + auto-sync, top-bar button)
This commit is contained in:
@@ -327,6 +327,28 @@ export async function setBackupSettings(
|
||||
});
|
||||
}
|
||||
|
||||
// ── Sync (WebDAV) ──
|
||||
|
||||
export async function setSyncSettings(
|
||||
provider: string | null,
|
||||
url: string | null,
|
||||
username: string | null,
|
||||
password: string | null,
|
||||
syncOnOpen: boolean,
|
||||
syncOnChange: boolean,
|
||||
syncIntervalMinutes: number,
|
||||
): Promise<void> {
|
||||
return invoke("set_sync_settings", { provider, url, username, password, syncOnOpen, syncOnChange, syncIntervalMinutes });
|
||||
}
|
||||
|
||||
export async function testSyncConnection(): Promise<void> {
|
||||
return invoke("test_sync_connection");
|
||||
}
|
||||
|
||||
export async function syncNow(): Promise<void> {
|
||||
return invoke("sync_now");
|
||||
}
|
||||
|
||||
// ── Version History ──
|
||||
|
||||
export async function getNoteVersions(noteId: string): Promise<VersionEntry[]> {
|
||||
|
||||
Reference in New Issue
Block a user