[common] Start to add sharing settings
This commit is contained in:
parent
3925fb7d49
commit
ac319db38b
|
@ -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
|
|
@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next';
|
||||||
import {Device} from "../../../utils/device";
|
import {Device} from "../../../utils/device";
|
||||||
|
|
||||||
import {ReviewController, ReviewChangeController} from "../../controller/collaboration/Review";
|
import {ReviewController, ReviewChangeController} from "../../controller/collaboration/Review";
|
||||||
|
import SharingSettingsController from "../../controller/collaboration/SharingSettings";
|
||||||
import {PageDisplayMode} from "./Review";
|
import {PageDisplayMode} from "./Review";
|
||||||
|
|
||||||
import {ViewCommentsController, ViewCommentsSheetsController} from "../../controller/collaboration/Comments";
|
import {ViewCommentsController, ViewCommentsSheetsController} from "../../controller/collaboration/Comments";
|
||||||
|
@ -14,6 +15,7 @@ const PageUsers = inject("users")(observer(props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
const storeUsers = props.users;
|
const storeUsers = props.users;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page name="collab__users" className='page-users'>
|
<Page name="collab__users" className='page-users'>
|
||||||
<Navbar title={_t.textUsers} backLink={_t.textBack}>
|
<Navbar title={_t.textUsers} backLink={_t.textBack}>
|
||||||
|
@ -48,6 +50,10 @@ const routes = [
|
||||||
path: '/review/',
|
path: '/review/',
|
||||||
component: ReviewController
|
component: ReviewController
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/sharing-settings/',
|
||||||
|
component: SharingSettingsController
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/cm-review/',
|
path: '/cm-review/',
|
||||||
component: ReviewController,
|
component: ReviewController,
|
||||||
|
@ -117,11 +123,13 @@ const PageCollaboration = inject('storeAppOptions', 'users')(observer(props => {
|
||||||
<Icon slot="media" icon="icon-review"></Icon>
|
<Icon slot="media" icon="icon-review"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
}
|
}
|
||||||
|
<ListItem link={'/sharing-settings/'} title={t('Common.Collaboration.textSharingSettings')}>
|
||||||
|
{/* <Icon slot="media" icon="icon-review"></Icon> */}
|
||||||
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
</Page>
|
</Page>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
||||||
}));
|
}));
|
||||||
class CollaborationView extends Component {
|
class CollaborationView extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
|
@ -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;
|
|
@ -159,7 +159,8 @@
|
||||||
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
||||||
"textUnderline": "Underline",
|
"textUnderline": "Underline",
|
||||||
"textUsers": "Users",
|
"textUsers": "Users",
|
||||||
"textWidow": "Widow control"
|
"textWidow": "Widow control",
|
||||||
|
"textSharingSettings": "Sharing Settings"
|
||||||
},
|
},
|
||||||
"HighlightColorPalette": {
|
"HighlightColorPalette": {
|
||||||
"textNoFill": "No Fill"
|
"textNoFill": "No Fill"
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
"textReopen": "Reopen",
|
"textReopen": "Reopen",
|
||||||
"textResolve": "Resolve",
|
"textResolve": "Resolve",
|
||||||
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
||||||
"textUsers": "Users"
|
"textUsers": "Users",
|
||||||
|
"textSharingSettings": "Sharing Settings"
|
||||||
},
|
},
|
||||||
"HighlightColorPalette": {
|
"HighlightColorPalette": {
|
||||||
"textNoFill": "No Fill"
|
"textNoFill": "No Fill"
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
"textReopen": "Reopen",
|
"textReopen": "Reopen",
|
||||||
"textResolve": "Resolve",
|
"textResolve": "Resolve",
|
||||||
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
"textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
|
||||||
"textUsers": "Users"
|
"textUsers": "Users",
|
||||||
|
"textSharingSettings": "Sharing Settings"
|
||||||
},
|
},
|
||||||
"ThemeColorPalette": {
|
"ThemeColorPalette": {
|
||||||
"textCustomColors": "Custom Colors",
|
"textCustomColors": "Custom Colors",
|
||||||
|
|
Loading…
Reference in a new issue