From a89d495300d2ac29b5154312a7f68a7e6f131c58 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Fri, 16 Feb 2024 19:45:08 +0900 Subject: [PATCH] a --- packages/frontend/src/pages/admin/index.vue | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index 34e8332607..355f8fe498 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -36,11 +36,9 @@ import { instance } from '@/instance.js'; import * as os from '@/os.js'; import { misskeyApi } from '@/scripts/misskey-api.js'; import { lookupUser, lookupUserByEmail } from '@/scripts/lookup-user.js'; -import { PageMetadata, definePageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js'; import { useRouter } from '@/router/supplier.js'; - -import { PageMetadata, definePageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.js'; -import {bannerDark, bannerLight, defaultStore, iconDark, iconLight} from "@/store.js"; +import { PageMetadata, definePageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js'; +import { bannerDark, bannerLight, defaultStore, iconDark, iconLight } from '@/store.js'; const isEmpty = (x: string | null) => x == null || x === ''; @@ -68,17 +66,17 @@ const currentPage = computed(() => router.currentRef.value.child); const darkMode = computed(defaultStore.makeGetterSetter('darkMode')); let iconUrl = ref(); if (darkMode.value) { - iconUrl.value = iconDark; + iconUrl.value = iconDark; } else { - iconUrl.value = iconLight; + iconUrl.value = iconLight; } watch(darkMode, () => { - if (darkMode.value) { - iconUrl.value = iconDark; - } else { - iconUrl.value = iconLight; - } -}) + if (darkMode.value) { + iconUrl.value = iconDark; + } else { + iconUrl.value = iconLight; + } +}); misskeyApi('admin/abuse-user-reports', { state: 'unresolved', limit: 1,