From b244f850e7d52bcd5025618fe8468d69ef27aa80 Mon Sep 17 00:00:00 2001 From: Bestony Date: Sat, 27 Jun 2026 15:14:13 +0800 Subject: [PATCH] feat(keys): add column settings --- frontend/src/i18n/locales/en.ts | 2 + frontend/src/i18n/locales/zh.ts | 2 + frontend/src/views/user/KeysView.vue | 129 +++++++- .../src/views/user/__tests__/KeysView.spec.ts | 306 ++++++++++++++++++ 4 files changed, 424 insertions(+), 15 deletions(-) create mode 100644 frontend/src/views/user/__tests__/KeysView.spec.ts diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 808cb36013..0d48c3386a 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -717,6 +717,8 @@ export default { }, allGroups: 'All Groups', allStatus: 'All Status', + columnSettings: 'Column Settings', + columnAlwaysVisible: 'This column is always visible', createKey: 'Create API Key', editKey: 'Edit API Key', deleteKey: 'Delete API Key', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 8413804e2c..b5d1572567 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -716,6 +716,8 @@ export default { }, allGroups: '全部分组', allStatus: '全部状态', + columnSettings: '列设置', + columnAlwaysVisible: '该列固定显示,不可隐藏', createKey: '创建密钥', editKey: '编辑密钥', deleteKey: '删除密钥', diff --git a/frontend/src/views/user/KeysView.vue b/frontend/src/views/user/KeysView.vue index 7ca0a1c787..1f4ab6ebaa 100644 --- a/frontend/src/views/user/KeysView.vue +++ b/frontend/src/views/user/KeysView.vue @@ -33,19 +33,51 @@