Skip to content

Commit 212419f

Browse files
style: autofix
1 parent b984c13 commit 212419f

33 files changed

+72
-72
lines changed

__tests__/namelist.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { createPinia, setActivePinia } from 'pinia';
12
import { useNamelistStore } from '@/stores/namelist';
23
import { DEFAULT_NAMELIST_OPTIONS } from '@/utils/config';
34
import { fixNamelist, genNewNamelistName, getNamelist, hasNamelist, setNamelist } from '@/utils/namelist';
4-
import { createPinia, setActivePinia } from 'pinia';
55
import 'mock-local-storage';
66

77
beforeEach(() => localStorage.clear());

__tests__/roll-call.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import useRollCall from '@/utils/roll-call';
21
import { promiseTimeout } from '@vueuse/core';
2+
import useRollCall from '@/utils/roll-call';
33

44
const duration = 500;
55
const rest = 50;

src/app.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<script lang="tsx" setup>
2+
import { promiseTimeout, useScreenOrientation, watchImmediate } from '@vueuse/core';
3+
import mp from 'mixpanel-browser';
4+
import { enUS, zhCN } from 'naive-ui';
5+
import { computed, markRaw, onMounted, ref, watch } from 'vue';
6+
import { useI18n } from 'vue-i18n';
27
import { useThemeStore } from '@/stores/theme';
38
import { __APP__, __GA__, isPortable } from '@/utils/app';
49
import { bus } from '@/utils/event';
510
import { initPortable } from '@/utils/fs';
611
import { triggerWelcomeGuide } from '@/utils/guide';
712
import { setupI18nHooks, ui } from '@/utils/ui';
8-
import { promiseTimeout, useScreenOrientation, watchImmediate } from '@vueuse/core';
9-
import mp from 'mixpanel-browser';
10-
import { enUS, zhCN } from 'naive-ui';
11-
import { computed, markRaw, onMounted, ref, watch } from 'vue';
12-
import { useI18n } from 'vue-i18n';
1313
1414
setupI18nHooks();
1515

src/components/background.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="ts" setup>
2+
import { createReusableTemplate, watchImmediate } from '@vueuse/core';
3+
import { computed, ref, watch } from 'vue';
24
import { useThemeStore } from '@/stores/theme';
35
import { __APP__ } from '@/utils/app';
46
import { preload } from '@/utils/ui';
5-
import { createReusableTemplate, watchImmediate } from '@vueuse/core';
6-
import { computed, ref, watch } from 'vue';
77
88
export type Status = 'normal' | 'ready-rolling' | 'rolling' | 'pausing';
99

src/components/changelog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
2-
import { __CANARY__, getBuildMeta, GITHUB_REPO_URL } from '@/utils/app';
32
import { computed } from 'vue';
43
import { useI18n } from 'vue-i18n';
4+
import { __CANARY__, getBuildMeta, GITHUB_REPO_URL } from '@/utils/app';
55
import ChangelogMd from '../../CHANGELOG.md';
66
77
const { t } = useI18n({ useScope: 'local' });

src/components/dynamic-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Ref } from 'vue';
2-
import { nextFrame } from '@/utils/ui';
32
import { NDynamicInput, NSpin } from 'naive-ui';
43
import { defineComponent, ref, toRaw, toRef, watch } from 'vue';
4+
import { nextFrame } from '@/utils/ui';
55

66
export default defineComponent({
77
name: 'DynamicInput',

src/components/ex-caller.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
import type { Status as BackgroundStatus } from '@/components/background.vue';
33
import type { Status as ResultStatus } from '@/components/result-board.vue';
44
import type { RollCallConfig } from '@/utils/roll-call';
5+
import { whenever } from '@vueuse/core';
6+
import { computed, defineAsyncComponent, ref, toRaw } from 'vue';
57
import LargeButton from '@/components/large-button';
68
import { useConfigStore } from '@/stores/config';
79
import { useNamelistStore } from '@/stores/namelist';
810
import { track } from '@/utils/analytics';
911
import { triggerStopRollingGuide } from '@/utils/guide';
1012
import useRollCall from '@/utils/roll-call';
1113
import { setupUiHooks } from '@/utils/ui';
12-
import { whenever } from '@vueuse/core';
13-
import { computed, defineAsyncComponent, ref, toRaw } from 'vue';
1414
1515
const LazySettings = defineAsyncComponent(() => import('@/components/settings.vue'));
1616
</script>

src/components/import-from/excel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="tsx" setup>
22
import type { UploadCustomRequestOptions } from 'naive-ui';
3-
import { readExcelLines } from '@/utils/xlsx';
43
import { ref } from 'vue';
54
import { useI18n } from 'vue-i18n';
65
import IconUpload from '~icons/ep/upload-filled';
76
import IconExcel from '~icons/vscode-icons/file-type-excel';
7+
import { readExcelLines } from '@/utils/xlsx';
88
99
defineProps<{
1010
max?: number

src/components/namelist/group-selector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="tsx">
22
import type { SelectOption } from 'naive-ui';
3-
import { useNamelistStore } from '@/stores/namelist';
43
import { computed } from 'vue';
54
import { useI18n } from 'vue-i18n';
65
import IconPlus from '~icons/lucide/plus';
6+
import { useNamelistStore } from '@/stores/namelist';
77
88
export const NEW_GROUP = '\0';
99
</script>

src/components/namelist/name.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts" setup>
22
import type { SelectOption } from 'naive-ui';
3+
import { useMessage } from 'naive-ui';
4+
import { useI18n } from 'vue-i18n';
35
import PopoverRename from '@/components/popover-rename.vue';
46
import { MAX_NAMELIST_NAME_LENGTH } from '@/utils/config';
57
import { hasNamelist } from '@/utils/namelist';
6-
import { useMessage } from 'naive-ui';
7-
import { useI18n } from 'vue-i18n';
88
99
const props = defineProps<SelectOption>();
1010
const emit = defineEmits<{

0 commit comments

Comments
 (0)