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.
refactor(frontend): pageMetadataをDIしてみる
- Loading branch information
Showing
27 changed files
with
657 additions
and
739 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>, | ||
}); |
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
Oops, something went wrong.