Skip to content

Commit

Permalink
fix: version display
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Mar 19, 2024
1 parent fe75b76 commit af0224d
Show file tree
Hide file tree
Showing 4 changed files with 227 additions and 224 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023 DSI des ministère sociaux
Copyright 2024 beta.gouv.fr

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@betagouv/template",
"version": "1.15.8",
"private": true,
"license": "Apache-2.0",
"engines": {
"node": ">=18 || >=20"
},
Expand Down Expand Up @@ -32,19 +33,19 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@codegouvfr/react-dsfr": "^1.9.1",
"@codegouvfr/react-dsfr": "^1.9.2",
"@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@gouvfr/dsfr-chart": "^1.0.0",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mui/icons-material": "^5.15.12",
"@mui/material": "^5.15.12",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@mui/x-data-grid": "^5.17.26",
"@mui/x-date-pickers": "^5.0.11",
"@next/mdx": "^14.1.3",
"@sentry/nextjs": "^7.106.0",
"@sentry/nextjs": "^7.107.0",
"@socialgouv/matomo-next": "^1.8.1",
"@types/mdx": "^2.0.11",
"next": "14.1.3",
Expand All @@ -66,12 +67,12 @@
"@storybook/test": "^7.6.17",
"@storybook/testing-library": "^0.2.2",
"@swc-node/register": "^1.9.0",
"@swc/core": "^1.4.6",
"@swc/core": "^1.4.8",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.2",
"@types/node": "20.11.25",
"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",
"@types/node": "20.11.29",
"@types/react": "18.2.67",
"@types/react-dom": "18.2.22",
"cypress": "^9.4.1",
"eslint": "8.57.0",
"eslint-config-next": "14.1.3",
Expand Down
4 changes: 3 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { MuiDsfrThemeProvider } from "@codegouvfr/react-dsfr/mui";

import { init } from "@socialgouv/matomo-next";

import pkg from "../../package.json";

declare module "@codegouvfr/react-dsfr/next-pagesdir" {
interface RegisterLink {
Link: typeof Link;
Expand Down Expand Up @@ -205,6 +207,7 @@ const Layout = ({ children }: { children: ReactNode }) => {
suivantes : Le site officiel d’information administrative pour les entreprises.
`}
homeLinkProps={homeLinkPops}
license={`Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous licence ${pkg.license}`}
accessibilityLinkProps={{ href: "/accessibilite" }}
termsLinkProps={{ href: "/mentions-legales" }}
bottomItems={[...bottomLinks, headerFooterDisplayItem]}
Expand All @@ -215,7 +218,6 @@ const Layout = ({ children }: { children: ReactNode }) => {

function App({ Component, pageProps }: AppProps) {
useEffect(() => {
console.log("init");
init({
url: process.env.NEXT_PUBLIC_MATOMO_URL ?? "",
siteId: process.env.NEXT_PUBLIC_MATOMO_SITE_ID ?? "",
Expand Down
Loading

0 comments on commit af0224d

Please sign in to comment.