- 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
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
modules: ['@nuxt/ui'],
|
|
css: ['~/assets/css/main.css'],
|
|
colorMode: { preference: 'dark', fallback: 'dark' },
|
|
devtools: { enabled: true },
|
|
compatibilityDate: '2025-07-15',
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBaseUrl: 'https://localhost:7069'
|
|
}
|
|
}
|
|
})
|