feat: implement settings synchronization with server, including encryption and API endpoints

This commit is contained in:
Linus Rath
2026-03-11 16:22:47 +01:00
parent cf5f271be2
commit a8a1ad1d54
7 changed files with 311 additions and 0 deletions
+4
View File
@@ -9,6 +9,7 @@ interface ConfigData {
oauthClientId: string;
oauthIssuerUrl: string;
rememberMeEnabled: boolean;
settingsSyncEnabled: boolean;
devMode: boolean;
}
@@ -66,6 +67,7 @@ export function useConfig(): AppConfig {
oauthClientId: configCache?.oauthClientId || '',
oauthIssuerUrl: configCache?.oauthIssuerUrl || '',
rememberMeEnabled: configCache?.rememberMeEnabled || false,
settingsSyncEnabled: configCache?.settingsSyncEnabled || false,
devMode: configCache?.devMode || false,
isLoading: !configCache,
error: null,
@@ -81,6 +83,7 @@ export function useConfig(): AppConfig {
oauthClientId: configCache.oauthClientId,
oauthIssuerUrl: configCache.oauthIssuerUrl,
rememberMeEnabled: configCache.rememberMeEnabled,
settingsSyncEnabled: configCache.settingsSyncEnabled,
devMode: configCache.devMode,
isLoading: false,
error: null,
@@ -97,6 +100,7 @@ export function useConfig(): AppConfig {
oauthClientId: data.oauthClientId,
oauthIssuerUrl: data.oauthIssuerUrl,
rememberMeEnabled: data.rememberMeEnabled,
settingsSyncEnabled: data.settingsSyncEnabled,
devMode: data.devMode,
isLoading: false,
error: null,