Compare commits

...

2 Commits

Author SHA1 Message Date
0ddf35bc26 added Front page in router 2025-05-07 19:15:51 +02:00
bbab72187a added basic types for web 2025-05-07 19:15:39 +02:00
2 changed files with 14 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import Front from "./pages/Front.svelte";
import Game from "./pages/Game.svelte";
import Player from "./pages/Player.svelte";
import { RouterView } from "@dvcol/svelte-simple-router/components";
@@ -8,6 +9,11 @@
} from "@dvcol/svelte-simple-router/models";
const routes: Readonly<Route[]> = [
{
name: "front",
path: "/",
component: Front,
},
{
name: "game",
path: "/game/:{string}:id",

8
web/src/types.ts Normal file
View File

@@ -0,0 +1,8 @@
interface Player {
id: string
}
interface Game {
id: string,
score: number
}