From a23c3bf78028a963ad261e647ebeeacb56a79dd2 Mon Sep 17 00:00:00 2001 From: streaper2 Date: Mon, 4 May 2026 20:34:13 +0200 Subject: [PATCH 01/24] maj bdd instruction --- instructions-base-de-donnees.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/instructions-base-de-donnees.md b/instructions-base-de-donnees.md index 1f21ff6..0616d79 100644 --- a/instructions-base-de-donnees.md +++ b/instructions-base-de-donnees.md @@ -77,3 +77,9 @@ npx prisma studio - **Offer** : Produits ou Services liés à un `Business`. - **BlogPost** : Les articles du blog. - **Interview** : Les vidéos et articles d'interviews. + +```bash + prisma generate // Regénère le client Prisma + prisma migrate dev // Crée/Met à jour les tables dans la BDD + prisma studio // Ouvre l'interface web de gestion des données +``` \ No newline at end of file From 63b5af4868f8c8ff834f815b7413c5969674278f Mon Sep 17 00:00:00 2001 From: streaper2 Date: Mon, 4 May 2026 20:47:35 +0200 Subject: [PATCH 02/24] suppression des fichiers inutile --- .gitea/workflows/deploy.yaml | 28 -------------------- .dockerignore => tmp/.dockerignore | 0 Dockerfile => tmp/Dockerfile | 0 docker-compose.yml => tmp/docker-compose.yml | 0 features.md => tmp/features.md | 0 out.txt.supp => tmp/out.txt.supp | 0 run.cjs.supp => tmp/run.cjs.supp | 0 7 files changed, 28 deletions(-) delete mode 100644 .gitea/workflows/deploy.yaml rename .dockerignore => tmp/.dockerignore (100%) rename Dockerfile => tmp/Dockerfile (100%) rename docker-compose.yml => tmp/docker-compose.yml (100%) rename features.md => tmp/features.md (100%) rename out.txt.supp => tmp/out.txt.supp (100%) rename run.cjs.supp => tmp/run.cjs.supp (100%) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml deleted file mode 100644 index 294eee5..0000000 --- a/.gitea/workflows/deploy.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build and Push App -on: - push: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - # FORCE l'image ici pour être sûr d'avoir l'outil Docker - container: - image: catthehacker/ubuntu:act-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Login to Gitea Registry - run: | - echo "${{ secrets.TOKEN }}" | docker login git.home.arrondeau.fr -u ${{ gitea.actor }} --password-stdin - - - name: Build and Push Docker Images - run: | - # Build and Push FRONT - docker build -t git.home.arrondeau.fr/${{ gitea.repository }}:latest . - docker push git.home.arrondeau.fr/${{ gitea.repository }}:latest - - # Build and Push ADMIN - docker build -t git.home.arrondeau.fr/${{ gitea.repository }}-admin:latest ./admin - docker push git.home.arrondeau.fr/${{ gitea.repository }}-admin:latest \ No newline at end of file diff --git a/.dockerignore b/tmp/.dockerignore similarity index 100% rename from .dockerignore rename to tmp/.dockerignore diff --git a/Dockerfile b/tmp/Dockerfile similarity index 100% rename from Dockerfile rename to tmp/Dockerfile diff --git a/docker-compose.yml b/tmp/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to tmp/docker-compose.yml diff --git a/features.md b/tmp/features.md similarity index 100% rename from features.md rename to tmp/features.md diff --git a/out.txt.supp b/tmp/out.txt.supp similarity index 100% rename from out.txt.supp rename to tmp/out.txt.supp diff --git a/run.cjs.supp b/tmp/run.cjs.supp similarity index 100% rename from run.cjs.supp rename to tmp/run.cjs.supp From 1b6d40931902232a645d31b49d720ea44089db49 Mon Sep 17 00:00:00 2001 From: streaper2 Date: Mon, 4 May 2026 21:18:41 +0200 Subject: [PATCH 03/24] maj color develop --- app/layout.tsx | 13 ++++++++++++- components/Navbar.tsx | 19 ++++++++++--------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index fcc2552..e4c450f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -37,11 +37,22 @@ export async function generateMetadata(): Promise { }; } +const isDev = process.env.NODE_ENV === 'development'; +const devBrandOverride: React.CSSProperties | undefined = isDev ? { + '--color-brand-50': '#fef2f2', + '--color-brand-100': '#fee2e2', + '--color-brand-200': '#fecaca', + '--color-brand-500': '#ef4444', + '--color-brand-600': '#dc2626', + '--color-brand-700': '#b91c1c', + '--color-brand-900': '#7f1d1d', +} as React.CSSProperties : undefined; + export default async function RootLayout({ children }: { children: React.ReactNode }) { const settings = await getSiteSettings(); return ( - + diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 89160fa..2b0cd8b 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -16,12 +16,13 @@ const Navbar = ({ settings }: NavbarProps) => { const pathname = usePathname() || ''; const siteName = settings?.siteName || "Afrohub"; + const isDev = process.env.NODE_ENV === 'development'; // Hide Navbar on Dashboard to prevent double navigation, show only on public pages if (pathname.startsWith('/dashboard')) return null; return ( -