fbd4b992f5
* fix(privacy): make privacy policy page dark mode friendly Replace the hardcoded light gradient background with bg-background and add dark:prose-invert to the prose blocks so body text is readable on dark cards. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(cloud-backup): sync archives to Dropbox alongside Google Drive Introduce a CloudStorageProvider interface so performSync builds the archive set once and talks to storage only through it. Google Drive keeps its existing behaviour; Dropbox is a second implementation, so the compliance-relevant half (fingerprints, per-year layout, size fallback, progressive persistence) cannot drift between targets. Dropbox uses App folder access, matching the drive.file scope's "only what the app created" guarantee. Uploads are single-shot under 8 MB and chunked upload sessions above, every write verified against Dropbox's content_hash. Call arguments are ASCII-escaped per UTF-16 code unit so Swedish file names survive the Dropbox-API-Arg header. Each provider owns its extension_data keys, schedule, failure counter and alert throttle, so a dead Dropbox token cannot pause a healthy Drive backup. The google_drive_* keys and the /oauth/callback path are untouched: both are wire format for already-connected companies. isConfigured() gates /connect only. A deployment that loses its OAuth credentials must not trap users with a connection they cannot remove or a schedule they cannot switch off. Requires DROPBOX_APP_KEY and DROPBOX_APP_SECRET; the provider row renders disabled without them. No migration: state is extension_data JSON throughout. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix: remove merge-conflict markers committed in DECISIONS.md The merge that brought main into this branch staged DECISIONS.md while it still carried conflict markers, so cdc3a513 shipped an unresolved hunk (compliance swarm ISO 27001 A.8.32). DECISIONS.md is an append-only log, so both sides are kept: main's systemdokumentation entry followed by this branch's Dropbox entries. No decision was dropped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
19 lines
707 B
TypeScript
19 lines
707 B
TypeScript
/**
|
|
* Folder naming shared by the sync engine and the storage providers.
|
|
*
|
|
* Lives in its own module so a provider can read it without importing
|
|
* `sync.ts`, which imports the provider registry back (import cycle).
|
|
*/
|
|
|
|
/**
|
|
* Top-level folder created in the user's Google Drive. Wire-format identifier:
|
|
* it names a folder that already exists in every connected user's Drive, so
|
|
* renaming it would strand their existing backups (see the gnubok naming rule
|
|
* in CLAUDE.md).
|
|
*
|
|
* Dropbox has no equivalent: the app is app-folder scoped, so Dropbox's own
|
|
* `Apps/<app name>/` folder already plays this role and company folders sit
|
|
* directly inside it.
|
|
*/
|
|
export const ROOT_FOLDER_NAME = 'gnubok'
|