diff --git a/apps/common/mobile/lib/controller/SharingSettings.jsx b/apps/common/mobile/lib/controller/SharingSettings.jsx new file mode 100644 index 000000000..fc9bc048f --- /dev/null +++ b/apps/common/mobile/lib/controller/SharingSettings.jsx @@ -0,0 +1,18 @@ +import React, { Component } from 'react' +import {observer, inject} from "mobx-react" +import { withTranslation } from 'react-i18next'; +import SharingSettings from '../view/SharingSettings'; + +class SharingSettingsController extends Component { + constructor(props){ + super(props); + } + + render() { + return ( + + ) + } +} + +export default SharingSettingsController; \ No newline at end of file diff --git a/apps/common/mobile/lib/view/SharingSettings.jsx b/apps/common/mobile/lib/view/SharingSettings.jsx new file mode 100644 index 000000000..22f60e4b8 --- /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 12338a90c..eee9be647 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 3ef58ee33..6efda00eb 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 2aa15d6ce..e86719772 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", + "textWidow": "Widow 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 2a6ece70f..0b2ec8bbe 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 SharingSettingsController from "../../../../../common/mobile/lib/controller/SharingSettings"; const routes = [ { @@ -68,6 +69,13 @@ const routes = [ { path: '/direction/', component: Direction + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettingsController } ]; @@ -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 a46331db4..309ed1b83 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -32,7 +32,9 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "textWidow": "Widow 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 d0fe47f00..b42dad38d 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 SharingSettingsController from "../../../../../common/mobile/lib/controller/SharingSettings"; const routes = [ { @@ -45,6 +46,13 @@ const routes = [ { path: '/about/', component: About + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettingsController } /*{ 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 ec179db30..6b8e9d1c5 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -32,7 +32,9 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "textWidow": "Widow 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 138789288..cbf2d3394 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 SharingSettingsController from "../../../../../common/mobile/lib/controller/SharingSettings"; const routes = [ { @@ -66,6 +67,13 @@ const routes = [ { path: '/direction/', component: Direction + }, + + // Sharing Settings + + { + path: '/sharing-settings/', + component: SharingSettingsController } ]; @@ -188,6 +196,9 @@ const SettingsList = inject("storeAppOptions")(observer(props => { + + + {_canDownload &&