feat: Setup projet Classeo avec infrastructure Docker et architecture DDD
Configure l'environnement de développement complet avec Docker Compose, structure DDD 4 Bounded Contexts, et pipeline CI/CD GitHub Actions. Corrections compatibilité CI: - Symfony 8 nécessite monolog-bundle ^4.0 (la v3.x ne supporte que jusqu'à Symfony 7) - ESLint v9 nécessite flat config (eslint.config.js) - le format .eslintrc.cjs est obsolète
This commit is contained in:
23
frontend/src/routes/+layout.svelte
Normal file
23
frontend/src/routes/+layout.svelte
Normal file
@@ -0,0 +1,23 @@
|
||||
<script lang="ts">
|
||||
import '../app.css';
|
||||
import { browser } from '$app/environment';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/svelte-query';
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
const queryClient = $state(
|
||||
new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
enabled: browser,
|
||||
staleTime: 1000 * 60 * 5, // 5 minutes
|
||||
retry: 1
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
</script>
|
||||
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{@render children()}
|
||||
</QueryClientProvider>
|
||||
28
frontend/src/routes/+page.svelte
Normal file
28
frontend/src/routes/+page.svelte
Normal file
@@ -0,0 +1,28 @@
|
||||
<script lang="ts">
|
||||
let count = $state(0);
|
||||
|
||||
function increment() {
|
||||
count++;
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Classeo</title>
|
||||
</svelte:head>
|
||||
|
||||
<main class="flex min-h-screen flex-col items-center justify-center bg-gray-50">
|
||||
<div class="text-center">
|
||||
<h1 class="mb-4 text-4xl font-bold text-primary">Bienvenue sur Classeo</h1>
|
||||
<p class="mb-8 text-gray-600">Application de gestion scolaire</p>
|
||||
|
||||
<div class="rounded-lg bg-white p-8 shadow-md">
|
||||
<p class="mb-4 text-2xl font-semibold text-gray-800">Compteur: {count}</p>
|
||||
<button
|
||||
onclick={increment}
|
||||
class="rounded-md bg-primary px-6 py-2 text-primary-foreground transition-colors hover:bg-primary/90"
|
||||
>
|
||||
Incrementer
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
Reference in New Issue
Block a user