|
10 | 10 | refreshAccessToken, |
11 | 11 | formatDate_PREFERREDTIME, |
12 | 12 | BlockNote, |
13 | | -
|
14 | 13 | isMachineTimeSameAsPreferred |
15 | | -
|
16 | 14 | } from "@davidnet/svelte-ui"; |
17 | 15 | import { onMount, onDestroy } from "svelte"; |
18 | 16 |
|
|
46 | 44 |
|
47 | 45 | async function fetchStatusData() { |
48 | 46 | try { |
49 | | - const endpoints = [ |
50 | | - "/api/uptimekuma/down", |
51 | | - "/api/uptimekuma/maintenance", |
52 | | - ]; |
| 47 | + const endpoints = ["/api/uptimekuma/down", "/api/uptimekuma/maintenance"]; |
53 | 48 |
|
54 | 49 | // Als intern: voeg ook interne endpoints toe |
55 | 50 | if (sessionInfo?.internal) { |
|
144 | 139 | <Space height="var(--token-space-6)" /> |
145 | 140 | </FlexWrapper> |
146 | 141 |
|
147 | | - |
148 | 142 | <!-- 🆕 Dynamische blokken met publieke + interne statussen --> |
149 | 143 | <FlexWrapper width="80%" justifycontent="flex-start" direction="row" gap="var(--token-space-4)" wrap="wrap"> |
150 | 144 | {#if downServices.length > 0} |
|
158 | 152 | href: "https://status.davidnet.net", |
159 | 153 | onClick: () => {} |
160 | 154 | } |
161 | | - ]}> |
| 155 | + ]} |
| 156 | + > |
162 | 157 | {#each downServices as name} |
163 | 158 | <p>{name} is experiencing issues.</p> |
164 | 159 | {/each} |
|
176 | 171 | href: "https://status.davidnet.net", |
177 | 172 | onClick: () => {} |
178 | 173 | } |
179 | | - ]}> |
| 174 | + ]} |
| 175 | + > |
180 | 176 | {#each maintenanceServices as name} |
181 | 177 | <p>{name} is currently under maintenance.</p> |
182 | 178 | {/each} |
|
194 | 190 | href: "https://account.davidnet.net/account/settings/preferences", |
195 | 191 | onClick: () => {} |
196 | 192 | } |
197 | | - ]}> |
| 193 | + ]} |
| 194 | + > |
198 | 195 | It seems your device's time settings do not match your preferred timezone. This may lead to you seeing incorrect timestamps. |
199 | 196 | </BlockNote> |
200 | 197 | {/if} |
|
212 | 209 |
|
213 | 210 | <FlexWrapper alignitems="flex-start" width="80%"> |
214 | 211 | <h2>Apps:</h2> |
215 | | - <FlexWrapper gap="var(--token-space-3)" justifycontent="space-evenly" direction="row" wrap="wrap"> |
| 212 | + <FlexWrapper gap="var(--token-space-3)" justifycontent={width > 600 ? "flex-start" : "space-evenly"} direction="row" wrap="wrap"> |
216 | 213 | <a class="option" href="https://kanban.davidnet.net"> |
217 | 214 | <FlexWrapper width="100%" height="100%" gap="var(--token-space-2)"> |
218 | 215 | <Icon size="4rem" icon="view_kanban" /> |
|
255 | 252 | {#if sessionInfo?.internal} |
256 | 253 | <FlexWrapper alignitems="flex-start" width="80%"> |
257 | 254 | <h2>Internal:</h2> |
258 | | - <FlexWrapper gap="var(--token-space-3)" justifycontent="space-evenly" direction="row" wrap="wrap"> |
| 255 | + <FlexWrapper gap="var(--token-space-3)" justifycontent={width > 600 ? "flex-start" : "space-evenly"} direction="row" wrap="wrap"> |
259 | 256 | <a class="option" href="https://homeassistant.davidnet.net"> |
260 | 257 | <FlexWrapper width="100%" height="100%" gap="var(--token-space-2)"> |
261 | 258 | <Icon size="4rem" icon="home" /> |
|
0 commit comments