Sharkey/packages/frontend/src/di.ts

21 lines
781 B
TypeScript
Raw Normal View History

/*
* 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';
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>>,
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>>,
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>>,
};