Projekt

Obecné

Profil

Stáhnout (908 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 7f244939 Lukáš Vlček
import env from '@beam-australia/react-env';
2
3
const DEFAULT_BASE_PATH = 'https://localhost:7241';
4
5
export function getApiBasePath() {
6
    let e = env('BACKEND_URL');
7
8
    if (!e) {
9
        return DEFAULT_BASE_PATH;
10
    } else {
11
        return e;
12
    }
13
}
14 3df63288 Lukáš Vlček
export const COLOR_GENERAL = 'gray';
15
export const COLOR_SUCCESS = 'darkgreen';
16
export const COLOR_WARNING = 'darkorange';
17
export const COLOR_ERROR = 'indianred';
18
19 6a250c18 Lukáš Vlček
export const COLOR_NAVBAR = '#343434';
20
21
export const COLOR_HIGHLIGHTED_TAG = '#CBDEE2';
22
export const COLOR_HIGHLIGHTED_OCCURRENCE = '#B1CDD3';
23 b80a6919 Lukáš Vlček
24
export const COLOR_ALL_OCCURRENCES_ACCEPTED = '#B6CEB7';
25
export const COLOR_OCCURRENCE_ACCEPTED = '#9DBE9E';
26
27 3df63288 Lukáš Vlček
export const BORDER_RADIUS = 4;
28 e02e004e Lukáš Vlček
29
export const DOCUMENT_TAG_ID_ATTRIBUTE_NAME = 'aswi-tag-id';
30
export const DOCUMENT_INSTANCE_ID_ATTRIBUTE_NAME = 'aswi-tag-instance';
31
export const DOCUMENT_OCCURRENCE_ID_ATTRIBUTE_NAME = 'aswi-tag-ef-id';