| 可缓存的最大内容尺寸 |
@@ -3839,6 +3856,7 @@ Vue.component("http-cache-refs-config-box", {
0 - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}}
{{cacheRef.methods.join(", ")}}
+ Expires
状态码:{{cacheRef.status.map(function(v) {return v.toString()}).join(", ")}}
|
@@ -6347,6 +6365,76 @@ Vue.component("http-charsets-box", {
`
})
+Vue.component("http-expires-time-config-box", {
+ props: ["v-expires-time"],
+ data: function () {
+ let expiresTime = this.vExpiresTime
+ if (expiresTime == null) {
+ expiresTime = {
+ isPrior: false,
+ isOn: false,
+ overwrite: true,
+ autoCalculate: true,
+ duration: {count: -1, "unit": "hour"}
+ }
+ }
+ return {
+ expiresTime: expiresTime
+ }
+ },
+ watch: {
+ "expiresTime.isPrior": function () {
+ this.notifyChange()
+ },
+ "expiresTime.isOn": function () {
+ this.notifyChange()
+ },
+ "expiresTime.overwrite": function () {
+ this.notifyChange()
+ },
+ "expiresTime.autoCalculate": function () {
+ this.notifyChange()
+ }
+ },
+ methods: {
+ notifyChange: function () {
+ this.$emit("change", this.expiresTime)
+ }
+ },
+ template: `
+
+
+
+
+ | 是否启用 |
+
+
+ |
+
+
+ | 覆盖源站设置 |
+
+
+
+ |
+
+
+ | 自动计算时间 |
+
+
+ |
+
+
+ | 强制缓存时间 |
+
+
+ |
+
+
+
+ `
+})
+
Vue.component("http-access-log-box", {
props: ["v-access-log", "v-keyword", "v-show-server-link"],
data: function () {
@@ -10141,6 +10229,40 @@ Vue.component("more-options-indicator", {
template: '更多选项收起选项 '
});
+Vue.component("page-size-selector", {
+ data: function () {
+ let query = window.location.search
+ let pageSize = 10
+ if (query.length > 0) {
+ query = query.substr(1)
+ let params = query.split("&")
+ params.forEach(function (v) {
+ let pieces = v.split("=")
+ if (pieces.length == 2 && pieces[0] == "pageSize") {
+ let pageSizeString = pieces[1]
+ if (pageSizeString.match(/^\d+$/)) {
+ pageSize = parseInt(pageSizeString, 10)
+ if (isNaN(pageSize) || pageSize < 1) {
+ pageSize = 10
+ }
+ }
+ }
+ })
+ }
+ return {
+ pageSize: pageSize
+ }
+ },
+ watch: {
+ pageSize: function () {
+ window.ChangePageSize(this.pageSize)
+ }
+ },
+ template: ``
+})
+
/**
* 二级菜单
*/
@@ -10566,6 +10688,7 @@ Vue.component("time-duration-box", {
+
`
|