diff --git a/.gitignore b/.gitignore index 7ae12519..829cf166 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ dist-ssr *.njsproj *.sln *.sw? +.idea src-tauri/target diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 35410cac..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/HuLa.iml b/.idea/HuLa.iml deleted file mode 100644 index d15cb3c9..00000000 --- a/.idea/HuLa.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/bun.xml b/.idea/bun.xml deleted file mode 100644 index 56b40f0a..00000000 --- a/.idea/bun.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index 5b63ccd2..00000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index 79ee123c..00000000 --- a/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/git_toolbox_blame.xml b/.idea/git_toolbox_blame.xml deleted file mode 100644 index 7dc12496..00000000 --- a/.idea/git_toolbox_blame.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/icon.svg b/.idea/icon.svg deleted file mode 100644 index bd28d2c9..00000000 --- a/.idea/icon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549e..00000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index 7bf48bdf..00000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/libraries/ts_external_references.xml b/.idea/libraries/ts_external_references.xml deleted file mode 100644 index 565b9698..00000000 --- a/.idea/libraries/ts_external_references.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 27011fd4..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml deleted file mode 100644 index b0c1c68f..00000000 --- a/.idea/prettier.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddf..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.npmrc b/.npmrc index aa7b2e27..88899a60 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,4 @@ +# 配置npm镜像源 (华为云) registry=https://repo.huaweicloud.com/repository/npm/ +# 严格检查 package.json 中 "engines" 字段指定的版本要求 engine-strict=true \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 723e338d..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,18 +0,0 @@ -repos: -- repo: https://github.com/gitleaks/gitleaks - rev: v8.16.3 - hooks: - - id: gitleaks -- repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 3.0.0 - hooks: - - id: shellcheck -- repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.38.0 - hooks: - - id: eslint -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace diff --git a/public/avatar/001.png b/public/avatar/001.png new file mode 100644 index 00000000..5ac3a799 Binary files /dev/null and b/public/avatar/001.png differ diff --git a/public/avatar/002.png b/public/avatar/002.png new file mode 100644 index 00000000..5aa801ee Binary files /dev/null and b/public/avatar/002.png differ diff --git a/public/avatar/003.png b/public/avatar/003.png new file mode 100644 index 00000000..8c6e3d09 Binary files /dev/null and b/public/avatar/003.png differ diff --git a/public/avatar/004.png b/public/avatar/004.png new file mode 100644 index 00000000..02085016 Binary files /dev/null and b/public/avatar/004.png differ diff --git a/public/avatar/005.png b/public/avatar/005.png new file mode 100644 index 00000000..b755514e Binary files /dev/null and b/public/avatar/005.png differ diff --git a/public/avatar/006.png b/public/avatar/006.png new file mode 100644 index 00000000..b4a2cfb2 Binary files /dev/null and b/public/avatar/006.png differ diff --git a/public/avatar/007.png b/public/avatar/007.png new file mode 100644 index 00000000..a08a4114 Binary files /dev/null and b/public/avatar/007.png differ diff --git a/public/avatar/008.png b/public/avatar/008.png new file mode 100644 index 00000000..cd9e5c7b Binary files /dev/null and b/public/avatar/008.png differ diff --git a/public/avatar/009.png b/public/avatar/009.png new file mode 100644 index 00000000..c69e7845 Binary files /dev/null and b/public/avatar/009.png differ diff --git a/public/avatar/010.png b/public/avatar/010.png new file mode 100644 index 00000000..decc1bbe Binary files /dev/null and b/public/avatar/010.png differ diff --git a/public/avatar/011.png b/public/avatar/011.png new file mode 100644 index 00000000..66fe8b8a Binary files /dev/null and b/public/avatar/011.png differ diff --git a/public/avatar/012.png b/public/avatar/012.png new file mode 100644 index 00000000..47ebe457 Binary files /dev/null and b/public/avatar/012.png differ diff --git a/public/avatar/013.png b/public/avatar/013.png new file mode 100644 index 00000000..f50c90e2 Binary files /dev/null and b/public/avatar/013.png differ diff --git a/public/avatar/014.png b/public/avatar/014.png new file mode 100644 index 00000000..5f2bdf84 Binary files /dev/null and b/public/avatar/014.png differ diff --git a/public/avatar/015.png b/public/avatar/015.png new file mode 100644 index 00000000..fec35cbe Binary files /dev/null and b/public/avatar/015.png differ diff --git a/public/avatar/016.png b/public/avatar/016.png new file mode 100644 index 00000000..d43510df Binary files /dev/null and b/public/avatar/016.png differ diff --git a/public/avatar/017.png b/public/avatar/017.png new file mode 100644 index 00000000..a86c23e0 Binary files /dev/null and b/public/avatar/017.png differ diff --git a/public/avatar/018.png b/public/avatar/018.png new file mode 100644 index 00000000..6f22246c Binary files /dev/null and b/public/avatar/018.png differ diff --git a/public/avatar/019.png b/public/avatar/019.png new file mode 100644 index 00000000..f48e4149 Binary files /dev/null and b/public/avatar/019.png differ diff --git a/public/avatar/020.png b/public/avatar/020.png new file mode 100644 index 00000000..0f3ea766 Binary files /dev/null and b/public/avatar/020.png differ diff --git a/public/avatar/021.png b/public/avatar/021.png new file mode 100644 index 00000000..7b5541a3 Binary files /dev/null and b/public/avatar/021.png differ diff --git a/public/msg.png b/public/msg.png deleted file mode 100644 index f5761dad..00000000 Binary files a/public/msg.png and /dev/null differ diff --git a/src/components/common/AddFriendsModal.vue b/src/components/common/AddFriendsModal.vue index ac7210f7..910736f5 100644 --- a/src/components/common/AddFriendsModal.vue +++ b/src/components/common/AddFriendsModal.vue @@ -28,10 +28,7 @@ - - - {{ userInfo.name?.slice(0, 1) }} - +

{{ userInfo.name }}

@@ -64,9 +61,11 @@ import { useUserInfo } from '@/hooks/useCached.ts' import apis from '@/services/apis.ts' import { useCommon } from '@/hooks/useCommon.ts' import { useUserStore } from '@/stores/user.ts' +import { AvatarUtils } from '@/utils/avatarUtils' const globalStore = useGlobalStore() const userStore = useUserStore() +const avatarSrc = computed(() => AvatarUtils.getAvatarUrl(userStore.userInfo.avatar as string)) const { countGraphemes } = useCommon() const userInfo = ref(useUserInfo(globalStore.addFriendModalInfo.uid).value) const requestMsg = ref() diff --git a/src/components/common/InfoPopover.vue b/src/components/common/InfoPopover.vue index 8d6bf851..82090f36 100644 --- a/src/components/common/InfoPopover.vue +++ b/src/components/common/InfoPopover.vue @@ -3,24 +3,7 @@ - - - - {{ isCurrentUser.name }} - + @@ -64,20 +47,22 @@ - + :src="avatarSrc" /> diff --git a/src/components/rightBox/Details.vue b/src/components/rightBox/Details.vue index a71a29d0..b42ded24 100644 --- a/src/components/rightBox/Details.vue +++ b/src/components/rightBox/Details.vue @@ -1,15 +1,7 @@