Prettier Changes

This commit is contained in:
Neshura 2024-01-02 02:39:22 +01:00
parent e9c805c36b
commit 1537f8a410
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
10 changed files with 69 additions and 79 deletions
src/routes/services

View file

@ -9,27 +9,26 @@
let icons: readonly string[] = $state.frozen([]);
async function get(url: string): Promise<any> {
let res = await fetch(url)
let res = await fetch(url);
if (res.ok) {
let data = await res.json()
return data
}
else {
return Promise.reject()
let data = await res.json();
return data;
} else {
return Promise.reject();
}
}
$effect(() => {
get("/data/services").then((data: Service[]) => {
services = data
})
})
get('/data/services').then((data: Service[]) => {
services = data;
});
});
$effect(() => {
get("/assets/icons").then((data: string[]) => {
icons = data
})
})
get('/assets/icons').then((data: string[]) => {
icons = data;
});
});
</script>
<svelte:head>