web-apps/apps/documenteditor/mobile/src/app.js

45 lines
1.1 KiB
JavaScript
Raw Normal View History

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
2021-01-24 21:35:48 +00:00
import Framework7 from 'framework7/lite-bundle';
2021-01-20 16:18:48 +00:00
import { Dom7 } from 'framework7';
window.$$ = Dom7;
2020-07-31 17:33:13 +00:00
// Import Framework7-React Plugin
import Framework7React from 'framework7-react';
import jQuery from 'jquery';
window.jQuery = jQuery;
window.$ = jQuery;
// Import Framework7 Styles
2021-01-24 21:35:48 +00:00
import 'framework7/framework7-bundle.css';
2020-07-31 17:33:13 +00:00
// Import Icons and App Custom Styles
2021-01-24 21:35:48 +00:00
// import '../css/icons.css';
import './less/app.less';
2020-07-31 17:33:13 +00:00
// Import App Component
2021-01-24 21:35:48 +00:00
import App from './view/app';
2020-08-13 10:35:58 +00:00
import { I18nextProvider } from 'react-i18next';
2021-01-24 21:35:48 +00:00
import i18n from './lib/i18n';
2020-07-31 17:33:13 +00:00
2020-09-29 18:59:57 +00:00
import { Provider } from 'mobx-react'
2021-01-24 21:35:48 +00:00
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}>
2021-09-12 21:51:01 +00:00
{/*<Suspense fallback="loading...">*/}
2020-08-31 17:31:05 +00:00
<App />
2021-09-12 21:51:01 +00:00
{/*</Suspense>*/}
2020-08-31 17:31:05 +00:00
</Provider>
2020-08-13 10:35:58 +00:00
</I18nextProvider>,
2020-07-31 17:33:13 +00:00
document.getElementById('app'),
);