refactor(@vben/layouts): remove @vben/widgets and migrate to @vben/layouts/src/widgets
This commit is contained in:
Binary file not shown.
@@ -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",
|
||||
|
@@ -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 />
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user