From b03f804e35adb490aa5862419f984fe19f6e91e0 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Tue, 14 Feb 2023 11:34:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + pnpm-lock.yaml | 12 ++++ .../business/Chat/layout/sider/Footer.vue | 5 +- .../business/Chat/layout/sider/index.vue | 30 ++-------- src/store/modules/app/helper.ts | 18 ++++++ src/store/modules/app/index.ts | 13 ++-- src/utils/crypto/index.ts | 18 ++++++ src/utils/is/index.ts | 55 +++++++++++++++++ src/utils/storage/index.ts | 1 + src/utils/storage/local.ts | 59 +++++++++++++++++++ 10 files changed, 177 insertions(+), 36 deletions(-) create mode 100644 src/store/modules/app/helper.ts create mode 100644 src/utils/crypto/index.ts create mode 100644 src/utils/is/index.ts create mode 100644 src/utils/storage/index.ts create mode 100644 src/utils/storage/local.ts diff --git a/package.json b/package.json index 6a2dd93..3fd7979 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,12 @@ "@commitlint/cli": "^17.4.3", "@commitlint/config-conventional": "^17.4.3", "@iconify/vue": "^4.1.0", + "@types/crypto-js": "^4.1.1", "@types/node": "^18.13.0", "@vitejs/plugin-vue": "^4.0.0", "autoprefixer": "^10.4.13", "axios": "^1.3.2", + "crypto-js": "^4.1.1", "eslint": "^8.34.0", "husky": "^8.0.3", "lint-staged": "^13.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b0b2e76..5bd96a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,10 +5,12 @@ specifiers: '@commitlint/cli': ^17.4.3 '@commitlint/config-conventional': ^17.4.3 '@iconify/vue': ^4.1.0 + '@types/crypto-js': ^4.1.1 '@types/node': ^18.13.0 '@vitejs/plugin-vue': ^4.0.0 autoprefixer: ^10.4.13 axios: ^1.3.2 + crypto-js: ^4.1.1 eslint: ^8.34.0 husky: ^8.0.3 lint-staged: ^13.1.1 @@ -35,10 +37,12 @@ devDependencies: '@commitlint/cli': 17.4.3 '@commitlint/config-conventional': 17.4.3 '@iconify/vue': 4.1.0_vue@3.2.47 + '@types/crypto-js': 4.1.1 '@types/node': 18.13.0 '@vitejs/plugin-vue': 4.0.0_vite@4.1.1+vue@3.2.47 autoprefixer: 10.4.13_postcss@8.4.21 axios: 1.3.2 + crypto-js: 4.1.1 eslint: 8.34.0 husky: 8.0.3 lint-staged: 13.1.1 @@ -697,6 +701,10 @@ packages: resolution: {integrity: sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==} dev: true + /@types/crypto-js/4.1.1: + resolution: {integrity: sha512-BG7fQKZ689HIoc5h+6D2Dgq1fABRa0RbBWKBd9SP/MVRVXROflpm5fhwyATX5duFmbStzyzyycPB8qUYKDH3NA==} + dev: true + /@types/json-schema/7.0.11: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} dev: true @@ -1529,6 +1537,10 @@ packages: which: 2.0.2 dev: true + /crypto-js/4.1.1: + resolution: {integrity: sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==} + dev: true + /css-render/0.15.12: resolution: {integrity: sha512-eWzS66patiGkTTik+ipO9qNGZ+uNuGyTmnz6/+EJIiFg8+3yZRpnMwgFo8YdXhQRsiePzehnusrxVvugNjXzbw==} dependencies: diff --git a/src/components/business/Chat/layout/sider/Footer.vue b/src/components/business/Chat/layout/sider/Footer.vue index a485c3a..cc72d0d 100644 --- a/src/components/business/Chat/layout/sider/Footer.vue +++ b/src/components/business/Chat/layout/sider/Footer.vue @@ -3,9 +3,8 @@ import { HoverButton, SvgIcon, UserAvatar } from '@/components/common'