- Marked tasks in `TODO.md` as completed for moving task-related files to the `task-management` directory and correcting imports across the codebase. - Updated imports in `seed-data.ts`, `seed-tags.ts`, API routes, and various components to reflect the new structure. - Removed obsolete `daily.ts`, `tags.ts`, and `tasks.ts` files to streamline the codebase. - Added new tasks in `TODO.md` for future cleaning and organization of service imports.
24 lines
692 B
TypeScript
24 lines
692 B
TypeScript
import { tasksService } from '@/services/task-management/tasks';
|
|
import { tagsService } from '@/services/task-management/tags';
|
|
import { HomePageClient } from '@/components/HomePageClient';
|
|
|
|
// Force dynamic rendering (no static generation)
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export default async function HomePage() {
|
|
// SSR - Récupération des données côté serveur
|
|
const [initialTasks, initialTags, initialStats] = await Promise.all([
|
|
tasksService.getTasks(),
|
|
tagsService.getTags(),
|
|
tasksService.getTaskStats()
|
|
]);
|
|
|
|
return (
|
|
<HomePageClient
|
|
initialTasks={initialTasks}
|
|
initialTags={initialTags}
|
|
initialStats={initialStats}
|
|
/>
|
|
);
|
|
}
|