Revize 2d82649d
Přidáno uživatelem Václav Honzík před téměř 3 roky(ů)
frontend/.env | ||
---|---|---|
1 | 1 |
REACT_APP_API_BASE_URL=/api |
2 |
REACT_APP_DEV_ENV=true |
|
2 |
REACT_APP_DEV_ENV=false |
frontend/create_dev_env.py | ||
---|---|---|
1 |
import os |
|
2 |
# Script to create developer .env file |
|
3 |
# Run this in root folder of the project |
|
4 |
|
|
5 |
|
|
6 |
file_name = '.env' |
|
7 |
print('Setting the environment for development') |
|
8 |
if os.path.exists(file_name): |
|
9 |
print('.env file already exists, deleting ...') |
|
10 |
os.remove(file_name) |
|
11 |
|
|
12 |
with open(file_name, 'w+') as file: |
|
13 |
file.writelines([ |
|
14 |
'REACT_APP_API_BASE_URL=/api\n', |
|
15 |
'REACT_APP_DEV_ENV=true\n' |
|
16 |
]) |
|
17 |
|
|
18 |
print('File created. The environment has been successfully configured for development.') |
frontend/create_prod_env.py | ||
---|---|---|
1 |
import os |
|
2 |
# Script to create developer .env file |
|
3 |
# Run this in root folder of the project |
|
4 |
|
|
5 |
|
|
6 |
file_name = '.env' |
|
7 |
print('Setting the environment for production') |
|
8 |
if os.path.exists(file_name): |
|
9 |
print('.env file already exists, deleting ...') |
|
10 |
os.remove(file_name) |
|
11 |
|
|
12 |
with open(file_name, 'w+') as file: |
|
13 |
file.writelines([ |
|
14 |
'REACT_APP_API_BASE_URL=/api\n', |
|
15 |
'REACT_APP_DEV_ENV=false\n' |
|
16 |
]) |
|
17 |
|
|
18 |
print('File created. The environment has been successfully configured for development.') |
frontend/src/features/Catalog/CatalogFilter.tsx | ||
---|---|---|
6 | 6 |
Stack, |
7 | 7 |
TextField, |
8 | 8 |
} from '@mui/material' |
9 |
import { Fragment, useEffect } from 'react'
|
|
9 |
import { Fragment } from 'react' |
|
10 | 10 |
import { useDispatch, useSelector } from 'react-redux' |
11 | 11 |
import { setFilter, setFilterOpen } from './catalogSlice' |
12 | 12 |
import { fetchItems } from './catalogThunks' |
frontend/src/features/TrackingTool/FileUpload.tsx | ||
---|---|---|
66 | 66 |
|
67 | 67 |
return ( |
68 | 68 |
<ButtonOpenableDialog |
69 |
buttonText="Upload File"
|
|
69 |
buttonText="File" |
|
70 | 70 |
buttonColor="primary" |
71 | 71 |
buttonVariant="contained" |
72 | 72 |
onCloseCallback={onClose} |
Také k dispozici: Unified diff
Button changes + .env config
re #9547