refactor(project): re-adjust the overall folder

This commit is contained in:
vince
2024-07-23 00:03:59 +08:00
parent a1a566cb2f
commit 14538f7ed5
281 changed files with 1365 additions and 1659 deletions

View File

@@ -23,6 +23,22 @@ withDefaults(defineProps<Props>(), {
title: '关于项目',
});
declare global {
const __VBEN_ADMIN_METADATA__: {
authorEmail: string;
authorName: string;
authorUrl: string;
buildTime: string;
dependencies: Record<string, string>;
description: string;
devDependencies: Record<string, string>;
homepage: string;
license: string;
repositoryUrl: string;
version: string;
};
}
const {
authorEmail,
authorName,

View File

@@ -4,8 +4,7 @@ import type { LoginCodeEmits } from './typings';
import { computed, onBeforeUnmount, reactive, ref } from 'vue';
import { useRouter } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import { VbenButton, VbenInput, VbenPinInput } from '@vben-core/shadcn-ui';
import Title from './auth-title.vue';
@@ -27,7 +26,7 @@ defineOptions({
const props = withDefaults(defineProps<Props>(), {
loading: false,
loginPath: LOGIN_PATH,
loginPath: '/auth/login',
});
const emit = defineEmits<{

View File

@@ -2,8 +2,7 @@
import { computed, reactive } from 'vue';
import { useRouter } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import { VbenButton, VbenInput } from '@vben-core/shadcn-ui';
import Title from './auth-title.vue';
@@ -25,7 +24,7 @@ defineOptions({
const props = withDefaults(defineProps<Props>(), {
loading: false,
loginPath: LOGIN_PATH,
loginPath: '/auth/login',
});
const emit = defineEmits<{

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { useForwardPropsEmits } from '@vben-core/hooks';
import { useForwardPropsEmits } from '@vben/hooks';
import {
Dialog,
DialogContent,

View File

@@ -2,7 +2,7 @@
import { computed, reactive } from 'vue';
import { useRouter } from 'vue-router';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import {
VbenButton,
VbenCheckbox,

View File

@@ -2,8 +2,7 @@
import { ref } from 'vue';
import { useRouter } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import { VbenButton } from '@vben-core/shadcn-ui';
import { useQRCode } from '@vueuse/integrations/useQRCode';
@@ -27,7 +26,7 @@ defineOptions({
const props = withDefaults(defineProps<Props>(), {
loading: false,
loginPath: LOGIN_PATH,
loginPath: '/auth/login',
});
const router = useRouter();

View File

@@ -4,8 +4,7 @@ import type { RegisterEmits } from './typings';
import { computed, reactive } from 'vue';
import { useRouter } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import {
VbenButton,
VbenCheckbox,
@@ -32,7 +31,7 @@ defineOptions({
const props = withDefaults(defineProps<Props>(), {
loading: false,
loginPath: LOGIN_PATH,
loginPath: '/auth/login',
});
const emit = defineEmits<{

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { MdiGithub, MdiGoogle, MdiQqchat, MdiWechat } from '@vben-core/icons';
import { $t } from '@vben-core/locales';
import { MdiGithub, MdiGoogle, MdiQqchat, MdiWechat } from '@vben/icons';
import { $t } from '@vben/locales';
import { VbenIconButton } from '@vben-core/shadcn-ui';
defineOptions({

View File

@@ -4,8 +4,8 @@ import type { FallbackProps } from './fallback';
import { computed, defineAsyncComponent } from 'vue';
import { useRouter } from 'vue-router';
import { ArrowLeft, RotateCw } from '@vben-core/icons';
import { $t } from '@vben-core/locales';
import { ArrowLeft, RotateCw } from '@vben/icons';
import { $t } from '@vben/locales';
import { VbenButton } from '@vben-core/shadcn-ui';
interface Props extends FallbackProps {}