chore: update deps

pull/48/MERGE
vben 2024-06-23 13:19:55 +08:00
parent 7574a5914c
commit 1279872089
25 changed files with 389 additions and 3136 deletions

View File

@ -42,7 +42,7 @@
"ant-design-vue": "^4.2.3", "ant-design-vue": "^4.2.3",
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"pinia": "2.1.7", "pinia": "2.1.7",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -10,23 +10,31 @@ import { useAccessStore } from '@vben-core/stores';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
interface HttpResponse<T = any> { interface HttpResponse<T = any> {
/**
* 0
* 0 means success, others means fail
*/
code: number; code: number;
message: string; message: string;
result: T; result: T;
} }
/**
*
* Create a request instance
*/
function createRequestClient() { function createRequestClient() {
const client = new RequestClient({ const client = new RequestClient({
baseURL: import.meta.env.VITE_GLOB_API_URL, baseURL: import.meta.env.VITE_GLOB_API_URL,
// 为每个请求携带 Authorization // 为每个请求携带 Authorization
makeAuthorization: () => { makeAuthorization: () => {
return { return {
handle: () => { handler: () => {
const accessStore = useAccessStore(); const accessStore = useAccessStore();
return accessStore.getAccessToken; return accessStore.getAccessToken;
}, },
// 默认 // 默认
// key: 'Authorization', key: 'Authorization',
}; };
}, },
}); });

View File

@ -3,6 +3,7 @@
"language": "en,en-US", "language": "en,en-US",
"allowCompoundWords": true, "allowCompoundWords": true,
"words": [ "words": [
"esno",
"acmr", "acmr",
"antd", "antd",
"brotli", "brotli",

View File

@ -38,7 +38,7 @@
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-i": "^2.29.1", "eslint-plugin-i": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.13", "eslint-plugin-jsdoc": "^48.2.15",
"eslint-plugin-jsonc": "^2.16.0", "eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^17.9.0", "eslint-plugin-n": "^17.9.0",
"eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-no-only-tests": "^3.1.0",

View File

@ -7,6 +7,13 @@ const customConfig: Linter.FlatConfig[] = [
'vue/require-default-prop': 'off', 'vue/require-default-prop': 'off',
}, },
}, },
{
files: ['apps/backend-mock/**/**'],
rules: {
'@typescript-eslint/no-extraneous-class': 'off',
'no-console': 'off',
},
},
]; ];
export { customConfig }; export { customConfig };

View File

@ -34,7 +34,7 @@
"resolve.exports": "^2.0.2", "resolve.exports": "^2.0.2",
"vite-plugin-lib-inject-css": "^2.1.1", "vite-plugin-lib-inject-css": "^2.1.1",
"vite-plugin-pwa": "^0.20.0", "vite-plugin-pwa": "^0.20.0",
"vite-plugin-vue-devtools": "^7.3.3" "vite-plugin-vue-devtools": "^7.3.4"
}, },
"devDependencies": { "devDependencies": {
"@types/html-minifier-terser": "^7.0.2", "@types/html-minifier-terser": "^7.0.2",

View File

@ -74,7 +74,7 @@
"unbuild": "^2.0.0", "unbuild": "^2.0.0",
"vite": "^5.3.1", "vite": "^5.3.1",
"vitest": "^2.0.0-beta.10", "vitest": "^2.0.0-beta.10",
"vue-tsc": "^2.0.21" "vue-tsc": "^2.0.22"
}, },
"engines": { "engines": {
"node": ">=20", "node": ">=20",
@ -85,7 +85,7 @@
"overrides": { "overrides": {
"@ctrl/tinycolor": "4.1.0", "@ctrl/tinycolor": "4.1.0",
"clsx": "2.1.1", "clsx": "2.1.1",
"vue": "^3.4.29" "vue": "^3.4.30"
}, },
"neverBuiltDependencies": [ "neverBuiltDependencies": [
"canvas", "canvas",

View File

@ -33,6 +33,6 @@
"@vben-core/toolkit": "workspace:*", "@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -72,7 +72,7 @@ class RequestClient {
const authorization = this.makeAuthorization?.(config); const authorization = this.makeAuthorization?.(config);
if (authorization) { if (authorization) {
config.headers[authorization.key || 'Authorization'] = config.headers[authorization.key || 'Authorization'] =
authorization.handle?.(); authorization.handler?.();
} }
return config; return config;
}, this.errorHandler); }, this.errorHandler);

View File

@ -7,7 +7,7 @@ type RequestContentType =
| 'multipart/form-data;charset=utf-8'; | 'multipart/form-data;charset=utf-8';
interface MakeAuthorization { interface MakeAuthorization {
handle: () => null | string; handler: () => null | string;
key?: string; key?: string;
} }

View File

@ -42,7 +42,7 @@
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"pinia": "2.1.7", "pinia": "2.1.7",
"pinia-plugin-persistedstate": "^3.2.1", "pinia-plugin-persistedstate": "^3.2.1",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
} }
} }

View File

@ -22,6 +22,6 @@
}, },
"dependencies": { "dependencies": {
"@iconify/vue": "^4.1.2", "@iconify/vue": "^4.1.2",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -37,7 +37,7 @@
}, },
"dependencies": { "dependencies": {
"@ctrl/tinycolor": "4.1.0", "@ctrl/tinycolor": "4.1.0",
"@vue/shared": "^3.4.29", "@vue/shared": "^3.4.30",
"clsx": "2.1.1", "clsx": "2.1.1",
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"defu": "^6.1.4", "defu": "^6.1.4",

View File

@ -39,7 +39,7 @@
} }
}, },
"dependencies": { "dependencies": {
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
} }
} }

View File

@ -41,6 +41,6 @@
"@vben-core/shadcn-ui": "workspace:*", "@vben-core/shadcn-ui": "workspace:*",
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -43,6 +43,6 @@
"@vben-core/toolkit": "workspace:*", "@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -49,7 +49,7 @@
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"radix-vue": "^1.8.4", "radix-vue": "^1.8.4",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-sonner": "^1.1.3" "vue-sonner": "^1.1.3"
} }
} }

View File

@ -42,6 +42,6 @@
"@vben-core/shadcn-ui": "workspace:*", "@vben-core/shadcn-ui": "workspace:*",
"@vben-core/toolkit": "workspace:*", "@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -48,7 +48,7 @@
"@vben-core/toolkit": "workspace:*", "@vben-core/toolkit": "workspace:*",
"@vben/locales": "workspace:*", "@vben/locales": "workspace:*",
"@vben/universal-ui": "workspace:*", "@vben/universal-ui": "workspace:*",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -49,7 +49,7 @@
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"@vueuse/integrations": "^10.11.0", "@vueuse/integrations": "^10.11.0",
"qrcode": "^1.5.3", "qrcode": "^1.5.3",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -38,6 +38,6 @@
} }
}, },
"dependencies": { "dependencies": {
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }

View File

@ -48,7 +48,7 @@
"dependencies": { "dependencies": {
"@intlify/core-base": "^9.13.1", "@intlify/core-base": "^9.13.1",
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-i18n": "^9.13.1" "vue-i18n": "^9.13.1"
} }
} }

View File

@ -40,7 +40,7 @@
}, },
"dependencies": { "dependencies": {
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"vue": "^3.4.29", "vue": "^3.4.30",
"vue-router": "^4.4.0" "vue-router": "^4.4.0"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,6 @@
}, },
"devDependencies": { "devDependencies": {
"vitepress": "^1.2.3", "vitepress": "^1.2.3",
"vue": "^3.4.29" "vue": "^3.4.30"
} }
} }