chore: format code

This commit is contained in:
vben
2024-06-08 19:49:06 +08:00
parent d584d4cf4e
commit 7bcd7746ca
187 changed files with 775 additions and 587 deletions

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import type { SelectListItem } from '@vben/types';
import { useSlots } from 'vue';
import { MdiQuestionMarkCircleOutline } from '@vben-core/iconify';
import {
Select,
@@ -11,8 +13,6 @@ import {
VbenTooltip,
} from '@vben-core/shadcn-ui';
import { useSlots } from 'vue';
defineOptions({
name: 'PreferenceSelectItem',
});

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { useSlots } from 'vue';
import { MdiQuestionMarkCircleOutline } from '@vben-core/iconify';
import { Switch, VbenTooltip } from '@vben-core/shadcn-ui';
import { useSlots } from 'vue';
defineOptions({
name: 'PreferenceSwitchItem',
});

View File

@@ -1,11 +1,10 @@
<script setup lang="ts">
import type { CSSProperties } from 'vue';
import { computed, ref, watch, watchEffect } from 'vue';
import { MdiEditBoxOutline } from '@vben-core/iconify';
import { TinyColor, convertToHsl } from '@vben-core/toolkit';
import type { CSSProperties } from 'vue';
import { computed, ref, watch, watchEffect } from 'vue';
defineOptions({
name: 'PreferenceColor',
});

View File

@@ -1,12 +1,11 @@
<script setup lang="ts">
import { $t } from '@vben/locales';
import {
IcRoundMotionPhotosAuto,
IcRoundWbSunny,
MdiMoonAndStars,
} from '@vben-core/iconify';
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';
defineOptions({

View File

@@ -1,14 +1,13 @@
<script lang="ts" setup>
import type { SupportedLanguagesType } from '@vben/types';
import { loadLocaleMessages } from '@vben/locales';
import {
COLOR_PRIMARY_RESETS,
flatPreferences,
updatePreferences,
} from '@vben-core/preferences';
import { loadLocaleMessages } from '@vben/locales';
import Preferences from './preferences.vue';
function updateLocale(value: string) {

View File

@@ -2,6 +2,9 @@
import type { LayoutHeaderModeType, LayoutType } from '@vben/types';
import type { SegmentedItem } from '@vben-core/shadcn-ui';
import { computed } from 'vue';
import { $t } from '@vben/locales';
import { IcRoundFolderCopy, IcRoundRestartAlt } from '@vben-core/iconify';
import {
preferences,
@@ -16,9 +19,7 @@ import {
toast,
} from '@vben-core/shadcn-ui';
import { $t } from '@vben/locales';
import { useClipboard } from '@vueuse/core';
import { computed } from 'vue';
import {
Animation,

View File

@@ -1,7 +1,6 @@
<script setup lang="ts">
import { VbenButton } from '@vben-core/shadcn-ui';
import { $t } from '@vben/locales';
import { VbenButton } from '@vben-core/shadcn-ui';
import IconSetting from './icons/setting.vue';