Commit a1a566cb by vben

chore: update deps

1 parent a897929e
# locale
每个app使用的国际化可能不同,这里用于扩展国际化的功能,例如扩展 dayjs、antd组件库的多语言切换,以及app本身的国际化文件。
......@@ -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>(defaultLocale);
const antdLocale = ref<Locale>(antdDefaultLocale);
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 = defaultLocale;
antdLocale.value = antdDefaultLocale;
break;
}
case 'en-US': {
antdLocale.value = (await import(
'ant-design-vue/es/locale/en_US'
)) as unknown as Locale;
antdLocale.value = antdEnLocale;
break;
}
}
......
......@@ -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'),
......
......@@ -44,7 +44,7 @@
"@vitejs/plugin-vue-jsx": "^4.0.0",
"dayjs": "^1.11.12",
"dotenv": "^16.4.5",
"rollup": "^4.18.1",
"rollup": "^4.19.0",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.8",
"vite": "^5.3.4",
......
......@@ -88,7 +88,7 @@
"@ctrl/tinycolor": "^4.1.0",
"clsx": "^2.1.1",
"eslint": "^8.57.0",
"vue": "^3.4.32",
"vue": "^3.4.33",
"zx": "^7.2.3"
},
"neverBuiltDependencies": [
......
......@@ -66,7 +66,7 @@ const defaultPreferences: Preferences = {
expandOnHover: true,
extraCollapse: true,
hidden: false,
width: 220,
width: 230,
},
tabbar: {
dragable: true,
......
......@@ -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"
......
......@@ -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%;
......
......@@ -249,7 +249,7 @@ function handleMouseleave() {
theme,
{
'bg-sidebar-deep': isSidebarMixed,
'bg-sidebar': !isSidebarMixed,
'bg-sidebar border-border border-r': !isSidebarMixed,
},
]"
:style="style"
......
......@@ -424,7 +424,7 @@ $namespace: vben;
--menu-title-width: 140px;
--menu-item-icon-size: 16px;
--menu-item-height: 38px;
--menu-item-padding-y: 22px;
--menu-item-padding-y: 21px;
--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: 6px;
--menu-item-radius: 10px;
}
&.is-horizontal:not(.is-rounded) {
......
......@@ -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"
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!