From c1d8637fec2ee5070ca4353ecd3c67fdc29d17fe Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 24 Mar 2026 09:09:21 +0200 Subject: [PATCH] chore(standalone/setup): bring back spinner --- apps/client/src/setup.css | 39 +++++++++++++++++++++++ apps/client/src/setup.tsx | 11 +++++++ apps/server/src/assets/views/setup.ejs | 44 +------------------------- 3 files changed, 51 insertions(+), 43 deletions(-) diff --git a/apps/client/src/setup.css b/apps/client/src/setup.css index 3bf66a3fb9..5b99aa97a7 100644 --- a/apps/client/src/setup.css +++ b/apps/client/src/setup.css @@ -109,4 +109,43 @@ body.setup { } } } + + .lds-ring { + display: inline-block; + position: relative; + width: 60px; + height: 60px; + + &>div { + box-sizing: border-box; + display: block; + position: absolute; + width: var(--size, 48px); + height: var(--size, 48px); + margin: 8px; + border: 6px solid black; + border-radius: 50%; + animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; + border-color: black transparent transparent transparent; + + &:nth-child(1) { + animation-delay: -0.45s; + } + &:nth-child(2) { + animation-delay: -0.3s; + } + &:nth-child(3) { + animation-delay: -0.15s; + } + } + } +} + +@keyframes lds-ring { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } } diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx index e7f6408f96..2c784a8022 100644 --- a/apps/client/src/setup.tsx +++ b/apps/client/src/setup.tsx @@ -74,10 +74,21 @@ function SyncInProgress() {

{t("setup.sync-in-progress-title")}

{t("setup.sync-in-progress-description")}

+
); } +function Spinner() { + return ( +
+
+
+
+
+
); +} + function SyncFromServer({ setState }: { setState: (state: State) => void }) { const [serverUrl, setServerUrl] = useState(""); const [password, setPassword] = useState(""); diff --git a/apps/server/src/assets/views/setup.ejs b/apps/server/src/assets/views/setup.ejs index 79e41b4672..154249b67b 100644 --- a/apps/server/src/assets/views/setup.ejs +++ b/apps/server/src/assets/views/setup.ejs @@ -10,42 +10,7 @@ body { /* Prevent the content from being rendered before the main stylesheet loads */ display: none; - } - .lds-ring { - display: inline-block; - position: relative; - width: 60px; - height: 60px; - } - .lds-ring div { - box-sizing: border-box; - display: block; - position: absolute; - width: 48px; - height: 48px; - margin: 8px; - border: 6px solid black; - border-radius: 50%; - animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; - border-color: black transparent transparent transparent; - } - .lds-ring div:nth-child(1) { - animation-delay: -0.45s; - } - .lds-ring div:nth-child(2) { - animation-delay: -0.3s; - } - .lds-ring div:nth-child(3) { - animation-delay: -0.15s; - } - @keyframes lds-ring { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } - } + } @@ -90,13 +55,6 @@

<%= t("setup.init-in-progress") %>

-
-
-
-
-
-
-

<%= t("setup.redirecting") %>