add: Diplomarbeit and Technologies collection
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { SlugComponent as SlugComponent_92cc057d0a2abb4f6cf0307edf59f986 } from '@/fields/slug/SlugComponent'
|
||||||
import { RscEntryLexicalCell as RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e } from '@payloadcms/richtext-lexical/rsc'
|
import { RscEntryLexicalCell as RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e } from '@payloadcms/richtext-lexical/rsc'
|
||||||
import { RscEntryLexicalField as RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e } from '@payloadcms/richtext-lexical/rsc'
|
import { RscEntryLexicalField as RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e } from '@payloadcms/richtext-lexical/rsc'
|
||||||
import { InlineToolbarFeatureClient as InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
import { InlineToolbarFeatureClient as InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
||||||
@@ -13,7 +14,6 @@ import { MetaTitleComponent as MetaTitleComponent_a8a977ebc872c5d5ea7ee689724c08
|
|||||||
import { MetaImageComponent as MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
import { MetaImageComponent as MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||||
import { MetaDescriptionComponent as MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
import { MetaDescriptionComponent as MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||||
import { PreviewComponent as PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
import { PreviewComponent as PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||||
import { SlugComponent as SlugComponent_92cc057d0a2abb4f6cf0307edf59f986 } from '@/fields/slug/SlugComponent'
|
|
||||||
import { HorizontalRuleFeatureClient as HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
import { HorizontalRuleFeatureClient as HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
||||||
import { BlocksFeatureClient as BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
import { BlocksFeatureClient as BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
|
||||||
import { LinkToDoc as LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634 } from '@payloadcms/plugin-search/client'
|
import { LinkToDoc as LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634 } from '@payloadcms/plugin-search/client'
|
||||||
@@ -24,45 +24,28 @@ import { default as default_1a7510af427896d367a49dbf838d2de6 } from '@/component
|
|||||||
import { default as default_8a7ab0eb7ab5c511aba12e68480bfe5e } from '@/components/BeforeLogin'
|
import { default as default_8a7ab0eb7ab5c511aba12e68480bfe5e } from '@/components/BeforeLogin'
|
||||||
|
|
||||||
export const importMap = {
|
export const importMap = {
|
||||||
'@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell':
|
"@/fields/slug/SlugComponent#SlugComponent": SlugComponent_92cc057d0a2abb4f6cf0307edf59f986,
|
||||||
RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e,
|
"@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell": RscEntryLexicalCell_44fe37237e0ebf4470c9990d8cb7b07e,
|
||||||
'@payloadcms/richtext-lexical/rsc#RscEntryLexicalField':
|
"@payloadcms/richtext-lexical/rsc#RscEntryLexicalField": RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e,
|
||||||
RscEntryLexicalField_44fe37237e0ebf4470c9990d8cb7b07e,
|
"@payloadcms/richtext-lexical/client#InlineToolbarFeatureClient": InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
'@payloadcms/richtext-lexical/client#InlineToolbarFeatureClient':
|
"@payloadcms/richtext-lexical/client#FixedToolbarFeatureClient": FixedToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
InlineToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/richtext-lexical/client#HeadingFeatureClient": HeadingFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
'@payloadcms/richtext-lexical/client#FixedToolbarFeatureClient':
|
"@payloadcms/richtext-lexical/client#ParagraphFeatureClient": ParagraphFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
FixedToolbarFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/richtext-lexical/client#UnderlineFeatureClient": UnderlineFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
'@payloadcms/richtext-lexical/client#HeadingFeatureClient':
|
"@payloadcms/richtext-lexical/client#BoldFeatureClient": BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
HeadingFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/richtext-lexical/client#ItalicFeatureClient": ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
'@payloadcms/richtext-lexical/client#ParagraphFeatureClient':
|
"@payloadcms/richtext-lexical/client#LinkFeatureClient": LinkFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
ParagraphFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/plugin-seo/client#OverviewComponent": OverviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||||
'@payloadcms/richtext-lexical/client#UnderlineFeatureClient':
|
"@payloadcms/plugin-seo/client#MetaTitleComponent": MetaTitleComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||||
UnderlineFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/plugin-seo/client#MetaImageComponent": MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||||
'@payloadcms/richtext-lexical/client#BoldFeatureClient':
|
"@payloadcms/plugin-seo/client#MetaDescriptionComponent": MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||||
BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/plugin-seo/client#PreviewComponent": PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||||
'@payloadcms/richtext-lexical/client#ItalicFeatureClient':
|
"@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient": HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/richtext-lexical/client#BlocksFeatureClient": BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
||||||
'@payloadcms/richtext-lexical/client#LinkFeatureClient':
|
"@payloadcms/plugin-search/client#LinkToDoc": LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634,
|
||||||
LinkFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
"@payloadcms/plugin-search/client#ReindexButton": ReindexButton_aead06e4cbf6b2620c5c51c9ab283634,
|
||||||
'@payloadcms/plugin-seo/client#OverviewComponent':
|
"@/Header/RowLabel#RowLabel": RowLabel_ec255a65fa6fa8d1faeb09cf35284224,
|
||||||
OverviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
"@/Footer/RowLabel#RowLabel": RowLabel_1f6ff6ff633e3695d348f4f3c58f1466,
|
||||||
'@payloadcms/plugin-seo/client#MetaTitleComponent':
|
"@/components/BeforeDashboard#default": default_1a7510af427896d367a49dbf838d2de6,
|
||||||
MetaTitleComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
"@/components/BeforeLogin#default": default_8a7ab0eb7ab5c511aba12e68480bfe5e
|
||||||
'@payloadcms/plugin-seo/client#MetaImageComponent':
|
|
||||||
MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
|
||||||
'@payloadcms/plugin-seo/client#MetaDescriptionComponent':
|
|
||||||
MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
|
||||||
'@payloadcms/plugin-seo/client#PreviewComponent':
|
|
||||||
PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
|
||||||
'@/fields/slug/SlugComponent#SlugComponent': SlugComponent_92cc057d0a2abb4f6cf0307edf59f986,
|
|
||||||
'@payloadcms/richtext-lexical/client#HorizontalRuleFeatureClient':
|
|
||||||
HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
|
||||||
'@payloadcms/richtext-lexical/client#BlocksFeatureClient':
|
|
||||||
BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
|
|
||||||
'@payloadcms/plugin-search/client#LinkToDoc': LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634,
|
|
||||||
'@payloadcms/plugin-search/client#ReindexButton': ReindexButton_aead06e4cbf6b2620c5c51c9ab283634,
|
|
||||||
'@/Header/RowLabel#RowLabel': RowLabel_ec255a65fa6fa8d1faeb09cf35284224,
|
|
||||||
'@/Footer/RowLabel#RowLabel': RowLabel_1f6ff6ff633e3695d348f4f3c58f1466,
|
|
||||||
'@/components/BeforeDashboard#default': default_1a7510af427896d367a49dbf838d2de6,
|
|
||||||
'@/components/BeforeLogin#default': default_8a7ab0eb7ab5c511aba12e68480bfe5e,
|
|
||||||
}
|
}
|
||||||
|
|||||||
128
src/collections/Papers.ts
Normal file
128
src/collections/Papers.ts
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
|
import { anyone } from '../access/anyone'
|
||||||
|
import { authenticated } from '../access/authenticated'
|
||||||
|
import { slugField } from '@/fields/slug'
|
||||||
|
|
||||||
|
export const Papers: CollectionConfig = {
|
||||||
|
slug: 'papers',
|
||||||
|
labels: {
|
||||||
|
singular: 'Diplomarbeit',
|
||||||
|
plural: 'Diplomarbeiten',
|
||||||
|
},
|
||||||
|
access: {
|
||||||
|
create: authenticated,
|
||||||
|
delete: authenticated,
|
||||||
|
read: anyone,
|
||||||
|
update: authenticated,
|
||||||
|
},
|
||||||
|
admin: {
|
||||||
|
useAsTitle: 'title',
|
||||||
|
},
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: 'title',
|
||||||
|
type: 'text',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'issue',
|
||||||
|
label: 'Problemstellung',
|
||||||
|
type: 'textarea',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'goal',
|
||||||
|
label: 'Zielsetzung',
|
||||||
|
type: 'textarea',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'technologies',
|
||||||
|
type: 'array',
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: 'technology',
|
||||||
|
type: 'relationship',
|
||||||
|
relationTo: 'technologies',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'description',
|
||||||
|
type: 'text',
|
||||||
|
required: true,
|
||||||
|
admin: {
|
||||||
|
placeholder: '... wurde für das Frontend verwendet',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'prototype',
|
||||||
|
type: 'group',
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: 'image',
|
||||||
|
type: 'upload',
|
||||||
|
relationTo: 'media',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'description',
|
||||||
|
type: 'text',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: 'authors',
|
||||||
|
type: 'array',
|
||||||
|
label: 'Projektmitglieder',
|
||||||
|
required: true,
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: 'profilePicture',
|
||||||
|
type: 'upload',
|
||||||
|
relationTo: 'media',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'user',
|
||||||
|
type: 'relationship',
|
||||||
|
relationTo: 'users',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'position',
|
||||||
|
type: 'select',
|
||||||
|
required: true,
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
label: 'Projektleiter (PL)',
|
||||||
|
value: 'leader',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Projektmitarbeiter (PM)',
|
||||||
|
value: 'member',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'description',
|
||||||
|
type: 'text',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
validate: (authors) => {
|
||||||
|
const leaders = authors.filter(author => author.position === 'leader')
|
||||||
|
if (leaders.length > 1) {
|
||||||
|
return 'Only one author can be the project leader.'
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
...slugField(),
|
||||||
|
],
|
||||||
|
}
|
||||||
39
src/collections/Technologies.ts
Normal file
39
src/collections/Technologies.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
|
import { anyone } from '../access/anyone'
|
||||||
|
import { authenticated } from '../access/authenticated'
|
||||||
|
|
||||||
|
export const Technologies: CollectionConfig = {
|
||||||
|
slug: 'technologies',
|
||||||
|
labels: {
|
||||||
|
singular: 'Technologie',
|
||||||
|
plural: 'Technologien',
|
||||||
|
},
|
||||||
|
admin: {
|
||||||
|
useAsTitle: 'name',
|
||||||
|
},
|
||||||
|
access: {
|
||||||
|
create: authenticated,
|
||||||
|
delete: authenticated,
|
||||||
|
read: anyone,
|
||||||
|
update: authenticated,
|
||||||
|
},
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: 'name',
|
||||||
|
type: 'text',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'description',
|
||||||
|
type: 'textarea',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
type: 'upload',
|
||||||
|
relationTo: 'media',
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -54,6 +54,7 @@ export type SupportedTimezones =
|
|||||||
| 'Asia/Singapore'
|
| 'Asia/Singapore'
|
||||||
| 'Asia/Tokyo'
|
| 'Asia/Tokyo'
|
||||||
| 'Asia/Seoul'
|
| 'Asia/Seoul'
|
||||||
|
| 'Australia/Brisbane'
|
||||||
| 'Australia/Sydney'
|
| 'Australia/Sydney'
|
||||||
| 'Pacific/Guam'
|
| 'Pacific/Guam'
|
||||||
| 'Pacific/Noumea'
|
| 'Pacific/Noumea'
|
||||||
@@ -66,6 +67,8 @@ export interface Config {
|
|||||||
};
|
};
|
||||||
blocks: {};
|
blocks: {};
|
||||||
collections: {
|
collections: {
|
||||||
|
papers: Paper;
|
||||||
|
technologies: Technology;
|
||||||
pages: Page;
|
pages: Page;
|
||||||
posts: Post;
|
posts: Post;
|
||||||
media: Media;
|
media: Media;
|
||||||
@@ -82,6 +85,8 @@ export interface Config {
|
|||||||
};
|
};
|
||||||
collectionsJoins: {};
|
collectionsJoins: {};
|
||||||
collectionsSelect: {
|
collectionsSelect: {
|
||||||
|
papers: PapersSelect<false> | PapersSelect<true>;
|
||||||
|
technologies: TechnologiesSelect<false> | TechnologiesSelect<true>;
|
||||||
pages: PagesSelect<false> | PagesSelect<true>;
|
pages: PagesSelect<false> | PagesSelect<true>;
|
||||||
posts: PostsSelect<false> | PostsSelect<true>;
|
posts: PostsSelect<false> | PostsSelect<true>;
|
||||||
media: MediaSelect<false> | MediaSelect<true>;
|
media: MediaSelect<false> | MediaSelect<true>;
|
||||||
@@ -97,7 +102,7 @@ export interface Config {
|
|||||||
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
||||||
};
|
};
|
||||||
db: {
|
db: {
|
||||||
defaultIDType: string;
|
defaultIDType: number;
|
||||||
};
|
};
|
||||||
globals: {
|
globals: {
|
||||||
header: Header;
|
header: Header;
|
||||||
@@ -142,123 +147,54 @@ export interface UserAuthOperations {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "pages".
|
* via the `definition` "papers".
|
||||||
*/
|
*/
|
||||||
export interface Page {
|
export interface Paper {
|
||||||
id: string;
|
id: number;
|
||||||
title: string;
|
title: string;
|
||||||
hero: {
|
issue: string;
|
||||||
type: 'none' | 'highImpact' | 'mediumImpact' | 'lowImpact';
|
goal: string;
|
||||||
richText?: {
|
technologies?:
|
||||||
root: {
|
| {
|
||||||
type: string;
|
technology: number | Technology;
|
||||||
children: {
|
description: string;
|
||||||
type: string;
|
id?: string | null;
|
||||||
version: number;
|
}[]
|
||||||
[k: string]: unknown;
|
| null;
|
||||||
}[];
|
prototype: {
|
||||||
direction: ('ltr' | 'rtl') | null;
|
image: number | Media;
|
||||||
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
description: string;
|
||||||
indent: number;
|
|
||||||
version: number;
|
|
||||||
};
|
|
||||||
[k: string]: unknown;
|
|
||||||
} | null;
|
|
||||||
links?:
|
|
||||||
| {
|
|
||||||
link: {
|
|
||||||
type?: ('reference' | 'custom') | null;
|
|
||||||
newTab?: boolean | null;
|
|
||||||
reference?:
|
|
||||||
| ({
|
|
||||||
relationTo: 'pages';
|
|
||||||
value: string | Page;
|
|
||||||
} | null)
|
|
||||||
| ({
|
|
||||||
relationTo: 'posts';
|
|
||||||
value: string | Post;
|
|
||||||
} | null);
|
|
||||||
url?: string | null;
|
|
||||||
label: string;
|
|
||||||
/**
|
|
||||||
* Choose how the link should be rendered.
|
|
||||||
*/
|
|
||||||
appearance?: ('default' | 'outline') | null;
|
|
||||||
};
|
|
||||||
id?: string | null;
|
|
||||||
}[]
|
|
||||||
| null;
|
|
||||||
media?: (string | null) | Media;
|
|
||||||
};
|
};
|
||||||
layout: (CallToActionBlock | ContentBlock | MediaBlock | ArchiveBlock | FormBlock)[];
|
authors: {
|
||||||
meta?: {
|
profilePicture: number | Media;
|
||||||
title?: string | null;
|
user: number | User;
|
||||||
/**
|
position: 'leader' | 'member';
|
||||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
description: string;
|
||||||
*/
|
id?: string | null;
|
||||||
image?: (string | null) | Media;
|
}[];
|
||||||
description?: string | null;
|
|
||||||
};
|
|
||||||
publishedAt?: string | null;
|
|
||||||
slug?: string | null;
|
slug?: string | null;
|
||||||
slugLock?: boolean | null;
|
slugLock?: boolean | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
_status?: ('draft' | 'published') | null;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "posts".
|
* via the `definition` "technologies".
|
||||||
*/
|
*/
|
||||||
export interface Post {
|
export interface Technology {
|
||||||
id: string;
|
id: number;
|
||||||
title: string;
|
name: string;
|
||||||
heroImage?: (string | null) | Media;
|
description: string;
|
||||||
content: {
|
icon: number | Media;
|
||||||
root: {
|
|
||||||
type: string;
|
|
||||||
children: {
|
|
||||||
type: string;
|
|
||||||
version: number;
|
|
||||||
[k: string]: unknown;
|
|
||||||
}[];
|
|
||||||
direction: ('ltr' | 'rtl') | null;
|
|
||||||
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
||||||
indent: number;
|
|
||||||
version: number;
|
|
||||||
};
|
|
||||||
[k: string]: unknown;
|
|
||||||
};
|
|
||||||
relatedPosts?: (string | Post)[] | null;
|
|
||||||
categories?: (string | Category)[] | null;
|
|
||||||
meta?: {
|
|
||||||
title?: string | null;
|
|
||||||
/**
|
|
||||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
|
||||||
*/
|
|
||||||
image?: (string | null) | Media;
|
|
||||||
description?: string | null;
|
|
||||||
};
|
|
||||||
publishedAt?: string | null;
|
|
||||||
authors?: (string | User)[] | null;
|
|
||||||
populatedAuthors?:
|
|
||||||
| {
|
|
||||||
id?: string | null;
|
|
||||||
name?: string | null;
|
|
||||||
}[]
|
|
||||||
| null;
|
|
||||||
slug?: string | null;
|
|
||||||
slugLock?: boolean | null;
|
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
_status?: ('draft' | 'published') | null;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "media".
|
* via the `definition` "media".
|
||||||
*/
|
*/
|
||||||
export interface Media {
|
export interface Media {
|
||||||
id: string;
|
id: number;
|
||||||
alt?: string | null;
|
alt?: string | null;
|
||||||
caption?: {
|
caption?: {
|
||||||
root: {
|
root: {
|
||||||
@@ -345,33 +281,12 @@ export interface Media {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
|
||||||
* via the `definition` "categories".
|
|
||||||
*/
|
|
||||||
export interface Category {
|
|
||||||
id: string;
|
|
||||||
title: string;
|
|
||||||
slug?: string | null;
|
|
||||||
slugLock?: boolean | null;
|
|
||||||
parent?: (string | null) | Category;
|
|
||||||
breadcrumbs?:
|
|
||||||
| {
|
|
||||||
doc?: (string | null) | Category;
|
|
||||||
url?: string | null;
|
|
||||||
label?: string | null;
|
|
||||||
id?: string | null;
|
|
||||||
}[]
|
|
||||||
| null;
|
|
||||||
updatedAt: string;
|
|
||||||
createdAt: string;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "users".
|
* via the `definition` "users".
|
||||||
*/
|
*/
|
||||||
export interface User {
|
export interface User {
|
||||||
id: string;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
@@ -384,6 +299,140 @@ export interface User {
|
|||||||
lockUntil?: string | null;
|
lockUntil?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "pages".
|
||||||
|
*/
|
||||||
|
export interface Page {
|
||||||
|
id: number;
|
||||||
|
title: string;
|
||||||
|
hero: {
|
||||||
|
type: 'none' | 'highImpact' | 'mediumImpact' | 'lowImpact';
|
||||||
|
richText?: {
|
||||||
|
root: {
|
||||||
|
type: string;
|
||||||
|
children: {
|
||||||
|
type: string;
|
||||||
|
version: number;
|
||||||
|
[k: string]: unknown;
|
||||||
|
}[];
|
||||||
|
direction: ('ltr' | 'rtl') | null;
|
||||||
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
||||||
|
indent: number;
|
||||||
|
version: number;
|
||||||
|
};
|
||||||
|
[k: string]: unknown;
|
||||||
|
} | null;
|
||||||
|
links?:
|
||||||
|
| {
|
||||||
|
link: {
|
||||||
|
type?: ('reference' | 'custom') | null;
|
||||||
|
newTab?: boolean | null;
|
||||||
|
reference?:
|
||||||
|
| ({
|
||||||
|
relationTo: 'pages';
|
||||||
|
value: number | Page;
|
||||||
|
} | null)
|
||||||
|
| ({
|
||||||
|
relationTo: 'posts';
|
||||||
|
value: number | Post;
|
||||||
|
} | null);
|
||||||
|
url?: string | null;
|
||||||
|
label: string;
|
||||||
|
/**
|
||||||
|
* Choose how the link should be rendered.
|
||||||
|
*/
|
||||||
|
appearance?: ('default' | 'outline') | null;
|
||||||
|
};
|
||||||
|
id?: string | null;
|
||||||
|
}[]
|
||||||
|
| null;
|
||||||
|
media?: (number | null) | Media;
|
||||||
|
};
|
||||||
|
layout: (CallToActionBlock | ContentBlock | MediaBlock | ArchiveBlock | FormBlock)[];
|
||||||
|
meta?: {
|
||||||
|
title?: string | null;
|
||||||
|
/**
|
||||||
|
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||||
|
*/
|
||||||
|
image?: (number | null) | Media;
|
||||||
|
description?: string | null;
|
||||||
|
};
|
||||||
|
publishedAt?: string | null;
|
||||||
|
slug?: string | null;
|
||||||
|
slugLock?: boolean | null;
|
||||||
|
updatedAt: string;
|
||||||
|
createdAt: string;
|
||||||
|
_status?: ('draft' | 'published') | null;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "posts".
|
||||||
|
*/
|
||||||
|
export interface Post {
|
||||||
|
id: number;
|
||||||
|
title: string;
|
||||||
|
heroImage?: (number | null) | Media;
|
||||||
|
content: {
|
||||||
|
root: {
|
||||||
|
type: string;
|
||||||
|
children: {
|
||||||
|
type: string;
|
||||||
|
version: number;
|
||||||
|
[k: string]: unknown;
|
||||||
|
}[];
|
||||||
|
direction: ('ltr' | 'rtl') | null;
|
||||||
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
||||||
|
indent: number;
|
||||||
|
version: number;
|
||||||
|
};
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
relatedPosts?: (number | Post)[] | null;
|
||||||
|
categories?: (number | Category)[] | null;
|
||||||
|
meta?: {
|
||||||
|
title?: string | null;
|
||||||
|
/**
|
||||||
|
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||||
|
*/
|
||||||
|
image?: (number | null) | Media;
|
||||||
|
description?: string | null;
|
||||||
|
};
|
||||||
|
publishedAt?: string | null;
|
||||||
|
authors?: (number | User)[] | null;
|
||||||
|
populatedAuthors?:
|
||||||
|
| {
|
||||||
|
id?: string | null;
|
||||||
|
name?: string | null;
|
||||||
|
}[]
|
||||||
|
| null;
|
||||||
|
slug?: string | null;
|
||||||
|
slugLock?: boolean | null;
|
||||||
|
updatedAt: string;
|
||||||
|
createdAt: string;
|
||||||
|
_status?: ('draft' | 'published') | null;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "categories".
|
||||||
|
*/
|
||||||
|
export interface Category {
|
||||||
|
id: number;
|
||||||
|
title: string;
|
||||||
|
slug?: string | null;
|
||||||
|
slugLock?: boolean | null;
|
||||||
|
parent?: (number | null) | Category;
|
||||||
|
breadcrumbs?:
|
||||||
|
| {
|
||||||
|
doc?: (number | null) | Category;
|
||||||
|
url?: string | null;
|
||||||
|
label?: string | null;
|
||||||
|
id?: string | null;
|
||||||
|
}[]
|
||||||
|
| null;
|
||||||
|
updatedAt: string;
|
||||||
|
createdAt: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "CallToActionBlock".
|
* via the `definition` "CallToActionBlock".
|
||||||
@@ -412,11 +461,11 @@ export interface CallToActionBlock {
|
|||||||
reference?:
|
reference?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
url?: string | null;
|
url?: string | null;
|
||||||
label: string;
|
label: string;
|
||||||
@@ -462,11 +511,11 @@ export interface ContentBlock {
|
|||||||
reference?:
|
reference?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
url?: string | null;
|
url?: string | null;
|
||||||
label: string;
|
label: string;
|
||||||
@@ -487,7 +536,7 @@ export interface ContentBlock {
|
|||||||
* via the `definition` "MediaBlock".
|
* via the `definition` "MediaBlock".
|
||||||
*/
|
*/
|
||||||
export interface MediaBlock {
|
export interface MediaBlock {
|
||||||
media: string | Media;
|
media: number | Media;
|
||||||
id?: string | null;
|
id?: string | null;
|
||||||
blockName?: string | null;
|
blockName?: string | null;
|
||||||
blockType: 'mediaBlock';
|
blockType: 'mediaBlock';
|
||||||
@@ -514,12 +563,12 @@ export interface ArchiveBlock {
|
|||||||
} | null;
|
} | null;
|
||||||
populateBy?: ('collection' | 'selection') | null;
|
populateBy?: ('collection' | 'selection') | null;
|
||||||
relationTo?: 'posts' | null;
|
relationTo?: 'posts' | null;
|
||||||
categories?: (string | Category)[] | null;
|
categories?: (number | Category)[] | null;
|
||||||
limit?: number | null;
|
limit?: number | null;
|
||||||
selectedDocs?:
|
selectedDocs?:
|
||||||
| {
|
| {
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
}[]
|
}[]
|
||||||
| null;
|
| null;
|
||||||
id?: string | null;
|
id?: string | null;
|
||||||
@@ -531,7 +580,7 @@ export interface ArchiveBlock {
|
|||||||
* via the `definition` "FormBlock".
|
* via the `definition` "FormBlock".
|
||||||
*/
|
*/
|
||||||
export interface FormBlock {
|
export interface FormBlock {
|
||||||
form: string | Form;
|
form: number | Form;
|
||||||
enableIntro?: boolean | null;
|
enableIntro?: boolean | null;
|
||||||
introContent?: {
|
introContent?: {
|
||||||
root: {
|
root: {
|
||||||
@@ -557,7 +606,7 @@ export interface FormBlock {
|
|||||||
* via the `definition` "forms".
|
* via the `definition` "forms".
|
||||||
*/
|
*/
|
||||||
export interface Form {
|
export interface Form {
|
||||||
id: string;
|
id: number;
|
||||||
title: string;
|
title: string;
|
||||||
fields?:
|
fields?:
|
||||||
| (
|
| (
|
||||||
@@ -624,6 +673,7 @@ export interface Form {
|
|||||||
label?: string | null;
|
label?: string | null;
|
||||||
width?: number | null;
|
width?: number | null;
|
||||||
defaultValue?: string | null;
|
defaultValue?: string | null;
|
||||||
|
placeholder?: string | null;
|
||||||
options?:
|
options?:
|
||||||
| {
|
| {
|
||||||
label: string;
|
label: string;
|
||||||
@@ -730,7 +780,7 @@ export interface Form {
|
|||||||
* via the `definition` "redirects".
|
* via the `definition` "redirects".
|
||||||
*/
|
*/
|
||||||
export interface Redirect {
|
export interface Redirect {
|
||||||
id: string;
|
id: number;
|
||||||
/**
|
/**
|
||||||
* You will need to rebuild the website when changing this field.
|
* You will need to rebuild the website when changing this field.
|
||||||
*/
|
*/
|
||||||
@@ -740,11 +790,11 @@ export interface Redirect {
|
|||||||
reference?:
|
reference?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
url?: string | null;
|
url?: string | null;
|
||||||
};
|
};
|
||||||
@@ -756,8 +806,8 @@ export interface Redirect {
|
|||||||
* via the `definition` "form-submissions".
|
* via the `definition` "form-submissions".
|
||||||
*/
|
*/
|
||||||
export interface FormSubmission {
|
export interface FormSubmission {
|
||||||
id: string;
|
id: number;
|
||||||
form: string | Form;
|
form: number | Form;
|
||||||
submissionData?:
|
submissionData?:
|
||||||
| {
|
| {
|
||||||
field: string;
|
field: string;
|
||||||
@@ -775,18 +825,18 @@ export interface FormSubmission {
|
|||||||
* via the `definition` "search".
|
* via the `definition` "search".
|
||||||
*/
|
*/
|
||||||
export interface Search {
|
export interface Search {
|
||||||
id: string;
|
id: number;
|
||||||
title?: string | null;
|
title?: string | null;
|
||||||
priority?: number | null;
|
priority?: number | null;
|
||||||
doc: {
|
doc: {
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
};
|
};
|
||||||
slug?: string | null;
|
slug?: string | null;
|
||||||
meta?: {
|
meta?: {
|
||||||
title?: string | null;
|
title?: string | null;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
image?: (string | null) | Media;
|
image?: (number | null) | Media;
|
||||||
};
|
};
|
||||||
categories?:
|
categories?:
|
||||||
| {
|
| {
|
||||||
@@ -803,7 +853,7 @@ export interface Search {
|
|||||||
* via the `definition` "payload-jobs".
|
* via the `definition` "payload-jobs".
|
||||||
*/
|
*/
|
||||||
export interface PayloadJob {
|
export interface PayloadJob {
|
||||||
id: string;
|
id: number;
|
||||||
/**
|
/**
|
||||||
* Input data provided to the job
|
* Input data provided to the job
|
||||||
*/
|
*/
|
||||||
@@ -895,52 +945,60 @@ export interface PayloadJob {
|
|||||||
* via the `definition` "payload-locked-documents".
|
* via the `definition` "payload-locked-documents".
|
||||||
*/
|
*/
|
||||||
export interface PayloadLockedDocument {
|
export interface PayloadLockedDocument {
|
||||||
id: string;
|
id: number;
|
||||||
document?:
|
document?:
|
||||||
|
| ({
|
||||||
|
relationTo: 'papers';
|
||||||
|
value: number | Paper;
|
||||||
|
} | null)
|
||||||
|
| ({
|
||||||
|
relationTo: 'technologies';
|
||||||
|
value: number | Technology;
|
||||||
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'media';
|
relationTo: 'media';
|
||||||
value: string | Media;
|
value: number | Media;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'categories';
|
relationTo: 'categories';
|
||||||
value: string | Category;
|
value: number | Category;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'users';
|
relationTo: 'users';
|
||||||
value: string | User;
|
value: number | User;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'redirects';
|
relationTo: 'redirects';
|
||||||
value: string | Redirect;
|
value: number | Redirect;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'forms';
|
relationTo: 'forms';
|
||||||
value: string | Form;
|
value: number | Form;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'form-submissions';
|
relationTo: 'form-submissions';
|
||||||
value: string | FormSubmission;
|
value: number | FormSubmission;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'search';
|
relationTo: 'search';
|
||||||
value: string | Search;
|
value: number | Search;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'payload-jobs';
|
relationTo: 'payload-jobs';
|
||||||
value: string | PayloadJob;
|
value: number | PayloadJob;
|
||||||
} | null);
|
} | null);
|
||||||
globalSlug?: string | null;
|
globalSlug?: string | null;
|
||||||
user: {
|
user: {
|
||||||
relationTo: 'users';
|
relationTo: 'users';
|
||||||
value: string | User;
|
value: number | User;
|
||||||
};
|
};
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
@@ -950,10 +1008,10 @@ export interface PayloadLockedDocument {
|
|||||||
* via the `definition` "payload-preferences".
|
* via the `definition` "payload-preferences".
|
||||||
*/
|
*/
|
||||||
export interface PayloadPreference {
|
export interface PayloadPreference {
|
||||||
id: string;
|
id: number;
|
||||||
user: {
|
user: {
|
||||||
relationTo: 'users';
|
relationTo: 'users';
|
||||||
value: string | User;
|
value: number | User;
|
||||||
};
|
};
|
||||||
key?: string | null;
|
key?: string | null;
|
||||||
value?:
|
value?:
|
||||||
@@ -973,12 +1031,58 @@ export interface PayloadPreference {
|
|||||||
* via the `definition` "payload-migrations".
|
* via the `definition` "payload-migrations".
|
||||||
*/
|
*/
|
||||||
export interface PayloadMigration {
|
export interface PayloadMigration {
|
||||||
id: string;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
batch?: number | null;
|
batch?: number | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "papers_select".
|
||||||
|
*/
|
||||||
|
export interface PapersSelect<T extends boolean = true> {
|
||||||
|
title?: T;
|
||||||
|
issue?: T;
|
||||||
|
goal?: T;
|
||||||
|
technologies?:
|
||||||
|
| T
|
||||||
|
| {
|
||||||
|
technology?: T;
|
||||||
|
description?: T;
|
||||||
|
id?: T;
|
||||||
|
};
|
||||||
|
prototype?:
|
||||||
|
| T
|
||||||
|
| {
|
||||||
|
image?: T;
|
||||||
|
description?: T;
|
||||||
|
};
|
||||||
|
authors?:
|
||||||
|
| T
|
||||||
|
| {
|
||||||
|
profilePicture?: T;
|
||||||
|
user?: T;
|
||||||
|
position?: T;
|
||||||
|
description?: T;
|
||||||
|
id?: T;
|
||||||
|
};
|
||||||
|
slug?: T;
|
||||||
|
slugLock?: T;
|
||||||
|
updatedAt?: T;
|
||||||
|
createdAt?: T;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "technologies_select".
|
||||||
|
*/
|
||||||
|
export interface TechnologiesSelect<T extends boolean = true> {
|
||||||
|
name?: T;
|
||||||
|
description?: T;
|
||||||
|
icon?: T;
|
||||||
|
updatedAt?: T;
|
||||||
|
createdAt?: T;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "pages_select".
|
* via the `definition` "pages_select".
|
||||||
@@ -1355,6 +1459,7 @@ export interface FormsSelect<T extends boolean = true> {
|
|||||||
label?: T;
|
label?: T;
|
||||||
width?: T;
|
width?: T;
|
||||||
defaultValue?: T;
|
defaultValue?: T;
|
||||||
|
placeholder?: T;
|
||||||
options?:
|
options?:
|
||||||
| T
|
| T
|
||||||
| {
|
| {
|
||||||
@@ -1532,7 +1637,7 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
|
|||||||
* via the `definition` "header".
|
* via the `definition` "header".
|
||||||
*/
|
*/
|
||||||
export interface Header {
|
export interface Header {
|
||||||
id: string;
|
id: number;
|
||||||
navItems?:
|
navItems?:
|
||||||
| {
|
| {
|
||||||
link: {
|
link: {
|
||||||
@@ -1541,11 +1646,11 @@ export interface Header {
|
|||||||
reference?:
|
reference?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
url?: string | null;
|
url?: string | null;
|
||||||
label: string;
|
label: string;
|
||||||
@@ -1561,7 +1666,7 @@ export interface Header {
|
|||||||
* via the `definition` "footer".
|
* via the `definition` "footer".
|
||||||
*/
|
*/
|
||||||
export interface Footer {
|
export interface Footer {
|
||||||
id: string;
|
id: number;
|
||||||
navItems?:
|
navItems?:
|
||||||
| {
|
| {
|
||||||
link: {
|
link: {
|
||||||
@@ -1570,11 +1675,11 @@ export interface Footer {
|
|||||||
reference?:
|
reference?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
url?: string | null;
|
url?: string | null;
|
||||||
label: string;
|
label: string;
|
||||||
@@ -1642,14 +1747,14 @@ export interface TaskSchedulePublish {
|
|||||||
doc?:
|
doc?:
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: string | Page;
|
value: number | Page;
|
||||||
} | null)
|
} | null)
|
||||||
| ({
|
| ({
|
||||||
relationTo: 'posts';
|
relationTo: 'posts';
|
||||||
value: string | Post;
|
value: number | Post;
|
||||||
} | null);
|
} | null);
|
||||||
global?: string | null;
|
global?: string | null;
|
||||||
user?: (string | null) | User;
|
user?: (number | null) | User;
|
||||||
};
|
};
|
||||||
output?: unknown;
|
output?: unknown;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import { Header } from './Header/config'
|
|||||||
import { plugins } from './plugins'
|
import { plugins } from './plugins'
|
||||||
import { defaultLexical } from '@/fields/defaultLexical'
|
import { defaultLexical } from '@/fields/defaultLexical'
|
||||||
import { getServerSideURL } from './utilities/getURL'
|
import { getServerSideURL } from './utilities/getURL'
|
||||||
|
import { Papers } from '@/collections/Papers'
|
||||||
|
import { Technologies } from '@/collections/Technologies'
|
||||||
|
|
||||||
const filename = fileURLToPath(import.meta.url)
|
const filename = fileURLToPath(import.meta.url)
|
||||||
const dirname = path.dirname(filename)
|
const dirname = path.dirname(filename)
|
||||||
@@ -64,7 +66,7 @@ export default buildConfig({
|
|||||||
url: process.env.DATABASE_URI || '',
|
url: process.env.DATABASE_URI || '',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
collections: [Pages, Posts, Media, Categories, Users],
|
collections: [Papers, Technologies, Pages, Posts, Media, Categories, Users],
|
||||||
cors: [getServerSideURL()].filter(Boolean),
|
cors: [getServerSideURL()].filter(Boolean),
|
||||||
globals: [Header, Footer],
|
globals: [Header, Footer],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|||||||
Reference in New Issue
Block a user