forked from misskey-dev/misskey
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance(frontend): DI.pageMetadata, DI.router
- Loading branch information
Showing
26 changed files
with
629 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: syuilo and misskey-project | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
import type { InjectionKey, ShallowRef } from 'vue'; | ||
import type { IRouter } from '@/nirax.js'; | ||
import type { PageMetadata, PageMetadataReceiver } from '@/scripts/page-metadata.js'; | ||
|
||
export const DI = Object.freeze({ | ||
router: Symbol() as InjectionKey<IRouter>, | ||
routerFactory: Symbol() as InjectionKey<((path: string) => IRouter)>, | ||
routerDepth: Symbol() as InjectionKey<number>, | ||
pageMetadata: Symbol() as InjectionKey<Readonly<ShallowRef<PageMetadata>>>, | ||
pageMetadataReceiver: Symbol() as InjectionKey<PageMetadataReceiver>, | ||
}); |
Oops, something went wrong.