diff --git a/internal/const/const.go b/internal/const/const.go index c46ed408..020c0ced 100644 --- a/internal/const/const.go +++ b/internal/const/const.go @@ -1,9 +1,9 @@ package teaconst const ( - Version = "1.3.1" + Version = "1.3.1.2" - APINodeVersion = "1.3.1" + APINodeVersion = "1.3.1.2" ProductName = "Edge Admin" ProcessName = "edge-admin" diff --git a/web/public/js/components.js b/web/public/js/components.js index 1b071ec9..882ab96f 100644 --- a/web/public/js/components.js +++ b/web/public/js/components.js @@ -1018,8 +1018,8 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio `}),Vue.component("plan-limit-view",{props:["value","v-single-mode"],data:function(){var e=this.value;let t=!1;return this.vSingleMode||(null!=e.trafficLimit&&e.trafficLimit.isOn&&(null!=e.trafficLimit.dailySize&&0
- 日流量限制:{{config.trafficLimit.dailySize.count}}{{config.trafficLimit.dailySize.unit.toUpperCase()}}
- 月流量限制:{{config.trafficLimit.monthlySize.count}}{{config.trafficLimit.monthlySize.unit.toUpperCase()}}
+ 日流量限制:{{config.trafficLimit.dailySize.count}}{{config.trafficLimit.dailySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
+ 月流量限制:{{config.trafficLimit.monthlySize.count}}{{config.trafficLimit.monthlySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
单日请求数限制:{{formatNumber(config.dailyRequests)}}
单月请求数限制:{{formatNumber(config.monthlyRequests)}}
@@ -1037,7 +1037,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio 按流量计费
- 基础价格:¥{{plan.trafficPrice.base}}元/GB + 基础价格:¥{{plan.trafficPrice.base}}元/GiB
@@ -2178,7 +2178,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio

{{chart.name}} ({{valueTypeName}})

-
`}),Vue.component("metric-board",{template:"
"}),Vue.component("http-cache-config-box",{props:["v-cache-config","v-is-location","v-is-group","v-cache-policy","v-web-id"],data:function(){let e=this.vCacheConfig;null==(e=null==e?{isPrior:!1,isOn:!1,addStatusHeader:!0,addAgeHeader:!1,enableCacheControlMaxAge:!1,cacheRefs:[],purgeIsOn:!1,purgeKey:"",disablePolicyRefs:!1}:e).cacheRefs&&(e.cacheRefs=[]);var t=null;return null!=this.vCachePolicy&&null!=this.vCachePolicy.maxBytes&&(t=this.vCachePolicy.maxBytes),{cacheConfig:e,moreOptionsVisible:!1,enablePolicyRefs:!e.disablePolicyRefs,maxBytes:t,searchBoxVisible:!1,searchKeyword:""}},watch:{enablePolicyRefs:function(e){this.cacheConfig.disablePolicyRefs=!e},searchKeyword:function(e){this.$refs.cacheRefsConfigBoxRef.search(e)}},methods:{isOn:function(){return(!this.vIsLocation&&!this.vIsGroup||this.cacheConfig.isPrior)&&this.cacheConfig.isOn},isPlus:function(){return Tea.Vue.teaIsPlus},generatePurgeKey:function(){let e=Math.random().toString()+Math.random().toString(),t=e.replace(/0\./g,"").replace(/\./g,""),i="";for(let e=0;e +`}),Vue.component("metric-board",{template:"
"}),Vue.component("http-cache-config-box",{props:["v-cache-config","v-is-location","v-is-group","v-cache-policy","v-web-id"],data:function(){let e=this.vCacheConfig,t=(null==(e=null==e?{isPrior:!1,isOn:!1,addStatusHeader:!0,addAgeHeader:!1,enableCacheControlMaxAge:!1,cacheRefs:[],purgeIsOn:!1,purgeKey:"",disablePolicyRefs:!1}:e).cacheRefs&&(e.cacheRefs=[]),null);return null!=this.vCachePolicy&&null!=this.vCachePolicy.maxBytes&&(t=this.vCachePolicy.maxBytes),null==e.key&&Vue.set(e,"key",{isOn:!1,scheme:"https",host:""}),{cacheConfig:e,moreOptionsVisible:!1,enablePolicyRefs:!e.disablePolicyRefs,maxBytes:t,searchBoxVisible:!1,searchKeyword:"",keyOptionsVisible:!1}},watch:{enablePolicyRefs:function(e){this.cacheConfig.disablePolicyRefs=!e},searchKeyword:function(e){this.$refs.cacheRefsConfigBoxRef.search(e)}},methods:{isOn:function(){return(!this.vIsLocation&&!this.vIsGroup||this.cacheConfig.isPrior)&&this.cacheConfig.isOn},isPlus:function(){return Tea.Vue.teaIsPlus},generatePurgeKey:function(){let e=Math.random().toString()+Math.random().toString(),t=e.replace(/0\./g,"").replace(/\./g,""),i="";for(let e=0;e @@ -2206,6 +2206,44 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio + + + + + + + + + + + +
缓存主域名 +
默认   [修改]
+
使用主域名:{{cacheConfig.key.scheme}}://{{cacheConfig.key.host}}   [修改]
+
+
+ + + + + + + + + +
启用主域名 +

启用主域名后,所有缓存键值中的协议和域名部分都会修改为主域名,用来实现缓存不区分域名。

+
主域名 * +
+
+ +
+
+ +
+
+

此域名必须是当前网站已绑定域名,在刷新缓存时也需要使用此域名。

+
+ +
+
@@ -2264,6 +2302,11 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio +
+ +
+
+

缓存条件   [添加]   [搜索]
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js index 10d6cf98..3d2146ad 100755 --- a/web/public/js/components.src.js +++ b/web/public/js/components.src.js @@ -2876,8 +2876,8 @@ Vue.component("plan-limit-view", { template: `
- 日流量限制:{{config.trafficLimit.dailySize.count}}{{config.trafficLimit.dailySize.unit.toUpperCase()}}
- 月流量限制:{{config.trafficLimit.monthlySize.count}}{{config.trafficLimit.monthlySize.unit.toUpperCase()}}
+ 日流量限制:{{config.trafficLimit.dailySize.count}}{{config.trafficLimit.dailySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
+ 月流量限制:{{config.trafficLimit.monthlySize.count}}{{config.trafficLimit.monthlySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
单日请求数限制:{{formatNumber(config.dailyRequests)}}
单月请求数限制:{{formatNumber(config.monthlyRequests)}}
@@ -2905,7 +2905,7 @@ Vue.component("plan-price-view", { 按流量计费
- 基础价格:¥{{plan.trafficPrice.base}}元/GB + 基础价格:¥{{plan.trafficPrice.base}}元/GiB
@@ -6258,11 +6258,21 @@ Vue.component("http-cache-config-box", { cacheConfig.cacheRefs = [] } - var maxBytes = null + let maxBytes = null if (this.vCachePolicy != null && this.vCachePolicy.maxBytes != null) { maxBytes = this.vCachePolicy.maxBytes } + // key + if (cacheConfig.key == null) { + // use Vue.set to activate vue events + Vue.set(cacheConfig, "key", { + isOn: false, + scheme: "https", + host: "" + }) + } + return { cacheConfig: cacheConfig, moreOptionsVisible: false, @@ -6270,7 +6280,9 @@ Vue.component("http-cache-config-box", { maxBytes: maxBytes, searchBoxVisible: false, - searchKeyword: "" + searchKeyword: "", + + keyOptionsVisible: false } }, watch: { @@ -6345,6 +6357,44 @@ Vue.component("http-cache-config-box", {

缓存主域名 +
默认   [修改]
+
使用主域名:{{cacheConfig.key.scheme}}://{{cacheConfig.key.host}}   [修改]
+
+
+ + + + + + + + + +
启用主域名 +

启用主域名后,所有缓存键值中的协议和域名部分都会修改为主域名,用来实现缓存不区分域名。

+
主域名 * +
+
+ +
+
+ +
+
+

此域名必须是当前网站已绑定域名,在刷新缓存时也需要使用此域名。

+
+ +
+
@@ -6403,6 +6453,11 @@ Vue.component("http-cache-config-box", { +
+ +
+
+

缓存条件   [添加]   [搜索]