[PE SSE mobile] Corrected imports

This commit is contained in:
SergeyEzhin 2022-10-20 15:04:07 +04:00
parent a067234b87
commit b9b7a9d7e3
17 changed files with 29 additions and 31 deletions

View file

@ -4,7 +4,7 @@ import { createRoot } from 'react-dom/client';
// Import Framework7
import Framework7 from 'framework7/lite-bundle';
import { Dom7 } from 'framework7';
import { Dom7 } from 'framework7/lite-bundle';
window.$$ = Dom7;
// Import Framework7-React Plugin
@ -20,19 +20,19 @@ window.$ = jQuery;
import('./less/app.less');
// Import App Component
import App from './page/app';
import App from './page/app.jsx';
import { I18nextProvider } from 'react-i18next';
import i18n from './lib/i18n.js';
import { Provider } from 'mobx-react'
import { stores } from './store/mainStore'
import { LocalStorage } from '../../../common/mobile/utils/LocalStorage';
import { Provider } from 'mobx-react';
import { stores } from './store/mainStore.js';
// import { LocalStorage } from '../../../common/mobile/utils/LocalStorage';
const container = document.getElementById('app');
const root = createRoot(container);
// Init F7 React Plugin
Framework7.use(Framework7React)
Framework7.use(Framework7React);
// Mount React App
root.render(

View file

@ -2,11 +2,11 @@ import React, { useContext } from 'react';
import { f7 } from 'framework7-react';
import { inject, observer } from "mobx-react";
import { withTranslation} from 'react-i18next';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage.mjs';
import ContextMenuController from '../../../../common/mobile/lib/controller/ContextMenu';
import { idContextMenuElement } from '../../../../common/mobile/lib/view/ContextMenu';
import { Device } from '../../../../common/mobile/utils/device';
// import { Device } from '../../../../common/mobile/utils/device';
import EditorUIController from '../lib/patch';
@inject ( stores => ({

View file

@ -11,7 +11,7 @@ import {
} from "../../../../common/mobile/lib/controller/collaboration/Comments";
import ErrorController from "./Error";
import LongActionsController from "./LongActions";
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage";
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage.mjs";
import About from '../../../../common/mobile/lib/view/About';
import PluginsController from '../../../../common/mobile/lib/controller/Plugins.jsx';
import { Device } from '../../../../common/mobile/utils/device';

View file

@ -1,6 +1,6 @@
import React, { Component } from "react";
import { ApplicationSettings } from "../../view/settings/ApplicationSettings";
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs';
import {observer, inject} from "mobx-react";
import { Themes } from '../../../../../common/mobile/lib/controller/Themes.js';

View file

@ -1,5 +1,5 @@
import {action, observable, makeObservable} from 'mobx';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage.mjs';
export class storeAppOptions {
constructor() {

View file

@ -4,7 +4,7 @@ import {f7, Swiper, View, SwiperSlide, List, ListItem, ListButton, ListInput, Ic
import { useTranslation } from 'react-i18next';
import {Device} from '../../../../../common/mobile/utils/device';
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs';
import HighlightColorPalette from '../../../../../common/mobile/lib/component/HighlightColorPalette.jsx';
const EditText = props => {

View file

@ -3,7 +3,7 @@ import { observer, inject } from "mobx-react";
import {f7, Page, Navbar, List, ListItem, BlockTitle, Toggle } from "framework7-react";
import { useTranslation } from "react-i18next";
import { Themes } from '../../../../../common/mobile/lib/controller/Themes.js';
import { LocalStorage } from "../../../../../common/mobile/utils/LocalStorage.js";
import { LocalStorage } from "../../../../../common/mobile/utils/LocalStorage.mjs";
const PageApplicationSettings = props => {
const { t } = useTranslation();

View file

@ -4,7 +4,7 @@ import { createRoot } from 'react-dom/client';
// Import Framework7
import Framework7 from 'framework7/lite-bundle';
import { Dom7 } from 'framework7';
import { Dom7 } from 'framework7/lite-bundle';
window.$$ = Dom7;
// Import Framework7-React Plugin
@ -19,16 +19,16 @@ window.$ = jQuery;
// Import App Custom Styles
import('./less/app.less');
import '../../../../../sdkjs/cell/css/main-mobile.css'
import '../../../../../sdkjs/cell/css/main-mobile.css';
// Import App Component
import App from './page/app';
import App from './page/app.jsx';
import { I18nextProvider } from 'react-i18next';
import i18n from './lib/i18n.js';
import { Provider } from 'mobx-react';
import { stores } from './store/mainStore';
import { LocalStorage } from '../../../common/mobile/utils/LocalStorage';
import { stores } from './store/mainStore.js';
// import { LocalStorage } from '../../../common/mobile/utils/LocalStorage.mjs';
const container = document.getElementById('app');
const root = createRoot(container);

View file

@ -2,11 +2,11 @@ import React, { useContext } from 'react';
import { f7 } from 'framework7-react';
import { inject, observer } from "mobx-react";
import { withTranslation} from 'react-i18next';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage.mjs';
import ContextMenuController from '../../../../common/mobile/lib/controller/ContextMenu';
import { idContextMenuElement } from '../../../../common/mobile/lib/view/ContextMenu';
import { Device } from '../../../../common/mobile/utils/device';
// import { Device } from '../../../../common/mobile/utils/device';
import EditorUIController from '../lib/patch';
@inject (stores => ({

View file

@ -12,7 +12,7 @@ import {
EditCommentController,
ViewCommentsSheetsController
} from "../../../../common/mobile/lib/controller/collaboration/Comments";
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage";
import {LocalStorage} from "../../../../common/mobile/utils/LocalStorage.mjs";
import LongActionsController from "./LongActions";
import ErrorController from "./Error";
import app from "../page/app";

View file

@ -2,9 +2,7 @@ import React, {Component} from 'react';
import {observer, inject} from "mobx-react";
import { f7 } from 'framework7-react';
import {Device} from '../../../../../common/mobile/utils/device';
import {LocalStorage} from '../../../../../common/mobile/utils/LocalStorage';
import {LocalStorage} from '../../../../../common/mobile/utils/LocalStorage.mjs';
import {AddFunction} from '../../view/add/AddFunction';
class _FunctionGroups extends Component {

View file

@ -1,7 +1,7 @@
import React, { Component } from "react";
import { ApplicationSettings } from "../../view/settings/ApplicationSettings";
import {observer, inject} from "mobx-react";
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs';
import {FunctionGroups} from '../../controller/add/AddFunction';
class ApplicationSettingsController extends Component {

View file

@ -12,7 +12,7 @@ import routes from '../router/routes.js';
import '../../../../common/main/lib/util/utils.js';
import '../../../../common/main/lib/util/LanguageInfo.js';
import {LocalStorage} from '../../../../common/mobile/utils/LocalStorage.js';
import {LocalStorage} from '../../../../common/mobile/utils/LocalStorage.mjs';
import Notifications from '../../../../common/mobile/utils/notifications.js';
import {MainController} from '../controller/Main';
import {Device} from '../../../../common/mobile/utils/device';

View file

@ -1,5 +1,5 @@
import {action, observable, makeObservable} from 'mobx';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage.mjs';
export class storeAppOptions {
constructor() {

View file

@ -1,10 +1,10 @@
import {makeObservable, action, observable} from 'mobx';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../common/mobile/utils/LocalStorage.mjs';
export class storeApplicationSettings {
constructor() {
makeObservable(this, {
unitMeasurement: observable,
unitMeasurement: observable,
macrosMode: observable,
macrosRequest: observable,
formulaLang: observable,

View file

@ -4,7 +4,7 @@ import {f7, List, ListItem, Icon, Row, Button, Page, Navbar, Segmented, BlockTit
import { useTranslation } from 'react-i18next';
import {Device} from '../../../../../common/mobile/utils/device';
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs';
const EditCell = props => {
const isAndroid = Device.android;

View file

@ -4,7 +4,7 @@ import {f7, List, ListItem, Icon, Row, Button, Page, Navbar, NavRight, Segmented
import { useTranslation } from 'react-i18next';
import {Device} from '../../../../../common/mobile/utils/device';
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage';
import { LocalStorage } from '../../../../../common/mobile/utils/LocalStorage.mjs';
const EditText = props => {
const isAndroid = Device.android;