support internal links with vue-router outside vue context
This commit is contained in:
parent
10dc4372c0
commit
af5ec7a9dc
5 changed files with 30 additions and 3 deletions
12
libs/types/src/config/routing.d.ts
vendored
12
libs/types/src/config/routing.d.ts
vendored
|
@ -1,7 +1,9 @@
|
|||
import { Router } from 'vue-router'
|
||||
import { GalleryEntry } from '../content/templates/gallery-list'
|
||||
import { ProjectListingInfo } from '../content/templates/project-list'
|
||||
import { TemplateType } from '../content/templates/templateType'
|
||||
import { WarningModal } from './warnings'
|
||||
|
||||
|
||||
/**
|
||||
* Defines the shared options for a route
|
||||
*/
|
||||
|
@ -69,8 +71,16 @@ export type RouteDefinition =
|
|||
*/
|
||||
export type RouteCollection = { [key: string]: RouteDefinition }
|
||||
|
||||
/**
|
||||
* Defines {@link Window} globals
|
||||
*/
|
||||
export interface RoutedWindow extends Window {
|
||||
/** refers to a template's primary route config; may briefly refer to sub config until a view is fully resolved */
|
||||
routeConfig: RouteDefinition
|
||||
/** refers to a template's sub config in the case of child routes under a template (e.g. project-view under project-list) */
|
||||
routeSubConfig: any
|
||||
/** refers to content config for various view routes (e.g. {@link GalleryEntry}, {@link ProjectListingInfo}, etc.) */
|
||||
routeContentConfig: any
|
||||
/** vue-router instance */
|
||||
router?: Router
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue