refactor(project): business changed its name to effects, and universal-ui changed its name to common-ui
parent
5e0b01c725
commit
7eff46d80c
|
@ -38,7 +38,7 @@
|
||||||
"@vben/layouts": "workspace:*",
|
"@vben/layouts": "workspace:*",
|
||||||
"@vben/styles": "workspace:*",
|
"@vben/styles": "workspace:*",
|
||||||
"@vben/types": "workspace:*",
|
"@vben/types": "workspace:*",
|
||||||
"@vben/universal-ui": "workspace:*",
|
"@vben/common-ui": "workspace:*",
|
||||||
"@vben/utils": "workspace:*",
|
"@vben/utils": "workspace:*",
|
||||||
"@vueuse/core": "^10.11.0",
|
"@vueuse/core": "^10.11.0",
|
||||||
"ant-design-vue": "^4.2.3",
|
"ant-design-vue": "^4.2.3",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
import { GlobalProvider } from '@vben/universal-ui';
|
import { GlobalProvider } from '@vben/common-ui';
|
||||||
import { preferences, usePreferences } from '@vben-core/preferences';
|
import { preferences, usePreferences } from '@vben-core/preferences';
|
||||||
|
|
||||||
import { App, ConfigProvider, theme } from 'ant-design-vue';
|
import { App, ConfigProvider, theme } from 'ant-design-vue';
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
|
||||||
import { LOGIN_PATH } from '@vben/constants';
|
import { LOGIN_PATH } from '@vben/constants';
|
||||||
import { IcRoundCreditScore, MdiDriveDocument, MdiGithub } from '@vben/icons';
|
import { IcRoundCreditScore, MdiDriveDocument, MdiGithub } from '@vben/icons';
|
||||||
import {
|
import {
|
||||||
|
@ -11,7 +12,6 @@ import {
|
||||||
NotificationItem,
|
NotificationItem,
|
||||||
UserDropdown,
|
UserDropdown,
|
||||||
} from '@vben/layouts';
|
} from '@vben/layouts';
|
||||||
import { AuthenticationLoginExpiredModal } from '@vben/universal-ui';
|
|
||||||
import { openWindow } from '@vben/utils';
|
import { openWindow } from '@vben/utils';
|
||||||
import { preferences } from '@vben-core/preferences';
|
import { preferences } from '@vben-core/preferences';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import type { LoginAndRegisterParams } from '@vben/common-ui';
|
||||||
import type { MenuRecordRaw, UserInfo } from '@vben/types';
|
import type { MenuRecordRaw, UserInfo } from '@vben/types';
|
||||||
import type { LoginAndRegisterParams } from '@vben/universal-ui';
|
|
||||||
import type { RouteRecordRaw } from 'vue-router';
|
import type { RouteRecordRaw } from 'vue-router';
|
||||||
|
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { LoginCodeParams } from '@vben/universal-ui';
|
import type { LoginCodeParams } from '@vben/common-ui';
|
||||||
|
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import { AuthenticationCodeLogin } from '@vben/universal-ui';
|
import { AuthenticationCodeLogin } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'CodeLogin' });
|
defineOptions({ name: 'CodeLogin' });
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import { AuthenticationForgetPassword } from '@vben/universal-ui';
|
import { AuthenticationForgetPassword } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'ForgetPassword' });
|
defineOptions({ name: 'ForgetPassword' });
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { AuthenticationLogin } from '@vben/universal-ui';
|
import { AuthenticationLogin } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useAccessStore } from '#/store';
|
import { useAccessStore } from '#/store';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { AuthenticationQrCodeLogin } from '@vben/universal-ui';
|
import { AuthenticationQrCodeLogin } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'QrCodeLogin' });
|
defineOptions({ name: 'QrCodeLogin' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { LoginAndRegisterParams } from '@vben/universal-ui';
|
import type { LoginAndRegisterParams } from '@vben/common-ui';
|
||||||
|
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import { AuthenticationRegister } from '@vben/universal-ui';
|
import { AuthenticationRegister } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'Register' });
|
defineOptions({ name: 'Register' });
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { About } from '@vben/universal-ui';
|
import { About } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'About' });
|
defineOptions({ name: 'About' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import type { AnalysisOverviewItem } from '@vben/common-ui';
|
||||||
import type { TabsOption } from '@vben/types';
|
import type { TabsOption } from '@vben/types';
|
||||||
import type { AnalysisOverviewItem } from '@vben/universal-ui';
|
|
||||||
|
|
||||||
|
import {
|
||||||
|
AnalysisChartCard,
|
||||||
|
AnalysisChartsTabs,
|
||||||
|
AnalysisOverview,
|
||||||
|
} from '@vben/common-ui';
|
||||||
import {
|
import {
|
||||||
SvgBellIcon,
|
SvgBellIcon,
|
||||||
SvgCakeIcon,
|
SvgCakeIcon,
|
||||||
SvgCardIcon,
|
SvgCardIcon,
|
||||||
SvgDownloadIcon,
|
SvgDownloadIcon,
|
||||||
} from '@vben/icons';
|
} from '@vben/icons';
|
||||||
import {
|
|
||||||
AnalysisChartCard,
|
|
||||||
AnalysisChartsTabs,
|
|
||||||
AnalysisOverview,
|
|
||||||
} from '@vben/universal-ui';
|
|
||||||
|
|
||||||
import AnalyticsTrends from './analytics-trends.vue';
|
import AnalyticsTrends from './analytics-trends.vue';
|
||||||
import AnalyticsVisits from './analytics-visits.vue';
|
import AnalyticsVisits from './analytics-visits.vue';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import type {
|
||||||
WorkbenchQuickNavItem,
|
WorkbenchQuickNavItem,
|
||||||
WorkbenchTodoItem,
|
WorkbenchTodoItem,
|
||||||
WorkbenchTrendItem,
|
WorkbenchTrendItem,
|
||||||
} from '@vben/universal-ui';
|
} from '@vben/common-ui';
|
||||||
|
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import {
|
||||||
WorkbenchQuickNav,
|
WorkbenchQuickNav,
|
||||||
WorkbenchTodo,
|
WorkbenchTodo,
|
||||||
WorkbenchTrends,
|
WorkbenchTrends,
|
||||||
} from '@vben/universal-ui';
|
} from '@vben/common-ui';
|
||||||
import { preferences } from '@vben-core/preferences';
|
import { preferences } from '@vben-core/preferences';
|
||||||
|
|
||||||
import { useAccessStore } from '#/store';
|
import { useAccessStore } from '#/store';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'AccessAdminVisible' });
|
defineOptions({ name: 'AccessAdminVisible' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { LoginAndRegisterParams } from '@vben/universal-ui';
|
import type { LoginAndRegisterParams } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { LoginAndRegisterParams } from '@vben/universal-ui';
|
import type { LoginAndRegisterParams } from '@vben/common-ui';
|
||||||
|
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'AccessMenuVisible403' });
|
defineOptions({ name: 'AccessMenuVisible403' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'AccessSuperVisible' });
|
defineOptions({ name: 'AccessSuperVisible' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'AccessUserVisible' });
|
defineOptions({ name: 'AccessUserVisible' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'HideMenuChildren' });
|
defineOptions({ name: 'HideMenuChildren' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'Menu1' });
|
defineOptions({ name: 'Menu1' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'Menu21' });
|
defineOptions({ name: 'Menu21' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'Menu31' });
|
defineOptions({ name: 'Menu31' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Fallback } from '@vben/universal-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
|
||||||
defineOptions({ name: 'Menu321' });
|
defineOptions({ name: 'Menu321' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# business
|
|
||||||
|
|
||||||
与业务耦合的 UI 组件库 & SDK,同时也会耦合组件库及大仓依赖,如果你的包或者组件不知道放哪里,可以考虑放到这里。
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# effects
|
||||||
|
|
||||||
|
用于存放与副作用相关的代码和逻辑。如果你的包有下面的特点,那么你可以考虑将其放在 effects 目录下:
|
||||||
|
|
||||||
|
- 涉及到状态管理框架 pinia,可能包含处理副作用(如异步操作、调用 API)的部分。
|
||||||
|
- 涉及到用户偏好设置 @vben-core/preferences,处理本地存储或浏览器缓存的逻辑使用到了localStorage。
|
||||||
|
- 涉及到导航、页面跳转等场景,包含处理路由变化的逻辑。
|
||||||
|
- 耦合的组件库及大仓依赖
|
|
@ -6,7 +6,7 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
"directory": "packages/business/permissions"
|
"directory": "packages/effects/permissions"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
|
@ -6,7 +6,7 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
"directory": "packages/business/chart-ui"
|
"directory": "packages/effects/chart-ui"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@vben/universal-ui",
|
"name": "@vben/common-ui",
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"homepage": "https://github.com/vbenjs/vue-vben-admin",
|
"homepage": "https://github.com/vbenjs/vue-vben-admin",
|
||||||
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
|
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
"directory": "packages/business/universal-ui"
|
"directory": "packages/effects/common-ui"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
@ -6,7 +6,7 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
"directory": "packages/business/layouts"
|
"directory": "packages/effects/layouts"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue