diff --git a/backend/src/routes/adminEvents.js b/backend/src/routes/adminEvents.js index 4eed43c..797014a 100644 --- a/backend/src/routes/adminEvents.js +++ b/backend/src/routes/adminEvents.js @@ -78,8 +78,7 @@ router.post('/', adminAuth, [ color_theme, share_link: shareLink, expires_at, - created_at: new Date(), - updated_at: new Date() + created_at: new Date() }); // Log activity diff --git a/frontend/src/components/admin/AdminLayout.tsx b/frontend/src/components/admin/AdminLayout.tsx index 83c6569..72f1180 100644 --- a/frontend/src/components/admin/AdminLayout.tsx +++ b/frontend/src/components/admin/AdminLayout.tsx @@ -49,4 +49,6 @@ export const AdminLayout: React.FC = () => { ); -}; \ No newline at end of file +}; + +AdminLayout.displayName = 'AdminLayout'; \ No newline at end of file diff --git a/frontend/src/pages/admin/AdminDashboard.tsx b/frontend/src/pages/admin/AdminDashboard.tsx index c28df2b..d762d91 100644 --- a/frontend/src/pages/admin/AdminDashboard.tsx +++ b/frontend/src/pages/admin/AdminDashboard.tsx @@ -311,4 +311,6 @@ export const AdminDashboard: React.FC = () => { ); -}; \ No newline at end of file +}; + +AdminDashboard.displayName = 'AdminDashboard'; \ No newline at end of file diff --git a/frontend/src/pages/admin/AdminLoginPage.tsx b/frontend/src/pages/admin/AdminLoginPage.tsx index 74e4a83..0b9a8bb 100644 --- a/frontend/src/pages/admin/AdminLoginPage.tsx +++ b/frontend/src/pages/admin/AdminLoginPage.tsx @@ -210,4 +210,6 @@ export const AdminLoginPage: React.FC = () => { ); -}; \ No newline at end of file +}; + +AdminLoginPage.displayName = 'AdminLoginPage'; \ No newline at end of file diff --git a/frontend/src/pages/admin/CreateEventPage.tsx b/frontend/src/pages/admin/CreateEventPage.tsx index 30edc22..b2b106b 100644 --- a/frontend/src/pages/admin/CreateEventPage.tsx +++ b/frontend/src/pages/admin/CreateEventPage.tsx @@ -438,4 +438,6 @@ export const CreateEventPage: React.FC = () => { ); -}; \ No newline at end of file +}; + +CreateEventPage.displayName = 'CreateEventPage'; \ No newline at end of file diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index 227a6c6..028c24e 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -10,7 +10,7 @@ /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, + "verbatimModuleSyntax": false, "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index e5d2b95..ab34ae1 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -4,6 +4,17 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + build: { + rollupOptions: { + output: { + manualChunks: { + 'react-vendor': ['react', 'react-dom', 'react-router-dom'], + 'ui-vendor': ['lucide-react', 'react-toastify'], + }, + }, + }, + sourcemap: true, + }, server: { port: 5173, host: true,