From c58aa26dbf83cde50c7385af1c4bd0f6f650d4f3 Mon Sep 17 00:00:00 2001 From: vben Date: Sat, 29 Jun 2024 15:41:10 +0800 Subject: [PATCH] chore: update locale --- apps/web-antd/src/apis/modules/user.ts | 6 +- apps/web-antd/src/forward/request/index.ts | 4 +- .../src/router/routes/modules/demos.ts | 235 ++++++++++++++++++ .../src/router/routes/modules/fallback.ts | 59 ----- .../src/router/routes/modules/nested.ts | 98 -------- .../src/router/routes/modules/outside.ts | 86 ------- .../src/router/routes/modules/vben.ts | 4 +- .../views/_essential/fallback/coming-soon.vue | 2 +- .../src/views/{ => demos}/nested/menu-1.vue | 2 +- .../src/views/{ => demos}/nested/menu-2-1.vue | 2 +- .../src/views/{ => demos}/nested/menu-3-1.vue | 2 +- .../views/{ => demos}/nested/menu-3-2-1.vue | 2 +- apps/web-antd/vite.config.mts | 4 +- internal/node-utils/package.json | 2 +- internal/tailwind-config/package.json | 2 +- package.json | 2 +- .../src/authentication/authentication.vue | 4 +- .../authentication/widgets/layout-toggle.vue | 6 +- .../src/basic/content/use-content-spinner.ts | 4 +- .../universal-ui/src/fallback/fallback.ts | 2 +- .../universal-ui/src/fallback/fallback.vue | 10 +- .../{icon-hello.vue => icon-comming-soon.vue} | 0 .../src/global-search/global-search.vue | 10 +- .../src/global-search/search-panel.vue | 6 +- .../blocks/layout/interface-control.vue | 2 +- .../preferences/blocks/layout/navigation.vue | 8 +- .../src/preferences/blocks/layout/tabbar.vue | 4 +- .../src/preferences/blocks/theme/builtin.vue | 30 +-- .../preferences/blocks/theme/color-mode.vue | 4 +- .../src/preferences/blocks/theme/theme.vue | 6 +- .../widgets/src/preferences/preferences.vue | 6 +- .../widgets/src/theme-toggle/theme-toggle.vue | 4 +- packages/locales/src/langs/en-US.yaml | 172 ++++++------- packages/locales/src/langs/zh-CN.yaml | 176 ++++++------- pnpm-lock.yaml | 88 +++---- 35 files changed, 531 insertions(+), 523 deletions(-) create mode 100644 apps/web-antd/src/router/routes/modules/demos.ts delete mode 100644 apps/web-antd/src/router/routes/modules/fallback.ts delete mode 100644 apps/web-antd/src/router/routes/modules/nested.ts delete mode 100644 apps/web-antd/src/router/routes/modules/outside.ts rename apps/web-antd/src/views/{ => demos}/nested/menu-1.vue (79%) rename apps/web-antd/src/views/{ => demos}/nested/menu-2-1.vue (79%) rename apps/web-antd/src/views/{ => demos}/nested/menu-3-1.vue (79%) rename apps/web-antd/src/views/{ => demos}/nested/menu-3-2-1.vue (79%) rename packages/business/universal-ui/src/fallback/icons/{icon-hello.vue => icon-comming-soon.vue} (100%) diff --git a/apps/web-antd/src/apis/modules/user.ts b/apps/web-antd/src/apis/modules/user.ts index 80288b3f..16b6a1e7 100644 --- a/apps/web-antd/src/apis/modules/user.ts +++ b/apps/web-antd/src/apis/modules/user.ts @@ -2,20 +2,20 @@ import type { UserInfo } from '@vben/types'; import type { UserApiType } from '../types'; -import { request } from '#/forward'; +import { get, post } from '#/forward'; /** * 登录 */ async function userLogin(data: UserApiType.LoginParams) { - return request('/login', { data, method: 'post' }); + return post('/login', data); } /** * 获取用户信息 */ async function getUserInfo() { - return request('/getUserInfo', { method: 'get' }); + return get('/getUserInfo'); } export { getUserInfo, userLogin }; diff --git a/apps/web-antd/src/forward/request/index.ts b/apps/web-antd/src/forward/request/index.ts index 4d57b628..4e84d47b 100644 --- a/apps/web-antd/src/forward/request/index.ts +++ b/apps/web-antd/src/forward/request/index.ts @@ -81,9 +81,9 @@ function setupRequestInterceptors(client: RequestClient) { ); } -const { request } = createRequestClient(); +const { get, post, request } = createRequestClient(); // 其他配置的请求方法 // const { request: xxxRequest } = createRequest(); -export { request }; +export { get, post, request }; diff --git a/apps/web-antd/src/router/routes/modules/demos.ts b/apps/web-antd/src/router/routes/modules/demos.ts new file mode 100644 index 00000000..af976225 --- /dev/null +++ b/apps/web-antd/src/router/routes/modules/demos.ts @@ -0,0 +1,235 @@ +import type { RouteRecordRaw } from 'vue-router'; + +import { $t } from '@vben/locales/helper'; + +import { BasicLayout, IFrameView } from '#/layouts'; + +const routes: RouteRecordRaw[] = [ + { + component: BasicLayout, + meta: { + icon: 'ic:baseline-view-in-ar', + keepAlive: true, + order: 1000, + title: $t('page.demos.title'), + }, + name: 'Demos', + path: '/demos', + redirect: '/demos/fallback/403', + children: [ + { + meta: { + icon: 'mdi:lightbulb-error-outline', + title: $t('page.demos.fallback.title'), + }, + name: 'FallbackLayout', + path: '/fallback', + redirect: '/fallback/403', + children: [ + { + name: 'Fallback403', + path: '403', + component: () => + import('#/views/_essential/fallback/forbidden.vue'), + meta: { + icon: 'mdi:do-not-disturb-alt', + title: '403', + }, + }, + { + name: 'Fallback404', + path: '404', + component: () => + import('#/views/_essential/fallback/not-found.vue'), + meta: { + icon: 'mdi:table-off', + title: '404', + }, + }, + { + name: 'Fallback500', + path: '500', + component: () => + import('#/views/_essential/fallback/internal-error.vue'), + meta: { + icon: 'mdi:server-network-off', + title: '500', + }, + }, + { + name: 'FallbackOffline', + path: 'offline', + component: () => import('#/views/_essential/fallback/offline.vue'), + meta: { + icon: 'mdi:offline', + title: $t('fallback.offline'), + }, + }, + ], + }, + { + meta: { + icon: 'ic:round-settings-input-composite', + title: $t('page.demos.outside.title'), + }, + name: 'Outside', + path: '/outside', + redirect: '/outside/iframe', + children: [ + { + name: 'iframe', + path: 'iframe', + meta: { + icon: 'mdi:newspaper-variant-outline', + title: $t('page.demos.outside.embedded'), + }, + redirect: '/outside/iframe/vue-document', + children: [ + { + name: 'VueDocument', + path: 'vue-document', + component: IFrameView, + meta: { + icon: 'logos:vue', + iframeSrc: 'https://cn.vuejs.org/', + keepAlive: true, + title: 'Vue', + }, + }, + { + name: 'Tailwindcss', + path: 'tailwindcss', + component: IFrameView, + meta: { + icon: 'devicon:tailwindcss', + iframeSrc: 'https://tailwindcss.com/', + // keepAlive: true, + title: 'Tailwindcss', + }, + }, + ], + }, + { + name: 'ExternalLink', + path: 'external-link', + meta: { + icon: 'mdi:newspaper-variant-multiple-outline', + title: $t('page.demos.outside.external-link'), + }, + redirect: '/outside/external-link/vite', + children: [ + { + name: 'Vite', + path: 'vite', + component: IFrameView, + meta: { + icon: 'logos:vitejs', + link: 'https://vitejs.dev/', + title: 'Vite', + }, + }, + { + name: 'VueUse', + path: 'vue-use', + component: IFrameView, + meta: { + icon: 'logos:vueuse', + link: 'https://vueuse.org', + title: 'VueUse', + }, + }, + ], + }, + ], + }, + { + meta: { + icon: 'ic:round-menu', + title: $t('page.demos.nested.title'), + }, + name: 'Nested', + path: 'nested', + redirect: '/demos/nested/menu1', + children: [ + { + name: 'Menu1', + path: 'menu1', + component: () => import('#/views/demos/nested/menu-1.vue'), + meta: { + icon: 'ic:round-menu', + keepAlive: true, + title: $t('page.demos.nested.menu1'), + }, + }, + { + name: 'Menu2', + path: 'menu2', + meta: { + icon: 'ic:round-menu', + keepAlive: true, + title: $t('page.demos.nested.menu2'), + }, + redirect: '/nested/menu2/menu2-1', + children: [ + { + name: 'Menu21', + path: 'menu2-1', + component: () => import('#/views/demos/nested/menu-2-1.vue'), + meta: { + icon: 'ic:round-menu', + keepAlive: true, + title: $t('page.demos.nested.menu21'), + }, + }, + ], + }, + { + name: 'Menu3', + path: 'menu3', + meta: { + icon: 'ic:round-menu', + title: $t('page.demos.nested.menu3'), + }, + redirect: '/nested/menu3/menu3-1', + children: [ + { + name: 'Menu31', + path: 'menu3-1', + component: () => import('#/views/demos/nested/menu-3-1.vue'), + meta: { + icon: 'ic:round-menu', + keepAlive: true, + title: $t('page.demos.nested.menu31'), + }, + }, + { + name: 'Menu32', + path: 'menu3-2', + meta: { + icon: 'ic:round-menu', + title: $t('page.demos.nested.menu32'), + }, + redirect: '/nested/menu3/menu3-2/menu3-2-1', + children: [ + { + name: 'Menu321', + path: 'menu3-2-1', + component: () => + import('#/views/demos/nested/menu-3-2-1.vue'), + meta: { + icon: 'ic:round-menu', + keepAlive: true, + title: $t('page.demos.nested.menu321'), + }, + }, + ], + }, + ], + }, + ], + }, + ], + }, +]; + +export default routes; diff --git a/apps/web-antd/src/router/routes/modules/fallback.ts b/apps/web-antd/src/router/routes/modules/fallback.ts deleted file mode 100644 index 58b42b35..00000000 --- a/apps/web-antd/src/router/routes/modules/fallback.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type { RouteRecordRaw } from 'vue-router'; - -import { $t } from '@vben/locales/helper'; - -import { BasicLayout } from '#/layouts'; - -const routes: RouteRecordRaw[] = [ - { - component: BasicLayout, - meta: { - icon: 'mdi:lightbulb-error-outline', - title: $t('page.fallback.title'), - }, - name: 'FallbackLayout', - path: '/fallback', - redirect: '/fallback/403', - children: [ - { - name: 'Fallback403', - path: '403', - component: () => import('#/views/_essential/fallback/forbidden.vue'), - meta: { - icon: 'mdi:do-not-disturb-alt', - title: '403', - }, - }, - { - name: 'Fallback404', - path: '404', - component: () => import('#/views/_essential/fallback/not-found.vue'), - meta: { - icon: 'mdi:table-off', - title: '404', - }, - }, - { - name: 'Fallback500', - path: '500', - component: () => - import('#/views/_essential/fallback/internal-error.vue'), - meta: { - icon: 'mdi:server-network-off', - title: '500', - }, - }, - { - name: 'FallbackOffline', - path: 'offline', - component: () => import('#/views/_essential/fallback/offline.vue'), - meta: { - icon: 'mdi:offline', - title: $t('fallback.offline'), - }, - }, - ], - }, -]; - -export default routes; diff --git a/apps/web-antd/src/router/routes/modules/nested.ts b/apps/web-antd/src/router/routes/modules/nested.ts deleted file mode 100644 index 508f76d7..00000000 --- a/apps/web-antd/src/router/routes/modules/nested.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type { RouteRecordRaw } from 'vue-router'; - -import { $t } from '@vben/locales/helper'; - -import { BasicLayout } from '#/layouts'; - -const routes: RouteRecordRaw[] = [ - { - component: BasicLayout, - meta: { - icon: 'ic:round-menu', - keepAlive: true, - order: 1000, - title: $t('page.nested.title'), - }, - name: 'Nested', - path: '/nested', - redirect: '/nested/menu1', - children: [ - { - name: 'Menu1', - path: 'menu1', - component: () => import('#/views/nested/menu-1.vue'), - meta: { - icon: 'ic:round-menu', - keepAlive: true, - title: $t('page.nested.menu1'), - }, - }, - { - name: 'Menu2', - path: 'menu2', - meta: { - icon: 'ic:round-menu', - keepAlive: true, - title: $t('page.nested.menu2'), - }, - redirect: '/nested/menu2/menu2-1', - children: [ - { - name: 'Menu21', - path: 'menu2-1', - component: () => import('#/views/nested/menu-2-1.vue'), - meta: { - icon: 'ic:round-menu', - keepAlive: true, - title: $t('page.nested.menu21'), - }, - }, - ], - }, - { - name: 'Menu3', - path: 'menu3', - meta: { - icon: 'ic:round-menu', - title: $t('page.nested.menu3'), - }, - redirect: '/nested/menu3/menu3-1', - children: [ - { - name: 'Menu31', - path: 'menu3-1', - component: () => import('#/views/nested/menu-3-1.vue'), - meta: { - icon: 'ic:round-menu', - keepAlive: true, - title: $t('page.nested.menu31'), - }, - }, - { - name: 'Menu32', - path: 'menu3-2', - meta: { - icon: 'ic:round-menu', - title: $t('page.nested.menu32'), - }, - redirect: '/nested/menu3/menu3-2/menu3-2-1', - children: [ - { - name: 'Menu321', - path: 'menu3-2-1', - component: () => import('#/views/nested/menu-3-2-1.vue'), - meta: { - icon: 'ic:round-menu', - keepAlive: true, - title: $t('page.nested.menu321'), - }, - }, - ], - }, - ], - }, - ], - }, -]; - -export default routes; diff --git a/apps/web-antd/src/router/routes/modules/outside.ts b/apps/web-antd/src/router/routes/modules/outside.ts deleted file mode 100644 index de4906cd..00000000 --- a/apps/web-antd/src/router/routes/modules/outside.ts +++ /dev/null @@ -1,86 +0,0 @@ -import type { RouteRecordRaw } from 'vue-router'; - -import { $t } from '@vben/locales/helper'; - -import { BasicLayout, IFrameView } from '#/layouts'; - -const routes: RouteRecordRaw[] = [ - { - component: BasicLayout, - meta: { - icon: 'ic:round-settings-input-composite', - title: $t('page.outside.title'), - }, - name: 'Outside', - path: '/outside', - redirect: '/outside/iframe', - children: [ - { - name: 'iframe', - path: 'iframe', - meta: { - icon: 'mdi:newspaper-variant-outline', - title: $t('page.outside.embedded'), - }, - redirect: '/outside/iframe/vue-document', - children: [ - { - name: 'VueDocument', - path: 'vue-document', - component: IFrameView, - meta: { - icon: 'logos:vue', - iframeSrc: 'https://cn.vuejs.org/', - keepAlive: true, - title: 'Vue', - }, - }, - { - name: 'Tailwindcss', - path: 'tailwindcss', - component: IFrameView, - meta: { - icon: 'devicon:tailwindcss', - iframeSrc: 'https://tailwindcss.com/', - // keepAlive: true, - title: 'Tailwindcss', - }, - }, - ], - }, - { - name: 'ExternalLink', - path: 'external-link', - meta: { - icon: 'mdi:newspaper-variant-multiple-outline', - title: $t('page.outside.external-link'), - }, - redirect: '/outside/external-link/vite', - children: [ - { - name: 'Vite', - path: 'vite', - component: IFrameView, - meta: { - icon: 'logos:vitejs', - link: 'https://vitejs.dev/', - title: 'Vite', - }, - }, - { - name: 'VueUse', - path: 'vue-use', - component: IFrameView, - meta: { - icon: 'logos:vueuse', - link: 'https://vueuse.org', - title: 'VueUse', - }, - }, - ], - }, - ], - }, -]; - -export default routes; diff --git a/apps/web-antd/src/router/routes/modules/vben.ts b/apps/web-antd/src/router/routes/modules/vben.ts index 11c08c6e..186e9380 100644 --- a/apps/web-antd/src/router/routes/modules/vben.ts +++ b/apps/web-antd/src/router/routes/modules/vben.ts @@ -10,9 +10,10 @@ const routes: RouteRecordRaw[] = [ { component: BasicLayout, meta: { + badgeType: 'dot', icon: VBEN_LOGO, order: 9999, - title: 'Vben', + title: 'Vben Admin', }, name: 'AboutLayout', path: '/vben-admin', @@ -23,6 +24,7 @@ const routes: RouteRecordRaw[] = [ path: 'about', component: () => import('#/views/_essential/vben/about/index.vue'), meta: { + badgeType: 'dot', icon: 'mdi:creative-commons', title: $t('page.vben.about'), }, diff --git a/apps/web-antd/src/views/_essential/fallback/coming-soon.vue b/apps/web-antd/src/views/_essential/fallback/coming-soon.vue index 2f91a0ac..2938a13b 100644 --- a/apps/web-antd/src/views/_essential/fallback/coming-soon.vue +++ b/apps/web-antd/src/views/_essential/fallback/coming-soon.vue @@ -3,5 +3,5 @@ import { Fallback } from '@vben/universal-ui'; diff --git a/apps/web-antd/src/views/nested/menu-1.vue b/apps/web-antd/src/views/demos/nested/menu-1.vue similarity index 79% rename from apps/web-antd/src/views/nested/menu-1.vue rename to apps/web-antd/src/views/demos/nested/menu-1.vue index cf24d69a..d5b25fd0 100644 --- a/apps/web-antd/src/views/nested/menu-1.vue +++ b/apps/web-antd/src/views/demos/nested/menu-1.vue @@ -5,5 +5,5 @@ defineOptions({ name: 'Menu1' }); diff --git a/apps/web-antd/src/views/nested/menu-2-1.vue b/apps/web-antd/src/views/demos/nested/menu-2-1.vue similarity index 79% rename from apps/web-antd/src/views/nested/menu-2-1.vue rename to apps/web-antd/src/views/demos/nested/menu-2-1.vue index 3963122a..0f06f722 100644 --- a/apps/web-antd/src/views/nested/menu-2-1.vue +++ b/apps/web-antd/src/views/demos/nested/menu-2-1.vue @@ -5,5 +5,5 @@ defineOptions({ name: 'Menu21' }); diff --git a/apps/web-antd/src/views/nested/menu-3-1.vue b/apps/web-antd/src/views/demos/nested/menu-3-1.vue similarity index 79% rename from apps/web-antd/src/views/nested/menu-3-1.vue rename to apps/web-antd/src/views/demos/nested/menu-3-1.vue index f1cb4ab0..e0a01abd 100644 --- a/apps/web-antd/src/views/nested/menu-3-1.vue +++ b/apps/web-antd/src/views/demos/nested/menu-3-1.vue @@ -5,5 +5,5 @@ defineOptions({ name: 'Menu31' }); diff --git a/apps/web-antd/src/views/nested/menu-3-2-1.vue b/apps/web-antd/src/views/demos/nested/menu-3-2-1.vue similarity index 79% rename from apps/web-antd/src/views/nested/menu-3-2-1.vue rename to apps/web-antd/src/views/demos/nested/menu-3-2-1.vue index a79d0f85..59eab11a 100644 --- a/apps/web-antd/src/views/nested/menu-3-2-1.vue +++ b/apps/web-antd/src/views/demos/nested/menu-3-2-1.vue @@ -5,5 +5,5 @@ defineOptions({ name: 'Menu321' }); diff --git a/apps/web-antd/vite.config.mts b/apps/web-antd/vite.config.mts index ee5b20aa..aa7982ec 100644 --- a/apps/web-antd/vite.config.mts +++ b/apps/web-antd/vite.config.mts @@ -3,8 +3,8 @@ import { defineConfig } from '@vben/vite-config'; export default defineConfig({ application: ({ mode }) => { return { - compress: true, - compressTypes: ['brotli', 'gzip'], + compress: false, + compressTypes: ['brotli', 'gzip'] as const, importmap: false, importmapOptions: { // 通过 Importmap CDN 方式引入, diff --git a/internal/node-utils/package.json b/internal/node-utils/package.json index 86285f3f..2735235a 100644 --- a/internal/node-utils/package.json +++ b/internal/node-utils/package.json @@ -34,7 +34,7 @@ "dayjs": "^1.11.11", "find-up": "^7.0.0", "nanoid": "^5.0.7", - "pkg-types": "^1.1.1", + "pkg-types": "^1.1.2", "prettier": "^3.3.2", "rimraf": "^5.0.7", "zx": "^7.2.3" diff --git a/internal/tailwind-config/package.json b/internal/tailwind-config/package.json index 32ccc6eb..8ad18c45 100644 --- a/internal/tailwind-config/package.json +++ b/internal/tailwind-config/package.json @@ -45,7 +45,7 @@ "tailwindcss": "^3.4.3" }, "dependencies": { - "@iconify/json": "^2.2.223", + "@iconify/json": "^2.2.224", "@iconify/tailwind": "^1.1.1", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/nesting": "0.0.0-insiders.565cd3e", diff --git a/package.json b/package.json index f26a13a0..55d79721 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", - "@changesets/cli": "^2.27.6", + "@changesets/cli": "^2.27.7", "@ls-lint/ls-lint": "^2.2.3", "@types/jsdom": "^21.1.7", "@types/node": "^20.14.9", diff --git a/packages/business/layouts/src/authentication/authentication.vue b/packages/business/layouts/src/authentication/authentication.vue index eb1d4b52..a9ef6c61 100644 --- a/packages/business/layouts/src/authentication/authentication.vue +++ b/packages/business/layouts/src/authentication/authentication.vue @@ -49,10 +49,10 @@ const appName = computed(() => preferences.app.name);
- {{ $t('authentication.layout-title') }} + {{ $t('authentication.page-title') }}
- {{ $t('authentication.layout-desc') }} + {{ $t('authentication.page-desc') }}
diff --git a/packages/business/layouts/src/authentication/widgets/layout-toggle.vue b/packages/business/layouts/src/authentication/widgets/layout-toggle.vue index cf7614d9..96c26243 100644 --- a/packages/business/layouts/src/authentication/widgets/layout-toggle.vue +++ b/packages/business/layouts/src/authentication/widgets/layout-toggle.vue @@ -21,17 +21,17 @@ const menus = computed((): VbenDropdownMenuItem[] => [ { icon: MdiDockLeft, key: 'panel-left', - text: $t('layout.align-left'), + text: $t('authentication.layout.align-left'), }, { icon: MdiDockBottom, key: 'panel-center', - text: $t('layout.center'), + text: $t('authentication.layout.center'), }, { icon: MdiDockRight, key: 'panel-right', - text: $t('layout.align-right'), + text: $t('authentication.layout.align-right'), }, ]); diff --git a/packages/business/layouts/src/basic/content/use-content-spinner.ts b/packages/business/layouts/src/basic/content/use-content-spinner.ts index 47b02989..73348c81 100644 --- a/packages/business/layouts/src/basic/content/use-content-spinner.ts +++ b/packages/business/layouts/src/basic/content/use-content-spinner.ts @@ -25,7 +25,7 @@ function useContentSpinner() { }; router.beforeEach((to) => { - if (to.meta.loaded || !enableLoading.value) { + if (to.meta.loaded || !enableLoading.value || to.meta.iframeSrc) { return true; } startTime.value = performance.now(); @@ -34,7 +34,7 @@ function useContentSpinner() { }); router.afterEach((to) => { - if (to.meta.loaded || !enableLoading.value) { + if (to.meta.loaded || !enableLoading.value || to.meta.iframeSrc) { return true; } diff --git a/packages/business/universal-ui/src/fallback/fallback.ts b/packages/business/universal-ui/src/fallback/fallback.ts index b82845f7..616a3f3a 100644 --- a/packages/business/universal-ui/src/fallback/fallback.ts +++ b/packages/business/universal-ui/src/fallback/fallback.ts @@ -16,7 +16,7 @@ interface FallbackProps { /** * @zh_CN 内置类型 */ - status?: '403' | '404' | '500' | 'hello' | 'offline'; + status?: '403' | '404' | '500' | 'comming-soon' | 'offline'; /** * @zh_CN 页面提示语 */ diff --git a/packages/business/universal-ui/src/fallback/fallback.vue b/packages/business/universal-ui/src/fallback/fallback.vue index 7bdfa405..a2cb5c82 100644 --- a/packages/business/universal-ui/src/fallback/fallback.vue +++ b/packages/business/universal-ui/src/fallback/fallback.vue @@ -19,14 +19,16 @@ const props = withDefaults(defineProps(), { homePath: '/', image: '', showBack: true, - status: 'hello', + status: 'comming-soon', title: '', }); const Icon403 = defineAsyncComponent(() => import('./icons/icon-403.vue')); const Icon404 = defineAsyncComponent(() => import('./icons/icon-404.vue')); const Icon500 = defineAsyncComponent(() => import('./icons/icon-500.vue')); -const IconHello = defineAsyncComponent(() => import('./icons/icon-hello.vue')); +const IconHello = defineAsyncComponent( + () => import('./icons/icon-comming-soon.vue'), +); const IconOffline = defineAsyncComponent( () => import('./icons/icon-offline.vue'), ); @@ -49,7 +51,7 @@ const titleText = computed(() => { case 'offline': { return $t('fallback.offline-error'); } - case 'hello': { + case 'comming-soon': { return $t('fallback.coming-soon'); } default: { @@ -95,7 +97,7 @@ const fallbackIcon = computed(() => { case 'offline': { return IconOffline; } - case 'hello': { + case 'comming-soon': { return IconHello; } default: { diff --git a/packages/business/universal-ui/src/fallback/icons/icon-hello.vue b/packages/business/universal-ui/src/fallback/icons/icon-comming-soon.vue similarity index 100% rename from packages/business/universal-ui/src/fallback/icons/icon-hello.vue rename to packages/business/universal-ui/src/fallback/icons/icon-comming-soon.vue diff --git a/packages/business/widgets/src/global-search/global-search.vue b/packages/business/widgets/src/global-search/global-search.vue index f32b8eba..da2a24b4 100644 --- a/packages/business/widgets/src/global-search/global-search.vue +++ b/packages/business/widgets/src/global-search/global-search.vue @@ -71,7 +71,7 @@ if (props.enableShortcutKey) { @@ -106,16 +106,16 @@ if (props.enableShortcutKey) { >
- {{ $t('search.select') }} + {{ $t('widgets.search.select') }}
- {{ $t('search.navigate') }} + {{ $t('widgets.search.navigate') }}
- {{ $t('search.close') }} + {{ $t('widgets.search.close') }}
diff --git a/packages/business/widgets/src/global-search/search-panel.vue b/packages/business/widgets/src/global-search/search-panel.vue index 4a661928..ff788deb 100644 --- a/packages/business/widgets/src/global-search/search-panel.vue +++ b/packages/business/widgets/src/global-search/search-panel.vue @@ -223,7 +223,7 @@ onMounted(() => { >

- {{ $t('search.no-results') }} + {{ $t('widgets.search.no-results') }} "{{ keyword }}" @@ -235,7 +235,7 @@ onMounted(() => { class="text-muted-foreground text-center" >

- {{ $t('search.no-recent') }} + {{ $t('widgets.search.no-recent') }}

@@ -244,7 +244,7 @@ onMounted(() => { v-if="searchHistory.length > 0 && !keyword" class="text-muted-foreground mb-2 text-xs" > - {{ $t('search.recent') }} + {{ $t('widgets.search.recent') }}
  • ('logoVisible'); diff --git a/packages/business/widgets/src/preferences/blocks/layout/tabbar.vue b/packages/business/widgets/src/preferences/blocks/layout/tabbar.vue index 2bf28a24..810bcf98 100644 --- a/packages/business/widgets/src/preferences/blocks/layout/tabbar.vue +++ b/packages/business/widgets/src/preferences/blocks/layout/tabbar.vue @@ -15,10 +15,10 @@ const tabbarShowIcon = defineModel('tabbarShowIcon');