Sharkey/packages/frontend/src/di.ts

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