chore: fix missing dependencies
parent
046c8820ac
commit
f0f094a28d
|
@ -54,8 +54,5 @@
|
||||||
"vue-dompurify-html": "catalog:",
|
"vue-dompurify-html": "catalog:",
|
||||||
"vue-router": "catalog:",
|
"vue-router": "catalog:",
|
||||||
"vue3-signature": "catalog:"
|
"vue3-signature": "catalog:"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/crypto-js": "catalog:"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
|
||||||
import { useAppConfig } from '@vben/hooks';
|
import { useAppConfig } from '@vben/hooks';
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
// import CryptoJS from 'crypto-js';
|
|
||||||
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
||||||
import { baseRequestClient } from '#/api/request';
|
import { baseRequestClient } from '#/api/request';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
|
||||||
import { useAppConfig } from '@vben/hooks';
|
import { useAppConfig } from '@vben/hooks';
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
// import CryptoJS from 'crypto-js';
|
|
||||||
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
||||||
import { baseRequestClient } from '#/api/request';
|
import { baseRequestClient } from '#/api/request';
|
||||||
|
|
||||||
|
|
|
@ -44,15 +44,11 @@
|
||||||
"@vben/utils": "workspace:*",
|
"@vben/utils": "workspace:*",
|
||||||
"@vueuse/core": "catalog:",
|
"@vueuse/core": "catalog:",
|
||||||
"cropperjs": "catalog:",
|
"cropperjs": "catalog:",
|
||||||
"crypto-js": "catalog:",
|
|
||||||
"dayjs": "catalog:",
|
"dayjs": "catalog:",
|
||||||
"highlight.js": "catalog:",
|
"highlight.js": "catalog:",
|
||||||
"naive-ui": "catalog:",
|
"naive-ui": "catalog:",
|
||||||
"pinia": "catalog:",
|
"pinia": "catalog:",
|
||||||
"vue": "catalog:",
|
"vue": "catalog:",
|
||||||
"vue-router": "catalog:"
|
"vue-router": "catalog:"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/crypto-js": "catalog:"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { computed, unref } from 'vue';
|
||||||
import { useAppConfig } from '@vben/hooks';
|
import { useAppConfig } from '@vben/hooks';
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
// import CryptoJS from 'crypto-js';
|
|
||||||
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
import { createFile, getFilePresignedUrl, uploadFile } from '#/api/infra/file';
|
||||||
import { baseRequestClient } from '#/api/request';
|
import { baseRequestClient } from '#/api/request';
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
"theme-colors": "catalog:"
|
"theme-colors": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/crypto-js": "catalog:",
|
||||||
"@types/lodash.clonedeep": "catalog:",
|
"@types/lodash.clonedeep": "catalog:",
|
||||||
"@types/lodash.get": "catalog:",
|
"@types/lodash.get": "catalog:",
|
||||||
"@types/lodash.isequal": "catalog:",
|
"@types/lodash.isequal": "catalog:",
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
"@vben/types": "workspace:*",
|
"@vben/types": "workspace:*",
|
||||||
"@vueuse/core": "catalog:",
|
"@vueuse/core": "catalog:",
|
||||||
"@vueuse/integrations": "catalog:",
|
"@vueuse/integrations": "catalog:",
|
||||||
"crypto-js": "catalog:",
|
|
||||||
"json-bigint": "catalog:",
|
"json-bigint": "catalog:",
|
||||||
"qrcode": "catalog:",
|
"qrcode": "catalog:",
|
||||||
"tippy.js": "catalog:",
|
"tippy.js": "catalog:",
|
||||||
|
@ -50,7 +49,6 @@
|
||||||
"vue-tippy": "catalog:"
|
"vue-tippy": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/crypto-js": "catalog:",
|
|
||||||
"@types/qrcode": "catalog:"
|
"@types/qrcode": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
|
@ -14,7 +14,8 @@ import {
|
||||||
|
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
import { aesEncrypt } from './utils/ase';
|
import { AES } from '@vben-core/shared/utils';
|
||||||
|
|
||||||
import { resetSize } from './utils/util';
|
import { resetSize } from './utils/util';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -137,7 +138,7 @@ function canvasClick(e: any) {
|
||||||
// var flag = this.comparePos(this.fontPos, this.checkPosArr);
|
// var flag = this.comparePos(this.fontPos, this.checkPosArr);
|
||||||
// 发送后端请求
|
// 发送后端请求
|
||||||
const captchaVerification = secretKey.value
|
const captchaVerification = secretKey.value
|
||||||
? aesEncrypt(
|
? AES.encrypt(
|
||||||
`${backToken.value}---${JSON.stringify(checkPosArr)}`,
|
`${backToken.value}---${JSON.stringify(checkPosArr)}`,
|
||||||
secretKey.value,
|
secretKey.value,
|
||||||
)
|
)
|
||||||
|
@ -145,7 +146,7 @@ function canvasClick(e: any) {
|
||||||
const data = {
|
const data = {
|
||||||
captchaType: captchaType.value,
|
captchaType: captchaType.value,
|
||||||
pointJson: secretKey.value
|
pointJson: secretKey.value
|
||||||
? aesEncrypt(JSON.stringify(checkPosArr), secretKey.value)
|
? AES.encrypt(JSON.stringify(checkPosArr), secretKey.value)
|
||||||
: JSON.stringify(checkPosArr),
|
: JSON.stringify(checkPosArr),
|
||||||
token: backToken.value,
|
token: backToken.value,
|
||||||
};
|
};
|
||||||
|
|
|
@ -800,10 +800,6 @@ importers:
|
||||||
vue3-signature:
|
vue3-signature:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.2.4(vue@3.5.18(typescript@5.9.2))
|
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:
|
apps/web-ele:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -949,9 +945,6 @@ importers:
|
||||||
cropperjs:
|
cropperjs:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 1.6.2
|
version: 1.6.2
|
||||||
crypto-js:
|
|
||||||
specifier: 'catalog:'
|
|
||||||
version: 4.2.0
|
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 1.11.13
|
version: 1.11.13
|
||||||
|
@ -970,10 +963,6 @@ importers:
|
||||||
vue-router:
|
vue-router:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 4.5.1(vue@3.5.18(typescript@5.9.2))
|
version: 4.5.1(vue@3.5.18(typescript@5.9.2))
|
||||||
devDependencies:
|
|
||||||
'@types/crypto-js':
|
|
||||||
specifier: 'catalog:'
|
|
||||||
version: 4.2.2
|
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1408,6 +1397,9 @@ importers:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@types/crypto-js':
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 4.2.2
|
||||||
'@types/lodash.clonedeep':
|
'@types/lodash.clonedeep':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 4.5.9
|
version: 4.5.9
|
||||||
|
@ -1694,9 +1686,6 @@ importers:
|
||||||
'@vueuse/integrations':
|
'@vueuse/integrations':
|
||||||
specifier: 'catalog:'
|
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))
|
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:
|
json-bigint:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
@ -1719,9 +1708,6 @@ importers:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 6.7.1(vue@3.5.18(typescript@5.9.2))
|
version: 6.7.1(vue@3.5.18(typescript@5.9.2))
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@types/crypto-js':
|
|
||||||
specifier: 'catalog:'
|
|
||||||
version: 4.2.2
|
|
||||||
'@types/qrcode':
|
'@types/qrcode':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 1.5.5
|
version: 1.5.5
|
||||||
|
@ -10382,6 +10368,7 @@ packages:
|
||||||
source-map@0.8.0-beta.0:
|
source-map@0.8.0-beta.0:
|
||||||
resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
|
resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
|
||||||
engines: {node: '>= 8'}
|
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:
|
sourcemap-codec@1.4.8:
|
||||||
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
|
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
|
||||||
|
|
Loading…
Reference in New Issue