Skip to content

Commit

Permalink
Dev add version (#715)
Browse files Browse the repository at this point in the history
* add pogues version

* add pogues version

* update version

* Dev scope loop starts with external element (#713)

* manage variables of loops starting with external-element

* update version

* add clg to understand loss of Scope

* allow temporary clg

* remove console.log

* Update package.json

---------

Co-authored-by: Laurent Caouissin <[email protected]>
  • Loading branch information
BulotF and laurentC35 authored Jan 10, 2024
1 parent f70dcf4 commit 3537517
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pogues",
"version": "1.5.5-rc3",
"version": "1.5.5-rc5",
"description": "Outil de conception et de test de questionnaires.",
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion src/layout/header/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import logo from 'layout/header/logo-insee.png';
import UserConnectionContainer from 'layout/user/user-connection-container';
import Dictionary from 'utils/dictionary/dictionary';
import { poguesFrontVersion } from 'utils/version';

function Header() {
return (
Expand All @@ -18,7 +19,10 @@ function Header() {
Pogues
</Link>
</h2>
<h6>{Dictionary.headerSubtitle}</h6>
<h6>
{Dictionary.headerSubtitle}
<span className="pogues-version">{poguesFrontVersion}</span>
</h6>
</div>
<div className="header-help">
<a
Expand Down
6 changes: 6 additions & 0 deletions src/scss/inc/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
.header-user {
@include make-xs-column(3);
}

.pogues-version {
margin-left: 5px;
color: $color-grey_01;
font-style: italic;
}
}
}
3 changes: 3 additions & 0 deletions src/utils/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import packageVersion from '../../package.json';

export const poguesFrontVersion = packageVersion.version;

0 comments on commit 3537517

Please sign in to comment.