From e1da43053d23c995bcd6e7267cb20042398cd64f Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 9 Apr 2023 23:13:18 +0330 Subject: alireza update pack Co-Authored-By: Alireza Ahmadi --- web/html/xui/index.html | 41 +++++++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 10 deletions(-) (limited to 'web/html/xui/index.html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 5ced0a26..b084a84a 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -199,11 +199,30 @@ :class="siderDrawer.isDarkTheme ? darkClass : ''" width="800px" footer=""> - - - - -
[[ index ]][[ log ]]
+ + + + 10 + 20 + 50 + 100 + + + + + + + + {{ i18n "download" }} x-ui.log + + + + {{template "js" .}} @@ -301,9 +320,11 @@ const logModal = { visible: false, logs: '', - show(logs) { + rows: 20, + show(logs, rows) { this.visible = true; - this.logs = logs; + this.rows = rows; + this.logs = logs.join("\n"); }, hide() { this.visible = false; @@ -377,14 +398,14 @@ return; } }, - async openLogs(){ + async openLogs(rows){ this.loading(true); - const msg = await HttpUtil.post('server/logs'); + const msg = await HttpUtil.post('server/logs/'+rows); this.loading(false); if (!msg.success) { return; } - logModal.show(msg.obj); + logModal.show(msg.obj,rows); } }, async mounted() { -- cgit v1.2.3