|
1 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | + |
| 5 | +import 'bootstrap/dist/css/bootstrap.css'; |
| 6 | +import * as React from 'react'; |
| 7 | +import { createRoot } from 'react-dom/client'; |
| 8 | +import { Provider } from 'react-redux'; |
| 9 | +import { store } from './store'; |
| 10 | +import RouteComponent from './components/RouteComponent'; |
| 11 | +import { initApp } from './redux/slices/appStateSlice'; |
| 12 | +import './styles/index.css'; |
| 13 | +import { CacheProvider } from '@emotion/react'; |
| 14 | +import emotionCache from './emotionCache'; |
4 | 15 |
|
5 | | - //these lines take the nonce, and create the webpack and plotly nonces from it |
6 | | - //these are additional nonces that contribute to styling with webpacvk and plotly |
| 16 | +//these lines take the nonce, and create the webpack and plotly nonces from it |
| 17 | +//these are additional nonces that contribute to styling with webpack and plotly |
7 | 18 | const __webpack_nonce__ = (document.querySelector('script[nonce]') as HTMLScriptElement | null)?.nonce; |
8 | 19 | (window as any).__webpack_nonce__ = __webpack_nonce__; |
9 | 20 | (window as any).__plotly_nonce__ = __webpack_nonce__; |
@@ -31,19 +42,9 @@ document.head.appendChild = function (node: any) { |
31 | 42 | throw err; |
32 | 43 | } |
33 | 44 | }; |
34 | | -import 'bootstrap/dist/css/bootstrap.css'; |
35 | | -import * as React from 'react'; |
36 | | -import { createRoot } from 'react-dom/client'; |
37 | | -import { Provider } from 'react-redux'; |
38 | | -import { store } from './store'; |
39 | | -import RouteComponent from './components/RouteComponent'; |
40 | | -import { initApp } from './redux/slices/appStateSlice'; |
41 | | -import './styles/index.css'; |
42 | 45 |
|
43 | 46 | store.dispatch(initApp()); |
44 | 47 |
|
45 | | -import { CacheProvider } from '@emotion/react'; |
46 | | -import emotionCache from './emotionCache'; |
47 | 48 | // Renders the entire application, starting with RouteComponent, into the root div |
48 | 49 | const container = document.getElementById('root') as HTMLElement; |
49 | 50 | const root = createRoot(container); |
|
0 commit comments