Skip to content

Build your personal knowledge base with Trilium Notes

feat(standalone/setup): add steps for desktop syncing

Elian Doran78451b97215b
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index 2595f1d74b..d4a07f010d 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -6,7 +6,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
import { initLocale, t } from "./services/i18n";
import server from "./services/server";
import Button from "./widgets/react/Button";
-import { CardFrame } from "./widgets/react/Card";
+import { Card, CardFrame, CardSection } from "./widgets/react/Card";
import FormTextBox from "./widgets/react/FormTextBox";
import Icon from "./widgets/react/Icon";
@@ -255,7 +255,15 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {
<h1>{t("setup.sync-from-desktop")}</h1>
<main>
- Content goes here.
+ <Card heading="On the other device">
+ <CardSection>1. {t("setup.sync-from-desktop-step1")}</CardSection>
+ <CardSection>2. {t("setup.sync-from-desktop-step2")}</CardSection>
+ <CardSection>3. {t("setup.sync-from-desktop-step3")}</CardSection>
+ <CardSection>4. {t("setup.sync-from-desktop-step4", { host: location.host })}</CardSection>
+ <CardSection>5. {t("setup.sync-from-desktop-step5")}</CardSection>
+
+ {t("setup.sync-from-desktop-final")}
+ </Card>
</main>
<footer>
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 5b2ba9ef87..03f904137a 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2256,6 +2256,12 @@
"create-new-document-description": "You’ll be redirected automatically in a moment.",
"sync-illustration-this-device": "This device",
"sync-illustration-desktop-app": "Desktop app",
- "sync-illustration-server": "Sync server"
+ "sync-illustration-server": "Sync server",
+ "sync-from-desktop-step1": "Open your desktop instance of Trilium Notes.",
+ "sync-from-desktop-step2": "From the Trilium Menu, click Options.",
+ "sync-from-desktop-step3": "Click on Sync category in the note tree.",
+ "sync-from-desktop-step4": "Change server instance address to: {{- host}} and click Save.",
+ "sync-from-desktop-step5": "Click \"Test sync\" button to verify connection is successful.",
+ "sync-from-desktop-final": "Once you've completed these steps, you can proceed to the next step."
}
}
diff --git a/apps/server/src/assets/translations/en/server.json b/apps/server/src/assets/translations/en/server.json
index 56aa2697bf..62681756ba 100644
--- a/apps/server/src/assets/translations/en/server.json
+++ b/apps/server/src/assets/translations/en/server.json
@@ -233,12 +233,6 @@
"setup_sync-from-desktop": {
"heading": "Sync from Desktop",
"description": "This setup needs to be initiated from the desktop instance:",
- "step1": "Open your desktop instance of Trilium Notes.",
- "step2": "From the Trilium Menu, click Options.",
- "step3": "Click on Sync category.",
- "step4": "Change server instance address to: {{- host}} and click Save.",
- "step5": "Click \"Test sync\" button to verify connection is successful.",
- "step6": "Once you've completed these steps, click {{- link}}.",
"step6-here": "here"
},
"setup_sync-from-server": {