- | 主机名 |
+ 系统主机名 |
{{ systemInfo?.hostname || '加载中...' }}
|
- | 系统版本 |
+ 系统版本号 |
{{ `${systemInfo?.os_name} ${systemInfo?.kernel_arch}` || '加载中...' }}
|
- | 内核版本 |
+ 系统内核版本 |
{{ systemInfo?.kernel_version || '加载中...' }}
|
- | 运行时间 |
+ 系统运行时间 |
{{ formatDuration(Number(systemInfo?.uptime)) || '加载中...' }}
|
- | 操作 |
+ 面板内部版本 |
-
-
-
-
-
- 重启面板
-
-
- 确定要重启面板吗?
-
-
-
- 检查更新
-
-
+ {{ systemInfo?.commit_hash || '加载中...' }}
+ |
+
+
+ | 面板编译信息 |
+
+ {{
+ systemInfo?.go_version +
+ '/' +
+ systemInfo?.build_time +
+ '/' +
+ systemInfo?.build_host +
+ '/' +
+ systemInfo?.build_id || '加载中...'
+ }}
|
diff --git a/web/src/views/dashboard/types.ts b/web/src/views/dashboard/types.ts
index cd9144e0..95ff7c8c 100644
--- a/web/src/views/dashboard/types.ts
+++ b/web/src/views/dashboard/types.ts
@@ -156,6 +156,12 @@ export interface SystemInfo {
procs: number
hostname: string
panel_version: string
+ commit_hash: string
+ build_time: string
+ build_user: string
+ build_host: string
+ build_id: string
+ go_version: string
kernel_arch: string
kernel_version: string
os_name: string