Rewrite page in Svelte 5 #49

Merged
Neshura merged 94 commits from rewrite/svelte into main 2024-01-06 14:12:09 +00:00
3 changed files with 4 additions and 6 deletions
Showing only changes of commit f78e7ce6e1 - Show all commits

View file

@ -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

View file

@ -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

View file

@ -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) => {