Vue.component("http-location-labels", { props: ["v-location-config", "v-server-id"], data: function () { return { location: this.vLocationConfig } }, methods: { // 判断是否已启用某配置 configIsOn: function (config) { return config != null && config.isPrior && config.isOn }, refIsOn: function (ref, config) { return this.configIsOn(ref) && config != null && config.isOn }, len: function (arr) { return (arr == null) ? 0 : arr.length }, url: function (path) { return "/servers/server/settings/locations" + path + "?serverId=" + this.vServerId + "&locationId=" + this.location.id } }, template: `
{{location.name}}
{{domain}}
BREAK 自动跳转HTTPS 文档根目录 源站 5秒盾 CC防护 CACHE {{location.web.charset.charset}} Gzip:{{location.web.gzip.level}} 请求Header 响应Header Websocket 请求脚本 访客IP地址 请求限制
PAGE [状态码{{page.status[0]}}] -> {{page.url}}
临时关闭
REWRITE {{rewriteRule.pattern}} -> {{rewriteRule.replace}}
` }) Vue.component("http-location-labels-label", { props: ["v-class", "v-href"], template: `` })