2025-03-10 15:08:40 +09:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
import type { InjectionKey, Ref } from 'vue';
|
2025-03-19 15:24:56 +09:00
|
|
|
import type { Router } from '@/router.js';
|
2025-03-10 15:08:40 +09:00
|
|
|
|
|
|
|
export const DI = {
|
|
|
|
routerCurrentDepth: Symbol() as InjectionKey<number>,
|
2025-03-19 15:24:56 +09:00
|
|
|
router: Symbol() as InjectionKey<Router>,
|
2025-03-14 19:54:30 +09:00
|
|
|
mock: Symbol() as InjectionKey<boolean>,
|
2025-04-05 08:46:48 +09:00
|
|
|
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any> | null>>,
|
2025-03-20 18:55:32 +09:00
|
|
|
viewId: Symbol() as InjectionKey<string>,
|
2025-03-23 21:23:52 +09:00
|
|
|
currentStickyTop: Symbol() as InjectionKey<Ref<number>>,
|
|
|
|
currentStickyBottom: Symbol() as InjectionKey<Ref<number>>,
|
2025-03-25 18:30:28 +09:00
|
|
|
mfmEmojiReactCallback: Symbol() as InjectionKey<(emoji: string) => void>,
|
2025-03-29 16:04:01 +09:00
|
|
|
inModal: Symbol() as InjectionKey<boolean>,
|
2025-04-08 08:28:17 +09:00
|
|
|
inAppSearchMarkerId: Symbol() as InjectionKey<Ref<string | null>>,
|
2025-03-10 15:08:40 +09:00
|
|
|
};
|