This commit is contained in:
mattyatea 2024-02-16 19:45:08 +09:00
parent 2b52a215e5
commit a89d495300
1 changed files with 10 additions and 12 deletions

View File

@ -36,11 +36,9 @@ import { instance } from '@/instance.js';
import * as os from '@/os.js'; import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js'; import { misskeyApi } from '@/scripts/misskey-api.js';
import { lookupUser, lookupUserByEmail } from '@/scripts/lookup-user.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 { useRouter } from '@/router/supplier.js';
import { PageMetadata, definePageMetadata, provideMetadataReceiver, provideReactiveMetadata } from '@/scripts/page-metadata.js';
import { PageMetadata, definePageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.js'; import { bannerDark, bannerLight, defaultStore, iconDark, iconLight } from '@/store.js';
import {bannerDark, bannerLight, defaultStore, iconDark, iconLight} from "@/store.js";
const isEmpty = (x: string | null) => x == null || x === ''; 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')); const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
let iconUrl = ref(); let iconUrl = ref();
if (darkMode.value) { if (darkMode.value) {
iconUrl.value = iconDark; iconUrl.value = iconDark;
} else { } else {
iconUrl.value = iconLight; iconUrl.value = iconLight;
} }
watch(darkMode, () => { watch(darkMode, () => {
if (darkMode.value) { if (darkMode.value) {
iconUrl.value = iconDark; iconUrl.value = iconDark;
} else { } else {
iconUrl.value = iconLight; iconUrl.value = iconLight;
} }
}) });
misskeyApi('admin/abuse-user-reports', { misskeyApi('admin/abuse-user-reports', {
state: 'unresolved', state: 'unresolved',
limit: 1, limit: 1,