diff --git a/extend/base/admin/view/status/index.html b/extend/base/admin/view/status/index.html index 93f3964..bf43019 100644 --- a/extend/base/admin/view/status/index.html +++ b/extend/base/admin/view/status/index.html @@ -1,6 +1,9 @@
+
+ +
@@ -15,25 +18,25 @@ - 框架名称 + 框架名称 {$systemInfo.framework} - 框架版本 + 框架版本 {$systemInfo.version} - Layui版本 + Layui版本 {$systemInfo.layui_version} - ThinkPHP版本 + ThinkPHP版本 {$systemInfo.thinkphp_version} - PHP版本 + PHP版本 {$systemInfo.php_version} - 服务器时间 + 服务器时间 {$systemInfo.server_time} - 时区 + 时区 {$systemInfo.timezone} @@ -42,7 +45,7 @@
-
+
服务器环境
@@ -53,32 +56,30 @@ - 服务器软件 + 服务器软件 {$serverInfo.server_software} - 操作系统 + 操作系统 {$serverInfo.os} - 运行模式 + 运行模式 {$serverInfo.sapi} - 服务器IP + 服务器IP {$serverInfo.ip}:{$serverInfo.port}
-
-
数据库状态
@@ -89,11 +90,11 @@ - 数据库类型 + 数据库类型 {$databaseInfo.type} - 连接状态 + 连接状态 {if $databaseInfo.status == 'connected'} 正常 @@ -105,24 +106,24 @@ - 数据库版本 + 数据库版本 {$databaseInfo.version} - 数据库名称 + 数据库名称 {$databaseInfo.database} - 表前缀 + 表前缀 {$databaseInfo.prefix} - 数据表数量 + 数据表数量 {$databaseInfo.table_count} {if $databaseInfo.status == 'error'} - 错误信息 + 错误信息 {$databaseInfo.error} {/if} @@ -130,9 +131,7 @@
-
-
存储状态
@@ -143,25 +142,25 @@ - 根目录 + 根目录 {$storageInfo.root_path} - 总容量 + 总容量 {$storageInfo.total} - 已用空间 + 已用空间 {$storageInfo.used} - 可用空间 + 可用空间 {$storageInfo.free} - 使用率 + 使用率
@@ -172,9 +171,7 @@
-
-
缓存配置
@@ -185,27 +182,27 @@ - 默认驱动 + 默认驱动 {$cacheInfo.default_driver} - 驱动类型 + 驱动类型 {$cacheInfo.type} - 缓存路径 + 缓存路径 {$cacheInfo.path} - 缓存前缀 + 缓存前缀 {$cacheInfo.prefix} - 有效期 + 有效期 {$cacheInfo.expire == 0 ? '永久' : $cacheInfo.expire . '秒'} - 状态 + 状态 {if $cacheInfo.status == 'available'} 可用 @@ -218,7 +215,7 @@ {if $cacheInfo.status == 'error'} - 错误信息 + 错误信息 {$cacheInfo.error} {/if} @@ -226,9 +223,7 @@
-
-
PHP配置
@@ -239,35 +234,35 @@ - 上传文件限制 + 上传文件限制 {$phpConfigInfo.upload_max_filesize} - POST最大限制 + POST最大限制 {$phpConfigInfo.post_max_size} - 内存限制 + 内存限制 {$phpConfigInfo.memory_limit} - 最大执行时间 + 最大执行时间 {$phpConfigInfo.max_execution_time} - 最大输入时间 + 最大输入时间 {$phpConfigInfo.max_input_time} - 文件上传 + 文件上传 {$phpConfigInfo.file_uploads} - Allow URL Fopen + Allow URL Fopen {$phpConfigInfo.allow_url_fopen} - 禁用函数 + 禁用函数 {php}echo mb_strlen($phpConfigInfo['disabled_functions']) > 50 ? mb_substr($phpConfigInfo['disabled_functions'], 0, 50) . '...' : $phpConfigInfo['disabled_functions'];{/php} @@ -276,9 +271,7 @@
-
-
性能指标
@@ -289,15 +282,15 @@ - 内存使用 + 内存使用 {$performanceInfo.memory_usage} - 内存限制 + 内存限制 {$performanceInfo.memory_limit} - 内存使用率 + 内存使用率
@@ -305,11 +298,11 @@ - 峰值内存 + 峰值内存 {$performanceInfo.peak_memory} - 系统负载 + 系统负载 {$performanceInfo.load_average} diff --git a/extend/base/admin/view/status/index.js b/extend/base/admin/view/status/index.js index e52c46b..ccc61b0 100644 --- a/extend/base/admin/view/status/index.js +++ b/extend/base/admin/view/status/index.js @@ -34,6 +34,10 @@ $(function () { layer.msg('复制失败,请手动复制', {icon: 2}); }); } + + $('#refresh-btn').on('click', function () { + location.reload(); + }); }); ua.listen(); diff --git a/public/static/admin/css/welcome.css b/public/static/admin/css/welcome.css index 13bed39..6957bff 100644 --- a/public/static/admin/css/welcome.css +++ b/public/static/admin/css/welcome.css @@ -102,4 +102,25 @@ .osc_link_color { color: #9B9B9B !important +} + +.status-label { + white-space: nowrap; +} + +.status-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 15px; + align-items: start; +} + +.status-grid .layui-card { + height: 100%; +} + +@media (max-width: 768px) { + .status-grid { + grid-template-columns: 1fr; + } } \ No newline at end of file