Import web interface from clusterio/clusterioWeb

Import the source files in use for the web interface, excluding the
copied and modified lib/link files.
This commit is contained in:
Danielv123 authored and Hornwitser committed 2020-09-28 04:19:00 +02:00
1 parent f318f8826b
commit 2382f4bbdc
17 files changed
+1795

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Layout from './layout'
import * as serviceWorker from './serviceWorker';
import { BrowserRouter } from 'react-router-dom';
import moment from "moment";
import locale from "moment/locale/nb";
moment.updateLocale("nb", locale);
// ReactDOM.render(
// <React.StrictMode>
// <Layout />
// </React.StrictMode>,
// document.getElementById('root')
// );
ReactDOM.render(
<BrowserRouter>
<Layout />
</BrowserRouter>,
document.getElementById('root')
)
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();