no message
This commit is contained in:
parent
fa01bb4e7d
commit
cb760abf1a
@ -87,6 +87,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./docker/office/data:/var/www/onlyoffice/Data
|
- ./docker/office/data:/var/www/onlyoffice/Data
|
||||||
- ./docker/office/logs:/var/log/onlyoffice
|
- ./docker/office/logs:/var/log/onlyoffice
|
||||||
|
- ./docker/office/resources/documenteditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/resources/css/app.css
|
||||||
|
- ./docker/office/resources/presentationeditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/main/resources/css/app.css
|
||||||
|
- ./docker/office/resources/spreadsheeteditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/main/resources/css/app.css
|
||||||
environment:
|
environment:
|
||||||
TZ: "Asia/Shanghai"
|
TZ: "Asia/Shanghai"
|
||||||
networks:
|
networks:
|
||||||
|
5
docker/office/resources/documenteditor/css/app.css
Normal file
5
docker/office/resources/documenteditor/css/app.css
Normal file
File diff suppressed because one or more lines are too long
5
docker/office/resources/presentationeditor/css/app.css
Normal file
5
docker/office/resources/presentationeditor/css/app.css
Normal file
File diff suppressed because one or more lines are too long
5
docker/office/resources/spreadsheeteditor/css/app.css
Normal file
5
docker/office/resources/spreadsheeteditor/css/app.css
Normal file
File diff suppressed because one or more lines are too long
@ -76,7 +76,8 @@ export default {
|
|||||||
if (!url) {
|
if (!url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$A.loadScript("http://127.0.0.1:2224/web-apps/apps/api/documents/api.js", () => {
|
const uri = new URL(this.$store.state.method.apiUrl('web-apps'));
|
||||||
|
$A.loadScript(`http://${uri.hostname}:2224/web-apps/apps/api/documents/api.js`, () => {
|
||||||
this.loadFile()
|
this.loadFile()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -106,6 +107,17 @@ export default {
|
|||||||
this.docEditor = null;
|
this.docEditor = null;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
let lang = "zh";
|
||||||
|
switch (this.getLanguage()) {
|
||||||
|
case 'CN':
|
||||||
|
case 'TC':
|
||||||
|
lang = "zh";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
lang = 'en';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//
|
||||||
const config = {
|
const config = {
|
||||||
"document": {
|
"document": {
|
||||||
"fileType": this.fileType,
|
"fileType": this.fileType,
|
||||||
@ -115,7 +127,7 @@ export default {
|
|||||||
},
|
},
|
||||||
"editorConfig": {
|
"editorConfig": {
|
||||||
"mode": "edit",
|
"mode": "edit",
|
||||||
"lang": "zh-CN",
|
"lang": lang,
|
||||||
"user": {
|
"user": {
|
||||||
"id": this.userInfo.userid,
|
"id": this.userInfo.userid,
|
||||||
"name": this.userInfo.nickname
|
"name": this.userInfo.nickname
|
||||||
|
@ -53,7 +53,9 @@ export default {
|
|||||||
this.content = this.value;
|
this.content = this.value;
|
||||||
this.isEdit = true;
|
this.isEdit = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.input.focus();
|
this.$refs.input.focus({
|
||||||
|
cursor: 'all'
|
||||||
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<span :title="item.name">{{item.name}}</span>
|
<span :title="item.name">{{item.name}}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<Button v-if="shearFile && shearFile.pid != pid" size="small" type="primary" @click="shearTo">
|
<Button v-if="shearFile" :disabled="shearFile.pid == pid" size="small" type="primary" @click="shearTo">
|
||||||
<div class="file-shear">
|
<div class="file-shear">
|
||||||
<span>{{$L('粘贴')}}</span>
|
<span>{{$L('粘贴')}}</span>
|
||||||
"<em>{{shearFile.name}}</em>"
|
"<em>{{shearFile.name}}</em>"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<ul class="clearfix">
|
<ul class="clearfix">
|
||||||
<li
|
<li
|
||||||
v-for="item in fileList"
|
v-for="item in fileList"
|
||||||
:class="[item.type, item.id && shearId == item.id ? 'shear' : '']"
|
:class="[item.type, item.id && shearId == item.id ? 'shear' : '', !!item._highlight ? 'highlight' : '']"
|
||||||
@contextmenu.prevent.stop="handleRightClick($event, item)"
|
@contextmenu.prevent.stop="handleRightClick($event, item)"
|
||||||
@click="openFile(item)">
|
@click="openFile(item)">
|
||||||
<div class="file-menu" @click.stop="handleRightClick($event, item)">
|
<div class="file-menu" @click.stop="handleRightClick($event, item)">
|
||||||
@ -92,7 +92,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="file-menu" :style="contextMenuStyles">
|
<div class="file-menu" :style="contextMenuStyles">
|
||||||
<Dropdown trigger="custom" :visible="contextMenuVisible" transfer @on-clickoutside="handleClickContextMenuOutside">
|
<Dropdown trigger="custom" :visible="contextMenuVisible" transfer @on-clickoutside="handleClickContextMenuOutside" @on-visible-change="handleVisibleChangeMenu">
|
||||||
<DropdownMenu slot="list" class="page-file-dropdown-menu">
|
<DropdownMenu slot="list" class="page-file-dropdown-menu">
|
||||||
<template v-if="contextMenuItem.id">
|
<template v-if="contextMenuItem.id">
|
||||||
<DropdownItem @click.native="handleContextClick('open')">{{$L('打开')}}</DropdownItem>
|
<DropdownItem @click.native="handleContextClick('open')">{{$L('打开')}}</DropdownItem>
|
||||||
@ -640,6 +640,16 @@ export default {
|
|||||||
this.contextMenuVisible = false;
|
this.contextMenuVisible = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleVisibleChangeMenu(visible) {
|
||||||
|
let file = this.files.find(({_highlight}) => !!_highlight)
|
||||||
|
if (file) {
|
||||||
|
this.$set(file, '_highlight', false);
|
||||||
|
}
|
||||||
|
if (visible && this.contextMenuItem.id) {
|
||||||
|
this.$set(this.contextMenuItem, '_highlight', true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
dropFile(item, command) {
|
dropFile(item, command) {
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'open':
|
case 'open':
|
||||||
|
@ -426,6 +426,9 @@
|
|||||||
&.ppt .file-icon {
|
&.ppt .file-icon {
|
||||||
background-image: url("../images/file/ppt.svg");
|
background-image: url("../images/file/ppt.svg");
|
||||||
}
|
}
|
||||||
|
&.highlight {
|
||||||
|
background-color: #f4f5f7;
|
||||||
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #f4f5f7;
|
background-color: #f4f5f7;
|
||||||
.file-menu {
|
.file-menu {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user