mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 17:33:55 +00:00
1849b4d39f
* chore: migrate eslint to oxlint * chore: migrate prettier to oxfmt * chore: migrate typescript * chore: toThrow should have a expected value * chore: cast test value as Day * chore: small title fix * chore: mocks should be hoisted * chore: incorrect async useage * chore: test should be inside description * chore: test sohuld include an expeced * chore: oxfmt --------- Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
import { Tooltip } from '@base-ui/react/tooltip';
|
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
import { BrowserRouter } from 'react-router';
|
|
|
|
// apply global axios config defaults
|
|
import './common/api/axios.config';
|
|
import AppRouter from './AppRouter';
|
|
import ErrorBoundary from './common/components/error-boundary/ErrorBoundary';
|
|
import IdentifyOverlay from './common/components/identify-overlay/IdentifyOverlay';
|
|
import { AppContextProvider } from './common/context/AppContext';
|
|
import { ontimeQueryClient } from './common/queryClient';
|
|
import { connectSocket } from './common/utils/socket';
|
|
import { baseURI } from './externals';
|
|
import KeepAwake from './features/keep-awake/KeepAwake';
|
|
import { TranslationProvider } from './translation/TranslationProvider';
|
|
|
|
connectSocket();
|
|
|
|
function App() {
|
|
return (
|
|
<QueryClientProvider client={ontimeQueryClient}>
|
|
<AppContextProvider>
|
|
<Tooltip.Provider>
|
|
<BrowserRouter basename={baseURI}>
|
|
<div className='App'>
|
|
<ErrorBoundary>
|
|
<TranslationProvider>
|
|
<IdentifyOverlay />
|
|
<KeepAwake />
|
|
<AppRouter />
|
|
</TranslationProvider>
|
|
</ErrorBoundary>
|
|
<ReactQueryDevtools initialIsOpen={false} />
|
|
</div>
|
|
<ErrorBoundary>
|
|
<div id='identify-portal' />
|
|
</ErrorBoundary>
|
|
</BrowserRouter>
|
|
</Tooltip.Provider>
|
|
</AppContextProvider>
|
|
</QueryClientProvider>
|
|
);
|
|
}
|
|
|
|
export default App;
|