2020-07-31 17:33:13 +00:00
|
|
|
// Import React and ReactDOM
|
2020-08-13 10:35:58 +00:00
|
|
|
import React, { Suspense } from 'react';
|
2020-07-31 17:33:13 +00:00
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
|
|
// Import Framework7
|
|
|
|
import Framework7 from 'framework7/framework7-lite.esm.bundle.js';
|
|
|
|
|
|
|
|
// Import Framework7-React Plugin
|
|
|
|
import Framework7React from 'framework7-react';
|
|
|
|
|
|
|
|
import jQuery from 'jquery';
|
|
|
|
window.jQuery = jQuery;
|
|
|
|
window.$ = jQuery;
|
|
|
|
|
|
|
|
// Import Framework7 Styles
|
|
|
|
import 'framework7/css/framework7.bundle.css';
|
|
|
|
|
|
|
|
// Import Icons and App Custom Styles
|
|
|
|
import '../css/icons.css';
|
|
|
|
import '../css/app.less';
|
|
|
|
|
|
|
|
// Import App Component
|
2020-11-18 13:40:09 +00:00
|
|
|
import App from '../view/app';
|
2020-08-13 10:35:58 +00:00
|
|
|
import { I18nextProvider } from 'react-i18next';
|
|
|
|
import i18n from './i18n';
|
2020-07-31 17:33:13 +00:00
|
|
|
|
2020-09-29 18:59:57 +00:00
|
|
|
import { Provider } from 'mobx-react'
|
|
|
|
import { stores } from '../store/mainStore'
|
2020-08-31 17:31:05 +00:00
|
|
|
|
2020-07-31 17:33:13 +00:00
|
|
|
// Init F7 React Plugin
|
|
|
|
Framework7.use(Framework7React)
|
|
|
|
|
|
|
|
// Mount React App
|
|
|
|
ReactDOM.render(
|
2020-08-13 10:35:58 +00:00
|
|
|
<I18nextProvider i18n={i18n}>
|
2020-09-29 18:59:57 +00:00
|
|
|
<Provider {...stores}>
|
2020-08-31 17:31:05 +00:00
|
|
|
<Suspense fallback="loading">
|
|
|
|
<App />
|
|
|
|
</Suspense>
|
|
|
|
</Provider>
|
2020-08-13 10:35:58 +00:00
|
|
|
</I18nextProvider>,
|
2020-07-31 17:33:13 +00:00
|
|
|
document.getElementById('app'),
|
|
|
|
);
|