diff --git a/packages/frontend/src/components/MkDateSeparatedList.vue b/packages/frontend/src/components/MkDateSeparatedList.vue index 6c08675f4d..f8184317cd 100644 --- a/packages/frontend/src/components/MkDateSeparatedList.vue +++ b/packages/frontend/src/components/MkDateSeparatedList.vue @@ -42,7 +42,7 @@ export default defineComponent({ type: Function, // Note => date string required: false, default: undefined, - } + }, }, setup(props, { slots, expose }) { diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue index 4449999d1e..9c7f78f3f3 100644 --- a/packages/frontend/src/components/MkFollowButton.vue +++ b/packages/frontend/src/components/MkFollowButton.vue @@ -138,7 +138,7 @@ onMounted(() => { connection.on('unfollow', onFollowChange); showFollowButton = $i != null && $i.id !== props.user.id; - globalEvents.emit('showFollowButton', showFollowButton); + globalEvents.emit('showFollowButton', showFollowButton); }); onBeforeUnmount(() => { diff --git a/packages/frontend/src/components/MkInfo.vue b/packages/frontend/src/components/MkInfo.vue index 5fbe64f75b..6d8ee78a21 100644 --- a/packages/frontend/src/components/MkInfo.vue +++ b/packages/frontend/src/components/MkInfo.vue @@ -30,8 +30,8 @@ const emit = defineEmits<{ }>(); function close() { - visible.value = false; - emit('closed'); + visible.value = false; + emit('closed'); } diff --git a/packages/frontend/src/components/MkNoteSimple.vue b/packages/frontend/src/components/MkNoteSimple.vue index afe68e5b18..cfc9563695 100644 --- a/packages/frontend/src/components/MkNoteSimple.vue +++ b/packages/frontend/src/components/MkNoteSimple.vue @@ -45,7 +45,7 @@ const props = defineProps<{ const showContent = $ref(false); onMounted(() => { - globalEvents.on('showEl', (showEl_receive) => { + globalEvents.on('showEl', (showEl_receive) => { showEl = showEl_receive; }); }); diff --git a/packages/frontend/src/components/global/CPPageHeader.vue b/packages/frontend/src/components/global/CPPageHeader.vue index 6ce99642ba..92048d749c 100644 --- a/packages/frontend/src/components/global/CPPageHeader.vue +++ b/packages/frontend/src/components/global/CPPageHeader.vue @@ -218,7 +218,7 @@ onMounted(() => { calcBg(); globalEvents.on('themeChanged', calcBg); - globalEvents.on('showFollowButton', (showFollowButton_receive) => { + globalEvents.on('showFollowButton', (showFollowButton_receive) => { showFollowButton = showFollowButton_receive; }); }); diff --git a/packages/frontend/src/components/global/MkStickyContainer.vue b/packages/frontend/src/components/global/MkStickyContainer.vue index d4cd605b18..2e0af13c07 100644 --- a/packages/frontend/src/components/global/MkStickyContainer.vue +++ b/packages/frontend/src/components/global/MkStickyContainer.vue @@ -101,7 +101,7 @@ onMounted(() => { observer.observe(headerEl); observer.observe(footerEl); - globalEvents.on('showEl', (showEl_receive) => { + globalEvents.on('showEl', (showEl_receive) => { showEl = showEl_receive; }); }); diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue index 02baf63331..bb09bce8f4 100644 --- a/packages/frontend/src/pages/admin-user.vue +++ b/packages/frontend/src/pages/admin-user.vue @@ -447,7 +447,7 @@ watch($$(user), () => { }); onMounted(() => { - globalEvents.on('refreshUser', () => updateRemoteUser()); + globalEvents.on('refreshUser', () => updateRemoteUser()); }); const headerActions = $computed(() => []); diff --git a/packages/frontend/src/pages/admin/roles.role.vue b/packages/frontend/src/pages/admin/roles.role.vue index 32ca0acadf..251c879516 100644 --- a/packages/frontend/src/pages/admin/roles.role.vue +++ b/packages/frontend/src/pages/admin/roles.role.vue @@ -164,13 +164,13 @@ async function toggleItem(item) { } const headerActions = $computed(() => [{ - text: i18n.ts.edit, - icon: 'ti ti-pencil', - handler: edit, + text: i18n.ts.edit, + icon: 'ti ti-pencil', + handler: edit, }, { - text: i18n.ts.delete, - icon: 'ti ti-trash', - handler: del, + text: i18n.ts.delete, + icon: 'ti ti-trash', + handler: del, }]); const headerTabs = $computed(() => []); diff --git a/packages/frontend/src/pages/channel-editor.vue b/packages/frontend/src/pages/channel-editor.vue index 91d7e31a1b..89c781e050 100644 --- a/packages/frontend/src/pages/channel-editor.vue +++ b/packages/frontend/src/pages/channel-editor.vue @@ -76,7 +76,7 @@ import { useRouter } from '@/router.js'; import { definePageMetadata } from '@/scripts/page-metadata.js'; import { i18n } from '@/i18n.js'; import MkFolder from '@/components/MkFolder.vue'; -import MkSwitch from "@/components/MkSwitch.vue"; +import MkSwitch from '@/components/MkSwitch.vue'; const Sortable = defineAsyncComponent(() => import('vuedraggable').then(x => x.default)); diff --git a/packages/frontend/src/pages/custom-emojis-manager.vue b/packages/frontend/src/pages/custom-emojis-manager.vue index d2e022b458..e768b59349 100644 --- a/packages/frontend/src/pages/custom-emojis-manager.vue +++ b/packages/frontend/src/pages/custom-emojis-manager.vue @@ -173,25 +173,25 @@ const remoteMenu = (emoji, ev: MouseEvent) => { }; const uploadMenu = (ev: MouseEvent) => { - os.popupMenu([{ - icon: 'ti ti-file', - text: i18n.ts.addSingle, - action: add, - }, { - icon: 'ti ti-files', - text: i18n.ts.addMultiple, - action: async () => { - const files = await selectFiles(ev.currentTarget ?? ev.target, null); + os.popupMenu([{ + icon: 'ti ti-file', + text: i18n.ts.addSingle, + action: add, + }, { + icon: 'ti ti-files', + text: i18n.ts.addMultiple, + action: async () => { + const files = await selectFiles(ev.currentTarget ?? ev.target, null); - const promise = Promise.all(files.map(file => os.api('admin/emoji/adds', { - fileId: file.id, - }))); - promise.then(() => { - emojisPaginationComponent.value.reload(); - }); - os.promiseDialog(promise); - }, - }], ev.currentTarget ?? ev.target); + const promise = Promise.all(files.map(file => os.api('admin/emoji/adds', { + fileId: file.id, + }))); + promise.then(() => { + emojisPaginationComponent.value.reload(); + }); + os.promiseDialog(promise); + }, + }], ev.currentTarget ?? ev.target); }; const menu = (ev: MouseEvent) => { @@ -309,10 +309,10 @@ const delBulk = async () => { }; const headerActions = $computed(() => [{ - asFullButton: true, - icon: 'ti ti-plus', - text: i18n.ts.addEmoji, - handler: uploadMenu, + asFullButton: true, + icon: 'ti ti-plus', + text: i18n.ts.addEmoji, + handler: uploadMenu, }, { icon: 'ti ti-dots', handler: menu, diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 02a962c1f7..58eee42e4b 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -54,27 +54,27 @@ export const defaultStore = markRaw(new Storage('base', { default: 0, }, tlHomeHintClosed: { - where: "device", + where: 'device', default: false, }, tlLocalHintClosed: { - where: "device", + where: 'device', default: false, }, tlMediaHintClosed: { - where: "device", + where: 'device', default: false, }, tlSocialHintClosed: { - where: "device", + where: 'device', default: false, }, tlCatHintClosed: { - where: "device", + where: 'device', default: false, }, tlGlobalHintClosed: { - where: "device", + where: 'device', default: false, }, keepCw: { diff --git a/packages/frontend/src/ui/_common_/common.vue b/packages/frontend/src/ui/_common_/common.vue index b20efd62fc..c7278d0db2 100644 --- a/packages/frontend/src/ui/_common_/common.vue +++ b/packages/frontend/src/ui/_common_/common.vue @@ -65,7 +65,7 @@ const dev = _DEV_; let notifications = $ref([]); -function onNotification(notification: Misskey.entities.Notification, isClient: boolean = false) { +function onNotification(notification: Misskey.entities.Notification, isClient = false) { if ($i.mutingNotificationTypes.includes(notification.type)) return; if (document.visibilityState === 'visible') { diff --git a/packages/frontend/src/ui/_common_/stream-indicator.vue b/packages/frontend/src/ui/_common_/stream-indicator.vue index 5e8ed89348..c2c3fd9112 100644 --- a/packages/frontend/src/ui/_common_/stream-indicator.vue +++ b/packages/frontend/src/ui/_common_/stream-indicator.vue @@ -53,7 +53,7 @@ function reload() { useStream().on('_disconnected_', onDisconnected); onMounted(() => { - globalEvents.on('hasRequireRefresh', (hasRequireRefresh_receive) => { + globalEvents.on('hasRequireRefresh', (hasRequireRefresh_receive) => { hasRequireRefresh = hasRequireRefresh_receive; }); });