From f1989c1d77b1a50a66de623aaa2c17aab64f774a Mon Sep 17 00:00:00 2001 From: "IETM_FIXE\\ietm6" Date: Thu, 23 Apr 2026 14:12:24 +0200 Subject: [PATCH] Mutualisation de la version pour ne pas l'oublier dans le footer du front ; Passage en version v 0.6.0 --- brain/app/main.py | 2 +- core/pom.xml | 2 +- web/package.json | 2 +- web/src/app/sidebar/sidebar.component.html | 2 +- web/src/app/sidebar/sidebar.component.ts | 4 ++++ web/tsconfig.json | 2 ++ 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/brain/app/main.py b/brain/app/main.py index 5a98917..832a355 100644 --- a/brain/app/main.py +++ b/brain/app/main.py @@ -40,7 +40,7 @@ from app.infrastructure.onemin_adapter import OneMinAiLLMProvider app = FastAPI( title="LoreMind Brain", description="Backend IA pour la génération de contenu narratif.", - version="0.5.0", + version="0.6.0", ) diff --git a/core/pom.xml b/core/pom.xml index cc09338..b8cf066 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -14,7 +14,7 @@ com.loremind loremind-core - 0.5.0 + 0.6.0 LoreMind Core Backend Core - Architecture Hexagonale diff --git a/web/package.json b/web/package.json index 84ff5d6..792ef98 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "loremind-web", - "version": "0.5.0", + "version": "0.6.0", "description": "LoreMind Frontend - Angular", "scripts": { "ng": "ng", diff --git a/web/src/app/sidebar/sidebar.component.html b/web/src/app/sidebar/sidebar.component.html index 0c60208..63c512f 100644 --- a/web/src/app/sidebar/sidebar.component.html +++ b/web/src/app/sidebar/sidebar.component.html @@ -64,7 +64,7 @@ diff --git a/web/src/app/sidebar/sidebar.component.ts b/web/src/app/sidebar/sidebar.component.ts index 37448f9..1248757 100644 --- a/web/src/app/sidebar/sidebar.component.ts +++ b/web/src/app/sidebar/sidebar.component.ts @@ -4,6 +4,9 @@ import { Router } from '@angular/router'; import { LucideAngularModule, Search, Download, Settings, ArrowLeft, Dices } from 'lucide-angular'; import { LayoutService } from '../services/layout.service'; import { GlobalSearchService } from '../services/global-search.service'; +// Single source of truth pour la version affichée dans le footer : +// on lit directement package.json à la compilation (resolveJsonModule). +import packageJson from '../../../package.json'; @Component({ selector: 'app-sidebar', @@ -22,6 +25,7 @@ export class SidebarComponent { readonly Dices = Dices; readonly layoutConfig$ = this.layoutService.secondarySidebar$; + readonly appVersion = packageJson.version; constructor( private router: Router, diff --git a/web/tsconfig.json b/web/tsconfig.json index d08dfb7..a52ec02 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -15,6 +15,8 @@ "experimentalDecorators": true, "moduleResolution": "node", "esModuleInterop": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, "importHelpers": true, "target": "ES2022", "module": "ES2022",