Migrate frontend to Nuxt 4 and Nuxt UI

- Upgrade to Nuxt 4 (sources under app/), add @nuxt/ui, Tailwind v4 and
  Lucide icons; drop @nuxtjs/tailwindcss
- Replace the custom Yale* components, Modal, Navbar and icon components with
  UButton/UInput/UModal/UTable/UCard/UHeader/UBadge/UAlert and toasts
- Add dark/light mode toggle and a logout button
- Add a useApi composable: central base URL/credentials, JSON-encoded bodies,
  error handling, and redirect to login when the session expires
- Fix modal listener leak, missing People heading, unhandled fetch errors and
  login redirect for already-authenticated users
- Make the code and people tables fit on phone screens
- Retake README screenshots
This commit is contained in:
LiamPietralla committed 2026-11-16 12:23:31 +11:00
1 parent d0425c8cb2
commit a9bef7b50d
22 files changed
+4732 -3472

No files matched your search

+4 -2
View File
@@ -1,3 +1,5 @@
<template>
<HealthCheck />
</template>
<UContainer class="py-6">
<HealthCheck />
</UContainer>
</template>
+7 -4
View File
@@ -1,5 +1,8 @@
<template>
<YalePanel heading="User Code List">
<UserCodeList />
</YalePanel>
</template>
<UCard>
<template #header>
<h2 class="text-lg font-semibold">User Codes</h2>
</template>
<UserCodeList />
</UCard>
</template>
+2 -4
View File
@@ -5,7 +5,5 @@ definePageMeta({
</script>
<template>
<div class="h-screen flex items-center justify-center w-11/12 md:w-auto mx-auto">
<LoginForm />
</div>
</template>
<LoginForm />
</template>
+6 -3
View File
@@ -1,5 +1,8 @@
<template>
<YalePanel title="People">
<UCard>
<template #header>
<h2 class="text-lg font-semibold">People</h2>
</template>
<PeopleList />
</YalePanel>
</template>
</UCard>
</template>