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 e650a0b8
authored
Jun 02, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update deps
1 parent
6d4991d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
133 additions
and
120 deletions
apps/antd-view/src/preferences.ts
apps/antd-view/src/router/guard.ts
apps/antd-view/src/router/routes/_essential.ts
apps/antd-view/src/router/routes/dynamic/root.ts
internal/lint-configs/commitlint-config/tsconfig.json
internal/lint-configs/eslint-config/package.json
internal/lint-configs/eslint-config/tsconfig.json
internal/lint-configs/lint-staged-config/tsconfig.json
internal/lint-configs/prettier-config/tsconfig.json
internal/lint-configs/stylelint-config/package.json
internal/lint-configs/stylelint-config/tsconfig.json
internal/node-utils/tsconfig.json
internal/tailwind-config/package.json
internal/tailwind-config/tsconfig.json
internal/vite-config/tsconfig.json
package.json
packages/@vben-core/forward/helpers/src/generator-menus.test.ts
packages/@vben-core/forward/helpers/src/generator-menus.ts
packages/@vben-core/forward/helpers/tsconfig.json
packages/@vben-core/forward/preferences/tsconfig.json
packages/@vben-core/forward/request/tsconfig.json
packages/@vben-core/shared/chche/tsconfig.json
packages/@vben-core/shared/design-tokens/tsconfig.json
packages/@vben-core/shared/design/tsconfig.json
packages/@vben-core/shared/iconify/tsconfig.json
packages/@vben-core/shared/toolkit/tsconfig.json
packages/@vben-core/shared/typings/src/menu-record.ts
packages/@vben-core/shared/typings/src/vue-router.d.ts
packages/@vben-core/shared/typings/tsconfig.json
packages/@vben-core/uikit/layout-ui/tsconfig.json
packages/@vben-core/uikit/menu-ui/tsconfig.json
packages/@vben-core/uikit/shadcn-ui/package.json
packages/@vben-core/uikit/shadcn-ui/tsconfig.json
packages/@vben-core/uikit/tabs-ui/tsconfig.json
packages/business/common-ui/src/fallback/icons/fallback-icon.vue
packages/business/common-ui/src/fallback/icons/icon-403.vue
packages/business/common-ui/src/fallback/icons/icon-500.vue
packages/business/common-ui/src/spinner/spinner.vue
packages/business/common-ui/tsconfig.json
packages/business/layouts/src/iframe/iframe-router-view.vue
packages/business/layouts/tsconfig.json
packages/constants/tsconfig.json
packages/hooks/tsconfig.json
packages/icons/tsconfig.json
packages/locales/tsconfig.json
packages/styles/tsconfig.json
packages/types/tsconfig.json
packages/utils/tsconfig.json
pnpm-lock.yaml
scripts/vsh/tsconfig.json
turbo.json
website/package.json
apps/antd-view/src/preferences.ts
View file @
e650a0b
...
@@ -5,8 +5,4 @@ import type { Preferences } from '@vben-core/preferences';
...
@@ -5,8 +5,4 @@ import type { Preferences } from '@vben-core/preferences';
* @description 项目配置文件
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
*/
*/
export
const
overridesPreferences
:
DeepPartial
<
Preferences
>
=
{
export
const
overridesPreferences
:
DeepPartial
<
Preferences
>
=
{};
app
:
{
name
:
'Vben Admin'
,
},
};
apps/antd-view/src/router/guard.ts
View file @
e650a0b
...
@@ -10,9 +10,6 @@ import { useTitle } from '@vueuse/core';
...
@@ -10,9 +10,6 @@ import { useTitle } from '@vueuse/core';
import
{
dynamicRoutes
}
from
'@/router/routes'
;
import
{
dynamicRoutes
}
from
'@/router/routes'
;
// 不需要权限的页面白名单
const
WHITE_ROUTE_NAMES
=
new
Set
<
string
>
([]);
/**
/**
* 通用守卫配置
* 通用守卫配置
* @param router
* @param router
...
@@ -67,12 +64,6 @@ function setupAccessGuard(router: Router) {
...
@@ -67,12 +64,6 @@ function setupAccessGuard(router: Router) {
return
true
;
return
true
;
}
}
// 白名单路由列表检查
// TODO: 不是很需要,通过 ignoreAccess 也可以做到,考虑删除
if
(
WHITE_ROUTE_NAMES
.
has
(
to
.
name
as
string
))
{
return
true
;
}
// 没有访问权限,跳转登录页面
// 没有访问权限,跳转登录页面
if
(
to
.
fullPath
!==
LOGIN_PATH
)
{
if
(
to
.
fullPath
!==
LOGIN_PATH
)
{
return
loginPageMeta
(
to
);
return
loginPageMeta
(
to
);
...
@@ -99,11 +90,10 @@ function setupAccessGuard(router: Router) {
...
@@ -99,11 +90,10 @@ function setupAccessGuard(router: Router) {
// 保存菜单信息和路由信息
// 保存菜单信息和路由信息
accessStore
.
setAccessMenus
(
menus
);
accessStore
.
setAccessMenus
(
menus
);
accessStore
.
setAccessRoutes
(
routes
);
accessStore
.
setAccessRoutes
(
routes
);
const
redirectPath
=
(
from
.
query
.
redirect
||
to
.
path
)
as
string
;
const
redirectPath
=
(
from
.
query
.
redirect
??
to
.
path
)
as
string
;
const
redirect
=
decodeURIComponent
(
redirectPath
);
return
{
return
{
path
:
redirect
,
path
:
decodeURIComponent
(
redirectPath
)
,
replace
:
true
,
replace
:
true
,
};
};
});
});
...
...
apps/antd-view/src/router/routes/_essential.ts
View file @
e650a0b
...
@@ -74,7 +74,7 @@ const essentialRoutes: RouteRecordRaw[] = [
...
@@ -74,7 +74,7 @@ const essentialRoutes: RouteRecordRaw[] = [
hideInBreadcrumb
:
true
,
hideInBreadcrumb
:
true
,
hideInMenu
:
true
,
hideInMenu
:
true
,
hideInTab
:
true
,
hideInTab
:
true
,
ignoreAccess
:
true
,
//
ignoreAccess: true,
title
:
'Fallback'
,
title
:
'Fallback'
,
},
},
name
:
'Fallback'
,
name
:
'Fallback'
,
...
...
apps/antd-view/src/router/routes/dynamic/root.ts
View file @
e650a0b
...
@@ -7,7 +7,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -7,7 +7,7 @@ const routes: RouteRecordRaw[] = [
component
:
BasicLayout
,
component
:
BasicLayout
,
meta
:
{
meta
:
{
hideChildrenInMenu
:
true
,
hideChildrenInMenu
:
true
,
order
No
:
-
1
,
order
:
-
1
,
title
:
'首页'
,
title
:
'首页'
,
},
},
name
:
'Home'
,
name
:
'Home'
,
...
...
internal/lint-configs/commitlint-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/lint-configs/eslint-config/package.json
View file @
e650a0b
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
"devDependencies"
:
{
"devDependencies"
:
{
"@eslint/js"
:
"^9.4.0"
,
"@eslint/js"
:
"^9.4.0"
,
"@types/eslint"
:
"^8.56.10"
,
"@types/eslint"
:
"^8.56.10"
,
"@typescript-eslint/eslint-plugin"
:
"^7.1
1
.0"
,
"@typescript-eslint/eslint-plugin"
:
"^7.1
2
.0"
,
"@typescript-eslint/parser"
:
"^7.1
1
.0"
,
"@typescript-eslint/parser"
:
"^7.1
2
.0"
,
"eslint"
:
"^8.57.0"
,
"eslint"
:
"^8.57.0"
,
"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"
,
...
...
internal/lint-configs/eslint-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/lint-configs/lint-staged-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/lint-configs/prettier-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/lint-configs/stylelint-config/package.json
View file @
e650a0b
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"dependencies"
:
{
"dependencies"
:
{
"@stylistic/stylelint-plugin"
:
"^2.1.2"
,
"@stylistic/stylelint-plugin"
:
"^2.1.2"
,
"stylelint-config-recess-order"
:
"^5.0.1"
,
"stylelint-config-recess-order"
:
"^5.0.1"
,
"stylelint-scss"
:
"^6.3.
0
"
"stylelint-scss"
:
"^6.3.
1
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"postcss"
:
"^8.4.38"
,
"postcss"
:
"^8.4.38"
,
...
...
internal/lint-configs/stylelint-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/node-utils/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/tailwind-config/package.json
View file @
e650a0b
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
"tailwindcss"
:
"^3.4.3"
"tailwindcss"
:
"^3.4.3"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@iconify/json"
:
"^2.2.21
5
"
,
"@iconify/json"
:
"^2.2.21
6
"
,
"@iconify/tailwind"
:
"^1.1.1"
,
"@iconify/tailwind"
:
"^1.1.1"
,
"@tailwindcss/forms"
:
"^0.5.7"
,
"@tailwindcss/forms"
:
"^0.5.7"
,
"@tailwindcss/nesting"
:
"0.0.0-insiders.565cd3e"
,
"@tailwindcss/nesting"
:
"0.0.0-insiders.565cd3e"
,
...
...
internal/tailwind-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
internal/vite-config/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
package.json
View file @
e650a0b
...
@@ -16,14 +16,15 @@
...
@@ -16,14 +16,15 @@
"monorepo"
,
"monorepo"
,
"turbo"
,
"turbo"
,
"vben"
,
"vben"
,
"vben admin"
,
"vben pro"
,
"vben admin pro"
,
"vue"
,
"vue"
,
"vue admin"
,
"vue admin"
,
"vue3"
"vue3"
],
],
"scripts"
:
{
"scripts"
:
{
"bootstrap"
:
"pnpm install"
,
"bootstrap"
:
"pnpm install"
,
"build"
:
"cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build
&& pnpm install -s
"
,
"build"
:
"cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"changeset"
:
"pnpm exec changeset"
,
"changeset"
:
"pnpm exec changeset"
,
"check"
:
"pnpm run check:dep && pnpm run check:circular && pnpm run check:type"
,
"check"
:
"pnpm run check:dep && pnpm run check:circular && pnpm run check:type"
,
...
@@ -47,7 +48,7 @@
...
@@ -47,7 +48,7 @@
"@changesets/cli"
:
"^2.27.5"
,
"@changesets/cli"
:
"^2.27.5"
,
"@ls-lint/ls-lint"
:
"^2.2.3"
,
"@ls-lint/ls-lint"
:
"^2.2.3"
,
"@types/jsdom"
:
"^21.1.7"
,
"@types/jsdom"
:
"^21.1.7"
,
"@types/node"
:
"^20.14.
0
"
,
"@types/node"
:
"^20.14.
1
"
,
"@vben/commitlint-config"
:
"workspace:*"
,
"@vben/commitlint-config"
:
"workspace:*"
,
"@vben/eslint-config"
:
"workspace:*"
,
"@vben/eslint-config"
:
"workspace:*"
,
"@vben/lint-staged-config"
:
"workspace:*"
,
"@vben/lint-staged-config"
:
"workspace:*"
,
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
"jsdom"
:
"^24.1.0"
,
"jsdom"
:
"^24.1.0"
,
"rimraf"
:
"^5.0.7"
,
"rimraf"
:
"^5.0.7"
,
"taze"
:
"^0.13.8"
,
"taze"
:
"^0.13.8"
,
"turbo"
:
"^
1.13.3
"
,
"turbo"
:
"^
2.0.1
"
,
"typescript"
:
"^5.4.5"
,
"typescript"
:
"^5.4.5"
,
"unbuild"
:
"^2.0.0"
,
"unbuild"
:
"^2.0.0"
,
"vite"
:
"6.0.0-alpha.17"
,
"vite"
:
"6.0.0-alpha.17"
,
...
...
packages/@vben-core/forward/helpers/src/generator-menus.test.ts
View file @
e650a0b
...
@@ -49,7 +49,7 @@ describe('generatorMenus', () => {
...
@@ -49,7 +49,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
'home-icon'
,
icon
:
'home-icon'
,
name
:
'首页'
,
name
:
'首页'
,
order
No
:
undefined
,
order
:
undefined
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/home'
,
path
:
'/home'
,
...
@@ -61,7 +61,7 @@ describe('generatorMenus', () => {
...
@@ -61,7 +61,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
'about-icon'
,
icon
:
'about-icon'
,
name
:
'关于'
,
name
:
'关于'
,
order
No
:
undefined
,
order
:
undefined
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/about'
,
path
:
'/about'
,
...
@@ -76,7 +76,7 @@ describe('generatorMenus', () => {
...
@@ -76,7 +76,7 @@ describe('generatorMenus', () => {
it
(
'includes additional meta properties in menu items'
,
async
()
=>
{
it
(
'includes additional meta properties in menu items'
,
async
()
=>
{
const
mockRoutesWithMeta
=
[
const
mockRoutesWithMeta
=
[
{
{
meta
:
{
icon
:
'user-icon'
,
order
No
:
1
,
title
:
'Profile'
},
meta
:
{
icon
:
'user-icon'
,
order
:
1
,
title
:
'Profile'
},
name
:
'profile'
,
name
:
'profile'
,
path
:
'/profile'
,
path
:
'/profile'
,
},
},
...
@@ -90,7 +90,7 @@ describe('generatorMenus', () => {
...
@@ -90,7 +90,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
'user-icon'
,
icon
:
'user-icon'
,
name
:
'Profile'
,
name
:
'Profile'
,
order
No
:
1
,
order
:
1
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/profile'
,
path
:
'/profile'
,
...
@@ -116,7 +116,7 @@ describe('generatorMenus', () => {
...
@@ -116,7 +116,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
'details-icon'
,
icon
:
'details-icon'
,
name
:
'User Details'
,
name
:
'User Details'
,
order
No
:
undefined
,
order
:
undefined
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/users/:userId'
,
path
:
'/users/:userId'
,
...
@@ -151,7 +151,7 @@ describe('generatorMenus', () => {
...
@@ -151,7 +151,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
undefined
,
icon
:
undefined
,
name
:
'redirectedRoute'
,
name
:
'redirectedRoute'
,
order
No
:
undefined
,
order
:
undefined
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/old-path'
,
path
:
'/old-path'
,
...
@@ -163,7 +163,7 @@ describe('generatorMenus', () => {
...
@@ -163,7 +163,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
'path-icon'
,
icon
:
'path-icon'
,
name
:
'New Path'
,
name
:
'New Path'
,
order
No
:
undefined
,
order
:
undefined
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/new-path'
,
path
:
'/new-path'
,
...
@@ -174,12 +174,12 @@ describe('generatorMenus', () => {
...
@@ -174,12 +174,12 @@ describe('generatorMenus', () => {
const
routes
:
any
=
[
const
routes
:
any
=
[
{
{
meta
:
{
order
No
:
2
,
title
:
'Home'
},
meta
:
{
order
:
2
,
title
:
'Home'
},
name
:
'home'
,
name
:
'home'
,
path
:
'/'
,
path
:
'/'
,
},
},
{
{
meta
:
{
order
No
:
1
,
title
:
'About'
},
meta
:
{
order
:
1
,
title
:
'About'
},
name
:
'about'
,
name
:
'about'
,
path
:
'/about'
,
path
:
'/about'
,
},
},
...
@@ -199,7 +199,7 @@ describe('generatorMenus', () => {
...
@@ -199,7 +199,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
undefined
,
icon
:
undefined
,
name
:
'About'
,
name
:
'About'
,
order
No
:
1
,
order
:
1
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/about'
,
path
:
'/about'
,
...
@@ -211,7 +211,7 @@ describe('generatorMenus', () => {
...
@@ -211,7 +211,7 @@ describe('generatorMenus', () => {
badgeVariants
:
undefined
,
badgeVariants
:
undefined
,
icon
:
undefined
,
icon
:
undefined
,
name
:
'Home'
,
name
:
'Home'
,
order
No
:
2
,
order
:
2
,
parent
:
undefined
,
parent
:
undefined
,
parents
:
undefined
,
parents
:
undefined
,
path
:
'/'
,
path
:
'/'
,
...
...
packages/@vben-core/forward/helpers/src/generator-menus.ts
View file @
e650a0b
...
@@ -30,7 +30,7 @@ async function generatorMenus(
...
@@ -30,7 +30,7 @@ async function generatorMenus(
badgeVariants
,
badgeVariants
,
hideChildrenInMenu
=
false
,
hideChildrenInMenu
=
false
,
icon
,
icon
,
order
No
,
order
,
target
,
target
,
title
=
''
,
title
=
''
,
}
=
meta
||
{};
}
=
meta
||
{};
...
@@ -57,7 +57,7 @@ async function generatorMenus(
...
@@ -57,7 +57,7 @@ async function generatorMenus(
badgeVariants
,
badgeVariants
,
icon
,
icon
,
name
,
name
,
order
No
,
order
,
parent
:
route
.
parent
,
parent
:
route
.
parent
,
parents
:
route
.
parents
,
parents
:
route
.
parents
,
path
:
resultPath
as
string
,
path
:
resultPath
as
string
,
...
@@ -66,7 +66,7 @@ async function generatorMenus(
...
@@ -66,7 +66,7 @@ async function generatorMenus(
});
});
// 对菜单进行排序
// 对菜单进行排序
menus
=
menus
.
sort
((
a
,
b
)
=>
(
a
.
order
No
||
999
)
-
(
b
.
orderNo
||
999
));
menus
=
menus
.
sort
((
a
,
b
)
=>
(
a
.
order
||
999
)
-
(
b
.
order
||
999
));
return
menus
;
return
menus
;
}
}
...
...
packages/@vben-core/forward/helpers/tsconfig.json
View file @
e650a0b
...
@@ -4,5 +4,6 @@
...
@@ -4,5 +4,6 @@
"compilerOptions"
:
{
"compilerOptions"
:
{
"types"
:
[
"@vben-core/typings/vue-router"
]
"types"
:
[
"@vben-core/typings/vue-router"
]
},
},
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/forward/preferences/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/forward/request/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/chche/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/design-tokens/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/design/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/iconify/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/toolkit/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/shared/typings/src/menu-record.ts
View file @
e650a0b
...
@@ -48,7 +48,7 @@ interface MenuRecordRaw extends MenuRecordBadgeRaw {
...
@@ -48,7 +48,7 @@ interface MenuRecordRaw extends MenuRecordBadgeRaw {
/**
/**
* 排序号
* 排序号
*/
*/
order
No
?:
number
;
order
?:
number
;
/**
/**
* 父级路径
* 父级路径
*/
*/
...
...
packages/@vben-core/shared/typings/src/vue-router.d.ts
View file @
e650a0b
...
@@ -75,7 +75,7 @@ interface RouteMeta {
...
@@ -75,7 +75,7 @@ interface RouteMeta {
/**
/**
* 用于路由->菜单排序
* 用于路由->菜单排序
*/
*/
order
No
?:
number
;
order
?:
number
;
/**
/**
* 外链-跳转路径
* 外链-跳转路径
*/
*/
...
...
packages/@vben-core/shared/typings/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/uikit/layout-ui/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/uikit/menu-ui/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/uikit/shadcn-ui/package.json
View file @
e650a0b
...
@@ -30,6 +30,11 @@
...
@@ -30,6 +30,11 @@
"types"
:
"./src/index.ts"
,
"types"
:
"./src/index.ts"
,
"development"
:
"./src/index.ts"
,
"development"
:
"./src/index.ts"
,
"default"
:
"./dist/index.mjs"
"default"
:
"./dist/index.mjs"
},
"./*"
:
{
"types"
:
"./src/*.ts"
,
"development"
:
"./src/*.ts"
,
"default"
:
"./dist/*.mjs"
}
}
},
},
"publishConfig"
:
{
"publishConfig"
:
{
...
@@ -48,7 +53,7 @@
...
@@ -48,7 +53,7 @@
"@vueuse/core"
:
"^10.10.0"
,
"@vueuse/core"
:
"^10.10.0"
,
"class-variance-authority"
:
"^0.7.0"
,
"class-variance-authority"
:
"^0.7.0"
,
"clsx"
:
"2.1.1"
,
"clsx"
:
"2.1.1"
,
"radix-vue"
:
"^1.8.
2
"
,
"radix-vue"
:
"^1.8.
3
"
,
"tailwind-merge"
:
"^2.3.0"
,
"tailwind-merge"
:
"^2.3.0"
,
"vue"
:
"3.4.27"
,
"vue"
:
"3.4.27"
,
"vue-sonner"
:
"^1.1.2"
"vue-sonner"
:
"^1.1.2"
...
...
packages/@vben-core/uikit/shadcn-ui/tsconfig.json
View file @
e650a0b
...
@@ -7,5 +7,6 @@
...
@@ -7,5 +7,6 @@
"#/*"
:
[
"./src/*"
]
"#/*"
:
[
"./src/*"
]
}
}
},
},
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/@vben-core/uikit/tabs-ui/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/business/common-ui/src/fallback/icons/fallback-icon.vue
View file @
e650a0b
<
template
>
<
template
>
<svg
<svg
data-name=
"Layer 1"
height=
"571"
height=
"571.14799"
viewBox=
"0 0 860 571"
viewBox=
"0 0 860.13137 571.14799"
width=
"860"
width=
"860.13137"
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
>
...
...
packages/business/common-ui/src/fallback/icons/icon-403.vue
0 → 100644
View file @
e650a0b
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"586"
height=
"659.29778"
viewBox=
"0 0 586 659.29778"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><circle
cx=
"332.47856"
cy=
"254"
r=
"254.00001"
fill=
"#f2f2f2"
/><path
d=
"M498.46363,113.58835H33.17063c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796H498.46363c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z"
fill=
"#cacaca"
/><rect
x=
"193.77441"
y=
"174.47256"
width=
"163.61147"
height=
"34.98639"
rx=
"17.49318"
ry=
"17.49318"
fill=
"#fff"
/><path
d=
"M128.17493,244.44534H422.98542c9.66122,0,17.49316,7.83197,17.49316,17.49319h0c0,9.66122-7.83194,17.49319-17.49316,17.49319H128.17493c-9.66122,0-17.49318-7.83197-17.49318-17.49319h0c0-9.66122,7.83196-17.49319,17.49318-17.49319Z"
fill=
"#fff"
/><path
d=
"M128.17493,314.41812H422.98542c9.66122,0,17.49316,7.83197,17.49316,17.49319h0c0,9.66122-7.83194,17.49319-17.49316,17.49319H128.17493c-9.66122,0-17.49318-7.83197-17.49318-17.49319h0c0-9.66122,7.83196-17.49319,17.49318-17.49319Z"
fill=
"#fff"
/><path
d=
"M91.64085,657.75932l-.69385-.06793c-23.54068-2.42871-44.82135-15.08929-58.18845-34.61835-3.66138-5.44159-6.62299-11.32251-8.815-17.50409l-.21069-.58966,.62375-.05048c7.44699-.59924,15.09732-1.86292,18.49585-2.46417l-21.91473-7.42511-.1355-.65033c-1.29926-6.10406,1.24612-12.38458,6.4285-15.86176,5.19641-3.64447,12.08731-3.76111,17.40405-.29449,2.38599,1.52399,4.88162,3.03339,7.29489,4.49359,8.29321,5.01636,16.8688,10.20337,23.29828,17.30121,9.74951,10.97778,14.02298,25.76984,11.63,40.25562l4.7829,17.47595Z"
fill=
"#f2f2f2"
/><polygon
points=
"171.30016 646.86102 182.10017 646.85999 187.23916 605.198 171.29716 605.19897 171.30016 646.86102"
fill=
"#a0616a"
/><path
d=
"M170.9192,658.12816l33.21436-.00122v-.41998c-.00049-7.13965-5.78833-12.92737-12.92798-12.92773h-.00079l-6.06702-4.60278-11.3197,4.60345-2.89941,.00012,.00055,13.34814Z"
fill=
"#2f2e41"
/><polygon
points=
"84.74116 616.94501 93.38016 623.42603 122.49316 593.185 109.74116 583.61902 84.74116 616.94501"
fill=
"#a0616a"
/><path
d=
"M77.67448,625.72966l26.569,19.93188,.25208-.336c4.2843-5.71136,3.12799-13.81433-2.58279-18.09937l-.00064-.00049-2.09079-7.32275-11.81735-3.11102-2.31931-1.73993-8.01019,10.67767Z"
fill=
"#2f2e41"
/><path
d=
"M120.64463,451.35271s.59625,16.26422,1.3483,29.30737c.12335,2.13916-4.88821,4.46301-4.75842,6.7901,.08609,1.54395,1.02808,3.04486,1.1156,4.65472,.09235,1.69897-1.20822,3.20282-1.1156,4.95984,.09052,1.71667,1.57422,3.6853,1.66373,5.44244,.96317,18.9093,4.45459,41.54633,.9584,47.87439-1.72299,3.11871-23.68533,46.32446-23.68533,46.32446,0,0,12.23666,18.35498,15.73285,12.23663,4.61771-8.08099,40.20615-45.88745,40.20615-53.10712,0-7.21088,8.23346-61.25323,8.23346-61.25323l5.74103,31.98169,2.63239,6.33655-.82715,3.71997,1.70117,5.02045,.09192,4.96838,1.65619,9.22614s-4.98199,71.88159-2.17633,73.88312c2.81439,2.01038,16.44086,5.62018,18.04901,2.01038,1.59955-3.6098,12.0108-75.01947,12.0108-75.01947,0,0,1.6781-32.72424,3.49622-63.14111,.1048-1.76556,1.34607-3.89825,1.4422-5.63763,.11365-2.01898-.67297-4.64111-.56818-6.599,.11365-2.24628,1.11005-3.82831,1.20618-5.97852,.74292-16.6156-3.42761-36.84912-4.7561-38.84192-4.01202-6.01343-7.62177-10.82074-7.62177-10.82074,0,0-54.03558-17.75403-68.47485,.28625l-3.30185,25.37585Z"
fill=
"#2f2e41"
/><path
d=
"M174.53779,284.10378l-21.4209-4.28418-9.9964,13.56656h0c-18.65262,18.34058-18.93359,34.52753-15.60379,60.47382v36.41553l-2.41,24.41187s-8.53156,17.84521,.26788,22.00006,66.59857,3.80066,72.117,2.14209,.73517-3.69482-.71399-11.4245c-2.72211-14.51929-.90131-7.51562-.71399-12.13849,2.68585-66.31363-3.57013-93.5379-4.20544-100.69376l-10.89398-19.75858-6.42639-10.71042Z"
fill=
"#3f3d56"
/><path
d=
"M287.43909,337.57097c-2.23248,4.23007-7.47144,5.84943-11.70148,3.61694-.45099-.23804-.88013-.51541-1.28229-.82895l-46.26044,29.37308,.13336-15.9924,44.93842-26.07846c3.20093-3.58887,8.70514-3.90332,12.29401-.70239,3.00305,2.67844,3.7796,7.0657,1.87842,10.61218Z"
fill=
"#a0616a"
/><path
d=
"M157.62488,302.62425l-5.26666-.55807c-4.86633-.50473-9.64093,1.57941-12.57947,5.491-1.12549,1.48346-1.9339,3.18253-2.37491,4.99164l-.00317,.01447c-1.32108,5.44534,.75095,11.15201,5.25803,14.48117l18.19031,13.41101c12.76544,17.24899,36.75653,28.69272,64.89832,37.98978l43.74274-27.16666-15.47186-18.73843-30.00336,16.0798-44.59833-34.52374-.0257-.02075-16.97424-10.936-4.79169-.5152Z"
fill=
"#3f3d56"
/><circle
cx=
"167.29993"
cy=
"248.60526"
r=
"24.9798"
fill=
"#a0616a"
/><path
d=
"M167.8769,273.59047c-.20135,.00662-.4032,.01108-.6048,.01657-.0863,.22388-.17938,.44583-.2868,.66357l.8916-.68015Z"
fill=
"#2f2e41"
/><path
d=
"M174.73243,249.29823c.03918,.24612,.09912,.48846,.17914,.72449-.03302-.24731-.09308-.49026-.17914-.72449Z"
fill=
"#2f2e41"
/><path
d=
"M192.59852,224.6942c-1.0282,3.19272-1.94586-.85715-5.32825-.12869-4.06885,.87625-8.80377,.57532-12.13586-1.91879-4.96478-3.64273-11.39874-4.62335-17.22333-2.62509-5.70154,2.01706-15.25348,3.43933-16.73907,9.30179-.51642,2.03781-.7215,4.24933-1.97321,5.9382-1.09436,1.47662-2.82166,2.31854-4.26608,3.45499-4.87726,3.83743-1.14954,14.73981,1.15881,20.50046,2.30838,5.76065,7.60355,9.95721,13.42526,12.10678,5.63281,2.07977,11.7464,2.44662,17.75531,2.28317,1.04517-2.7106,.59363-5.84137-.26874-8.65134-.93359-3.04199-2.31592-5.97791-2.70593-9.13599s.46643-6.74527,3.11444-8.50986c2.4339-1.62192,6.39465-.63388,7.32062,1.98843-.54028-3.27841,2.7807-6.4509,6.20508-7.00882,3.67651-.599,7.35291,.72833,11.01886,1.38901s2.36475-14.77301,.64209-18.98425Z"
fill=
"#2f2e41"
/><circle
cx=
"281.3585"
cy=
"285.71051"
r=
"51.12006"
transform=
"translate(-26.58509 542.54478) rotate(-85.26884)"
fill=
"hsl(var(--color-primary))"
/><path
d=
"M294.78675,264.41051l-13.42828,13.42828-13.42828-13.42828c-2.17371-2.17374-5.69806-2.17374-7.87177,0s-2.17371,5.69803,0,7.87177l13.42828,13.42828-13.42828,13.42828c-2.17169,2.17575-2.1684,5.70007,.00739,7.87177,2.17285,2.16879,5.69153,2.16879,7.86438-.00003l13.42828-13.42828,13.42828,13.42828c2.17578,2.17169,5.70007,2.1684,7.87177-.00735,2.16882-2.17288,2.16882-5.6915,0-7.86438l-13.42828-13.42828,13.42828-13.42828c2.17371-2.17374,2.17371-5.69803,0-7.87177s-5.69806-2.17374-7.87177,0h0Z"
fill=
"#fff"
/><path
d=
"M261.21387,242.74385c1.5069,4.53946-.95154,9.44101-5.49097,10.94791-.48401,.16064-.9812,.27823-1.4859,.35141l-10.83051,53.71692-11.44788-11.16785,12.29266-50.48209c-.37366-4.7944,3.21008-8.98395,8.00452-9.3576,4.01166-.31265,7.71509,2.16425,8.95807,5.9913Z"
fill=
"#a0616a"
/><path
d=
"M146.12519,312.22478l-4.04883,3.41412c-3.73322,3.16214-5.53476,8.05035-4.74649,12.87888,.29129,1.83917,.95773,3.59879,1.95786,5.16949l.00824,.0123c3.01477,4.72311,8.5672,7.17865,14.08978,6.23117l22.27075-3.84171c21.28461,2.72995,46.15155-6.65967,72.34302-20.53055l10.67969-50.37274-24.23297-1.80811-9.16821,32.78271-55.78815,8.28149-.03278,.00415-19.64294,4.67767-3.68896,3.1011Z"
fill=
"#3f3d56"
/><path
d=
"M272.93684,658.99046l-271.75,.30731c-.65759-.00214-1.18896-.53693-1.18683-1.19452,.00211-.6546,.53223-1.18469,1.18683-1.18683l271.75-.30731c.65759,.00214,1.18896,.53693,1.18683,1.19452-.00208,.6546-.53223,1.18469-1.18683,1.18683Z"
fill=
"#cacaca"
/><g><ellipse
cx=
"56.77685"
cy=
"82.05834"
rx=
"8.45661"
ry=
"8.64507"
fill=
"#3f3d56"
/><ellipse
cx=
"85.9906"
cy=
"82.05834"
rx=
"8.45661"
ry=
"8.64507"
fill=
"#3f3d56"
/><ellipse
cx=
"115.20435"
cy=
"82.05834"
rx=
"8.45661"
ry=
"8.64507"
fill=
"#3f3d56"
/><path
d=
"M148.51577,88.89113c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z"
fill=
"#3f3d56"
/><path
d=
"M158.10415,88.89113c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z"
fill=
"#3f3d56"
/><path
d=
"M456.61398,74.41416h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19v10.62c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19v-10.62c0-1.21002-.98999-2.19-2.20001-2.19Z"
fill=
"#3f3d56"
/><path
d=
"M430.61398,74.41416h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19v10.62c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19v-10.62c0-1.21002-.98999-2.19-2.20001-2.19Z"
fill=
"#3f3d56"
/><path
d=
"M481.11398,74.91416h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19v10.62c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19v-10.62c0-1.21002-.98999-2.19-2.20001-2.19Z"
fill=
"#3f3d56"
/><path
d=
"M321.19229,78.95414h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z"
fill=
"#3f3d56"
/></g></svg>
packages/business/common-ui/src/fallback/icons/icon-500.vue
0 → 100644
View file @
e650a0b
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"1119"
height=
"699"
viewBox=
"0 0 1119 699"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><title>
server down
</title><circle
cx=
"292.60911"
cy=
"213"
r=
"213"
fill=
"#f2f2f2"
/><path
d=
"M31.39089,151.64237c0,77.49789,48.6181,140.20819,108.70073,140.20819"
transform=
"translate(-31.39089 -100.5)"
fill=
"#2f2e41"
/><path
d=
"M140.09162,291.85056c0-78.36865,54.255-141.78356,121.30372-141.78356"
transform=
"translate(-31.39089 -100.5)"
fill=
"hsl(var(--color-primary))"
/><path
d=
"M70.77521,158.66768c0,73.61476,31.00285,133.18288,69.31641,133.18288"
transform=
"translate(-31.39089 -100.5)"
fill=
"hsl(var(--color-primary))"
/><path
d=
"M140.09162,291.85056c0-100.13772,62.7103-181.16788,140.20819-181.16788"
transform=
"translate(-31.39089 -100.5)"
fill=
"#2f2e41"
/><path
d=
"M117.22379,292.83905s15.41555-.47479,20.06141-3.783,23.713-7.2585,24.86553-1.95278,23.16671,26.38821,5.76263,26.5286-40.43935-2.711-45.07627-5.53549S117.22379,292.83905,117.22379,292.83905Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#a8a8a8"
/><path
d=
"M168.224,311.78489c-17.40408.14042-40.43933-2.71094-45.07626-5.53548-3.53126-2.151-4.93843-9.86945-5.40926-13.43043-.32607.014-.51463.02-.51463.02s.97638,12.43276,5.61331,15.2573,27.67217,5.67589,45.07626,5.53547c5.02386-.04052,6.7592-1.82793,6.66391-4.47526C173.87935,310.756,171.96329,311.75474,168.224,311.78489Z"
transform=
"translate(-31.39089 -100.5)"
opacity=
"0.2"
/><ellipse
cx=
"198.60911"
cy=
"424.5"
rx=
"187"
ry=
"25.43993"
fill=
"#3f3d56"
/><ellipse
cx=
"198.60911"
cy=
"424.5"
rx=
"157"
ry=
"21.35866"
opacity=
"0.1"
/><ellipse
cx=
"836.60911"
cy=
"660.5"
rx=
"283"
ry=
"38.5"
fill=
"#3f3d56"
/><ellipse
cx=
"310.60911"
cy=
"645.5"
rx=
"170"
ry=
"23.12721"
fill=
"#3f3d56"
/><path
d=
"M494,726.5c90,23,263-30,282-90"
transform=
"translate(-31.39089 -100.5)"
fill=
"none"
stroke=
"#2f2e41"
stroke-miterlimit=
"10"
stroke-width=
"2"
/><path
d=
"M341,359.5s130-36,138,80-107,149-17,172"
transform=
"translate(-31.39089 -100.5)"
fill=
"none"
stroke=
"#2f2e41"
stroke-miterlimit=
"10"
stroke-width=
"2"
/><path
d=
"M215.40233,637.78332s39.0723-10.82,41.47675,24.04449-32.15951,44.78287-5.10946,51.69566"
transform=
"translate(-31.39089 -100.5)"
fill=
"none"
stroke=
"#2f2e41"
stroke-miterlimit=
"10"
stroke-width=
"2"
/><path
d=
"M810.09554,663.73988,802.218,714.03505s-38.78182,20.60284-11.51335,21.20881,155.73324,0,155.73324,0,24.84461,0-14.54318-21.81478l-7.87756-52.719Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#2f2e41"
/><path
d=
"M785.21906,734.69812c6.193-5.51039,16.9989-11.252,16.9989-11.252l7.87756-50.2952,113.9216.10717,7.87756,49.582c9.185,5.08711,14.8749,8.987,18.20362,11.97818,5.05882-1.15422,10.58716-5.44353-18.20362-21.38921l-7.87756-52.719-113.9216,3.02983L802.218,714.03506S769.62985,731.34968,785.21906,734.69812Z"
transform=
"translate(-31.39089 -100.5)"
opacity=
"0.1"
/><rect
x=
"578.43291"
y=
"212.68859"
width=
"513.25314"
height=
"357.51989"
rx=
"18.04568"
fill=
"#2f2e41"
/><rect
x=
"595.70294"
y=
"231.77652"
width=
"478.71308"
height=
"267.83694"
fill=
"#3f3d56"
/><circle
cx=
"835.05948"
cy=
"223.29299"
r=
"3.02983"
fill=
"#f2f2f2"
/><path
d=
"M1123.07694,621.32226V652.6628a18.04341,18.04341,0,0,1-18.04568,18.04568H627.86949A18.04341,18.04341,0,0,1,609.8238,652.6628V621.32226Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#2f2e41"
/><polygon
points=
"968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 651.452 645.651 962.312 645.651 968.978 667.466"
fill=
"#2f2e41"
/><path
d=
"M1125.828,762.03359c-.59383,2.539-2.83591,5.21743-7.90178,7.75032-18.179,9.08949-55.1429-2.42386-55.1429-2.42386s-28.4804-4.84773-28.4804-17.573a22.72457,22.72457,0,0,1,2.49658-1.48459c7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#2f2e41"
/><path
d=
"M1125.828,762.03359c-22.251,8.526-42.0843,9.1622-62.43871-4.975-10.26507-7.12617-19.59089-8.88955-26.58979-8.75618,7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z"
transform=
"translate(-31.39089 -100.5)"
opacity=
"0.1"
/><ellipse
cx=
"1066.53846"
cy=
"654.13477"
rx=
"7.87756"
ry=
"2.42386"
fill=
"#f2f2f2"
/><circle
cx=
"835.05948"
cy=
"545.66686"
r=
"11.51335"
fill=
"#f2f2f2"
/><polygon
points=
"968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 968.978 667.466"
opacity=
"0.1"
/><rect
x=
"108.60911"
y=
"159"
width=
"208"
height=
"242"
fill=
"#2f2e41"
/><rect
x=
"87.60911"
y=
"135"
width=
"250"
height=
"86"
fill=
"#3f3d56"
/><rect
x=
"87.60911"
y=
"237"
width=
"250"
height=
"86"
fill=
"#3f3d56"
/><rect
x=
"87.60911"
y=
"339"
width=
"250"
height=
"86"
fill=
"#3f3d56"
/><rect
x=
"271.60911"
y=
"150"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.4"
/><rect
x=
"294.60911"
y=
"150"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.8"
/><rect
x=
"317.60911"
y=
"150"
width=
"16"
height=
"16"
fill=
"#6c63ff"
/><rect
x=
"271.60911"
y=
"251"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.4"
/><rect
x=
"294.60911"
y=
"251"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.8"
/><rect
x=
"317.60911"
y=
"251"
width=
"16"
height=
"16"
fill=
"#6c63ff"
/><rect
x=
"271.60911"
y=
"352"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.4"
/><rect
x=
"294.60911"
y=
"352"
width=
"16"
height=
"16"
fill=
"#6c63ff"
opacity=
"0.8"
/><rect
x=
"317.60911"
y=
"352"
width=
"16"
height=
"16"
fill=
"#6c63ff"
/><circle
cx=
"316.60911"
cy=
"538"
r=
"79"
fill=
"#2f2e41"
/><rect
x=
"280.60911"
y=
"600"
width=
"24"
height=
"43"
fill=
"#2f2e41"
/><rect
x=
"328.60911"
y=
"600"
width=
"24"
height=
"43"
fill=
"#2f2e41"
/><ellipse
cx=
"300.60911"
cy=
"643.5"
rx=
"20"
ry=
"7.5"
fill=
"#2f2e41"
/><ellipse
cx=
"348.60911"
cy=
"642.5"
rx=
"20"
ry=
"7.5"
fill=
"#2f2e41"
/><circle
cx=
"318.60911"
cy=
"518"
r=
"27"
fill=
"#fff"
/><circle
cx=
"318.60911"
cy=
"518"
r=
"9"
fill=
"#3f3d56"
/><path
d=
"M271.36733,565.03228c-6.37889-28.56758,14.01185-57.43392,45.544-64.47477s62.2651,10.41,68.644,38.9776-14.51861,39.10379-46.05075,46.14464S277.74622,593.59986,271.36733,565.03228Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#6c63ff"
/><ellipse
cx=
"417.21511"
cy=
"611.34365"
rx=
"39.5"
ry=
"12.40027"
transform=
"translate(-238.28665 112.98044) rotate(-23.17116)"
fill=
"#2f2e41"
/><ellipse
cx=
"269.21511"
cy=
"664.34365"
rx=
"39.5"
ry=
"12.40027"
transform=
"translate(-271.07969 59.02084) rotate(-23.17116)"
fill=
"#2f2e41"
/><path
d=
"M394,661.5c0,7.732-19.90861,23-42,23s-43-14.268-43-22,20.90861-6,43-6S394,653.768,394,661.5Z"
transform=
"translate(-31.39089 -100.5)"
fill=
"#fff"
/></svg>
packages/business/common-ui/src/spinner/spinner.vue
View file @
e650a0b
...
@@ -23,7 +23,6 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -23,7 +23,6 @@ const props = withDefaults(defineProps<Props>(), {
minLoadingTime
:
200
,
minLoadingTime
:
200
,
});
});
const
startTime
=
ref
(
0
);
const
startTime
=
ref
(
0
);
const
endTime
=
ref
(
0
);
const
showSpinner
=
ref
(
false
);
const
showSpinner
=
ref
(
false
);
const
timer
=
ref
<
TimeoutHandle
>
();
const
timer
=
ref
<
TimeoutHandle
>
();
...
@@ -37,9 +36,7 @@ watch(
...
@@ -37,9 +36,7 @@ watch(
}
}
startTime
.
value
=
performance
.
now
();
startTime
.
value
=
performance
.
now
();
timer
.
value
=
setTimeout
(()
=>
{
timer
.
value
=
setTimeout
(()
=>
{
endTime
.
value
=
performance
.
now
();
const
loadingTime
=
performance
.
now
()
-
startTime
.
value
;
const
loadingTime
=
endTime
.
value
-
startTime
.
value
;
showSpinner
.
value
=
loadingTime
>
props
.
minLoadingTime
;
showSpinner
.
value
=
loadingTime
>
props
.
minLoadingTime
;
},
props
.
minLoadingTime
);
},
props
.
minLoadingTime
);
...
@@ -55,12 +52,14 @@ watch(
...
@@ -55,12 +52,14 @@ watch(
v-if=
"showSpinner"
v-if=
"showSpinner"
class=
"flex-center bg-overlay absolute left-0 top-0 size-full backdrop-blur-sm"
class=
"flex-center bg-overlay absolute left-0 top-0 size-full backdrop-blur-sm"
>
>
<div
class=
"loader relative h-12 w-12"
></div>
<div
class=
"loader before:bg-primary/50 after:bg-primary relative h-12 w-12 before:absolute before:left-0 before:top-[60px] before:h-[5px] before:w-12 before:animate-[loader-shadow-ani_0.5s_linear_infinite] before:rounded-[50%] before:content-[''] after:absolute after:left-0 after:top-0 after:h-full after:w-full after:animate-[loader-jump-ani_0.5s_linear_infinite] after:rounded after:content-['']"
></div>
</div>
</div>
</
template
>
</
template
>
<
style
scoped
>
<
style
>
@keyframes
jump-ani
{
@keyframes
loader-
jump-ani
{
15
%
{
15
%
{
border-bottom-right-radius
:
3px
;
border-bottom-right-radius
:
3px
;
}
}
...
@@ -83,7 +82,7 @@ watch(
...
@@ -83,7 +82,7 @@ watch(
}
}
}
}
@keyframes
shadow-ani
{
@keyframes
loader-
shadow-ani
{
0
%,
0
%,
100
%
{
100
%
{
transform
:
scale
(
1
,
1
);
transform
:
scale
(
1
,
1
);
...
@@ -93,14 +92,4 @@ watch(
...
@@ -93,14 +92,4 @@ watch(
transform
:
scale
(
1.2
,
1
);
transform
:
scale
(
1.2
,
1
);
}
}
}
}
.loader
{
&::before
{
@apply
bg-primary/50
absolute
left-0
top-[60px]
h-[5px]
w-12
animate-[shadow-ani_0.5s_linear_infinite]
rounded-[50%]
content-[''];
}
&
::after
{
@apply
bg-primary
absolute
left-0
top-0
h-full
w-full
animate-[jump-ani_0.5s_linear_infinite]
rounded
content-[''];
}
}
</
style
>
</
style
>
packages/business/common-ui/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/business/layouts/src/iframe/iframe-router-view.vue
View file @
e650a0b
...
@@ -18,33 +18,23 @@ const iframeRoutes = computed(() => {
...
@@ -18,33 +18,23 @@ const iframeRoutes = computed(() => {
if
(
!
enableTabbar
.
value
)
{
if
(
!
enableTabbar
.
value
)
{
return
route
.
meta
.
iframeSrc
?
[
route
]
:
[];
return
route
.
meta
.
iframeSrc
?
[
route
]
:
[];
}
}
const
tabs
=
tabsStore
.
getTabs
.
filter
((
tab
)
=>
!!
tab
.
meta
?.
iframeSrc
);
return
tabsStore
.
getTabs
.
filter
((
tab
)
=>
!!
tab
.
meta
?.
iframeSrc
);
return
tabs
;
});
});
const
tabNames
=
computed
(()
=>
{
const
tabNames
=
computed
(
const
names
=
new
Set
<
string
>
();
()
=>
new
Set
(
iframeRoutes
.
value
.
map
((
item
)
=>
item
.
name
as
string
)),
iframeRoutes
.
value
.
forEach
((
item
)
=>
{
);
names
.
add
(
item
.
name
as
string
);
});
return
names
;
});
const
showIframe
=
computed
(()
=>
iframeRoutes
.
value
.
length
>
0
);
const
showIframe
=
computed
(()
=>
iframeRoutes
.
value
.
length
>
0
);
function
routeShow
(
tabItem
:
RouteLocationNormalized
)
{
function
routeShow
(
tabItem
:
RouteLocationNormalized
)
{
const
{
name
}
=
tabItem
;
return
tabItem
.
name
===
route
.
name
;
return
name
===
route
.
name
;
}
}
function
canRender
(
tabItem
:
RouteLocationNormalized
)
{
function
canRender
(
tabItem
:
RouteLocationNormalized
)
{
const
{
meta
,
name
}
=
tabItem
;
const
{
meta
,
name
}
=
tabItem
;
if
(
!
name
)
{
if
(
!
name
||
!
tabsStore
.
renderRouteView
)
{
return
false
;
}
if
(
!
tabsStore
.
renderRouteView
)
{
return
false
;
return
false
;
}
}
...
@@ -60,7 +50,7 @@ function canRender(tabItem: RouteLocationNormalized) {
...
@@ -60,7 +50,7 @@ function canRender(tabItem: RouteLocationNormalized) {
)
{
)
{
return
false
;
return
false
;
}
}
return
tabsStore
.
getTabs
.
findIndex
((
tab
)
=>
tab
.
name
===
name
)
!==
-
1
;
return
tabsStore
.
getTabs
.
some
((
tab
)
=>
tab
.
name
===
name
)
;
}
}
function
hideLoading
()
{
function
hideLoading
()
{
...
...
packages/business/layouts/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/constants/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/hooks/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/icons/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/locales/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/styles/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"extends"
:
"@vben/tsconfig/web.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/types/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
packages/utils/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"extends"
:
"@vben/tsconfig/library.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
pnpm-lock.yaml
View file @
e650a0b
This diff is collapsed.
Click to expand it.
scripts/vsh/tsconfig.json
View file @
e650a0b
{
{
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"$schema"
:
"https://json.schemastore.org/tsconfig"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"extends"
:
"@vben/tsconfig/node.json"
,
"include"
:
[
"src"
]
"include"
:
[
"src"
],
"exclude"
:
[
"node_modules"
]
}
}
turbo.json
View file @
e650a0b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"scripts/*/src/**/*.json"
"scripts/*/src/**/*.json"
],
],
"globalEnv"
:
[
"NODE_ENV"
],
"globalEnv"
:
[
"NODE_ENV"
],
"
pipeline
"
:
{
"
tasks
"
:
{
"build"
:
{
"build"
:
{
"dependsOn"
:
[
"^build"
],
"dependsOn"
:
[
"^build"
],
"outputs"
:
[
"dist/**"
]
"outputs"
:
[
"dist/**"
]
...
@@ -26,9 +26,7 @@
...
@@ -26,9 +26,7 @@
"persistent"
:
true
"persistent"
:
true
},
},
"typecheck"
:
{
"typecheck"
:
{
"outputs"
:
[],
"outputs"
:
[]
"outputMode"
:
"errors-only"
//
"outputMode"
:
"new-only"
}
}
}
}
}
}
website/package.json
View file @
e650a0b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"docs:preview"
:
"vitepress preview"
"docs:preview"
:
"vitepress preview"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"vitepress"
:
"^1.2.
2
"
,
"vitepress"
:
"^1.2.
3
"
,
"vue"
:
"3.4.27"
"vue"
:
"3.4.27"
}
}
}
}
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