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