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 a1a566cb
authored
Jul 20, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update deps
1 parent
a897929e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
17 deletions
apps/web-antd/src/locales/README.md
apps/web-antd/src/locales/index.ts
apps/web-antd/src/router/routes/modules/dashboard.ts
internal/vite-config/package.json
package.json
packages/@core/forward/preferences/src/config.ts
packages/@core/hooks/package.json
packages/@core/shared/design/src/design-tokens/dark/index.css
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue
packages/@core/ui-kit/menu-ui/src/components/menu.vue
packages/@core/ui-kit/shadcn-ui/package.json
pnpm-lock.yaml
apps/web-antd/src/locales/README.md
0 → 100644
View file @
a1a566c
# locale
每个app使用的国际化可能不同,这里用于扩展国际化的功能,例如扩展 dayjs、antd组件库的多语言切换,以及app本身的国际化文件。
apps/web-antd/src/locales/index.ts
View file @
a1a566c
...
...
@@ -5,10 +5,11 @@ import { ref } from 'vue';
import
{
$t
,
loadLocalesMap
,
setupI18n
}
from
'@vben-core/locales'
;
import
defaultLocale
from
'ant-design-vue/es/locale/zh_CN'
;
import
antdEnLocale
from
'ant-design-vue/es/locale/en_US'
;
import
antdDefaultLocale
from
'ant-design-vue/es/locale/zh_CN'
;
import
dayjs
from
'dayjs'
;
const
antdLocale
=
ref
<
Locale
>
(
d
efaultLocale
);
const
antdLocale
=
ref
<
Locale
>
(
antdD
efaultLocale
);
const
modules
=
import
.
meta
.
glob
(
'./langs/*.json'
);
...
...
@@ -65,13 +66,11 @@ async function loadDayjsLocale(lang: SupportedLanguagesType) {
async
function
loadAntdLocale
(
lang
:
SupportedLanguagesType
)
{
switch
(
lang
)
{
case
'zh-CN'
:
{
antdLocale
.
value
=
d
efaultLocale
;
antdLocale
.
value
=
antdD
efaultLocale
;
break
;
}
case
'en-US'
:
{
antdLocale
.
value
=
(
await
import
(
'ant-design-vue/es/locale/en_US'
))
as
unknown
as
Locale
;
antdLocale
.
value
=
antdEnLocale
;
break
;
}
}
...
...
apps/web-antd/src/router/routes/modules/dashboard.ts
View file @
a1a566c
...
...
@@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [
children
:
[
{
name
:
'Analytics'
,
path
:
'
/
analytics'
,
path
:
'analytics'
,
component
:
()
=>
import
(
'#/views/dashboard/analytics/index.vue'
),
meta
:
{
affixTab
:
true
,
...
...
@@ -27,7 +27,7 @@ const routes: RouteRecordRaw[] = [
},
{
name
:
'Workspace'
,
path
:
'
/
workspace'
,
path
:
'workspace'
,
component
:
()
=>
import
(
'#/views/dashboard/workspace/index.vue'
),
meta
:
{
title
:
$t
(
'page.dashboard.workspace'
),
...
...
internal/vite-config/package.json
View file @
a1a566c
...
...
@@ -44,7 +44,7 @@
"@vitejs/plugin-vue-jsx"
:
"^4.0.0"
,
"dayjs"
:
"^1.11.12"
,
"dotenv"
:
"^16.4.5"
,
"rollup"
:
"^4.1
8.1
"
,
"rollup"
:
"^4.1
9.0
"
,
"rollup-plugin-visualizer"
:
"^5.12.0"
,
"sass"
:
"^1.77.8"
,
"vite"
:
"^5.3.4"
,
...
...
package.json
View file @
a1a566c
...
...
@@ -88,7 +88,7 @@
"@ctrl/tinycolor"
:
"^4.1.0"
,
"clsx"
:
"^2.1.1"
,
"eslint"
:
"^8.57.0"
,
"vue"
:
"^3.4.3
2
"
,
"vue"
:
"^3.4.3
3
"
,
"zx"
:
"^7.2.3"
},
"neverBuiltDependencies"
:
[
...
...
packages/@core/forward/preferences/src/config.ts
View file @
a1a566c
...
...
@@ -66,7 +66,7 @@ const defaultPreferences: Preferences = {
expandOnHover
:
true
,
extraCollapse
:
true
,
hidden
:
false
,
width
:
2
2
0
,
width
:
2
3
0
,
},
tabbar
:
{
dragable
:
true
,
...
...
packages/@core/hooks/package.json
View file @
a1a566c
...
...
@@ -41,7 +41,7 @@
"@vben-core/stores"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.11.0"
,
"radix-vue"
:
"^1.9.
1
"
,
"radix-vue"
:
"^1.9.
2
"
,
"sortablejs"
:
"^1.15.2"
,
"vue"
:
"^3.4.33"
,
"vue-router"
:
"^4.4.0"
...
...
packages/@core/shared/design/src/design-tokens/dark/index.css
View file @
a1a566c
...
...
@@ -6,7 +6,7 @@
/* 主体区域背景色 */
--background-deep
:
220deg
13.06%
9%
;
--foreground
:
220
13%
91
%
;
--foreground
:
0
0%
95
%
;
/* Background color for <Card /> */
--card
:
222.34deg
10.43%
12.27%
;
...
...
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue
View file @
a1a566c
...
...
@@ -249,7 +249,7 @@ function handleMouseleave() {
theme,
{
'bg-sidebar-deep': isSidebarMixed,
'bg-sidebar': !isSidebarMixed,
'bg-sidebar
border-border border-r
': !isSidebarMixed,
},
]"
:style="style"
...
...
packages/@core/ui-kit/menu-ui/src/components/menu.vue
View file @
a1a566c
...
...
@@ -424,7 +424,7 @@ $namespace: vben;
--menu-title-width
:
140px
;
--menu-item-icon-size
:
16px
;
--menu-item-height
:
38px
;
--menu-item-padding-y
:
2
2
px
;
--menu-item-padding-y
:
2
1
px
;
--menu-item-padding-x
:
12px
;
--menu-item-popup-padding-y
:
20px
;
--menu-item-popup-padding-x
:
12px
;
...
...
@@ -473,7 +473,7 @@ $namespace: vben;
&
.is-rounded
{
--menu-item-margin-x
:
8px
;
--menu-item-collapse-margin-x
:
6px
;
--menu-item-radius
:
6
px
;
--menu-item-radius
:
10
px
;
}
&
.is-horizontal
:not
(
.is-rounded
)
{
...
...
packages/@core/ui-kit/shadcn-ui/package.json
View file @
a1a566c
...
...
@@ -49,7 +49,7 @@
"@vueuse/core"
:
"^10.11.0"
,
"class-variance-authority"
:
"^0.7.0"
,
"lucide-vue-next"
:
"^0.411.0"
,
"radix-vue"
:
"^1.9.
1
"
,
"radix-vue"
:
"^1.9.
2
"
,
"vue"
:
"^3.4.33"
}
}
pnpm-lock.yaml
View file @
a1a566c
This diff is collapsed.
Click to expand it.
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