From c92508a57588f9237ec61a17b521e45e73672393 Mon Sep 17 00:00:00 2001 From: woxtu Date: Thu, 21 Dec 2023 11:36:45 +0900 Subject: [PATCH] Remove unused imports (#12730) --- packages/frontend/src/boot/common.ts | 8 ++++---- packages/frontend/src/boot/main-boot.ts | 8 ++++---- packages/frontend/src/boot/sub-boot.ts | 2 +- packages/frontend/src/components/MkColorInput.vue | 3 +-- packages/frontend/src/components/MkMediaBanner.vue | 2 +- packages/frontend/src/components/MkMenu.vue | 2 +- packages/frontend/src/components/MkNote.vue | 2 +- packages/frontend/src/components/MkNoteDetailed.vue | 3 +-- packages/frontend/src/components/MkNoteSimple.vue | 1 - packages/frontend/src/components/MkNoteSub.vue | 1 - packages/frontend/src/components/MkNotification.vue | 2 +- packages/frontend/src/components/MkNotifications.vue | 5 ++--- packages/frontend/src/components/MkPullToRefresh.vue | 3 +-- .../frontend/src/components/MkSignupDialog.form.vue | 1 - .../frontend/src/components/MkSignupDialog.rules.vue | 2 +- packages/frontend/src/components/MkSignupDialog.vue | 1 - packages/frontend/src/components/MkSubNoteContent.vue | 1 - .../src/components/MkUserSetupDialog.Follow.vue | 6 ------ .../src/components/MkUserSetupDialog.Privacy.vue | 4 +--- .../src/components/MkUserSetupDialog.Profile.vue | 3 +-- .../src/components/MkUserSetupDialog.User.vue | 1 - .../frontend/src/components/MkVisitorDashboard.vue | 2 -- packages/frontend/src/components/form/suspense.vue | 1 - packages/frontend/src/components/global/MkA.vue | 1 - .../src/components/global/MkAd.stories.impl.ts | 3 --- .../src/components/global/MkUserName.stories.impl.ts | 1 - packages/frontend/src/components/page/page.text.vue | 1 - packages/frontend/src/components/page/page.vue | 1 - packages/frontend/src/pages/admin-user.vue | 4 ++-- packages/frontend/src/pages/admin/branding.vue | 3 --- packages/frontend/src/pages/admin/moderation.vue | 2 -- packages/frontend/src/pages/admin/modlog.ModLog.vue | 2 -- packages/frontend/src/pages/admin/roles.role.vue | 2 +- packages/frontend/src/pages/ads.vue | 2 -- packages/frontend/src/pages/avatar-decorations.vue | 3 --- packages/frontend/src/pages/custom-emojis-manager.vue | 2 +- packages/frontend/src/pages/emoji-edit-dialog.vue | 2 +- packages/frontend/src/pages/my-lists/list.vue | 2 +- .../src/pages/page-editor/page-editor.container.vue | 1 - packages/frontend/src/pages/search.note.vue | 6 +----- packages/frontend/src/pages/search.user.vue | 5 +---- packages/frontend/src/pages/search.vue | 3 +-- packages/frontend/src/pages/settings/2fa.vue | 2 +- .../src/pages/settings/avatar-decoration.dialog.vue | 3 --- .../frontend/src/pages/settings/drive-cleaner.vue | 1 - packages/frontend/src/pages/settings/navbar.vue | 1 - .../frontend/src/pages/settings/notifications.vue | 2 +- packages/frontend/src/pages/settings/profile.vue | 2 -- packages/frontend/src/pages/settings/roles.vue | 11 +---------- packages/frontend/src/pages/timeline.vue | 1 - packages/frontend/src/pages/user-tag.vue | 3 +-- packages/frontend/src/pages/user/home.vue | 1 - packages/frontend/src/pages/welcome.entrance.a.vue | 6 ------ packages/frontend/src/pages/welcome.timeline.vue | 1 - packages/frontend/src/scripts/emoji-picker.ts | 2 +- packages/frontend/src/ui/classic.sidebar.vue | 2 +- packages/frontend/src/ui/classic.vue | 2 +- packages/frontend/src/ui/deck.vue | 1 - packages/frontend/src/ui/visitor.vue | 2 +- packages/frontend/src/widgets/WidgetActivity.vue | 2 +- packages/frontend/src/widgets/WidgetAichan.vue | 2 +- packages/frontend/src/widgets/WidgetAiscript.vue | 2 +- packages/frontend/src/widgets/WidgetAiscriptApp.vue | 2 +- packages/frontend/src/widgets/WidgetButton.vue | 2 +- packages/frontend/src/widgets/WidgetCalendar.vue | 2 +- packages/frontend/src/widgets/WidgetClicker.vue | 2 +- packages/frontend/src/widgets/WidgetClock.vue | 2 +- packages/frontend/src/widgets/WidgetDigitalClock.vue | 2 +- packages/frontend/src/widgets/WidgetFederation.vue | 2 +- packages/frontend/src/widgets/WidgetInstanceCloud.vue | 2 +- packages/frontend/src/widgets/WidgetInstanceInfo.vue | 2 +- packages/frontend/src/widgets/WidgetJobQueue.vue | 2 +- packages/frontend/src/widgets/WidgetMemo.vue | 2 +- packages/frontend/src/widgets/WidgetNotifications.vue | 2 +- packages/frontend/src/widgets/WidgetOnlineUsers.vue | 2 +- packages/frontend/src/widgets/WidgetPhotos.vue | 2 +- packages/frontend/src/widgets/WidgetPostForm.vue | 2 +- packages/frontend/src/widgets/WidgetProfile.vue | 2 +- packages/frontend/src/widgets/WidgetRss.vue | 2 +- packages/frontend/src/widgets/WidgetRssTicker.vue | 2 +- packages/frontend/src/widgets/WidgetSlideshow.vue | 2 +- packages/frontend/src/widgets/WidgetTimeline.vue | 2 +- packages/frontend/src/widgets/WidgetTrends.vue | 2 +- packages/frontend/src/widgets/WidgetUnixClock.vue | 2 +- packages/frontend/src/widgets/WidgetUserList.vue | 2 +- 85 files changed, 64 insertions(+), 141 deletions(-) diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index b0825ef11..ef69eff76 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -3,16 +3,16 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { computed, createApp, watch, markRaw, version as vueVersion, defineAsyncComponent, App } from 'vue'; +import { computed, watch, version as vueVersion, App } from 'vue'; import { compareVersions } from 'compare-versions'; import widgets from '@/widgets/index.js'; import directives from '@/directives/index.js'; import components from '@/components/index.js'; -import { version, ui, lang, updateLocale, locale } from '@/config.js'; +import { version, lang, updateLocale, locale } from '@/config.js'; import { applyTheme } from '@/scripts/theme.js'; import { isDeviceDarkmode } from '@/scripts/is-device-darkmode.js'; -import { i18n, updateI18n } from '@/i18n.js'; -import { $i, refreshAccount, login, updateAccount, signout } from '@/account.js'; +import { updateI18n } from '@/i18n.js'; +import { $i, refreshAccount, login } from '@/account.js'; import { defaultStore, ColdDeviceStorage } from '@/store.js'; import { fetchInstance, instance } from '@/instance.js'; import { deviceKind } from '@/scripts/device-kind.js'; diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 8826413f4..0159d0c03 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -3,14 +3,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { computed, createApp, watch, markRaw, version as vueVersion, defineAsyncComponent } from 'vue'; +import { createApp, markRaw, defineAsyncComponent } from 'vue'; import { common } from './common.js'; -import { version, ui, lang, updateLocale } from '@/config.js'; -import { i18n, updateI18n } from '@/i18n.js'; +import { ui } from '@/config.js'; +import { i18n } from '@/i18n.js'; import { confirm, alert, post, popup, toast } from '@/os.js'; import { useStream } from '@/stream.js'; import * as sound from '@/scripts/sound.js'; -import { $i, refreshAccount, login, updateAccount, signout } from '@/account.js'; +import { $i, updateAccount, signout } from '@/account.js'; import { defaultStore, ColdDeviceStorage } from '@/store.js'; import { makeHotkey } from '@/scripts/hotkey.js'; import { reactionPicker } from '@/scripts/reaction-picker.js'; diff --git a/packages/frontend/src/boot/sub-boot.ts b/packages/frontend/src/boot/sub-boot.ts index 9b4670e13..92ee074af 100644 --- a/packages/frontend/src/boot/sub-boot.ts +++ b/packages/frontend/src/boot/sub-boot.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { computed, createApp, watch, markRaw, version as vueVersion, defineAsyncComponent } from 'vue'; +import { createApp, defineAsyncComponent } from 'vue'; import { common } from './common.js'; export async function subBoot() { diff --git a/packages/frontend/src/components/MkColorInput.vue b/packages/frontend/src/components/MkColorInput.vue index 983a35103..a7a3eff5a 100644 --- a/packages/frontend/src/components/MkColorInput.vue +++ b/packages/frontend/src/components/MkColorInput.vue @@ -24,8 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only