From 2f6f1508d2472bcbf372e583d97a83ac8a1a437f Mon Sep 17 00:00:00 2001 From: Eli Date: Mon, 4 May 2026 16:23:54 -0400 Subject: [PATCH] fmt --- frontend/index.html | 2 +- frontend/src/lib/LeaderboardPlace.svelte | 2 +- frontend/src/lib/redis-api.ts | 3 ++- frontend/src/main.ts | 12 ++++++------ frontend/svelte.config.js | 4 ++-- site/index.html | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index b5eeb6e..930193d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,4 +1,4 @@ - + diff --git a/frontend/src/lib/LeaderboardPlace.svelte b/frontend/src/lib/LeaderboardPlace.svelte index 65823fb..47be484 100644 --- 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 index 771355a..184dfd2 100644 --- a/frontend/src/lib/redis-api.ts +++ b/frontend/src/lib/redis-api.ts @@ -16,7 +16,8 @@ export const getLeaderboard = async ( 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(); diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 7da37b0..6772e7a 100644 --- 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/svelte.config.js b/frontend/svelte.config.js index 8abe436..d0e6448 100644 --- 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 index 80750e5..822be1f 100644 --- a/site/index.html +++ b/site/index.html @@ -1,4 +1,4 @@ - + -- 2.51.2