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 4236e9cb
authored
Aug 01, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update deps
1 parent
407534bd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
24 additions
and
22 deletions
.npmrc
apps/web-antd/.env.production
apps/web-antd/package.json
apps/web-ele/.env.production
apps/web-ele/package.json
apps/web-naive/.env.production
apps/web-naive/package.json
internal/lint-configs/eslint-config/package.json
internal/tailwind-config/package.json
internal/vite-config/package.json
package.json
packages/@core/base/typings/package.json
packages/effects/common-ui/package.json
packages/effects/hooks/package.json
packages/effects/layouts/package.json
packages/stores/package.json
packages/types/package.json
packages/utils/package.json
pnpm-lock.yaml
website/src/guide/in-depth/access.md
website/src/guide/in-depth/features.md
website/src/guide/introduction/vben.md
.npmrc
View file @
4236e9c
registry = "https://registry.npmmirror.com"
#
registry = "https://registry.npmmirror.com"
public-hoist-pattern[]=husky
public-hoist-pattern[]=husky
public-hoist-pattern[]=eslint
public-hoist-pattern[]=eslint
public-hoist-pattern[]=prettier
public-hoist-pattern[]=prettier
public-hoist-pattern[]=prettier-plugin-tailwindcss
public-hoist-pattern[]=prettier-plugin-tailwindcss
public-hoist-pattern[]=lint-staged
public-hoist-pattern[]=lint-staged
public-hoist-pattern[]=stylelint
public-hoist-pattern[]=stylelint
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=@commitlint/*
public-hoist-pattern[]=@commitlint/*
public-hoist-pattern[]=czg
public-hoist-pattern[]=czg
...
...
apps/web-antd/.env.production
View file @
4236e9c
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
VITE_COMPRESS=none
# 是否开启 PWA
# 是否开启 PWA
VITE_PWA=
tru
e
VITE_PWA=
fals
e
# vue-router 的模式
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
VITE_ROUTER_HISTORY=hash
...
...
apps/web-antd/package.json
View file @
4236e9c
...
@@ -45,6 +45,6 @@
...
@@ -45,6 +45,6 @@
"dayjs"
:
"^1.11.12"
,
"dayjs"
:
"^1.11.12"
,
"pinia"
:
"2.1.7"
,
"pinia"
:
"2.1.7"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
apps/web-ele/.env.production
View file @
4236e9c
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
VITE_COMPRESS=none
# 是否开启 PWA
# 是否开启 PWA
VITE_PWA=
tru
e
VITE_PWA=
fals
e
# vue-router 的模式
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
VITE_ROUTER_HISTORY=hash
...
...
apps/web-ele/package.json
View file @
4236e9c
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"element-plus"
:
"^2.7.8"
,
"element-plus"
:
"^2.7.8"
,
"pinia"
:
"2.1.7"
,
"pinia"
:
"2.1.7"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"unplugin-element-plus"
:
"^0.8.0"
"unplugin-element-plus"
:
"^0.8.0"
...
...
apps/web-naive/.env.production
View file @
4236e9c
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
...
@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
VITE_COMPRESS=none
# 是否开启 PWA
# 是否开启 PWA
VITE_PWA=
tru
e
VITE_PWA=
fals
e
# vue-router 的模式
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
VITE_ROUTER_HISTORY=hash
...
...
apps/web-naive/package.json
View file @
4236e9c
...
@@ -44,6 +44,6 @@
...
@@ -44,6 +44,6 @@
"naive-ui"
:
"^2.39.0"
,
"naive-ui"
:
"^2.39.0"
,
"pinia"
:
"2.1.7"
,
"pinia"
:
"2.1.7"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
internal/lint-configs/eslint-config/package.json
View file @
4236e9c
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
"eslint-plugin-unused-imports"
:
"^4.0.1"
,
"eslint-plugin-unused-imports"
:
"^4.0.1"
,
"eslint-plugin-vitest"
:
"^0.5.4"
,
"eslint-plugin-vitest"
:
"^0.5.4"
,
"eslint-plugin-vue"
:
"^9.27.0"
,
"eslint-plugin-vue"
:
"^9.27.0"
,
"globals"
:
"^15.
8
.0"
,
"globals"
:
"^15.
9
.0"
,
"jsonc-eslint-parser"
:
"^2.4.0"
,
"jsonc-eslint-parser"
:
"^2.4.0"
,
"vue-eslint-parser"
:
"^9.4.3"
"vue-eslint-parser"
:
"^9.4.3"
}
}
...
...
internal/tailwind-config/package.json
View file @
4236e9c
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
"tailwindcss"
:
"^3.4.3"
"tailwindcss"
:
"^3.4.3"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@iconify/json"
:
"^2.2.23
2
"
,
"@iconify/json"
:
"^2.2.23
3
"
,
"@iconify/tailwind"
:
"^1.1.2"
,
"@iconify/tailwind"
:
"^1.1.2"
,
"@tailwindcss/nesting"
:
"0.0.0-insiders.565cd3e"
,
"@tailwindcss/nesting"
:
"0.0.0-insiders.565cd3e"
,
"@tailwindcss/typography"
:
"^0.5.13"
,
"@tailwindcss/typography"
:
"^0.5.13"
,
...
...
internal/vite-config/package.json
View file @
4236e9c
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"@vitejs/plugin-vue-jsx"
:
"^4.0.0"
,
"@vitejs/plugin-vue-jsx"
:
"^4.0.0"
,
"dayjs"
:
"^1.11.12"
,
"dayjs"
:
"^1.11.12"
,
"dotenv"
:
"^16.4.5"
,
"dotenv"
:
"^16.4.5"
,
"rollup"
:
"^4.19.
1
"
,
"rollup"
:
"^4.19.
2
"
,
"rollup-plugin-visualizer"
:
"^5.12.0"
,
"rollup-plugin-visualizer"
:
"^5.12.0"
,
"sass"
:
"^1.77.8"
,
"sass"
:
"^1.77.8"
,
"vite"
:
"^5.3.5"
,
"vite"
:
"^5.3.5"
,
...
...
package.json
View file @
4236e9c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
"bootstrap"
:
"pnpm install"
,
"bootstrap"
:
"pnpm install"
,
"build"
:
"cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build"
,
"build"
:
"cross-env
TURBO_UI=1
NODE_OPTIONS=--max-old-space-size=8192 turbo build"
,
"build:analyze"
:
"turbo build:analyze"
,
"build:analyze"
:
"turbo build:analyze"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"changeset"
:
"pnpm exec changeset"
,
"changeset"
:
"pnpm exec changeset"
,
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
"is-ci"
:
"^3.0.1"
,
"is-ci"
:
"^3.0.1"
,
"jsdom"
:
"^24.1.1"
,
"jsdom"
:
"^24.1.1"
,
"rimraf"
:
"^6.0.1"
,
"rimraf"
:
"^6.0.1"
,
"tailwindcss"
:
"^3.4.7"
,
"turbo"
:
"^2.0.11"
,
"turbo"
:
"^2.0.11"
,
"typescript"
:
"^5.5.4"
,
"typescript"
:
"^5.5.4"
,
"unbuild"
:
"^2.0.0"
,
"unbuild"
:
"^2.0.0"
,
...
...
packages/@core/base/typings/package.json
View file @
4236e9c
...
@@ -39,6 +39,6 @@
...
@@ -39,6 +39,6 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
packages/effects/common-ui/package.json
View file @
4236e9c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"@vueuse/integrations"
:
"^10.11.0"
,
"@vueuse/integrations"
:
"^10.11.0"
,
"qrcode"
:
"^1.5.3"
,
"qrcode"
:
"^1.5.3"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@types/qrcode"
:
"^1.5.5"
"@types/qrcode"
:
"^1.5.5"
...
...
packages/effects/hooks/package.json
View file @
4236e9c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
"@vben/types"
:
"workspace:*"
,
"@vben/types"
:
"workspace:*"
,
"@vben/utils"
:
"workspace:*"
,
"@vben/utils"
:
"workspace:*"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
,
"vue-router"
:
"^4.4.
2
"
,
"watermark-js-plus"
:
"^1.5.2"
"watermark-js-plus"
:
"^1.5.2"
}
}
}
}
packages/effects/layouts/package.json
View file @
4236e9c
...
@@ -34,6 +34,6 @@
...
@@ -34,6 +34,6 @@
"@vben/utils"
:
"workspace:*"
,
"@vben/utils"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.11.0"
,
"@vueuse/core"
:
"^10.11.0"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
packages/stores/package.json
View file @
4236e9c
...
@@ -25,6 +25,6 @@
...
@@ -25,6 +25,6 @@
"pinia"
:
"2.1.7"
,
"pinia"
:
"2.1.7"
,
"pinia-plugin-persistedstate"
:
"^3.2.1"
,
"pinia-plugin-persistedstate"
:
"^3.2.1"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
packages/types/package.json
View file @
4236e9c
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
"dependencies"
:
{
"dependencies"
:
{
"@vben-core/typings"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"vue"
:
"^3.4.35"
,
"vue"
:
"^3.4.35"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
packages/utils/package.json
View file @
4236e9c
...
@@ -24,6 +24,6 @@
...
@@ -24,6 +24,6 @@
"dependencies"
:
{
"dependencies"
:
{
"@vben-core/shared"
:
"workspace:*"
,
"@vben-core/shared"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"vue-router"
:
"^4.4.
1
"
"vue-router"
:
"^4.4.
2
"
}
}
}
}
pnpm-lock.yaml
View file @
4236e9c
This diff is collapsed.
Click to expand it.
website/src/guide/in-depth/access.md
View file @
4236e9c
...
@@ -73,11 +73,11 @@ authStore.setUserInfo(userInfo);
...
@@ -73,11 +73,11 @@ authStore.setUserInfo(userInfo);
**实现原理**
: 是通过接口动态生成路由表,且遵循一定的数据结构返回。前端根据需要处理该数据为可识别的结构,再通过 router.addRoutes 添加到路由实例,实现权限的动态生成。
**实现原理**
: 是通过接口动态生成路由表,且遵循一定的数据结构返回。前端根据需要处理该数据为可识别的结构,再通过 router.addRoutes 添加到路由实例,实现权限的动态生成。
**缺点**
:
权限相对不自由,如果后台改动角色,前台也需要跟着改动。适合角色较固定的系统
**缺点**
:
后端需要提供符合规范的数据结构,前端需要处理数据结构,适合权限较为复杂的系统。
### 步骤
### 步骤
-
确保当前模式为
前
端访问控制模式
-
确保当前模式为
后
端访问控制模式
调整对应应用目录下的
`preferences.ts`
,确保
`accessMode='backend'`
。
调整对应应用目录下的
`preferences.ts`
,确保
`accessMode='backend'`
。
...
...
website/src/guide/in-depth/features.md
View file @
4236e9c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
## 登录认证过期
## 登录认证过期
当接口返回
401
状态码时,框架会认为登录认证过期,登录超时会跳转到登录页或者打开登录弹窗。在应用目录下的
`preferences.ts`
可以配置:
当接口返回
`401`
状态码时,框架会认为登录认证过期,登录超时会跳转到登录页或者打开登录弹窗。在应用目录下的
`preferences.ts`
可以配置:
### 跳转登录页面
### 跳转登录页面
...
...
website/src/guide/introduction/vben.md
View file @
4236e9c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
-
**最新技术栈**
:使用
`Vue3`
、
`Vite`
、
`TypeScript`
等前端前沿技术开发。
-
**最新技术栈**
:使用
`Vue3`
、
`Vite`
、
`TypeScript`
等前端前沿技术开发。
-
**国际化**
:内置完善的国际化方案,支持多语言切换。
-
**国际化**
:内置完善的国际化方案,支持多语言切换。
-
**权限验证**
:完善的权限验证方案,按钮级别权限控制。
-
**权限验证**
:完善的权限验证方案,按钮级别权限控制。
-
**多主题**
:内置多种主题配置&黑暗
某事
,满足个性化需求。
-
**多主题**
:内置多种主题配置&黑暗
模式
,满足个性化需求。
-
**动态菜单**
:支持动态菜单,可以根据权限配置显示菜单。
-
**动态菜单**
:支持动态菜单,可以根据权限配置显示菜单。
-
**Mock 数据**
:基于 Nitro 的本地高性能 Mock 数据方案。
-
**Mock 数据**
:基于 Nitro 的本地高性能 Mock 数据方案。
-
**组件丰富**
:提供了丰富的组件,可以满足大部分的业务需求。
-
**组件丰富**
:提供了丰富的组件,可以满足大部分的业务需求。
...
...
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