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

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { $t } from '@vben-core/locales';
import { SUPPORT_LANGUAGES } from '@vben-core/preferences';
import { $t } from '@vben/locales';
import { SUPPORT_LANGUAGES } from '@vben/preferences';
import SelectItem from '../select-item.vue';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { useSlots } from 'vue';
import { CircleHelp } from '@vben-core/icons';
import { CircleHelp } from '@vben/icons';
import { Input, VbenTooltip } from '@vben-core/shadcn-ui';
defineOptions({

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { computed } from 'vue';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';
import ToggleItem from '../toggle-item.vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { type Component, computed } from 'vue';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import { ContentCompact, ContentWide } from '../../icons';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import InputItem from '../input-item.vue';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { LayoutHeaderModeType, SelectOption } from '@vben-core/typings';
import type { LayoutHeaderModeType, SelectOption } from '@vben/types';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SelectItem from '../select-item.vue';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { LayoutType } from '@vben-core/typings';
import type { LayoutType } from '@vben/types';
import { type Component, computed } from 'vue';
import { CircleHelp } from '@vben-core/icons';
import { $t } from '@vben-core/locales';
import { CircleHelp } from '@vben/icons';
import { $t } from '@vben/locales';
import { VbenTooltip } from '@vben-core/shadcn-ui';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';
import ToggleItem from '../toggle-item.vue';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import NumberFieldItem from '../number-field-item.vue';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed } from 'vue';
import { $t } from '@vben-core/locales';
import { SelectOption } from '@vben-core/typings';
import { $t } from '@vben/locales';
import { SelectOption } from '@vben/types';
import SelectItem from '../select-item.vue';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { useSlots } from 'vue';
import { CircleHelp } from '@vben-core/icons';
import { CircleHelp } from '@vben/icons';
import {
NumberField,
NumberFieldContent,

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { useSlots } from 'vue';
import { CircleHelp } from '@vben-core/icons';
import { CircleHelp } from '@vben/icons';
import {
Select,
SelectContent,

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed } from 'vue';
import { $t } from '@vben-core/locales';
import { isWindowsOs } from '@vben-core/toolkit';
import { $t } from '@vben/locales';
import { isWindowsOs } from '@vben/utils';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useSlots } from 'vue';
import { CircleHelp } from '@vben-core/icons';
import { CircleHelp } from '@vben/icons';
import { Switch, VbenTooltip } from '@vben-core/shadcn-ui';
defineOptions({

View File

@@ -1,15 +1,15 @@
<script setup lang="ts">
import type { BuiltinThemeType } from '@vben-core/typings';
import type { BuiltinThemeType } from '@vben/types';
import { computed, ref } from 'vue';
import { UserRoundPen } from '@vben-core/icons';
import { $t } from '@vben-core/locales';
import { UserRoundPen } from '@vben/icons';
import { $t } from '@vben/locales';
import {
BUILT_IN_THEME_PRESETS,
type BuiltinThemePreset,
} from '@vben-core/preferences';
import { TinyColor, convertToHsl } from '@vben-core/toolkit';
} from '@vben/preferences';
import { convertToHsl, TinyColor } from '@vben/utils';
defineOptions({
name: 'PreferenceBuiltinTheme',

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { $t } from '@vben-core/locales';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { ThemeModeType } from '@vben-core/typings';
import type { ThemeModeType } from '@vben/types';
import type { Component } from 'vue';
import { MoonStar, Sun, SunMoon } from '@vben-core/icons';
import { $t } from '@vben-core/locales';
import { MoonStar, Sun, SunMoon } from '@vben/icons';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { SelectOption } from '@vben-core/typings';
import type { SelectOption } from '@vben/types';
import { ToggleGroup, ToggleGroupItem } from '@vben-core/shadcn-ui';

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import type { SegmentedItem } from '@vben-core/shadcn-ui';
import type {
BreadcrumbStyleType,
BuiltinThemeType,
@@ -9,24 +8,25 @@ import type {
NavigationStyleType,
SupportedLanguagesType,
ThemeModeType,
} from '@vben-core/typings';
} from '@vben/types';
import type { SegmentedItem } from '@vben-core/shadcn-ui';
import { computed, ref } from 'vue';
import { Copy, RotateCw, SwatchBook } from '@vben-core/icons';
import { $t, loadLocaleMessages } from '@vben-core/locales';
import { Copy, RotateCw, SwatchBook } from '@vben/icons';
import { $t, loadLocaleMessages } from '@vben/locales';
import {
clearPreferencesCache,
preferences,
resetPreferences,
usePreferences,
} from '@vben-core/preferences';
} from '@vben/preferences';
import {
useToast,
VbenButton,
VbenIconButton,
VbenSegmented,
VbenSheet,
useToast,
} from '@vben-core/shadcn-ui';
import { useClipboard } from '@vueuse/core';

View File

@@ -1,9 +1,9 @@
<script lang="ts" setup>
import { computed } from 'vue';
import { loadLocaleMessages } from '@vben-core/locales';
import { preferences, updatePreferences } from '@vben-core/preferences';
import { capitalizeFirstLetter } from '@vben-core/toolkit';
import { loadLocaleMessages } from '@vben/locales';
import { preferences, updatePreferences } from '@vben/preferences';
import { capitalizeFirstLetter } from '@vben/utils';
import Preferences from './preferences-sheet.vue';