1
1
<template >
2
- <n-config-provider :theme =" osTheme === 'dark' ? darkTheme : undefined" >
3
- <n-grid x-gap =" 12" :cols =" 2" >
4
- <n-gi >
5
- <n-card bordered shadow =" always" title =" @Hydro/XCPC-TOOLS Setup Tool" >
6
- <n-statistic title =" 座位号" value =" 未配置" style =" text-align : center ; font-size : 8em ;" />
7
- </n-card >
8
- <n-card bordered shadow =" always" >
9
- <n-input placeholder =" 请输入座位号" type =" text" size =" large" style =" width : 100% ; margin-bottom : .5em ;" />
10
- <n-space style =" width : 100% ;" >
11
- <n-button type =" primary" style =" width : 100% ;" >保存</n-button >
12
- <n-button type =" info" style =" width : 100% ;" >放大显示</n-button >
13
- </n-space >
14
- </n-card >
15
- <n-card bordered shadow =" always" title =" Stream Info" >
16
- <p >摄像头服务: 未配置</p >
17
- <n-space style =" width : 100% ;" >
18
- <n-button type =" primary" style =" width : 100% ;" >启动</n-button >
19
- <n-button type =" info" style =" width : 100% ;" >测试</n-button >
20
- </n-space >
21
- <p >麦克风服务: 未配置</p >
22
- <n-space style =" width : 100% ;" >
23
- <n-button type =" primary" style =" width : 100% ;" >启动</n-button >
24
- <n-button type =" info" style =" width : 100% ;" >测试</n-button >
25
- </n-space >
26
- </n-card >
27
- </n-gi >
28
- <n-gi >
29
- <n-card bordered title =" Machine Info" shadow =" always" >
30
- <n-grid x-gap =" 12" :cols =" 2" >
31
- <n-gi >
32
- <p >CPU: Unknown</p >
33
- <p >Mem: Unknown</p >
34
- <p >OS: Unknown</p >
35
- <p >Image Version: Unknown</p >
36
- <p >Displays: Unknown</p >
37
- </n-gi >
38
- <n-gi >
39
- <p >gcc: Unknown</p >
40
- <p >g++: Unknown</p >
41
- <p >java: Unknown</p >
42
- <p >kotlin: Unknown</p >
43
- <p >python3: Unknown</p >
44
- <p >pypy3: Unknown</p >
45
- </n-gi >
46
- </n-grid >
47
- </n-card >
48
- <n-card bordered title =" Network Info" shadow =" always" >
49
- <p >IP: Unknown</p >
50
- <p >Mac: Unknown</p >
51
- <p >Interface: Unknown</p >
52
- </n-card >
53
- </n-gi >
54
- </n-grid >
55
- </n-config-provider >
56
- </template >
57
-
58
- <script setup lang="ts">
59
- import {
60
- NGrid , NGi , darkTheme , NConfigProvider , useOsTheme , NButton , NCard , NStatistic ,
61
- } from ' naive-ui' ;
62
-
63
- const osTheme = useOsTheme ();
64
- </script >
65
-
66
- <style scoped>
67
-
68
- .logo {
69
- height : 6em ;
70
- padding : 1.5em ;
71
- will-change : filter;
72
- transition : filter 300ms ;
73
- }
74
- .logo :hover {
75
- filter : drop-shadow (0 0 2em #646cffaa );
76
- }
77
- .logo.vue :hover {
78
- filter : drop-shadow (0 0 2em #42b883aa );
79
- }
80
- </style >
2
+ <n-config-provider :theme =" osTheme === 'dark' ? darkTheme : undefined" >
3
+ <n-grid x-gap =" 12" :cols =" 2" >
4
+ <n-gi >
5
+ <basic-info />
6
+ <connect-server />
7
+ <video-info />
8
+ </n-gi >
9
+ <n-gi >
10
+ <system-info />
11
+ <network-info />
12
+ </n-gi >
13
+ </n-grid >
14
+ </n-config-provider >
15
+ </template >
16
+
17
+ <script setup lang="ts">
18
+ import {
19
+ NGrid , NGi , darkTheme , NConfigProvider , useOsTheme ,
20
+ } from ' naive-ui' ;
21
+ import BasicInfo from ' ./components/BasicInfo.vue' ;
22
+ import ConnectServer from ' ./components/HeartbeatInfo.vue' ;
23
+ import SystemInfo from ' ./components/SystemInfo.vue' ;
24
+ import NetworkInfo from ' ./components/NetworkInfo.vue' ;
25
+ import VideoInfo from ' ./components/VideoInfo.vue' ;
26
+
27
+ const osTheme = useOsTheme ();
28
+ </script >
0 commit comments