Skip to content

Commit 1279872

Browse files
committed
chore: update deps
1 parent 7574a59 commit 1279872

File tree

25 files changed

+391
-3138
lines changed

25 files changed

+391
-3138
lines changed

apps/web-antd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ant-design-vue": "^4.2.3",
4343
"dayjs": "^1.11.11",
4444
"pinia": "2.1.7",
45-
"vue": "^3.4.29",
45+
"vue": "^3.4.30",
4646
"vue-router": "^4.4.0"
4747
},
4848
"devDependencies": {

apps/web-antd/src/forward/request/index.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,31 @@ import { useAccessStore } from '@vben-core/stores';
1010
import { message } from 'ant-design-vue';
1111

1212
interface HttpResponse<T = any> {
13+
/**
14+
* 0 表示成功 其他表示失败
15+
* 0 means success, others means fail
16+
*/
1317
code: number;
1418
message: string;
1519
result: T;
1620
}
1721

22+
/**
23+
* 创建请求实例
24+
* Create a request instance
25+
*/
1826
function createRequestClient() {
1927
const client = new RequestClient({
2028
baseURL: import.meta.env.VITE_GLOB_API_URL,
2129
// 为每个请求携带 Authorization
2230
makeAuthorization: () => {
2331
return {
24-
handle: () => {
32+
handler: () => {
2533
const accessStore = useAccessStore();
2634
return accessStore.getAccessToken;
2735
},
2836
// 默认
29-
// key: 'Authorization',
37+
key: 'Authorization',
3038
};
3139
},
3240
});

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"language": "en,en-US",
44
"allowCompoundWords": true,
55
"words": [
6+
"esno",
67
"acmr",
78
"antd",
89
"brotli",

internal/lint-configs/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint-config-prettier": "^9.1.0",
3939
"eslint-plugin-eslint-comments": "^3.2.0",
4040
"eslint-plugin-i": "^2.29.1",
41-
"eslint-plugin-jsdoc": "^48.2.13",
41+
"eslint-plugin-jsdoc": "^48.2.15",
4242
"eslint-plugin-jsonc": "^2.16.0",
4343
"eslint-plugin-n": "^17.9.0",
4444
"eslint-plugin-no-only-tests": "^3.1.0",

internal/lint-configs/eslint-config/src/custom-config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ const customConfig: Linter.FlatConfig[] = [
77
'vue/require-default-prop': 'off',
88
},
99
},
10+
{
11+
files: ['apps/backend-mock/**/**'],
12+
rules: {
13+
'@typescript-eslint/no-extraneous-class': 'off',
14+
'no-console': 'off',
15+
},
16+
},
1017
];
1118

1219
export { customConfig };

internal/vite-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"resolve.exports": "^2.0.2",
3535
"vite-plugin-lib-inject-css": "^2.1.1",
3636
"vite-plugin-pwa": "^0.20.0",
37-
"vite-plugin-vue-devtools": "^7.3.3"
37+
"vite-plugin-vue-devtools": "^7.3.4"
3838
},
3939
"devDependencies": {
4040
"@types/html-minifier-terser": "^7.0.2",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"unbuild": "^2.0.0",
7575
"vite": "^5.3.1",
7676
"vitest": "^2.0.0-beta.10",
77-
"vue-tsc": "^2.0.21"
77+
"vue-tsc": "^2.0.22"
7878
},
7979
"engines": {
8080
"node": ">=20",
@@ -85,7 +85,7 @@
8585
"overrides": {
8686
"@ctrl/tinycolor": "4.1.0",
8787
"clsx": "2.1.1",
88-
"vue": "^3.4.29"
88+
"vue": "^3.4.30"
8989
},
9090
"neverBuiltDependencies": [
9191
"canvas",

packages/@core/forward/preferences/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"@vben-core/toolkit": "workspace:*",
3434
"@vben-core/typings": "workspace:*",
3535
"@vueuse/core": "^10.11.0",
36-
"vue": "^3.4.29"
36+
"vue": "^3.4.30"
3737
}
3838
}

packages/@core/forward/request/src/request-client/request-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class RequestClient {
7272
const authorization = this.makeAuthorization?.(config);
7373
if (authorization) {
7474
config.headers[authorization.key || 'Authorization'] =
75-
authorization.handle?.();
75+
authorization.handler?.();
7676
}
7777
return config;
7878
}, this.errorHandler);

packages/@core/forward/request/src/request-client/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type RequestContentType =
77
| 'multipart/form-data;charset=utf-8';
88

99
interface MakeAuthorization {
10-
handle: () => null | string;
10+
handler: () => null | string;
1111
key?: string;
1212
}
1313

0 commit comments

Comments
 (0)