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 @@