2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 20:57:19 +08:00

feat: 一堆调整

This commit is contained in:
2025-12-01 19:37:19 +08:00
parent a64a1ba5c8
commit 5fdce07190
28 changed files with 304 additions and 122 deletions

View File

@@ -1,25 +0,0 @@
import { http } from '@/utils'
export default {
// 面板信息
panel: (): any => http.Get('/dashboard/panel'),
// 首页应用
homeApps: (): any => http.Get('/dashboard/home_apps'),
// 实时信息
current: (nets: string[], disks: string[]): any =>
http.Post('/dashboard/current', { nets, disks }, { meta: { noAlert: true } }),
// 系统信息
systemInfo: (): any => http.Get('/dashboard/system_info'),
// 统计信息
countInfo: (): any => http.Get('/dashboard/count_info'),
// 已安装的数据库和PHP
installedDbAndPhp: (): any => http.Get('/dashboard/installed_db_and_php'),
// 检查更新
checkUpdate: (): any => http.Get('/dashboard/check_update'),
// 更新日志
updateInfo: (): any => http.Get('/dashboard/update_info'),
// 更新面板
update: (): any => http.Post('/dashboard/update'),
// 重启面板
restart: (): any => http.Post('/dashboard/restart')
}

View File

@@ -0,0 +1,25 @@
import { http } from '@/utils'
export default {
// 面板信息
panel: (): any => http.Get('/home/panel'),
// 首页应用
apps: (): any => http.Get('/home/apps'),
// 实时信息
current: (nets: string[], disks: string[]): any =>
http.Post('/home/current', { nets, disks }, { meta: { noAlert: true } }),
// 系统信息
systemInfo: (): any => http.Get('/home/system_info'),
// 统计信息
countInfo: (): any => http.Get('/home/count_info'),
// 已安装的数据库和PHP
installedDbAndPhp: (): any => http.Get('/home/installed_db_and_php'),
// 检查更新
checkUpdate: (): any => http.Get('/home/check_update'),
// 更新日志
updateInfo: (): any => http.Get('/home/update_info'),
// 更新面板
update: (): any => http.Post('/home/update'),
// 重启面板
restart: (): any => http.Post('/home/restart')
}