mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 15:49:46 +02:00
parent
0dff66abcf
commit
ce5364ef91
7 changed files with 120 additions and 12 deletions
|
@ -1 +0,0 @@
|
|||
REACT_APP_VERSION=1.21.0
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { useTranslation } from 'react-i18next';
|
||||
import { Image, Tab } from 'semantic-ui-react';
|
||||
|
||||
import Config from '../../constants/Config';
|
||||
import version from '../../version';
|
||||
|
||||
import logo from '../../assets/images/logo.png';
|
||||
|
||||
|
@ -15,7 +15,7 @@ const AboutPane = React.memo(() => {
|
|||
<Tab.Pane attached={false} className={styles.wrapper}>
|
||||
<Image centered src={logo} size="large" />
|
||||
<div className={styles.version}>
|
||||
{t('common.version')} {Config.VERSION}
|
||||
{t('common.version')} {version}
|
||||
</div>
|
||||
</Tab.Pane>
|
||||
);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const VERSION = process.env.REACT_APP_VERSION;
|
||||
|
||||
const { BASE_URL } = window;
|
||||
const BASE_PATH = BASE_URL.replace(/^.*\/\/[^/]*(.*)[^?#]*.*$/, '$1');
|
||||
|
||||
|
@ -18,7 +16,6 @@ const POSITION_GAP = 65535;
|
|||
const ACTIVITIES_LIMIT = 50;
|
||||
|
||||
export default {
|
||||
VERSION,
|
||||
BASE_PATH,
|
||||
SERVER_BASE_URL,
|
||||
SERVER_BASE_PATH,
|
||||
|
|
1
client/src/version.js
Normal file
1
client/src/version.js
Normal file
|
@ -0,0 +1 @@
|
|||
export default '1.21.0';
|
1
client/version-template.ejs
Normal file
1
client/version-template.ejs
Normal file
|
@ -0,0 +1 @@
|
|||
export default '<%= pkg.version %>';
|
Loading…
Add table
Add a link
Reference in a new issue