refactor site configuration
- routes.js is now config.json - routes and siteglobals have been merged into one singular object inside config.json - globals are pulled in during main.ts initialization
This commit is contained in:
parent
73d4b05e6e
commit
06c737f466
6 changed files with 23 additions and 37 deletions
2
libs/types/src/config/globals.d.ts
vendored
2
libs/types/src/config/globals.d.ts
vendored
|
@ -1,4 +1,5 @@
|
|||
import type { HeaderEntry } from './navigation'
|
||||
import type { RouteCollection } from './routing'
|
||||
import type { SiteThemeList } from './themes'
|
||||
import type { WarningModal } from './warnings'
|
||||
|
||||
|
@ -6,6 +7,7 @@ import type { WarningModal } from './warnings'
|
|||
* Defines global values for the site.
|
||||
*/
|
||||
export type SiteGlobals = {
|
||||
routes: RouteCollection
|
||||
header: HeaderEntry[]
|
||||
id: string
|
||||
stylesheetUrls: string[]
|
||||
|
|
4
libs/types/src/config/routing.d.ts
vendored
4
libs/types/src/config/routing.d.ts
vendored
|
@ -10,11 +10,11 @@ import { WarningModal } from './warnings'
|
|||
export type SharedRouteDefinition = {
|
||||
id: string
|
||||
scriptUrl?: string
|
||||
stylesheetUrls: string[]
|
||||
stylesheetUrls?: string[]
|
||||
template: TemplateType
|
||||
title: string
|
||||
fullTitle: string
|
||||
warning: boolean | WarningModal
|
||||
warning?: boolean | WarningModal
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue