Skip to content

Build your personal knowledge base with Trilium Notes

chore(standalone/setup): create empty page for sync from desktop

Elian Doran619751a8aae0
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index b2476f6988..0be7e91673 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -28,13 +28,14 @@ function renderState(state: State, setState: (state: State) => void) {
case "firstOptions": return <SetupOptions setState={setState} />;
case "createNewDocument": return <CreateNewDocument />;
case "syncFromServer": return <SyncFromServer setState={setState} />;
+ case "syncFromDesktop": return <SyncFromDesktop setState={setState} />;
case "syncInProgress": return <SyncInProgress />;
default: return null;
}
}
function App() {
- const [state, setState] = useState<State>("firstOptions");
+ const [state, setState] = useState<State>("syncFromDesktop");
const [prevState, setPrevState] = useState<State | null>(null);
const [transitioning, setTransitioning] = useState(false);
const prevStateRef = useRef<State>(state);
@@ -243,6 +244,26 @@ function SyncFromServer({ setState }: { setState: (state: State) => void }) {
);
}
+function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {
+ function handleFinishSetup() {
+ }
+
+ return (
+ <div class="page sync-from-desktop">
+ <h1>{t("setup.sync-desktop-title")}</h1>
+
+ <main>
+ Content goes here.
+ </main>
+
+ <footer>
+ <Button text={t("setup.button-back")} onClick={() => setState("firstOptions")} kind="lowProfile" />
+ <Button text={t("setup.button-finish-setup")} kind="primary" onClick={handleFinishSetup} />
+ </footer>
+ </div>
+ );
+}
+
function FormItemWithIcon({ icon, children }: { icon: string; children: ComponentChildren }) {
return (
<div class="form-item-with-icon">
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index f1ba9b11c3..ceb477dac6 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2254,6 +2254,7 @@
"sync-step-syncing": "Syncing data",
"sync-step-finalizing": "Setting up options",
"create-new-document-title": "Preparing your new document",
- "create-new-document-description": "You’ll be redirected automatically in a moment."
+ "create-new-document-description": "You’ll be redirected automatically in a moment.",
+ "sync-desktop-title": "Sync from desktop"
}
}