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

+18 -7
View File
@@ -7,15 +7,26 @@
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "nuxt typecheck",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/devtools": "latest",
"@nuxtjs/tailwindcss": "^6.11.3",
"nuxt": "^3.9.1",
"vue": "^3.4.10",
"vue-router": "^4.2.5"
"@iconify-json/lucide": "^1.2.155",
"@nuxt/ui": "^4.12.0",
"nuxt": "^4.6.4",
"tailwindcss": "^4.3.5",
"vue": "^3.5.45",
"vue-router": "^5.5.1"
},
"devDependencies": {},
"packageManager": "pnpm@12.6.0+sha512.3ef68f951cb111ac204b4a5a16f0b2ddf0da56a96e0413e81d855d9f0b55ef926714709028e1cd00c405c2c5fb7b9e8ec4dc46777c805d0373c2f2ff00fd20ec"
"packageManager": "pnpm@12.6.0+sha512.3ef68f951cb111ac204b4a5a16f0b2ddf0da56a96e0413e81d855d9f0b55ef926714709028e1cd00c405c2c5fb7b9e8ec4dc46777c805d0373c2f2ff00fd20ec",
"devDependencies": {
"@nuxt/test-utils": "^4.4.0",
"@vue/test-utils": "^2.5.1",
"happy-dom": "^21.0.4",
"typescript": "^5.9.3",
"vitest": "^5.1.0",
"vue-tsc": "^3.3.14"
}
}