Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ESAP GUI
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
ESAP GUI
Commits
8b9a2ec9
Commit
8b9a2ec9
authored
2 years ago
by
John Swinbank
Browse files
Options
Downloads
Patches
Plain Diff
Insert version string on build
parent
b380bfde
No related branches found
No related tags found
1 merge request
!104
Insert version string on build
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+2
-1
2 additions, 1 deletion
package.json
src/routes/Routes.js
+3
-1
3 additions, 1 deletion
src/routes/Routes.js
src/utils/version.js
+3
-0
3 additions, 0 deletions
src/utils/version.js
with
8 additions
and
2 deletions
package.json
+
2
−
1
View file @
8b9a2ec9
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
"start"
:
"react-scripts start"
,
"start"
:
"react-scripts start"
,
"build"
:
"react-scripts build"
,
"build"
:
"react-scripts build"
,
"test"
:
"react-scripts test"
,
"test"
:
"react-scripts test"
,
"eject"
:
"react-scripts eject"
"eject"
:
"react-scripts eject"
,
"prebuild"
:
"git log -1 --format=
\"
export const COMMIT_DATE=
\\\"
%cd
\\\"
%nexport const COMMIT_URL=
\\\"
https://git.astron.nl/astron-sdc/esap-gui/-/tree/%H
\\\"\"
> src/utils/version.js"
},
},
"eslintConfig"
:
{
"eslintConfig"
:
{
"extends"
:
"react-app"
"extends"
:
"react-app"
...
...
This diff is collapsed.
Click to expand it.
src/routes/Routes.js
+
3
−
1
View file @
8b9a2ec9
...
@@ -30,6 +30,8 @@ import AladinAdvancedPage from '../components/services/aladin/AladinAdvancedPage
...
@@ -30,6 +30,8 @@ import AladinAdvancedPage from '../components/services/aladin/AladinAdvancedPage
import
Jobs
from
"
../components/services/Jobs
"
;
import
Jobs
from
"
../components/services/Jobs
"
;
import
{
createBrowserHistory
}
from
"
history
"
import
{
createBrowserHistory
}
from
"
history
"
import
{
COMMIT_DATE
,
COMMIT_URL
}
from
"
../utils/version
"
;
export
default
function
Routes
()
{
export
default
function
Routes
()
{
const
history
=
createBrowserHistory
();
const
history
=
createBrowserHistory
();
const
{
navbar
,
handleLogin
,
handleLogout
,
handleError
}
=
useContext
(
GlobalContext
);
const
{
navbar
,
handleLogin
,
handleLogout
,
handleError
}
=
useContext
(
GlobalContext
);
...
@@ -118,7 +120,7 @@ export default function Routes() {
...
@@ -118,7 +120,7 @@ export default function Routes() {
<
/Switch
>
<
/Switch
>
<
footer
><
small
>
esap
-
gui
version
21
jan
2022
-
10
:
00
<
/small></
footer
>
<
footer
><
small
>
<
a
href
=
{
COMMIT_URL
}
>
ESAP
-
GUI
version
{
COMMIT_DATE
}
<
/a>
</
small
><
/footer
>
<
/Router
>
<
/Router
>
);
);
}
}
This diff is collapsed.
Click to expand it.
src/utils/version.js
0 → 100644
+
3
−
0
View file @
8b9a2ec9
// Autogenerated on build; do not edit
export
const
COMMIT_DATE
=
"
(Development Version)
"
export
const
COMMIT_URL
=
"
https://git.astron.nl/astron-sdc/esap-gui
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment