added token storage in a store, and improved layout on mobile

This commit is contained in:
2025-12-15 16:24:30 +01:00
parent d6a26c0d09
commit 0714088d4b
17 changed files with 170 additions and 154 deletions

View File

@@ -17,14 +17,14 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useAuthStore } from '../stores/auth'
import { initAuth } from '../stores/auth.ts'
import { fetchRooms } from '../api/rooms'
import type { Room } from '../types/api'
const auth = useAuthStore()
const rooms = ref<Room[]>([])
onMounted(async () => {
const auth = await initAuth()
rooms.value = await fetchRooms(auth.uuid!)
})
</script>