Work in local

This commit is contained in:
Maxime Boulay 2025-05-13 06:38:33 +02:00
parent b9a189861e
commit 67d61282d1
4 changed files with 29 additions and 3 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

24
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"name": "SWA: Run frontend",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:4280",
"preLaunchTask": "swa: start frontend",
"webRoot": "${workspaceFolder}/frontend",
"timeout": 30000
}
]
}

BIN
Data/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,5 +1,6 @@
import React, { Suspense } from 'react'; import React, { Suspense } from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { createRoot } from "react-dom/client";
import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap.css';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
@ -9,15 +10,16 @@ import * as serviceWorker from './serviceWorker';
import Spinner from './components/Spinner' import Spinner from './components/Spinner'
import "./i18n"; import "./i18n";
ReactDOM.render( const rootElement = document.getElementById("root");
const root = createRoot(rootElement);
root.render(
<React.StrictMode> <React.StrictMode>
<Provider store={store}> <Provider store={store}>
<Suspense fallback={<Spinner />}> <Suspense fallback={<Spinner />}>
<App /> <App />
</Suspense> </Suspense>
</Provider> </Provider>
</React.StrictMode>, </React.StrictMode>
document.getElementById('root')
); );
// If you want your app to work offline and load faster, you can change // If you want your app to work offline and load faster, you can change