diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 4409d39c..8c24417b 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -2871,19 +2871,22 @@ Vue.component("plan-limit-view", {
methods: {
formatNumber: function (n) {
return teaweb.formatNumber(n)
+ },
+ composeCapacity: function (capacity) {
+ return teaweb.convertSizeCapacityToString(capacity)
}
},
template: `
- 日流量限制:{{config.trafficLimit.dailySize.count}}{{config.trafficLimit.dailySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
- 月流量限制:{{config.trafficLimit.monthlySize.count}}{{config.trafficLimit.monthlySize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
+ 日流量限制:{{composeCapacity(config.trafficLimit.dailySize)}}
+ 月流量限制:{{composeCapacity(config.trafficLimit.monthlySize)}}
单日请求数限制:{{formatNumber(config.dailyRequests)}}
单月请求数限制:{{formatNumber(config.monthlyRequests)}}
单日Websocket限制:{{formatNumber(config.dailyWebsocketConnections)}}
单月Websocket限制:{{formatNumber(config.monthlyWebsocketConnections)}}
-
文件上传限制:{{config.maxUploadSize.count}}{{config.maxUploadSize.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
+
文件上传限制:{{composeCapacity(config.maxUploadSize)}}
`
})
@@ -13743,6 +13746,84 @@ Vue.component("http-firewall-block-options", {
`
})
+Vue.component("http-hls-config-box", {
+ props: ["value", "v-is-location", "v-is-group"],
+ data: function () {
+ let config = this.value
+ if (config == null) {
+ config = {
+ isPrior: false
+ }
+ }
+
+ let encryptingConfig = config.encrypting
+ if (encryptingConfig == null) {
+ encryptingConfig = {
+ isOn: false,
+ onlyURLPatterns: [],
+ exceptURLPatterns: []
+ }
+ config.encrypting = encryptingConfig
+ }
+
+ return {
+ config: config,
+
+ encryptingConfig: encryptingConfig,
+ encryptingMoreOptionsVisible: false
+ }
+ },
+ methods: {
+ isOn: function () {
+ return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior)
+ },
+
+ showEncryptingMoreOptions: function () {
+ this.encryptingMoreOptionsVisible = !this.encryptingMoreOptionsVisible
+ }
+ },
+ template: `
+
+
+
+
+
+
+ | 启用HLS加密 |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ | 例外URL |
+
+
+
+ |
+
+
+ | 限制URL |
+
+
+
+ |
+
+
+
+
+
`
+})
+
Vue.component("http-oss-bucket-params", {
props: ["v-oss-config", "v-params", "name"],
data: function () {
@@ -19115,8 +19196,13 @@ Vue.component("url-patterns-box", {
Vue.component("size-capacity-view", {
props:["v-default-text", "v-value"],
+ methods: {
+ composeCapacity: function (capacity) {
+ return teaweb.convertSizeCapacityToString(capacity)
+ }
+ },
template: `
- {{vValue.count}}{{vValue.unit.toUpperCase().replace(/(.)B/, "$1iB")}}
+ {{composeCapacity(vValue)}}
{{vDefaultText}}
`
})