diff --git a/web/public/js/components.js b/web/public/js/components.js
index 1762b797..e75ff901 100755
--- a/web/public/js/components.js
+++ b/web/public/js/components.js
@@ -6862,14 +6862,14 @@ Vue.component("http-compression-config-box", {
-
+
| 支持已压缩内容 |
-
+
|
diff --git a/web/public/js/components/common/source-code-box.js b/web/public/js/components/common/source-code-box.js
index 19ccbb56..a4714357 100644
--- a/web/public/js/components/common/source-code-box.js
+++ b/web/public/js/components/common/source-code-box.js
@@ -1,7 +1,7 @@
let sourceCodeBoxIndex = 0
Vue.component("source-code-box", {
- props: ["name", "type", "id", "read-only", "width", "height"],
+ props: ["name", "type", "id", "read-only", "width", "height", "focus"],
mounted: function () {
let readOnly = this.readOnly
if (typeof readOnly != "boolean") {
@@ -53,6 +53,10 @@ Vue.component("source-code-box", {
})
boxEditor.setValue(value)
+ if (this.focus) {
+ boxEditor.focus()
+ }
+
let width = this.width
let height = this.height
if (width != null && height != null) {
@@ -64,6 +68,11 @@ Vue.component("source-code-box", {
}
boxEditor.setSize(width, height)
}
+ } else if (height != null) {
+ height = parseInt(height)
+ if (!isNaN(height)) {
+ boxEditor.setSize("100%", height)
+ }
}
let info = CodeMirror.findModeByMIME(this.type)
diff --git a/web/views/@default/clusters/tasks/listPopup.html b/web/views/@default/clusters/tasks/listPopup.html
index 72f84d51..7624b4bf 100644
--- a/web/views/@default/clusters/tasks/listPopup.html
+++ b/web/views/@default/clusters/tasks/listPopup.html
@@ -9,7 +9,7 @@
|
- 集群 |
+ 集群 |
节点 |
任务 |
状态 |
@@ -29,6 +29,7 @@
同步配置
同步IP名单
+ 同步脚本
|
{{task.error}}
diff --git a/web/views/@default/dns/tasks/listPopup.html b/web/views/@default/dns/tasks/listPopup.html
index b3f594a6..756512c1 100644
--- a/web/views/@default/dns/tasks/listPopup.html
+++ b/web/views/@default/dns/tasks/listPopup.html
@@ -6,7 +6,7 @@
|