mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
style: Optimize cache cleaning interface styling (#10113)
This commit is contained in:
@@ -274,7 +274,7 @@ func doSystemClean(taskItem *task.Task) func(t *task.Task) error {
|
||||
}
|
||||
|
||||
dropWithTask(path.Join(global.Dir.BaseDir, snapshotTmpPath), taskItem, &size, &fileCount)
|
||||
dropWithTask(path.Join(global.Dir.LocalBackupDir, "system"), taskItem, &size, &fileCount)
|
||||
dropWithTask(path.Join(global.Dir.LocalBackupDir, "tmp/system"), taskItem, &size, &fileCount)
|
||||
|
||||
dropWithTask(path.Join(global.Dir.BaseDir, rollbackPath, "app"), taskItem, &size, &fileCount)
|
||||
dropWithTask(path.Join(global.Dir.BaseDir, rollbackPath, "website"), taskItem, &size, &fileCount)
|
||||
@@ -615,11 +615,11 @@ func dropWithTask(itemPath string, taskItem *task.Task, size *int64, count *int)
|
||||
*size += itemSize
|
||||
*count += itemCount
|
||||
if err := os.RemoveAll(itemPath); err != nil {
|
||||
taskItem.Log(i18n.GetMsgWithDetail("FileDropFailed", err.Error()))
|
||||
taskItem.Log(i18n.GetWithNameAndErr("FileDropFailed", itemPath, err))
|
||||
return
|
||||
}
|
||||
if itemCount != 0 {
|
||||
taskItem.Log(i18n.GetMsgWithMap("FileDropSuccess", map[string]interface{}{"count": itemCount, "size": common.LoadSizeUnit2F(float64(itemSize))}))
|
||||
taskItem.Log(i18n.GetMsgWithMap("FileDropSuccess", map[string]interface{}{"name": itemPath, "count": itemCount, "size": common.LoadSizeUnit2F(float64(itemSize))}))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,8 +108,8 @@ ErrFavoriteExist: 'This path has already been favorited'
|
||||
ErrInvalidChar: 'Illegal characters are not allowed'
|
||||
ErrPathNotDelete: 'The selected directory cannot be deleted'
|
||||
ErrLogFileToLarge: "The log file exceeds 500MB and cannot be opened"
|
||||
FileDropFailed: "File cleanup failed {{ .detail }}"
|
||||
FileDropSuccess: "File cleanup successful, cleaned {{ .count }} files, freed {{ .size }} disk space"
|
||||
FileDropFailed: "Failed to clean up file {{ .name }}: {{ .err }}"
|
||||
FileDropSuccess: "Successfully cleaned up file {{ .name }}, cleaned {{ .count }} files, freed {{ .size }} disk space"
|
||||
FileDropSum: "File cleanup completed successfully, total {{ .count }} files cleaned, total {{ .size }} disk space freed"
|
||||
|
||||
#website
|
||||
|
||||
@@ -108,8 +108,8 @@ ErrFavoriteExist: 'このパスはすでにお気に入りに登録されてい
|
||||
ErrInvalidChar: '不正な文字は許可されません'
|
||||
ErrPathNotDelete: '選択されたディレクトリは削除できません'
|
||||
ErrLogFileToLarge: "ログファイルが500MBを超えており、開くことができません"
|
||||
FileDropFailed: "ファイルのクリーンアップに失敗しました {{ .detail }}"
|
||||
FileDropSuccess: "ファイルのクリーンアップ成功、{{ .count }} ファイルを削除、{{ .size }} のディスク領域を解放"
|
||||
FileDropFailed: "ファイル {{ .name }} のクリーンアップに失敗しました: {{ .err }}"
|
||||
FileDropSuccess: "ファイル {{ .name }} のクリーンアップに成功しました、{{ .count }} ファイルを削除、{{ .size }} のディスク領域を解放"
|
||||
FileDropSum: "ファイルのクリーンアップが完了しました、合計 {{ .count }} ファイルを削除、合計 {{ .size }} のディスク領域を解放"
|
||||
|
||||
#website
|
||||
|
||||
@@ -108,8 +108,8 @@ ErrFavoriteExist: '이 경로는 이미 즐겨찾기되었습니다'
|
||||
ErrInvalidChar: '불법 문자는 허용되지 않습니다'
|
||||
ErrPathNotDelete: '선택한 디렉토리를 삭제할 수 없습니다'
|
||||
ErrLogFileToLarge: "로그 파일이 500MB를 초과하여 열 수 없습니다"
|
||||
FileDropFailed: "파일 정리 실패 {{ .detail }}"
|
||||
FileDropSuccess: "파일 정리 성공, {{ .count }}개 파일 삭제, {{ .size }} 디스크 공간 확보"
|
||||
FileDropFailed: "파일 {{ .name }} 정리 실패: {{ .err }}"
|
||||
FileDropSuccess: "파일 {{ .name }} 정리 성공, {{ .count }}개 파일 삭제, {{ .size }} 디스크 공간 확보"
|
||||
FileDropSum: "파일 정리 완료, 총 {{ .count }}개 파일 삭제, 총 {{ .size }} 디스크 공간 확보"
|
||||
|
||||
#웹사이트
|
||||
|
||||
@@ -111,8 +111,8 @@ ErrFavoriteExist: 'Laluan ini telah digemari'
|
||||
ErrInvalidChar: 'Aksara haram tidak dibenarkan'
|
||||
ErrPathNotDelete: 'Direktori yang dipilih tidak boleh dipadamkan'
|
||||
ErrLogFileTooLarge: "Fail log melebihi 500MB dan tidak boleh dibuka"
|
||||
FileDropFailed: "Pembersihan fail gagal {{ .detail }}"
|
||||
FileDropSuccess: "Pembersihan fail berjaya, {{ .count }} fail dibersihkan, {{ .size }} ruang cakera dibebaskan"
|
||||
FileDropFailed: "Gagal membersihkan fail {{ .name }}: {{ .err }}"
|
||||
FileDropSuccess: "Berjaya membersihkan fail {{ .name }}, {{ .count }} fail dibersihkan, {{ .size }} ruang cakera dibebaskan"
|
||||
FileDropSum: "Pembersihan fail selesai, sejumlah {{ .count }} fail dibersihkan, sejumlah {{ .size }} ruang cakera dibebaskan"
|
||||
|
||||
#laman web
|
||||
|
||||
@@ -111,8 +111,8 @@ ErrFavoriteExist: 'Este caminho já foi favorito'
|
||||
ErrInvalidChar: 'Caracteres ilegais não são permitidos'
|
||||
ErrPathNotDelete: 'O diretório selecionado não pode ser excluído'
|
||||
ErrLogFileToLarge: "Fail log melebihi 500MB, tidak boleh dibuka"
|
||||
FileDropFailed: "Falha na limpeza de arquivos {{ .detail }}"
|
||||
FileDropSuccess: "Limpeza de arquivos bem-sucedida, {{ .count }} arquivos removidos, {{ .size }} de espaço em disco liberado"
|
||||
FileDropFailed: "Falha ao limpar arquivo {{ .name }}: {{ .err }}"
|
||||
FileDropSuccess: "Arquivo {{ .name }} limpo com sucesso, {{ .count }} arquivos removidos, {{ .size }} de espaço em disco liberado"
|
||||
FileDropSum: "Limpeza de arquivos concluída com sucesso, total de {{ .count }} arquivos removidos, total de {{ .size }} de espaço em disco liberado"
|
||||
|
||||
#site
|
||||
|
||||
@@ -111,8 +111,8 @@ ErrFavoriteExist: 'Этот путь уже добавлен в избранно
|
||||
ErrInvalidChar: 'Недопустимые символы не допускаются'
|
||||
ErrPathNotDelete: 'Выбранный каталог не может быть удален'
|
||||
ErrLogFileToLarge: "Файл журнала превышает 500MB и не может быть открыт"
|
||||
FileDropFailed: "Очистка файлов не удалась {{ .detail }}"
|
||||
FileDropSuccess: "Очистка файлов успешна, удалено {{ .count }} файлов, освобождено {{ .size }} дискового пространства"
|
||||
FileDropFailed: "Не удалось очистить файл {{ .name }}: {{ .err }}"
|
||||
FileDropSuccess: "Файл {{ .name }} успешно очищен, удалено {{ .count }} файлов, освобождено {{ .size }} дискового пространства"
|
||||
FileDropSum: "Очистка файлов завершена успешно, всего удалено {{ .count }} файлов, освобождено {{ .size }} дискового пространства"
|
||||
|
||||
#веб-сайт
|
||||
|
||||
@@ -111,8 +111,8 @@ ErrFavoriteExist: 'Bu yol zaten favorilere eklendi'
|
||||
ErrInvalidChar: 'Yasak karakterlere izin verilmiyor'
|
||||
ErrPathNotDelete: 'Seçilen dizin silinemez'
|
||||
ErrLogFileToLarge: "Günlük dosyası 500MB'ı aşıyor ve açılamıyor"
|
||||
FileDropFailed: "Dosya temizleme başarısız {{ .detail }}"
|
||||
FileDropSuccess: "Dosya temizleme başarılı, {{ .count }} dosya silindi, {{ .size }} disk alanı boşaltıldı"
|
||||
FileDropFailed: "{{ .name }} dosyası temizlenemedi: {{ .err }}"
|
||||
FileDropSuccess: "{{ .name }} dosyası başarıyla temizlendi, {{ .count }} dosya silindi, {{ .size }} disk alanı boşaltıldı"
|
||||
FileDropSum: "Dosya temizleme tamamlandı, toplam {{ .count }} dosya silindi, toplam {{ .size }} disk alanı boşaltıldı"
|
||||
|
||||
|
||||
|
||||
@@ -107,8 +107,8 @@ ErrFavoriteExist: '已收藏此路徑'
|
||||
ErrInvalidChar: '禁止使用非法字元'
|
||||
ErrPathNotDelete: '所選目錄不可刪除'
|
||||
ErrLogFileToLarge: "日志文件超过 500M,無法打開"
|
||||
FileDropFailed: "文件清理失敗 {{ .detail }}"
|
||||
FileDropSuccess: "文件清理成功,清理 {{ .count }} 個文件,釋放 {{ .size }} 磁碟空間"
|
||||
FileDropFailed: "清理文件 {{ .name }} 失敗: {{ .err }}"
|
||||
FileDropSuccess: "清理文件 {{ .name }} 成功,清理 {{ .count }} 個文件,釋放 {{ .size }} 磁碟空間"
|
||||
FileDropSum: "文件清理完成,共清理 {{ .count }} 個文件,共釋放 {{ .size }} 磁碟空間"
|
||||
|
||||
#website
|
||||
|
||||
@@ -107,8 +107,8 @@ ErrFavoriteExist: "已收藏此路径"
|
||||
ErrInvalidChar: "禁止使用非法字符"
|
||||
ErrPathNotDelete: "所选目录不可删除"
|
||||
ErrLogFileToLarge: "日志文件超过 500M,无法打开"
|
||||
FileDropFailed: "文件清理失败 {{ .detail }}"
|
||||
FileDropSuccess: "文件清理成功,清理文件 {{ .count }},释放磁盘空间 {{ .size }}"
|
||||
FileDropFailed: "清理文件 {{ .name }} 失败 {{ .err }}"
|
||||
FileDropSuccess: "清理文件 {{ .name }} 成功,清理文件 {{ .count }},释放磁盘空间 {{ .size }}"
|
||||
FileDropSum: "文件清理成功,清理文件共计 {{ .count }},释放磁盘空间共计 {{ .size }}"
|
||||
|
||||
#website
|
||||
|
||||
@@ -462,8 +462,7 @@ html.dark {
|
||||
|
||||
.el-collapse-item__header {
|
||||
color: #ffffff;
|
||||
border: 1px solid var(--panel-main-bg-color-10);
|
||||
background-color: var(--panel-main-bg-color-9) !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.el-checkbox__input.is-checked .el-checkbox__inner::after {
|
||||
|
||||
Reference in New Issue
Block a user