2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00

feat: 同步修改

This commit is contained in:
耗子
2024-10-12 22:05:58 +08:00
parent d18bf93571
commit 99cd473680
38 changed files with 388 additions and 551 deletions

View File

@@ -286,7 +286,7 @@ const getFilename = (path: string) => {
return parts.pop()!
}
const isArchive = (name: string) => {
const isCompress = (name: string) => {
const ext = getExt(name)
return ['zip', 'rar', '7z', 'tar', 'gz'].includes(ext)
}
@@ -323,7 +323,7 @@ export {
getExt,
getFilename,
getIconByExt,
isArchive,
isCompress,
languageByPath,
lastDirectory
}