Initial commit

This commit is contained in:
2025-05-06 12:41:50 +00:00
commit aec7504e67
33 changed files with 15916 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<script setup lang="ts">
import { useLobbyStore } from "~/store/lobby.store";
import { useUserStore } from "~/store/user.store";
export interface Props {
id: number;
}
const loading = ref(false);
const lobbyStore = useLobbyStore();
const userStore = useUserStore();
const props = defineProps<Props>();
const game = lobbyStore.games[props.id];
</script>
<template>
{{ game.id }}
<User
v-for="player in game.players"
:key="player.id"
:id="player.userId"
></User>
{{ game.started }}
{{ game }}
<NuxtLink :to="'/game/' + id"
><input type="button" value="open" :disabled="!userStore.self || loading"
/></NuxtLink>
<br />
</template>
<style lang="css" scoped>
input:disabled {
cursor: wait;
}
</style>