Skip to content

Commit

Permalink
Display version in about dialog (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
neesjanvaneck authored Dec 16, 2022
1 parent 3f32fea commit 7811c84
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/components/ui/Info/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global VERSION */
import React, { useContext, useState } from 'react';
import { observer } from 'mobx-react-lite';
import {
Expand Down Expand Up @@ -131,6 +132,11 @@ const Info = observer(() => {
</IconButton>
</DialogTitle>
<DialogContent classes={{ root: s.dialogContent }}>
<Typography variant="body1" align="justify" paragraph>
VOSviewer Online version
{' '}
{VERSION}
</Typography>
<Typography variant="body1" align="justify" paragraph>
VOSviewer Online has been developed by
{' '}
Expand Down
3 changes: 2 additions & 1 deletion webpack.component.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export default (env = defaultEnv) => {
NODE_ENV: JSON.stringify('production'),
IS_REACT_COMPONENT: JSON.stringify(true),
MODE: JSON.stringify(appMode),
CONFIG: JSON.stringify(jsonConfig)
CONFIG: JSON.stringify(jsonConfig),
VERSION: JSON.stringify(require("./package.json").version)
}),
new RemovePlugin({
after: {
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export default (env = defaultEnv) => {
NODE_ENV: JSON.stringify(env.dev ? 'development' : 'production'),
IS_REACT_COMPONENT: JSON.stringify(false),
MODE: JSON.stringify(appMode),
CONFIG: JSON.stringify(jsonConfig)
CONFIG: JSON.stringify(jsonConfig),
VERSION: JSON.stringify(require("./package.json").version)
}),
];

Expand Down

0 comments on commit 7811c84

Please sign in to comment.