From dcf33b9276def97ff7dc8975897dada94c6c03c7 Mon Sep 17 00:00:00 2001 From: Shiina Kin Date: Mon, 11 Nov 2024 22:32:18 +0800 Subject: [PATCH] feat(ui): add user overview - create OverviewView.vue for displaying user image and album details - integrate i18n for displaying text elements in user overview - use API client to fetch user data and display storage space details --- ui/src/locales/zh_cn.yaml | 9 ++ .../userField/common/OverviewView.vue | 128 ++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 ui/src/views/structure/userField/common/OverviewView.vue diff --git a/ui/src/locales/zh_cn.yaml b/ui/src/locales/zh_cn.yaml index 1c5fe004..a514636b 100644 --- a/ui/src/locales/zh_cn.yaml +++ b/ui/src/locales/zh_cn.yaml @@ -47,6 +47,15 @@ message: userMenuAdminField: "管理后台" userMenuLogout: "退出登录" userMenuLogoutSuccess: "登出成功" +# userOverviewView + userOverviewImageCount: "图片数量" + userOverviewAlbumCount: "相册数量" + userOverviewUsedSpace: "已用空间" + userOverviewUsableSpace: "可用空间" + userOverviewSpaceSizeUnit: "MB" + userOverviewImageCountUnit: "张" + userOverviewAlbumCountUnit: "个" + userOverviewUsableSpaceTip: "总空间 - 已用空间" # dragUploader dragUploaderUsageTip: "点击或拖拽文件到此处上传" dragUploaderAllowedFileTypeTip: "支持的文件类型:" diff --git a/ui/src/views/structure/userField/common/OverviewView.vue b/ui/src/views/structure/userField/common/OverviewView.vue new file mode 100644 index 00000000..7a2ab251 --- /dev/null +++ b/ui/src/views/structure/userField/common/OverviewView.vue @@ -0,0 +1,128 @@ + + + + +