From 5436d0bf10601342b2ef63a048ceaf3bd18f6e08 Mon Sep 17 00:00:00 2001 From: "Bestony@Homelab" Date: Thu, 2 Jul 2026 15:04:36 +0800 Subject: [PATCH] feat(admin): add group column settings --- frontend/src/i18n/locales/en.ts | 1 + frontend/src/i18n/locales/zh.ts | 1 + frontend/src/views/admin/GroupsView.vue | 128 ++++++- .../GroupsView.columnSettings.spec.ts | 328 ++++++++++++++++++ 4 files changed, 455 insertions(+), 3 deletions(-) create mode 100644 frontend/src/views/admin/__tests__/GroupsView.columnSettings.spec.ts diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 3469d3fff2..7935f598c8 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -2132,6 +2132,7 @@ export default { editGroup: 'Edit Group', deleteGroup: 'Delete Group', sortOrder: 'Sort', + columnSettings: 'Column Settings', sortOrderHint: 'Drag groups to adjust display order, groups at the top will be displayed first', sortOrderUpdated: 'Sort order updated', failedToUpdateSortOrder: 'Failed to update sort order', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 3fa1e1371d..25e99e3c96 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -2185,6 +2185,7 @@ export default { editGroup: '编辑分组', deleteGroup: '删除分组', sortOrder: '排序', + columnSettings: '列设置', sortOrderHint: '拖拽分组调整显示顺序,排在前面的分组会优先显示', sortOrderUpdated: '排序已更新', failedToUpdateSortOrder: '更新排序失败', diff --git a/frontend/src/views/admin/GroupsView.vue b/frontend/src/views/admin/GroupsView.vue index e18194313f..c26e0dd9b7 100644 --- a/frontend/src/views/admin/GroupsView.vue +++ b/frontend/src/views/admin/GroupsView.vue @@ -60,6 +60,38 @@ :class="loading ? 'animate-spin' : ''" /> +
+ +
+ +
+