2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 08:17:14 +08:00

refactor: 备份重构

This commit is contained in:
耗子
2024-10-13 17:43:36 +08:00
parent bf9c0bc12e
commit 5668bc1afd
18 changed files with 967 additions and 76 deletions

View File

@@ -47,7 +47,7 @@
"total": "累计上行 { sent } / 累计下行 { received }"
},
"disk": {
"title": "盘",
"title": "盘",
"current": "实时读取 { read }/s / 实时写入 { write }/s",
"total": "累计读取 { read } / 累计写入 { write }"
}

View File

@@ -57,7 +57,7 @@ const getRealtime = async () => {
netTotalRecv.value = netTotalRecvTemp
netCurrentSent.value = (netTotalSent.value - netTotalSentOld) / 3
netCurrentRecv.value = (netTotalRecv.value - netTotalRecvOld) / 3
// 计算盘读写
// 计算盘读写
let diskTotalReadTemp = 0
let diskTotalWriteTemp = 0
let diskTotalReadOld = diskTotalRead.value

View File

@@ -10,6 +10,7 @@ const route = useRoute()
const { id } = route.params
const setting = ref<WebsiteSetting>({
if: 0,
name: '',
ports: [],
ssl_ports: [],

View File

@@ -11,6 +11,7 @@ export interface Website {
}
export interface WebsiteSetting {
id: number
name: string
ports: number[]
ssl_ports: number[]
@@ -36,8 +37,3 @@ export interface WebsiteSetting {
raw: string
log: string
}
export interface Backup {
name: string
size: string
}