- Updated TODO.md to reflect the new project structure and phases, marking several tasks as completed. - Enhanced Kanban components with a tech-inspired design, including new styles for columns and task cards. - Removed the obsolete reminders service and task processor, streamlining the codebase for better maintainability. - Introduced a modern API for task management, including CRUD operations and improved error handling. - Updated global styles for a cohesive dark theme and added custom scrollbar styles.
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
/**
|
|
* Configuration de l'application TowerControl (version standalone)
|
|
*/
|
|
|
|
export interface AppConfig {
|
|
app: {
|
|
name: string;
|
|
version: string;
|
|
};
|
|
ui: {
|
|
theme: 'light' | 'dark' | 'system';
|
|
itemsPerPage: number;
|
|
};
|
|
features: {
|
|
enableDragAndDrop: boolean;
|
|
enableNotifications: boolean;
|
|
autoSave: boolean;
|
|
};
|
|
}
|
|
|
|
// Configuration par défaut
|
|
const defaultConfig: AppConfig = {
|
|
app: {
|
|
name: 'TowerControl',
|
|
version: '2.0.0'
|
|
},
|
|
ui: {
|
|
theme: (process.env.NEXT_PUBLIC_THEME as 'light' | 'dark' | 'system') || 'system',
|
|
itemsPerPage: parseInt(process.env.NEXT_PUBLIC_ITEMS_PER_PAGE || '50')
|
|
},
|
|
features: {
|
|
enableDragAndDrop: process.env.NEXT_PUBLIC_ENABLE_DRAG_DROP !== 'false',
|
|
enableNotifications: process.env.NEXT_PUBLIC_ENABLE_NOTIFICATIONS === 'true',
|
|
autoSave: process.env.NEXT_PUBLIC_AUTO_SAVE !== 'false'
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Récupère la configuration de l'application
|
|
*/
|
|
export function getConfig(): AppConfig {
|
|
return defaultConfig;
|
|
}
|
|
|
|
/**
|
|
* Configuration pour le développement/debug
|
|
*/
|
|
export const DEBUG_CONFIG = {
|
|
isDevelopment: process.env.NODE_ENV === 'development',
|
|
verboseLogging: process.env.VERBOSE_LOGGING === 'true',
|
|
enableDevTools: process.env.NODE_ENV === 'development'
|
|
};
|