From 8fa179e20a7af9df5728f109e0190f978ea894b9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 25 Jul 2021 19:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=AE=BF=E9=97=AE=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9A=84IP=E5=BC=B9=E5=87=BA=E8=AF=A5IP=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E8=AE=BF=E9=97=AE=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components/iplist/ip-box.js | 18 ++++++++++++++++++ .../components/server/http-access-log-box.js | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 web/public/js/components/iplist/ip-box.js diff --git a/web/public/js/components/iplist/ip-box.js b/web/public/js/components/iplist/ip-box.js new file mode 100644 index 00000000..72a3565a --- /dev/null +++ b/web/public/js/components/iplist/ip-box.js @@ -0,0 +1,18 @@ +Vue.component("ip-box", { + props: [], + methods: { + popup: function () { + let e = this.$refs.container + let text = e.innerText + if (text == null) { + text = e.textContent + } + + teaweb.popup("/servers/ipbox?ip=" + text, { + width: "50em", + height: "30em" + }) + } + }, + template: `` +}) \ No newline at end of file diff --git a/web/public/js/components/server/http-access-log-box.js b/web/public/js/components/server/http-access-log-box.js index 823d061f..e41723eb 100644 --- a/web/public/js/components/server/http-access-log-box.js +++ b/web/public/js/components/server/http-access-log-box.js @@ -49,7 +49,7 @@ Vue.component("http-access-log-box", { } }, template: `
- [{{accessLog.region}}] {{accessLog.remoteAddr}} [{{accessLog.timeLocal}}] "{{accessLog.requestMethod}} {{accessLog.scheme}}://{{accessLog.host}}{{accessLog.requestURI}} {{accessLog.proto}}" {{accessLog.status}} cache hit waf {{accessLog.firewallActions}} - {{tag}} - 耗时:{{formatCost(accessLog.requestTime)}} ms   ({{accessLog.humanTime}}) + [{{accessLog.region}}] {{accessLog.remoteAddr}} [{{accessLog.timeLocal}}] "{{accessLog.requestMethod}} {{accessLog.scheme}}://{{accessLog.host}}{{accessLog.requestURI}} {{accessLog.proto}}" {{accessLog.status}} cache hit waf {{accessLog.firewallActions}} - {{tag}} - 耗时:{{formatCost(accessLog.requestTime)}} ms   ({{accessLog.humanTime}})  
` }) \ No newline at end of file