diff --git a/apps/common/mobile/lib/view/SharingSettings.jsx b/apps/common/mobile/lib/view/SharingSettings.jsx new file mode 100644 index 0000000000..22f60e4b8b --- /dev/null +++ b/apps/common/mobile/lib/view/SharingSettings.jsx @@ -0,0 +1,22 @@ +import React, { Component, useEffect } from 'react'; +import { observer, inject } from "mobx-react"; +import { f7, Popover, List, ListItem, Navbar, NavRight, Sheet, BlockTitle, Page, View, Icon, Link } from 'framework7-react'; +import { useTranslation } from 'react-i18next'; +import { Device } from "../../utils/device"; + +const SharingSettings = props => { + const { t } = useTranslation(); + const _t = t('Common.Collaboration', {returnObjects: true}); + const url = 'https://nct.onlyoffice.com/Products/Files/Share.aspx?fileid=142278'; + + return ( + + +
+ +
+
+ ) +} + +export default SharingSettings; \ No newline at end of file diff --git a/apps/common/mobile/resources/less/common.less b/apps/common/mobile/resources/less/common.less index 12338a90c2..eee9be647d 100644 --- a/apps/common/mobile/resources/less/common.less +++ b/apps/common/mobile/resources/less/common.less @@ -1138,8 +1138,11 @@ input[type="number"]::-webkit-inner-spin-button { } } - - +// Sharing Settings + +.sharing-placeholder { + height: 100%; +} diff --git a/apps/common/mobile/resources/less/icons.less b/apps/common/mobile/resources/less/icons.less index 3ef58ee338..6efda00ebd 100644 --- a/apps/common/mobile/resources/less/icons.less +++ b/apps/common/mobile/resources/less/icons.less @@ -83,4 +83,10 @@ i.icon { &.icon-numbers-7 { .encoded-svg-background(''); } + + &.icon-sharing-settings { + width: 24px; + height: 24px; + .encoded-svg-mask('') + } } diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 2aa15d6ce8..cd25adc852 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -163,7 +163,9 @@ "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", "textUnderline": "Underline", "textUsers": "Users", - "textWidow": "Widow control" + "textWidow": "Widow control", + "del_textWindow": "Window control", + "textSharingSettings": "Sharing Settings" }, "HighlightColorPalette": { "textNoFill": "No Fill" diff --git a/apps/documenteditor/mobile/src/view/settings/Settings.jsx b/apps/documenteditor/mobile/src/view/settings/Settings.jsx index 2a6ece70f8..9129b00867 100644 --- a/apps/documenteditor/mobile/src/view/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Settings.jsx @@ -13,6 +13,7 @@ import { DocumentFormats, DocumentMargins, DocumentColorSchemes } from "./Docume import { MacrosSettings, Direction } from "./ApplicationSettings"; import About from '../../../../../common/mobile/lib/view/About'; import NavigationController from '../../controller/settings/Navigation'; +import SharingSettings from "../../../../../common/mobile/lib/view/SharingSettings"; const routes = [ { @@ -68,6 +69,13 @@ const routes = [ { path: '/direction/', component: Direction + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettings } ]; @@ -174,6 +182,9 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props => + + + {_canDownload && diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index a46331db46..bb8a1a0191 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -32,7 +32,10 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "del_textWidow": "Widow control", + "del_textWindow": "Window control", + "textSharingSettings": "Sharing Settings" }, "HighlightColorPalette": { "textNoFill": "No Fill" diff --git a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx index d0fe47f00d..2f26153835 100644 --- a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx +++ b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx @@ -12,6 +12,7 @@ import PresentationSettingsController from "../../controller/settings/Presentati import { PresentationColorSchemes } from "./PresentationSettings"; // import PresentationAboutController from '../../controller/settings/PresentationAbout'; import About from '../../../../../common/mobile/lib/view/About'; +import SharingSettings from "../../../../../common/mobile/lib/view/SharingSettings"; const routes = [ { @@ -45,6 +46,13 @@ const routes = [ { path: '/about/', component: About + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettings } /*{ path: '/presentation-settings/', @@ -178,6 +186,9 @@ const SettingsList = inject("storeAppOptions", "storeToolbarSettings")(observer( + + + {_canDownload && diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index ec179db309..e095377d13 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -32,7 +32,10 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "del_textWidow": "Widow control", + "del_textWindow": "Window control", + "textSharingSettings": "Sharing Settings" }, "ThemeColorPalette": { "textCustomColors": "Custom Colors", diff --git a/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx b/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx index 1387892889..ea36d7edda 100644 --- a/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx @@ -13,6 +13,7 @@ import {MacrosSettings, RegionalSettings, FormulaLanguage} from './ApplicationSe // import SpreadsheetAbout from './SpreadsheetAbout.jsx'; import About from '../../../../../common/mobile/lib/view/About'; import { Direction } from '../../../../../spreadsheeteditor/mobile/src/view/settings/ApplicationSettings'; +import SharingSettings from "../../../../../common/mobile/lib/view/SharingSettings"; const routes = [ { @@ -66,6 +67,13 @@ const routes = [ { path: '/direction/', component: Direction + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettings } ]; @@ -188,6 +196,9 @@ const SettingsList = inject("storeAppOptions")(observer(props => { + + + {_canDownload &&