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

45 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-12-10 13:14:52 +00:00
// Import React and ReactDOM
import React, { Suspense } from 'react';
import ReactDOM from 'react-dom';
// Import Framework7
2021-01-24 21:30:49 +00:00
import Framework7 from 'framework7/lite-bundle';
2021-03-22 19:05:21 +00:00
import { Dom7 } from 'framework7';
window.$$ = Dom7;
2020-12-10 13:14:52 +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:30:49 +00:00
import 'framework7/framework7-bundle.css';
2020-12-10 13:14:52 +00:00
// Import App Custom Styles
import './less/app.less';
import '../../../../../sdkjs/cell/css/main-mobile.css'
// Import App Component
import App from './page/app';
import { I18nextProvider } from 'react-i18next';
import i18n from './lib/i18n.js';
import { Provider } from 'mobx-react';
import { stores } from './store/mainStore';
// Init F7 React Plugin
Framework7.use(Framework7React);
// Mount React App
ReactDOM.render(
<I18nextProvider i18n={i18n}>
<Provider {...stores}>
<Suspense fallback="loading">
<App />
</Suspense>
</Provider>
</I18nextProvider>,
document.getElementById('app'),
);