feat(web): add storage dashboard and team retention settings

Add per-team storage breakdown table to the usage section (from
GET /api/v1/admin/usage teamStorage data). Add storage quota (MB)
and retention (hours) inline fields to the teams section, saving
via PUT /api/v1/teams/:id. Add i18n keys to all 21 locale files.
This commit is contained in:
SnapOtter
2026-06-13 21:20:12 +08:00
parent dd2a50799a
commit c7e9b1ddc6
23 changed files with 372 additions and 1 deletions
+10
View File
@@ -2801,6 +2801,12 @@ export const vi: TranslationKeys = {
nameRequired: "Tên nhóm là bắt buộc",
nameTooLong: "Tên nhóm phải tối đa 50 ký tự",
duplicateName: "Đã tồn tại nhóm có tên này",
teamStorageQuota: "Storage Quota (MB)",
teamStorageQuotaDesc: "Maximum storage for this team in MB. Leave empty for no limit.",
teamRetentionHours: "Retention (hours)",
teamRetentionHoursDesc:
"Processing file retention for this team. Leave empty to use global default.",
quotaSaved: "Team settings saved",
},
roles: {
heading: "Vai trò",
@@ -2882,6 +2888,10 @@ export const vi: TranslationKeys = {
storageHeading: "Library storage",
storageFiles: "{count} files",
unknownUser: "(unknown)",
storageByTeam: "Storage by Team",
teamColumn: "Team",
storageColumn: "Storage",
usersColumn: "Users",
},
apiKeys: {
heading: "Khóa API",