diff --git a/frontend/index.html b/frontend/index.html --- a/frontend/index.html +++ b/frontend/index.html @@ -1,4 +1,4 @@ - + diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -1,5 +1,5 @@ -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; export default { preprocess: vitePreprocess(), -} +}; diff --git a/site/index.html b/site/index.html --- a/site/index.html +++ b/site/index.html @@ -1,4 +1,4 @@ - + diff --git a/frontend/src/main.ts b/frontend/src/main.ts --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -1,9 +1,9 @@ -import './app.css' -import { mount } from 'svelte' -import App from './App.svelte' +import "./app.css"; +import { mount } from "svelte"; +import App from "./App.svelte"; const app = mount(App, { - target: document.getElementById('app')!, -}) + target: document.getElementById("app")!, +}); -export default app +export default app; diff --git a/frontend/src/lib/LeaderboardPlace.svelte b/frontend/src/lib/LeaderboardPlace.svelte --- a/frontend/src/lib/LeaderboardPlace.svelte +++ b/frontend/src/lib/LeaderboardPlace.svelte @@ -2,7 +2,7 @@ import type { User } from "./types.d.ts"; type Props = { user: User; score: number; place: number; pastplace: number }; - let { user, score, place, pastplace } = $props(); + let { user, score, place, pastplace }: Props = $props(); let placediff = $derived(pastplace - place + 1); diff --git a/frontend/src/lib/redis-api.ts b/frontend/src/lib/redis-api.ts --- a/frontend/src/lib/redis-api.ts +++ b/frontend/src/lib/redis-api.ts @@ -16,7 +16,8 @@ eventName: string, id: number, ): Promise => { - const url = `${BASE_URL}/ZRANGE/${FOLDER_BASE}:${eventName}:snapshot:${id}/0/-1/WITHSCORES`; + const url = + `${BASE_URL}/ZRANGE/${FOLDER_BASE}:${eventName}:snapshot:${id}/0/-1/WITHSCORES`; const req = await fetch(url); const data: { ZRANGE: string[] } = await req.json();