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",
"dayjs": "^1.11.11",
"pinia": "2.1.7",
"vue": "^3.4.29",
"vue": "^3.4.30",
"vue-router": "^4.4.0"
},
"devDependencies": {

View File

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

View File

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

View File

@ -38,7 +38,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"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-n": "^17.9.0",
"eslint-plugin-no-only-tests": "^3.1.0",

View File

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

View File

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

View File

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

View File

@ -33,6 +33,6 @@
"@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*",
"@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);
if (authorization) {
config.headers[authorization.key || 'Authorization'] =
authorization.handle?.();
authorization.handler?.();
}
return config;
}, this.errorHandler);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -41,6 +41,6 @@
"@vben-core/shadcn-ui": "workspace:*",
"@vben-core/typings": "workspace:*",
"@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/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "^3.4.29"
"vue": "^3.4.30"
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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