From 7309c02f0b9c8caacb4dae47a36edc16b0048e95 Mon Sep 17 00:00:00 2001 From: IanShaw027 Date: Tue, 21 Apr 2026 17:56:15 +0800 Subject: [PATCH] refactor(profile): split avatar and bindings cards --- .../profile/ProfileAccountBindingsCard.vue | 36 ++ .../user/profile/ProfileAvatarCard.vue | 280 ++++++++++++ .../ProfileIdentityBindingsSection.vue | 214 +++++---- .../user/profile/ProfileInfoCard.vue | 430 +----------------- .../__tests__/ProfileAvatarCard.spec.ts | 214 +++++++++ .../profile/__tests__/ProfileInfoCard.spec.ts | 257 +---------- frontend/src/i18n/locales/en.ts | 5 +- frontend/src/i18n/locales/zh.ts | 5 +- frontend/src/views/user/ProfileView.vue | 8 +- .../views/user/__tests__/ProfileView.spec.ts | 101 ++++ 10 files changed, 801 insertions(+), 749 deletions(-) create mode 100644 frontend/src/components/user/profile/ProfileAccountBindingsCard.vue create mode 100644 frontend/src/components/user/profile/ProfileAvatarCard.vue create mode 100644 frontend/src/components/user/profile/__tests__/ProfileAvatarCard.spec.ts create mode 100644 frontend/src/views/user/__tests__/ProfileView.spec.ts diff --git a/frontend/src/components/user/profile/ProfileAccountBindingsCard.vue b/frontend/src/components/user/profile/ProfileAccountBindingsCard.vue new file mode 100644 index 00000000..f1cf54a9 --- /dev/null +++ b/frontend/src/components/user/profile/ProfileAccountBindingsCard.vue @@ -0,0 +1,36 @@ + + + diff --git a/frontend/src/components/user/profile/ProfileAvatarCard.vue b/frontend/src/components/user/profile/ProfileAvatarCard.vue new file mode 100644 index 00000000..357c0f27 --- /dev/null +++ b/frontend/src/components/user/profile/ProfileAvatarCard.vue @@ -0,0 +1,280 @@ +