refactor(@vben/layouts): remove @vben/widgets and migrate to @vben/layouts/src/widgets

This commit is contained in:
vince
2024-07-09 22:49:36 +08:00
parent d26a4ee022
commit 2731a1ec96
81 changed files with 62 additions and 182 deletions

Binary file not shown.

View File

@@ -39,7 +39,6 @@
"@vben/types": "workspace:*",
"@vben/universal-ui": "workspace:*",
"@vben/utils": "workspace:*",
"@vben/widgets": "workspace:*",
"@vueuse/core": "^10.11.0",
"ant-design-vue": "^4.2.3",
"dayjs": "^1.11.11",

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { computed } from 'vue';
import { GlobalProvider } from '@vben/widgets';
import { GlobalProvider } from '@vben/universal-ui';
import { preferences, usePreferences } from '@vben-core/preferences';
import { App, ConfigProvider, theme } from 'ant-design-vue';
@@ -30,10 +30,7 @@ const tokenTheme = computed(() => {
</script>
<template>
<GlobalProvider
:enable-ai-assistant="preferences.app.aiAssistant"
:is-mobile="preferences.app.isMobile"
>
<GlobalProvider>
<ConfigProvider :locale="antdLocale" :theme="tokenTheme">
<App>
<RouterView />

View File

@@ -1,14 +1,13 @@
<script lang="ts" setup>
import type { NotificationItem } from '@vben/widgets';
import type { NotificationItem } from '@vben/layouts';
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { IcRoundCreditScore, MdiDriveDocument, MdiGithub } from '@vben/icons';
import { BasicLayout } from '@vben/layouts';
import { BasicLayout, Notification, UserDropdown } from '@vben/layouts';
import { openWindow } from '@vben/utils';
import { Notification, UserDropdown } from '@vben/widgets';
import { preferences } from '@vben-core/preferences';
import { $t } from '#/locales';