diff --git a/apps/common/mobile/lib/view/About.jsx b/apps/common/mobile/lib/view/About.jsx index 43bdf5bac..a78dd577d 100644 --- a/apps/common/mobile/lib/view/About.jsx +++ b/apps/common/mobile/lib/view/About.jsx @@ -19,6 +19,14 @@ const PageAbout = props => { const publisherUrl = __PUBLISHER_URL__, publisherPrintUrl = publisherUrl.replace(/https?:\/{2}|\/$/,""); + + const editors = { + de: 'DOCUMENT EDITOR', + pe: 'PRESENTATION EDITOR', + sse: 'SPREADSHEET EDITOR' + }; + + const nameEditor = editors[editorType]; return ( @@ -33,7 +41,7 @@ const PageAbout = props => { ) : null}
-

{_t.textNameEditor}

+

{nameEditor}

{_t.textVersion} {__PRODUCT_VERSION__}

@@ -83,7 +91,7 @@ const PageAbout = props => {
-

{_t.textNameEditor}

+

{nameEditor}

{_t.textVersion} {__PRODUCT_VERSION__}

diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 9060891c2..fcbc1b3ea 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -386,7 +386,6 @@ "textFormat": "Format" }, "About": { - "textNameEditor": "DOCUMENT EDITOR", "textAbout": "About", "textVersion": "Version", "textEmail": "Email", diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 7e2797aec..4335eceac 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -270,7 +270,6 @@ } }, "About": { - "textNameEditor": "PRESENTATION EDITOR", "textAbout": "About", "textVersion": "Version", "textEmail": "Email", diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx index d8ee673da..c19c215bf 100644 --- a/apps/presentationeditor/mobile/src/controller/Main.jsx +++ b/apps/presentationeditor/mobile/src/controller/Main.jsx @@ -9,6 +9,7 @@ import CollaborationController from '../../../../common/mobile/lib/controller/co class MainController extends Component { constructor(props) { super(props) + window.editorType = 'pe'; } initSdk() { diff --git a/apps/presentationeditor/mobile/src/controller/settings/PresentationAbout.jsx b/apps/presentationeditor/mobile/src/controller/settings/PresentationAbout.jsx deleted file mode 100644 index db46185db..000000000 --- a/apps/presentationeditor/mobile/src/controller/settings/PresentationAbout.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React, { Component } from "react"; -import PresentationAbout from "../../view/settings/PresentationAbout"; - -class PresentationAboutController extends Component { - constructor(props) { - super(props); - } - - render() { - return ( - - ); - } -} - - -export default PresentationAboutController; \ No newline at end of file diff --git a/apps/presentationeditor/mobile/src/view/settings/PresentationAbout.jsx b/apps/presentationeditor/mobile/src/view/settings/PresentationAbout.jsx deleted file mode 100644 index 82a36a6d2..000000000 --- a/apps/presentationeditor/mobile/src/view/settings/PresentationAbout.jsx +++ /dev/null @@ -1,111 +0,0 @@ -import React, { Fragment } from 'react'; -import { observer, inject } from "mobx-react"; -import { Page, Navbar, Link } from "framework7-react"; -import { useTranslation } from "react-i18next"; - -const PagePresentationAbout = props => { - const { t } = useTranslation(); - const _t = t("View.Settings", { returnObjects: true }); - const store = props.storeAppOptions; - const isCanBranding = store.canBranding; - const licInfo = isCanBranding ? store.customization : null; - const customer = licInfo ? licInfo.customer : null; - const nameCustomer = customer ? customer.name : null; - const mailCustomer = customer ? customer.mail : null; - const addressCustomer = customer ? customer.address : null; - const urlCustomer = customer ? customer.www : null; - const infoCustomer = customer ? customer.info : null; - const logoCustomer = customer ? customer.logo : null; - - const publisherUrl = __PUBLISHER_URL__, - publisherPrintUrl = publisherUrl.replace(/https?:\/{2}|\/$/,""); - return ( - - -
- {licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? null : ( - - )} - {logoCustomer && logoCustomer.length ? ( - - ) : null} -
-
-

PRESENTATION EDITOR

-

{_t.textVersion} {__PRODUCT_VERSION__}

-
-
-

- - {__PUBLISHER_ADDRESS__} -

-

- - {__SUPPORT_EMAIL__} -

-

- - {__PUBLISHER_PHONE__} -

-

- {publisherPrintUrl} -

- {/*

*/} -
-
- {nameCustomer && nameCustomer.length ? ( -

{nameCustomer}

- ) : null} - {addressCustomer && addressCustomer.length ? ( -

- - {addressCustomer} -

- ) : null} - {mailCustomer && mailCustomer.length ? ( -

- - {mailCustomer} -

- ) : null} - {licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? null : ( -

- - +371 633-99867 -

- )} - {urlCustomer && urlCustomer.length ? ( -

- - {urlCustomer} - -

- ) : null} - {infoCustomer && infoCustomer.length ? ( -

- -

- ) : null} -
- {licInfo && typeof licInfo == 'object' && typeof(customer)=='object' ? ( -
-
-

- -

-

Ascensio System SIA

-

- www.onlyoffice.com -

-
- ) : null} -
- ); -}; - -const PresentationAbout = inject("storeAppOptions")(observer(PagePresentationAbout)); - -export default PresentationAbout; \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index 6805f1ec3..686006a12 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -325,7 +325,6 @@ } }, "About": { - "textNameEditor": "SPREADSHEET EDITOR", "textAbout": "About", "textVersion": "Version", "textEmail": "Email", diff --git a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx index 4f140b7b8..039ba5d96 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx @@ -9,7 +9,8 @@ import { onAdvancedOptions } from './settings/Download.jsx'; @inject("storeAppOptions", "storeFocusObjects", "storeCellSettings", "storeTextSettings", "storeChartSettings", "storeSpreadsheetSettings", "storeSpreadsheetInfo") class MainController extends Component { constructor(props) { - super(props) + super(props); + window.editorType = 'sse'; } initSdk() { diff --git a/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetAbout.jsx b/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetAbout.jsx deleted file mode 100644 index 532e0435a..000000000 --- a/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetAbout.jsx +++ /dev/null @@ -1,98 +0,0 @@ -import React, { Fragment } from 'react'; -import { observer, inject } from "mobx-react"; -import { Page, Navbar, Link } from "framework7-react"; -import { useTranslation } from "react-i18next"; - -const PageSpreadsheetAbout = props => { - const { t } = useTranslation(); - const _t = t("View.Settings", { returnObjects: true }); - const storeAppOptions = props.storeAppOptions; - const isCanBranding = storeAppOptions.canBranding; - const licInfo = isCanBranding ? storeAppOptions.customization : null; - const customer = licInfo ? licInfo.customer : null; - const nameCustomer = customer ? customer.name : null; - const mailCustomer = customer ? customer.mail : null; - const addressCustomer = customer ? customer.address : null; - const urlCustomer = customer ? customer.www : null; - const infoCustomer = customer ? customer.info : null; - const logoCustomer = customer ? customer.logo : null; - - // console.log(storeAppOptions); - // console.log(isCanBranding); - - return ( - - - {licInfo && typeof licInfo == 'object' && typeof(customer) == 'object' ? - -
- {/* {licInfo && typeof licInfo == 'object' && typeof(customer) == 'object' ? null : ( - - )} */} - {logoCustomer && logoCustomer.length ? ( - - ) : null} -
-
-

SPREADSHEET EDITOR

-

{_t.textVersion} 6.1.1

-
-
- {nameCustomer && nameCustomer.length ? ( -

{nameCustomer}

- ) : null} - {addressCustomer && addressCustomer.length ? ( -

- - {addressCustomer} -

- ) : null} - {mailCustomer && mailCustomer.length ? ( -

- - {mailCustomer} -

- ) : null} -

- - +371 633-99867 -

- {urlCustomer && urlCustomer.length ? ( -

- - {urlCustomer} - -

- ) : null} - {infoCustomer && infoCustomer.length ? ( -

- -

- ) : null} -
-
-
-

- -

-

Ascensio System SIA

-

- www.onlyoffice.com -

-
-
: - -
- -
-
} -
- ); -}; - -const SpreadsheetAbout = inject("storeAppOptions")(observer(PageSpreadsheetAbout)); - -export default SpreadsheetAbout; \ No newline at end of file