feat: web impl.

This commit is contained in:
izzy
2025-11-20 16:08:16 +00:00
parent 56a4159295
commit 2e15012257
16 changed files with 354 additions and 90 deletions

View File

@@ -72,16 +72,17 @@
afterNavigate(() => {
showNavigationLoadingBar = false;
});
const { release, serverRestarting } = websocketStore;
run(() => {
if ($user || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) {
if ($user || $serverRestarting || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) {
openWebsocketConnection();
} else {
closeWebsocketConnection();
}
});
const { release, serverRestarting } = websocketStore;
const handleRelease = async (release?: ReleaseEvent) => {
if (!release?.isAvailable || !$user.isAdmin) {
return;