Compare commits

...

1 commit

Author SHA1 Message Date
SergeyEzhin ac319db38b [common] Start to add sharing settings 2022-02-25 02:01:36 +04:00
6 changed files with 55 additions and 4 deletions

View file

@ -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 (
<SharingSettings />
)
}
}
export default SharingSettingsController

View file

@ -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 (
<Page name="collab__users" className='page-users'>
<Navbar title={_t.textUsers} backLink={_t.textBack}>
@ -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 => {
<Icon slot="media" icon="icon-review"></Icon>
</ListItem>
}
<ListItem link={'/sharing-settings/'} title={t('Common.Collaboration.textSharingSettings')}>
{/* <Icon slot="media" icon="icon-review"></Icon> */}
</ListItem>
</List>
</Page>
</View>
)
}));
class CollaborationView extends Component {
constructor(props) {

View file

@ -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 (
<Page>
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
<div id="sharing-placeholder">
<iframe width="100%" height="500" align="top" frameBorder="0" scrolling="no" src={url}></iframe>
</div>
</Page>
)
}
export default SharingSettings;

View file

@ -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"

View file

@ -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"

View file

@ -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",