| EVENT_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-events.json'
|
|
Events content index URL |
| EVENT_TYPES_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-event-types.json'
|
|
Event types content index URL |
| FEATURED_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-featured.json'
|
|
Featured content index URL |
| FUNDING_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-funding.json'
|
|
Funding content index URL |
| FUNDING_TYPES_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-funding-types.json'
|
|
Funding types content index URL |
| NEWS_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-news.json'
|
|
News content index URL |
| PEOPLE_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-people.json'
|
|
People index URL |
| PERSON_BASE_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/content/people'
|
|
Base URL for person content |
| PUBLICATION_TYPES_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-publication-types.json'
|
|
Publication types content index URL |
| PUBLICATIONS_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-publications.json'
|
|
Publications content index URL |
| TAGS_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-tags.json'
|
|
Tags content index URL |
| VISUALIZATIONS_INDEX_URL |
Type : string
|
Default value : 'https://cns-iu.github.io/cns-website/assets/indexes/app-visualizations.json'
|
|
Visualizations content index URL |
| RoleSchema |
Type : unknown
|
Default value : z
.discriminatedUnion('type', [MemberRoleSchema, StudentRoleSchema, CollaboratorRoleSchema])
.meta({ id: 'Role' })
|
|
Discriminated union of all role types |
| CATEGORIES_FILTER |
Type : FilterOptionCategory<CategoryOption>
|
Default value : {
id: 'category',
label: 'Category',
options: CATEGORY_OPTIONS,
selected: [],
}
|
|
Category filter configuration |
| CATEGORY_OPTIONS |
Type : CategoryOption[]
|
Default value : [
{ id: 'data-tool' as ResearchCategoryId, label: 'Data & tools' },
{ id: 'event' as ResearchCategoryId, label: 'Events' },
{ id: 'funding' as ResearchCategoryId, label: 'Funding' },
{ id: 'display' as ResearchCategoryId, label: 'Interactive displays' },
{ id: 'miscellaneous' as ResearchCategoryId, label: 'Miscellaneous' },
{ id: 'news' as ResearchCategoryId, label: 'News' },
{ id: 'publication' as ResearchCategoryId, label: 'Publications' },
{ id: 'software' as ResearchCategoryId, label: 'Software Products' },
{ id: 'teaching' as ResearchCategoryId, label: 'Teaching' },
{ id: 'visualization' as ResearchCategoryId, label: 'Visualizations' },
]
|
|
Category filter options |
| EVENTS_FILTER |
Type : FilterOptionCategory<EventOption>
|
Default value : {
id: 'event-type',
label: 'Event type',
options: [],
selected: [],
}
|
|
Event filter configuration |
| FUNDING_FILTER |
Type : FilterOptionCategory<FundingOption>
|
Default value : {
id: 'funding-type',
label: 'Funding type',
options: [],
selected: [],
}
|
|
Funding filter configuration |
| initialState |
Type : FilterState
|
Default value : {
categories: null,
publicationIds: null,
eventIds: null,
fundingIds: null,
peopleIds: null,
years: null,
search: null,
}
|
|
Initial filter state with no selections |
| PEOPLE_FILTER |
Type : FilterOptionCategory<PeopleOption>
|
Default value : {
id: 'people',
label: 'People',
options: [],
selected: [],
}
|
|
People filter configuration |
| PUBLICATIONS_FILTER |
Type : FilterOptionCategory<PublicationOption>
|
Default value : {
id: 'publication-type',
label: 'Publication type',
options: [],
selected: [],
}
|
|
Publication filter configuration |
| YEAR_OPTIONS |
Type : YearOption[]
|
Default value : createYearList(1991).map((year) => ({
id: year.toString(),
label: year.toString(),
year,
}))
|
|
Year filter options from 1991 to current year |
| YEARS_FILTER |
Type : FilterOptionCategory<YearOption>
|
Default value : {
id: 'year',
label: 'Year',
options: YEAR_OPTIONS,
selected: [],
}
|
|
Year filter configuration |
| CNS_SOCIAL_IDS |
Type : unknown
|
Default value : CNS_SOCIALS.map(({ id }) => id)
|
|
All available CNS social ids |
| CNS_SOCIALS |
Type : unknown
|
Default value : SocialsSchema.parse(RAW_CNS_SOCIALS).socials
|
|
Parsed CNS social media items |
| CONTENT_TYPE_ITEMS |
Type : ContentTypeItem[]
|
Default value : [
{ label: 'Featured', slug: 'featured' },
{ label: 'Publications', slug: 'publications' },
{ label: 'News', slug: 'news' },
]
|
|
Predefined content type items for the landing page |
| MOBILE_MENU_POSITIONS |
Type : ConnectedPosition[]
|
Default value : [
{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top' },
]
|
|
Position of the mobile menu overlay |
| FUNDER_IDS |
Type : unknown
|
Default value : FUNDERS.map(({ id }) => id)
|
|
All available funder ids |
| FUNDERS |
Type : unknown
|
Default value : FundersSchema.parse(RAW_FUNDERS).funders
|
|
Parsed funders static data |
| FundersSchema |
Type : unknown
|
Default value : z
.object({
$schema: z.string(),
funders: FunderSchema.array(),
})
.meta({ id: 'CnsFunders' })
|
|
Schema for multiple funders |
| initialOrderingState |
Type : OrderingState
|
Default value : {
_sortBy: null,
groupBy: null,
}
|
|
Initial state for ordering |
| initialFilterState |
Type : FilterState
|
Default value : {
team: TeamType.Current,
roles: null,
years: null,
search: null,
}
|
|
Initial state for filters |
| ROLES_FILTER |
Type : FilterOptionCategory<RoleTypeOption>
|
Default value : {
id: 'roles',
label: 'Role',
disableSearch: true,
options: REFINED_ROLE_TYPE_OPTIONS,
selected: [],
}
|
|
Filter configuration for roles with all available role type options |
| initialState |
Type : SidebarState
|
Default value : {
sidebar: null,
}
|
|
Initial state for sidebar |
| initialState |
Type : OrderingState
|
Default value : {
sortBy: SortBy.Newest,
groupBy: null,
}
|
|
Default ordering state (newest, no grouping) |
| initialState |
Type : ResearchState
|
Default value : {
researchItems: [],
peopleItems: [],
pubTypes: [],
eventTypes: [],
fundingTypes: [],
tags: [],
}
|
|
Initial empty research state |
| initialState |
Type : ViewState
|
Default value : {
view: View.Gallery,
}
|
|
Default view state (gallery) |
| MenusSchema |
Type : unknown
|
Default value : z
.object({
$schema: z.string(),
options: z.union([MenuSchema, MenuItemSchema]).array(),
})
.meta({ id: 'CnsHeaderMenus' })
|
|
Schema for multiple menus |
| MENUS |
Type : unknown
|
Default value : menus as Menus
|
|
Menus objects |
| peopleConfig |
Type : unknown
|
Default value : entityConfig({
collection: 'people',
entity: type<PeopleItem>(),
selectId: (person) => person.slug,
})
|
|
Entity configuration for people |
| PeopleDataSchema |
Type : unknown
|
Default value : z.array(PeopleItemSchema)
|
|
People data schema (array of items) |
| PeopleIdSchema |
Type : unknown
|
Default value : z.string().brand('PeopleId')
|
|
Branded type for people identifiers |
| ResearchCategoryIdSchema |
Type : unknown
|
Default value : z.string().brand('ResearchCategoryId')
|
|
Type for research category identifier |
| ResearchDataSchema |
Type : unknown
|
Default value : z.array(ResearchItemSchema).meta({ id: 'ResearchData' })
|
|
Research data schema - array of research items |
| ResearchIdSchema |
Type : unknown
|
Default value : z.string().brand('ResearchId')
|
|
Branded type for research identifiers |
| ResearchTypeIdSchema |
Type : unknown
|
Default value : z.string().brand('ResearchTypeId')
|
|
Branded type for research type identifiers |
| ResearchTypesDataSchema |
Type : unknown
|
Default value : z.array(ResearchTypeItemSchema).meta({ id: 'ResearchTypesData' })
|
|
Research types data schema - array of research type items |
| TagIdSchema |
Type : unknown
|
Default value : z.string().brand('TagId')
|
|
Branded type for tag identifiers |
| TagsDataSchema |
Type : unknown
|
Default value : z.array(TagItemSchema).meta({ id: 'TagsData' })
|
|
Tags data schema - array of tag items |