Revize faed7f5e
Přidáno uživatelem plundrichov před více než 4 roky(ů)
client/src/index.js | ||
---|---|---|
3 | 3 |
import './index.css'; |
4 | 4 |
import App from './App'; |
5 | 5 |
import * as serviceWorker from './serviceWorker'; |
6 |
import { render } from '@testing-library/react'; |
|
7 |
|
|
8 |
fetch( |
|
9 |
"config.json").then((response) => response.json()).then(config => { |
|
10 |
window.config = config; |
|
11 |
ReactDOM.render( |
|
12 |
<React.StrictMode> |
|
13 |
<App /> |
|
14 |
</React.StrictMode>, |
|
15 |
document.getElementById('root') |
|
16 |
); |
|
17 |
|
|
18 |
}); |
|
19 |
|
|
20 |
|
|
6 | 21 |
|
7 |
ReactDOM.render( |
|
8 |
<React.StrictMode> |
|
9 |
<App /> |
|
10 |
</React.StrictMode>, |
|
11 |
document.getElementById('root') |
|
12 |
); |
|
13 | 22 |
|
14 | 23 |
// If you want your app to work offline and load faster, you can change |
15 | 24 |
// unregister() to register() below. Note this comes with some pitfalls. |
Také k dispozici: Unified diff
re #58 conected to correct server, added config.json, added credentials in api.js and relocated errors 401, 403 to home page instead of throwing alert, edited login, edit link navbar logo