refactor(frontend): verbatimModuleSyntaxを有効化 (#15323)
* wip * wip * wip * wip * revert unnecessary changes * wip * refactor(frontend): enforce verbatimModuleSyntax * fix * refactor(frontend-shared): enforce verbatimModuleSyntax * wip * refactor(frontend-embed): enforce verbatimModuleSyntax * enforce consistent-type-imports * fix lint config * attemt to fix ci * fix lint * fix * fix * fix
This commit is contained in:
		| @@ -29,7 +29,7 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { ref, computed } from 'vue'; | ||||
| import type * as Misskey from 'misskey-js'; | ||||
| import * as Misskey from 'misskey-js'; | ||||
| import FormSuspense from '@/components/form/suspense.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| @@ -38,7 +38,7 @@ import { getAccounts, removeAccount as _removeAccount, login, $i, getAccountWith | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||||
| import MkUserCardMini from '@/components/MkUserCardMini.vue'; | ||||
| import { MenuItem } from '@/types/menu'; | ||||
| import type { MenuItem } from '@/types/menu.js'; | ||||
|  | ||||
| const storedAccounts = ref<{ id: string, token: string }[] | null>(null); | ||||
| const accounts = ref(new Map<string, Misskey.entities.UserDetailed | null>()); | ||||
|   | ||||
| @@ -48,7 +48,8 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| </template> | ||||
|  | ||||
| <script setup lang="ts"> | ||||
| import { computed, ref, watch, type StyleValue } from 'vue'; | ||||
| import { computed, ref, watch } from 'vue'; | ||||
| import type { StyleValue } from 'vue'; | ||||
| import tinycolor from 'tinycolor2'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/scripts/misskey-api.js'; | ||||
|   | ||||
| @@ -126,7 +126,8 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| </template> | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { computed, ref, Ref, watch } from 'vue'; | ||||
| import { computed, ref, watch } from 'vue'; | ||||
| import type { Ref } from 'vue'; | ||||
| import Sortable from 'vuedraggable'; | ||||
| import MkRadios from '@/components/MkRadios.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
|   | ||||
| @@ -35,9 +35,11 @@ import MkSuperMenu from '@/components/MkSuperMenu.vue'; | ||||
| import { signout, $i } from '@/account.js'; | ||||
| import { clearCache } from '@/scripts/clear-cache.js'; | ||||
| import { instance } from '@/instance.js'; | ||||
| import { PageMetadata, definePageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js'; | ||||
| import { definePageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js'; | ||||
| import * as os from '@/os.js'; | ||||
| import { useRouter } from '@/router/supplier.js'; | ||||
| import type { PageMetadata } from '@/scripts/page-metadata.js'; | ||||
| import type { SuperMenuDef } from '@/components/MkSuperMenu.vue'; | ||||
|  | ||||
| const indexInfo = { | ||||
| 	title: i18n.ts.settings, | ||||
| @@ -60,7 +62,7 @@ const ro = new ResizeObserver((entries, observer) => { | ||||
| 	narrow.value = entries[0].borderBoxSize[0].inlineSize < NARROW_THRESHOLD; | ||||
| }); | ||||
|  | ||||
| const menuDef = computed(() => [{ | ||||
| const menuDef = computed<SuperMenuDef[]>(() => [{ | ||||
| 	title: i18n.ts.basicSettings, | ||||
| 	items: [{ | ||||
| 		icon: 'ti ti-user', | ||||
|   | ||||
| @@ -63,7 +63,8 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { shallowRef, computed } from 'vue'; | ||||
| import XNotificationConfig, { type NotificationConfig } from './notifications.notification-config.vue'; | ||||
| import XNotificationConfig from './notifications.notification-config.vue'; | ||||
| import type { NotificationConfig } from './notifications.notification-config.vue'; | ||||
| import FormLink from '@/components/form/link.vue'; | ||||
| import FormSection from '@/components/form/section.vue'; | ||||
| import MkFolder from '@/components/MkFolder.vue'; | ||||
|   | ||||
| @@ -38,7 +38,8 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| </template> | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { Ref, computed, ref } from 'vue'; | ||||
| import { computed, ref } from 'vue'; | ||||
| import type { Ref } from 'vue'; | ||||
| import XSound from './sounds.sound.vue'; | ||||
| import type { SoundType, OperationType } from '@/scripts/sound.js'; | ||||
| import type { SoundStore } from '@/store.js'; | ||||
|   | ||||
| @@ -37,7 +37,8 @@ import MkTextarea from '@/components/MkTextarea.vue'; | ||||
| import MkSelect from '@/components/MkSelect.vue'; | ||||
| import MkInput from '@/components/MkInput.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import { Theme, getBuiltinThemesRef } from '@/scripts/theme.js'; | ||||
| import { getBuiltinThemesRef } from '@/scripts/theme.js'; | ||||
| import type { Theme } from '@/scripts/theme.js'; | ||||
| import { copyToClipboard } from '@/scripts/copy-to-clipboard.js'; | ||||
| import * as os from '@/os.js'; | ||||
| import { getThemes, removeTheme } from '@/theme-store.js'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 かっこかり
					かっこかり