From ac319db38b4e3d1fa328e9cbaa5d0ca8de087b44 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 25 Feb 2022 02:01:36 +0400 Subject: [PATCH] [common] Start to add sharing settings --- .../collaboration/SharingSettings.jsx | 18 +++++++++++++++ .../lib/view/collaboration/Collaboration.jsx | 10 ++++++++- .../view/collaboration/SharingSettings.jsx | 22 +++++++++++++++++++ apps/documenteditor/mobile/locale/en.json | 3 ++- apps/presentationeditor/mobile/locale/en.json | 3 ++- apps/spreadsheeteditor/mobile/locale/en.json | 3 ++- 6 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 apps/common/mobile/lib/controller/collaboration/SharingSettings.jsx create mode 100644 apps/common/mobile/lib/view/collaboration/SharingSettings.jsx diff --git a/apps/common/mobile/lib/controller/collaboration/SharingSettings.jsx b/apps/common/mobile/lib/controller/collaboration/SharingSettings.jsx new file mode 100644 index 000000000..2b0cb538a --- /dev/null +++ b/apps/common/mobile/lib/controller/collaboration/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/collaboration/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/collaboration/Collaboration.jsx b/apps/common/mobile/lib/view/collaboration/Collaboration.jsx index b2cc1b013..35b69ce69 100644 --- a/apps/common/mobile/lib/view/collaboration/Collaboration.jsx +++ b/apps/common/mobile/lib/view/collaboration/Collaboration.jsx @@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next'; import {Device} from "../../../utils/device"; import {ReviewController, ReviewChangeController} from "../../controller/collaboration/Review"; +import SharingSettingsController from "../../controller/collaboration/SharingSettings"; import {PageDisplayMode} from "./Review"; import {ViewCommentsController, ViewCommentsSheetsController} from "../../controller/collaboration/Comments"; @@ -14,6 +15,7 @@ const PageUsers = inject("users")(observer(props => { const { t } = useTranslation(); const _t = t('Common.Collaboration', {returnObjects: true}); const storeUsers = props.users; + return ( @@ -48,6 +50,10 @@ const routes = [ path: '/review/', component: ReviewController }, + { + path: '/sharing-settings/', + component: SharingSettingsController + }, { path: '/cm-review/', component: ReviewController, @@ -117,11 +123,13 @@ const PageCollaboration = inject('storeAppOptions', 'users')(observer(props => { } + + {/* */} + ) - })); class CollaborationView extends Component { constructor(props) { diff --git a/apps/common/mobile/lib/view/collaboration/SharingSettings.jsx b/apps/common/mobile/lib/view/collaboration/SharingSettings.jsx new file mode 100644 index 000000000..cfa306f40 --- /dev/null +++ b/apps/common/mobile/lib/view/collaboration/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/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 1558e4ec9..c97920af1 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -159,7 +159,8 @@ "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", "textUnderline": "Underline", "textUsers": "Users", - "textWidow": "Widow control" + "textWidow": "Widow control", + "textSharingSettings": "Sharing Settings" }, "HighlightColorPalette": { "textNoFill": "No Fill" diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 2c1d1073d..86f60bff8 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -31,7 +31,8 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "textSharingSettings": "Sharing Settings" }, "HighlightColorPalette": { "textNoFill": "No Fill" diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index da0e193c9..da780d64f 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -31,7 +31,8 @@ "textReopen": "Reopen", "textResolve": "Resolve", "textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.", - "textUsers": "Users" + "textUsers": "Users", + "textSharingSettings": "Sharing Settings" }, "ThemeColorPalette": { "textCustomColors": "Custom Colors",