mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
feat: Ajout du suivi de version dans le footer du Front
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import createNextIntlPlugin from 'next-intl/plugin';
|
||||
import pkg from "./package.json" assert { type: "json" };
|
||||
|
||||
const withNextIntl = createNextIntlPlugin();
|
||||
|
||||
@ -7,6 +8,9 @@ const nextConfig = {
|
||||
experimental: {
|
||||
instrumentationHook: true,
|
||||
},
|
||||
env: {
|
||||
NEXT_PUBLIC_APP_VERSION: pkg.version,
|
||||
},
|
||||
};
|
||||
|
||||
export default withNextIntl(nextConfig);
|
||||
@ -46,7 +46,7 @@ export default function Layout({
|
||||
const headerTitle = sidebarItems[currentPage]?.name || t('dashboard');
|
||||
|
||||
const softwareName = "N3WT School";
|
||||
const softwareVersion = "v1.0.0";
|
||||
const softwareVersion = `v${process.env.NEXT_PUBLIC_APP_VERSION}`;
|
||||
|
||||
|
||||
const dropdownItems = [
|
||||
@ -80,9 +80,9 @@ export default function Layout({
|
||||
</div>
|
||||
{/* Footer - h-16 = 64px */}
|
||||
<footer className="h-16 bg-white border-t border-gray-200 px-8 py-4 flex items-center justify-between">
|
||||
<div>
|
||||
<div className="text-sm font-light">
|
||||
<span>© {new Date().getFullYear()} N3WT-INNOV Tous droits réservés.</span>
|
||||
<div>{softwareName} - {softwareVersion}</div>
|
||||
<div className="text-sm font-light">{softwareName} - {softwareVersion}</div>
|
||||
</div>
|
||||
<Logo className="w-8 h-8" />
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user