StreakFit — PWA Nuxt (thème flamme, logo SF animé)
Build & Deploy / build (push) Failing after 5s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 03:00:18 +02:00
co-authored by Claude Opus 4.8
commit 8ee9596529
41 changed files with 24630 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<script setup lang="ts">
definePageMeta({ middleware: 'auth' })
const { api } = useApi()
const route = useRoute()
const toast = useToast()
onMounted(async () => {
try {
const routineId = route.query.routine ? Number(route.query.routine) : undefined
const res = await api<{ session: { id: number } }>('/api/sessions', {
method: 'POST',
body: { routine_id: routineId }
})
await navigateTo(`/session/${res.session.id}`)
} catch {
toast.add({ title: 'Impossible de démarrer la séance', color: 'error' })
await navigateTo('/')
}
})
</script>
<template>
<div class="flex flex-col items-center justify-center py-24 gap-4">
<SfLogo :size="72" loader />
<p class="text-sm text-zinc-500">Préparation de ta séance</p>
</div>
</template>