diff --git a/web/public/js/components.js b/web/public/js/components.js index b43a9e78..96891076 100755 --- a/web/public/js/components.js +++ b/web/public/js/components.js @@ -209,7 +209,7 @@ Vue.component("traffic-map-box", {
| 是否启用 | @@ -2787,7 +2794,7 @@ Vue.component("http-request-limit-config-box", { |
| 最大并发连接数 |
@@ -2882,6 +2889,7 @@ Vue.component("http-request-conds-view", {
{{cond.param}} {{cond.operator}}
{{cond.typeName}}:
{{cond.value}}
+
{{group.connector}}
@@ -6876,6 +6884,13 @@ Vue.component("http-location-labels", {
template: `
+
+
+
@@ -8446,7 +8558,8 @@ Vue.component("http-cond-url-not-prefix", {
param: "${requestPath}",
operator: "prefix",
value: "",
- isReverse: true
+ isReverse: true,
+ isCaseInsensitive: false
}
if (this.vCond != null && typeof this.vCond.value == "string") {
cond.value = this.vCond.value
@@ -8455,6 +8568,11 @@ Vue.component("http-cond-url-not-prefix", {
cond: cond
}
},
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
template: `
@@ -8470,7 +8588,8 @@ Vue.component("http-cond-url-eq", {
isRequest: true,
param: "${requestPath}",
operator: "eq",
- value: ""
+ value: "",
+ isCaseInsensitive: false
}
if (this.vCond != null && typeof this.vCond.value == "string") {
cond.value = this.vCond.value
@@ -8479,6 +8598,11 @@ Vue.component("http-cond-url-eq", {
cond: cond
}
},
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
template: `
@@ -8494,7 +8618,8 @@ Vue.component("http-cond-url-not-eq", {
param: "${requestPath}",
operator: "eq",
value: "",
- isReverse: true
+ isReverse: true,
+ isCaseInsensitive: false
}
if (this.vCond != null && typeof this.vCond.value == "string") {
cond.value = this.vCond.value
@@ -8503,6 +8628,11 @@ Vue.component("http-cond-url-not-eq", {
cond: cond
}
},
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
template: `
@@ -8518,7 +8648,8 @@ Vue.component("http-cond-url-regexp", {
isRequest: true,
param: "${requestPath}",
operator: "regexp",
- value: ""
+ value: "",
+ isCaseInsensitive: false
}
if (this.vCond != null && typeof this.vCond.value == "string") {
cond.value = this.vCond.value
@@ -8527,6 +8658,11 @@ Vue.component("http-cond-url-regexp", {
cond: cond
}
},
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
template: `
@@ -8542,7 +8678,8 @@ Vue.component("http-cond-url-not-regexp", {
isRequest: true,
param: "${requestPath}",
operator: "not regexp",
- value: ""
+ value: "",
+ isCaseInsensitive: false
}
if (this.vCond != null && typeof this.vCond.value == "string") {
cond.value = this.vCond.value
@@ -8551,6 +8688,11 @@ Vue.component("http-cond-url-not-regexp", {
cond: cond
}
},
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
template: `
@@ -8558,6 +8700,67 @@ Vue.component("http-cond-url-not-regexp", {
`
})
+
+// User-Agent正则匹配
+Vue.component("http-cond-user-agent-regexp", {
+ props: ["v-cond"],
+ data: function () {
+ let cond = {
+ isRequest: true,
+ param: "${userAgent}",
+ operator: "regexp",
+ value: "",
+ isCaseInsensitive: false
+ }
+ if (this.vCond != null && typeof this.vCond.value == "string") {
+ cond.value = this.vCond.value
+ }
+ return {
+ cond: cond
+ }
+ },
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
+ template: `
+
+
+ `
+})
+
+// User-Agent正则不匹配
+Vue.component("http-cond-user-agent-not-regexp", {
+ props: ["v-cond"],
+ data: function () {
+ let cond = {
+ isRequest: true,
+ param: "${userAgent}",
+ operator: "not regexp",
+ value: "",
+ isCaseInsensitive: false
+ }
+ if (this.vCond != null && typeof this.vCond.value == "string") {
+ cond.value = this.vCond.value
+ }
+ return {
+ cond: cond
+ }
+ },
+ methods: {
+ changeCaseInsensitive: function (isCaseInsensitive) {
+ this.cond.isCaseInsensitive = isCaseInsensitive
+ }
+ },
+ template: `匹配User-Agent的正则表达式,比如
+
+
+ `
+})
+
// 根据MimeType
Vue.component("http-cond-mime-type", {
props: ["v-cond"],
@@ -8701,7 +8904,8 @@ Vue.component("http-cond-params", {
isRequest: true,
param: "",
operator: window.REQUEST_COND_OPERATORS[0].op,
- value: ""
+ value: "",
+ isCaseInsensitive: false
}
if (this.vCond != null) {
cond = this.vCond
@@ -8907,6 +9111,16 @@ Vue.component("http-cond-params", {
匹配User-Agent的正则表达式,比如 |
| 不区分大小写 | +
+
+
+
+
+ 选中后表示对比时忽略参数值的大小写。 + |
+