Implement complete frontend with admin panel and theme system

- Add admin authentication and dashboard
- Create event management pages (list, create, edit, archive)
- Implement gallery enhancements (search, sorting, bulk download)
- Add email configuration and archive management pages
- Integrate Umami analytics with tracking throughout the app
- Add comprehensive error boundaries and loading states
- Implement accessibility features (WCAG 2.1 AA compliance)
- Create theme system with preset themes and customization
- Add branding settings and company information management
- Fix backend database initialization and health check
- Configure proper API URLs and environment variables

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-06 22:04:45 +02:00
parent 6c82958c79
commit 28632e8970
53 changed files with 13843 additions and 181 deletions
+5 -14
View File
@@ -7,7 +7,7 @@ import type { AdminUser } from '../types';
interface AdminAuthContextType {
isAuthenticated: boolean;
user: AdminUser | null;
login: (username: string, password: string) => Promise<void>;
login: (token: string, user: AdminUser) => void;
logout: () => void;
isLoading: boolean;
error: string | null;
@@ -43,19 +43,10 @@ export const AdminAuthProvider: React.FC<AdminAuthProviderProps> = ({ children }
setIsLoading(false);
}, []);
const login = async (username: string, password: string) => {
try {
setError(null);
setIsLoading(true);
const response = await authService.adminLogin(username, password);
setUser(response.user);
setIsAuthenticated(true);
} catch (err: any) {
setError(err.response?.data?.error || 'Invalid credentials');
throw err;
} finally {
setIsLoading(false);
}
const login = (_token: string, user: AdminUser) => {
setUser(user);
setIsAuthenticated(true);
setError(null);
};
const logout = () => {