diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index 41d22d962d..89345f0a0a 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -1551,18 +1551,17 @@ "related_description": "Configure spell check languages and custom dictionary." }, "sync_2": { - "config_title": "Sync Configuration", - "server_address": "Server instance address", - "timeout": "Sync timeout", - "timeout_description": "How long to wait before giving up on a slow sync connection. Increase if you have an unstable network.", - "proxy_label": "Sync proxy server (optional)", - "note": "Note", - "note_description": "If you leave the proxy setting blank, the system proxy will be used (applies to desktop/electron build only).", - "special_value_description": "Another special value is noproxy which forces ignoring even the system proxy and respects NODE_TLS_REJECT_UNAUTHORIZED.", + "config_title": "Sync Server", + "server_address": "Server address", + "server_address_description": "URL of the Trilium server to sync with.", + "timeout": "Connection timeout", + "timeout_description": "Time to wait before giving up on a slow connection.", + "proxy_label": "Proxy server", + "proxy_description": "Leave blank to use system proxy (desktop only). Use \"noproxy\" to bypass all proxies.", "save": "Save", "help": "Help", - "test_title": "Sync Test", - "test_description": "This will test the connection and handshake to the sync server. If the sync server isn't initialized, this will set it up to sync with the local document.", + "test_title": "Test Connection", + "test_description": "Test the connection to the sync server. If not initialized, this will set up syncing.", "test_button": "Test sync", "handshake_failed": "Sync server handshake failed, error: {{message}}" }, diff --git a/apps/client/src/widgets/type_widgets/options/sync.tsx b/apps/client/src/widgets/type_widgets/options/sync.tsx index f583ba5496..68c68c99bf 100644 --- a/apps/client/src/widgets/type_widgets/options/sync.tsx +++ b/apps/client/src/widgets/type_widgets/options/sync.tsx @@ -6,22 +6,14 @@ import server from "../../../services/server"; import toast from "../../../services/toast"; import { openInAppHelpFromUrl } from "../../../services/utils"; import Button from "../../react/Button"; -import FormGroup from "../../react/FormGroup"; -import FormText from "../../react/FormText"; import FormTextBox from "../../react/FormTextBox"; import { useTriliumOptions } from "../../react/hooks"; -import RawHtml from "../../react/RawHtml"; -import OptionsRow from "./components/OptionsRow"; +import OptionsRow, { OptionsRowWithButton } from "./components/OptionsRow"; import OptionsSection from "./components/OptionsSection"; import TimeSelector from "./components/TimeSelector"; export default function SyncOptions() { - return ( - <> - - - - ); + return ; } export function SyncConfiguration() { @@ -30,7 +22,7 @@ export function SyncConfiguration() { const syncProxy = useRef(options.syncProxy); return ( - +
{ setOptions({ syncServerHost: syncServerHost.current, @@ -38,33 +30,28 @@ export function SyncConfiguration() { }); e.preventDefault(); }}> - + syncServerHost.current = newValue} /> - + - - {t("sync_2.note")}: {t("sync_2.note_description")}
- - } - > + syncProxy.current = newValue} /> -
+ -
-
+ +
+
+
-
- -
- ); -} -export function SyncTest() { - return ( - - {t("sync_2.test_description")} -