mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-03 05:38:01 +02:00
feat: e2e encrypted sync
This commit is contained in:
+8
-1
@@ -26,12 +26,15 @@ export interface BrowserProfile {
|
||||
group_id?: string; // Reference to profile group
|
||||
tags?: string[];
|
||||
note?: string; // User note
|
||||
sync_enabled?: boolean; // Whether sync is enabled for this profile
|
||||
sync_mode?: SyncMode;
|
||||
encryption_salt?: string;
|
||||
last_sync?: number; // Timestamp of last successful sync (epoch seconds)
|
||||
host_os?: string; // OS where profile was created ("macos", "windows", "linux")
|
||||
ephemeral?: boolean;
|
||||
}
|
||||
|
||||
export type SyncMode = "Disabled" | "Regular" | "Encrypted";
|
||||
|
||||
export type SyncStatus = "Disabled" | "Syncing" | "Synced" | "Error";
|
||||
|
||||
export interface SyncSettings {
|
||||
@@ -70,6 +73,10 @@ export interface ProxyCheckResult {
|
||||
is_valid: boolean;
|
||||
}
|
||||
|
||||
export function isSyncEnabled(profile: BrowserProfile): boolean {
|
||||
return profile.sync_mode != null && profile.sync_mode !== "Disabled";
|
||||
}
|
||||
|
||||
export const CLOUD_PROXY_ID = "cloud-included-proxy";
|
||||
|
||||
export interface StoredProxy {
|
||||
|
||||
Reference in New Issue
Block a user