no message
This commit is contained in:
@@ -87,6 +87,9 @@ services:
|
||||
volumes:
|
||||
- ./docker/office/data:/var/www/onlyoffice/Data
|
||||
- ./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:
|
||||
TZ: "Asia/Shanghai"
|
||||
networks:
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -76,7 +76,8 @@ export default {
|
||||
if (!url) {
|
||||
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()
|
||||
})
|
||||
},
|
||||
@@ -106,6 +107,17 @@ export default {
|
||||
this.docEditor = null;
|
||||
}
|
||||
//
|
||||
let lang = "zh";
|
||||
switch (this.getLanguage()) {
|
||||
case 'CN':
|
||||
case 'TC':
|
||||
lang = "zh";
|
||||
break;
|
||||
default:
|
||||
lang = 'en';
|
||||
break;
|
||||
}
|
||||
//
|
||||
const config = {
|
||||
"document": {
|
||||
"fileType": this.fileType,
|
||||
@@ -115,7 +127,7 @@ export default {
|
||||
},
|
||||
"editorConfig": {
|
||||
"mode": "edit",
|
||||
"lang": "zh-CN",
|
||||
"lang": lang,
|
||||
"user": {
|
||||
"id": this.userInfo.userid,
|
||||
"name": this.userInfo.nickname
|
||||
|
||||
@@ -53,7 +53,9 @@ export default {
|
||||
this.content = this.value;
|
||||
this.isEdit = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.input.focus();
|
||||
this.$refs.input.focus({
|
||||
cursor: 'all'
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<span :title="item.name">{{item.name}}</span>
|
||||
</li>
|
||||
</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">
|
||||
<span>{{$L('粘贴')}}</span>
|
||||
"<em>{{shearFile.name}}</em>"
|
||||
@@ -60,7 +60,7 @@
|
||||
<ul class="clearfix">
|
||||
<li
|
||||
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)"
|
||||
@click="openFile(item)">
|
||||
<div class="file-menu" @click.stop="handleRightClick($event, item)">
|
||||
@@ -92,7 +92,7 @@
|
||||
</template>
|
||||
|
||||
<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">
|
||||
<template v-if="contextMenuItem.id">
|
||||
<DropdownItem @click.native="handleContextClick('open')">{{$L('打开')}}</DropdownItem>
|
||||
@@ -640,6 +640,16 @@ export default {
|
||||
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) {
|
||||
switch (command) {
|
||||
case 'open':
|
||||
|
||||
+3
@@ -426,6 +426,9 @@
|
||||
&.ppt .file-icon {
|
||||
background-image: url("../images/file/ppt.svg");
|
||||
}
|
||||
&.highlight {
|
||||
background-color: #f4f5f7;
|
||||
}
|
||||
&:hover {
|
||||
background-color: #f4f5f7;
|
||||
.file-menu {
|
||||
|
||||
Reference in New Issue
Block a user