From e31e8313093831813609230e969c0c0d150bb9e2 Mon Sep 17 00:00:00 2001 From: stapxs <1007028430.stapx@gmail.com> Date: Tue, 26 Nov 2024 17:12:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- napcat.webui/src/main.ts | 8 ++ napcat.webui/src/pages/NetWork.vue | 207 +++++++++++++++++++---------- 2 files changed, 146 insertions(+), 69 deletions(-) diff --git a/napcat.webui/src/main.ts b/napcat.webui/src/main.ts index 72913a27..1155759a 100644 --- a/napcat.webui/src/main.ts +++ b/napcat.webui/src/main.ts @@ -19,6 +19,10 @@ import { List as TList, Alert as TAlert, Tag as TTag, + Descriptions as TDescriptionsProps, + DescriptionsItem as TDescriptionsItem, + Collapse as TCollapse, + CollapsePanel as TCollapsePanel, ListItem as TListItem, Tabs as TTabs, TabPanel as TTabPanel, @@ -58,6 +62,10 @@ app.use(TLink); app.use(TList); app.use(TAlert); app.use(TTag); +app.use(TDescriptionsProps); +app.use(TDescriptionsItem); +app.use(TCollapse); +app.use(TCollapsePanel); app.use(TListItem); app.use(TTabs); app.use(TTabPanel); diff --git a/napcat.webui/src/pages/NetWork.vue b/napcat.webui/src/pages/NetWork.vue index 9fffd843..060b8390 100644 --- a/napcat.webui/src/pages/NetWork.vue +++ b/napcat.webui/src/pages/NetWork.vue @@ -9,7 +9,12 @@
- + @@ -22,6 +27,7 @@
-
类型:{{ item.type }}
-
-
地址:{{ item.host }}
-
地址:{{ item.url }}
-
-
端口:{{ item.port }}
-
- 心跳间隔:{{ item.heartInterval }} -
-
-
- 心跳间隔:{{ item.heartInterval }} -
-
-
Token:{{ item.token }}
-
-
消息格式:{{ item.messagePostFormat }}
-
-
-
-
状态:
- - {{ item.enable ? '启用' : '禁用' }} -
-
-
-
调试:
- - {{ item.debug ? '开启' : '关闭' }} -
-
-
-
-
WS :
- - {{ item.enableWebsocket ? '启用' : '禁用' }} -
-
-
-
跨域:
- - {{ item.enableCors ? '开启' : '关闭' }} -
-
-
-
上报自身消息:
- - {{ item.reportSelfMessage ? '开启' : '关闭' }} -
-
-
强制推送事件:
- - {{ item.enableForcePushEvent ? '开启' : '关闭' }} -
+ + {{ item.host }} + {{ item.url }} + :{{ item.port }} +
+ + + + + + +
+ {{ showToken ? item.token : '*******' }} + + +
+
+ {{ item.messagePostFormat }} +
+
+ + + + + {{ item.debug ? '开启' : '关闭' }} + + + + {{ item.enableWebsocket ? '启用' : '禁用' }} + + + + {{ item.enableCors ? '开启' : '关闭' }} + + + + {{ item.reportSelfMessage ? '开启' : '关闭' }} + + + + {{ item.enableForcePushEvent ? '开启' : '关闭' }} + + + +
@@ -155,7 +157,7 @@