mirror of
https://github.com/bitbaum/diplodoctor.git
synced 2026-12-04 06:07:40 +01:00
Off by default; one switch in Account. When on, the file is kept on our server sealed (AES-256-GCM) and follows the person to any device they sign in on. A second device never overwrites a newer copy: a refused save is merged, not forced. The account page says plainly that until keys only the owner holds exist, we could technically read it. Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7 Co-authored-by: Claude <noreply@anthropic.com>
17 lines
409 B
TypeScript
17 lines
409 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
import { startFileSync } from "@/lib/file-sync";
|
|
|
|
/**
|
|
* Mounted only for a signed-in person. If they turned the server copy of their
|
|
* file on (in Account), this keeps it and the browser's copy together; if not,
|
|
* it finds that out and does nothing else.
|
|
*/
|
|
export function FileSync() {
|
|
useEffect(() => {
|
|
startFileSync();
|
|
}, []);
|
|
return null;
|
|
}
|