Rewrite page in Svelte 5 #49
3 changed files with 4 additions and 6 deletions
|
@ -67,7 +67,7 @@
|
||||||
: status == 3
|
: status == 3
|
||||||
? 'border-maintenance'
|
? 'border-maintenance'
|
||||||
: 'border-maintenance'}
|
: 'border-maintenance'}
|
||||||
bg-black/55 p-4 backdrop-blur-sm z-0"
|
z-0 bg-black/55 p-4 backdrop-blur-sm"
|
||||||
>
|
>
|
||||||
<div class="flex flex-row justify-between pb-4">
|
<div class="flex flex-row justify-between pb-4">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul
|
<ul
|
||||||
class="absolute flex h-16 w-full flex-row items-center justify-center gap-3 border-b bg-black/40 backdrop-blur-sm z-50"
|
class="absolute z-50 flex h-16 w-full flex-row items-center justify-center gap-3 border-b bg-black/40 backdrop-blur-sm"
|
||||||
>
|
>
|
||||||
<li>
|
<li>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
data.promise.then((jwt) => {
|
data.promise.then((jwt) => {
|
||||||
token = jwt;
|
token = jwt;
|
||||||
})
|
});
|
||||||
|
|
||||||
let services: readonly Service[] = $state.frozen([]);
|
let services: readonly Service[] = $state.frozen([]);
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
||||||
const socket = io('https://status.neshweb.net/');
|
const socket = io('https://status.neshweb.net/');
|
||||||
|
|
||||||
socket.on('connect', () => {
|
socket.on('connect', () => {
|
||||||
socket.emit('loginByToken', token, () => {
|
socket.emit('loginByToken', token, () => {});
|
||||||
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('heartbeatList', (idString: string, data) => {
|
socket.on('heartbeatList', (idString: string, data) => {
|
||||||
|
|
Loading…
Reference in a new issue