mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Separate configuration transfer from complete stopped-state recovery, correct omitted platform and agent-state claims, and preserve safe credential/retargeting guidance. Validate the real encrypted archive and production dialogs with scoped tests and desktop/phone browser interactions. No new backup capability or runtime contract change. Contract-Neutral: The archive, persistence, authentication and agent contracts are unchanged; help and visible warnings now describe existing scope, with regression proof for that account. Change-source: pulse-maintainer
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
// Actual transfer dialogs and flow, plus the production Docs renderer/router.
|
|
// The browser driver supplies only synthetic API responses; no server or
|
|
// operational credentials are involved in this copy/interaction proof.
|
|
import { render } from 'solid-js/web';
|
|
import { Router, Route } from '@solidjs/router';
|
|
import { BackupTransferDialogs } from '../src/components/Settings/BackupTransferDialogs';
|
|
import { useBackupTransferFlow } from '../src/components/Settings/useBackupTransferFlow';
|
|
import Docs from '../src/pages/Docs';
|
|
import '../src/index.css';
|
|
|
|
function Transfer() {
|
|
const securityStatus = () => null;
|
|
const flow = useBackupTransferFlow({ securityStatus });
|
|
return (
|
|
<main class="p-6">
|
|
<h1>Configuration transfer</h1>
|
|
<button onClick={() => flow.setShowExportDialog(true)}>Create Backup</button>
|
|
<button onClick={() => flow.setShowImportDialog(true)}>Restore Configuration</button>
|
|
<BackupTransferDialogs {...flow} securityStatus={securityStatus} />
|
|
</main>
|
|
);
|
|
}
|
|
|
|
render(
|
|
() => (
|
|
<Router>
|
|
<Route path="/docs/*docPath" component={Docs} />
|
|
<Route path="*" component={Transfer} />
|
|
</Router>
|
|
),
|
|
document.getElementById('root')!,
|
|
);
|