feat: Display version in UI

Closes #153
This commit is contained in:
Maksim Eltyshev
2023-01-10 16:32:20 +01:00
parent 38be036089
commit a35f26f607
5 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
const VERSION = process.env.REACT_APP_VERSION;
const { BASE_URL } = window;
const BASE_PATH = BASE_URL.replace(/^.*\/\/[^/]*(.*)[^?#]*.*$/, '$1');
@@ -15,6 +17,7 @@ const POSITION_GAP = 65535;
const ACTIVITIES_LIMIT = 50;
export default {
VERSION,
BASE_PATH,
SERVER_BASE_URL,
SERVER_HOST_NAME,