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-03-18 17:31:25 +09:00
|
|
|
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any>>>,
|
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-10 15:08:40 +09:00
|
|
|
};
|