Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 12798720
authored
Jun 23, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update deps
1 parent
7574a591
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
40 additions
and
24 deletions
apps/web-antd/package.json
apps/web-antd/src/forward/request/index.ts
cspell.json
internal/lint-configs/eslint-config/package.json
internal/lint-configs/eslint-config/src/custom-config.ts
internal/vite-config/package.json
package.json
packages/@core/forward/preferences/package.json
packages/@core/forward/request/src/request-client/request-client.ts
packages/@core/forward/request/src/request-client/types.ts
packages/@core/forward/stores/package.json
packages/@core/shared/iconify/package.json
packages/@core/shared/toolkit/package.json
packages/@core/shared/typings/package.json
packages/@core/uikit/layout-ui/package.json
packages/@core/uikit/menu-ui/package.json
packages/@core/uikit/shadcn-ui/package.json
packages/@core/uikit/tabs-ui/package.json
packages/business/layouts/package.json
packages/business/universal-ui/package.json
packages/hooks/package.json
packages/locales/package.json
packages/types/package.json
pnpm-lock.yaml
website/package.json
apps/web-antd/package.json
View file @
1279872
...
...
@@ -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"
:
{
...
...
apps/web-antd/src/forward/request/index.ts
View file @
1279872
...
...
@@ -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
:
()
=>
{
handle
r
:
()
=>
{
const
accessStore
=
useAccessStore
();
return
accessStore
.
getAccessToken
;
},
// 默认
//
key: 'Authorization',
key
:
'Authorization'
,
};
},
});
...
...
cspell.json
View file @
1279872
...
...
@@ -3,6 +3,7 @@
"language"
:
"en,en-US"
,
"allowCompoundWords"
:
true
,
"words"
:
[
"esno"
,
"acmr"
,
"antd"
,
"brotli"
,
...
...
internal/lint-configs/eslint-config/package.json
View file @
1279872
...
...
@@ -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.1
3
"
,
"eslint-plugin-jsdoc"
:
"^48.2.1
5
"
,
"eslint-plugin-jsonc"
:
"^2.16.0"
,
"eslint-plugin-n"
:
"^17.9.0"
,
"eslint-plugin-no-only-tests"
:
"^3.1.0"
,
...
...
internal/lint-configs/eslint-config/src/custom-config.ts
View file @
1279872
...
...
@@ -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
};
internal/vite-config/package.json
View file @
1279872
...
...
@@ -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"
,
...
...
package.json
View file @
1279872
...
...
@@ -74,7 +74,7 @@
"unbuild"
:
"^2.0.0"
,
"vite"
:
"^5.3.1"
,
"vitest"
:
"^2.0.0-beta.10"
,
"vue-tsc"
:
"^2.0.2
1
"
"vue-tsc"
:
"^2.0.2
2
"
},
"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"
,
...
...
packages/@core/forward/preferences/package.json
View file @
1279872
...
...
@@ -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
"
}
}
packages/@core/forward/request/src/request-client/request-client.ts
View file @
1279872
...
...
@@ -72,7 +72,7 @@ class RequestClient {
const
authorization
=
this
.
makeAuthorization
?.(
config
);
if
(
authorization
)
{
config
.
headers
[
authorization
.
key
||
'Authorization'
]
=
authorization
.
handle
?.();
authorization
.
handle
r
?.();
}
return
config
;
},
this
.
errorHandler
);
...
...
packages/@core/forward/request/src/request-client/types.ts
View file @
1279872
...
...
@@ -7,7 +7,7 @@ type RequestContentType =
|
'multipart/form-data;charset=utf-8'
;
interface
MakeAuthorization
{
handle
:
()
=>
null
|
string
;
handle
r
:
()
=>
null
|
string
;
key
?:
string
;
}
...
...
packages/@core/forward/stores/package.json
View file @
1279872
...
...
@@ -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"
}
}
packages/@core/shared/iconify/package.json
View file @
1279872
...
...
@@ -22,6 +22,6 @@
},
"dependencies"
:
{
"@iconify/vue"
:
"^4.1.2"
,
"vue"
:
"^3.4.
29
"
"vue"
:
"^3.4.
30
"
}
}
packages/@core/shared/toolkit/package.json
View file @
1279872
...
...
@@ -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"
,
...
...
packages/@core/shared/typings/package.json
View file @
1279872
...
...
@@ -39,7 +39,7 @@
}
},
"dependencies"
:
{
"vue"
:
"^3.4.
29
"
,
"vue"
:
"^3.4.
30
"
,
"vue-router"
:
"^4.4.0"
}
}
packages/@core/uikit/layout-ui/package.json
View file @
1279872
...
...
@@ -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
"
}
}
packages/@core/uikit/menu-ui/package.json
View file @
1279872
...
...
@@ -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
"
}
}
packages/@core/uikit/shadcn-ui/package.json
View file @
1279872
...
...
@@ -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"
}
}
packages/@core/uikit/tabs-ui/package.json
View file @
1279872
...
...
@@ -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
"
}
}
packages/business/layouts/package.json
View file @
1279872
...
...
@@ -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"
:
{
...
...
packages/business/universal-ui/package.json
View file @
1279872
...
...
@@ -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"
:
{
...
...
packages/hooks/package.json
View file @
1279872
...
...
@@ -38,6 +38,6 @@
}
},
"dependencies"
:
{
"vue"
:
"^3.4.
29
"
"vue"
:
"^3.4.
30
"
}
}
packages/locales/package.json
View file @
1279872
...
...
@@ -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"
}
}
packages/types/package.json
View file @
1279872
...
...
@@ -40,7 +40,7 @@
},
"dependencies"
:
{
"@vben-core/typings"
:
"workspace:*"
,
"vue"
:
"^3.4.
29
"
,
"vue"
:
"^3.4.
30
"
,
"vue-router"
:
"^4.4.0"
}
}
pnpm-lock.yaml
View file @
1279872
This diff could not be displayed because it is too large.
website/package.json
View file @
1279872
...
...
@@ -9,6 +9,6 @@
},
"devDependencies"
:
{
"vitepress"
:
"^1.2.3"
,
"vue"
:
"^3.4.
29
"
"vue"
:
"^3.4.
30
"
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment