chore: fix missing dependencies

pull/209/head
xingyu4j 2025-09-03 17:10:12 +08:00
parent 046c8820ac
commit f0f094a28d
10 changed files with 9 additions and 47 deletions

View File

@ -54,8 +54,5 @@
"vue-dompurify-html": "catalog:",
"vue-router": "catalog:",
"vue3-signature": "catalog:"
},
"devDependencies": {
"@types/crypto-js": "catalog:"
}
}

View File

@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
import { useAppConfig } from '@vben/hooks';
import { $t } from '@vben/locales';
// import CryptoJS from 'crypto-js';
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
import { baseRequestClient } from '#/api/request';

View File

@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
import { useAppConfig } from '@vben/hooks';
import { $t } from '@vben/locales';
// import CryptoJS from 'crypto-js';
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
import { baseRequestClient } from '#/api/request';

View File

@ -44,15 +44,11 @@
"@vben/utils": "workspace:*",
"@vueuse/core": "catalog:",
"cropperjs": "catalog:",
"crypto-js": "catalog:",
"dayjs": "catalog:",
"highlight.js": "catalog:",
"naive-ui": "catalog:",
"pinia": "catalog:",
"vue": "catalog:",
"vue-router": "catalog:"
},
"devDependencies": {
"@types/crypto-js": "catalog:"
}
}

View File

@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
import { useAppConfig } from '@vben/hooks';
import { $t } from '@vben/locales';
// import CryptoJS from 'crypto-js';
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
import { baseRequestClient } from '#/api/request';

View File

@ -96,6 +96,7 @@
"theme-colors": "catalog:"
},
"devDependencies": {
"@types/crypto-js": "catalog:",
"@types/lodash.clonedeep": "catalog:",
"@types/lodash.get": "catalog:",
"@types/lodash.isequal": "catalog:",

View File

@ -40,7 +40,6 @@
"@vben/types": "workspace:*",
"@vueuse/core": "catalog:",
"@vueuse/integrations": "catalog:",
"crypto-js": "catalog:",
"json-bigint": "catalog:",
"qrcode": "catalog:",
"tippy.js": "catalog:",
@ -50,7 +49,6 @@
"vue-tippy": "catalog:"
},
"devDependencies": {
"@types/crypto-js": "catalog:",
"@types/qrcode": "catalog:"
}
}

View File

@ -1,15 +0,0 @@
import CryptoJS from 'crypto-js';
/**
* @word
* @keyWord String
*/
export function aesEncrypt(word: string, keyWord = 'XwKsGlMcdPMEhR1B') {
const key = CryptoJS.enc.Utf8.parse(keyWord);
const src = CryptoJS.enc.Utf8.parse(word);
const encrypted = CryptoJS.AES.encrypt(src, key, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7,
});
return encrypted.toString();
}

View File

@ -14,7 +14,8 @@ import {
import { $t } from '@vben/locales';
import { aesEncrypt } from './utils/ase';
import { AES } from '@vben-core/shared/utils';
import { resetSize } from './utils/util';
/**
@ -137,7 +138,7 @@ function canvasClick(e: any) {
// var flag = this.comparePos(this.fontPos, this.checkPosArr);
//
const captchaVerification = secretKey.value
? aesEncrypt(
? AES.encrypt(
`${backToken.value}---${JSON.stringify(checkPosArr)}`,
secretKey.value,
)
@ -145,7 +146,7 @@ function canvasClick(e: any) {
const data = {
captchaType: captchaType.value,
pointJson: secretKey.value
? aesEncrypt(JSON.stringify(checkPosArr), secretKey.value)
? AES.encrypt(JSON.stringify(checkPosArr), secretKey.value)
: JSON.stringify(checkPosArr),
token: backToken.value,
};

View File

@ -800,10 +800,6 @@ importers:
vue3-signature:
specifier: 'catalog:'
version: 0.2.4(vue@3.5.18(typescript@5.9.2))
devDependencies:
'@types/crypto-js':
specifier: 'catalog:'
version: 4.2.2
apps/web-ele:
dependencies:
@ -949,9 +945,6 @@ importers:
cropperjs:
specifier: 'catalog:'
version: 1.6.2
crypto-js:
specifier: 'catalog:'
version: 4.2.0
dayjs:
specifier: 'catalog:'
version: 1.11.13
@ -970,10 +963,6 @@ importers:
vue-router:
specifier: 'catalog:'
version: 4.5.1(vue@3.5.18(typescript@5.9.2))
devDependencies:
'@types/crypto-js':
specifier: 'catalog:'
version: 4.2.2
docs:
dependencies:
@ -1408,6 +1397,9 @@ importers:
specifier: 'catalog:'
version: 0.1.0
devDependencies:
'@types/crypto-js':
specifier: 'catalog:'
version: 4.2.2
'@types/lodash.clonedeep':
specifier: 'catalog:'
version: 4.5.9
@ -1694,9 +1686,6 @@ importers:
'@vueuse/integrations':
specifier: 'catalog:'
version: 13.7.0(async-validator@4.2.5)(axios@1.11.0)(focus-trap@7.6.5)(jwt-decode@4.0.0)(nprogress@0.2.0)(qrcode@1.5.4)(sortablejs@1.15.6)(vue@3.5.18(typescript@5.9.2))
crypto-js:
specifier: 'catalog:'
version: 4.2.0
json-bigint:
specifier: 'catalog:'
version: 1.0.0
@ -1719,9 +1708,6 @@ importers:
specifier: 'catalog:'
version: 6.7.1(vue@3.5.18(typescript@5.9.2))
devDependencies:
'@types/crypto-js':
specifier: 'catalog:'
version: 4.2.2
'@types/qrcode':
specifier: 'catalog:'
version: 1.5.5
@ -10382,6 +10368,7 @@ packages:
source-map@0.8.0-beta.0:
resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
engines: {node: '>= 8'}
deprecated: The work that was done in this beta branch won't be included in future versions
sourcemap-codec@1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}