Add a method to get all web pages
This commit is contained in:
16
astro/src/types/components/contact.d.ts
vendored
Normal file
16
astro/src/types/components/contact.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
type ContactComponent = {
|
||||
component: "Contact";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
methods: ContactMethod[];
|
||||
}
|
||||
|
||||
type ContactMethod = {
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
color: string;
|
||||
icon: PhotoProps;
|
||||
}
|
||||
15
astro/src/types/components/equipment.d.ts
vendored
Normal file
15
astro/src/types/components/equipment.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
type EquipmentTableComponent = {
|
||||
component: "EquipmentTable";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
items: EquipmentTableItem[];
|
||||
}
|
||||
|
||||
type EquipmentTableItem = {
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
icon: PhotoProps;
|
||||
}
|
||||
18
astro/src/types/components/events.d.ts
vendored
Normal file
18
astro/src/types/components/events.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
type UpcomingEventsComponent = {
|
||||
component: "UpcomingEvents";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
events: UpcomingEvent[];
|
||||
}
|
||||
|
||||
type UpcomingEvent = {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
location: string;
|
||||
mapLocation: [number, number];
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
}
|
||||
14
astro/src/types/components/faq.d.ts
vendored
Normal file
14
astro/src/types/components/faq.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
type FrequentlyAskedQuestionsComponent = {
|
||||
component: "FrequentlyAskedQuestions";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
questions: FrequentlyAskedQuestion[];
|
||||
}
|
||||
|
||||
type FrequentlyAskedQuestion = {
|
||||
id: string;
|
||||
question: string;
|
||||
answer: string;
|
||||
}
|
||||
8
astro/src/types/components/hero.d.ts
vendored
Normal file
8
astro/src/types/components/hero.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
type HeroComponent = {
|
||||
component: "Hero";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
backgroundImage: PhotoProps;
|
||||
}
|
||||
26
astro/src/types/components/lastContent.d.ts
vendored
Normal file
26
astro/src/types/components/lastContent.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
type LastBlogsComponent = {
|
||||
component: "LastBlogs";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
readMoreButtonText: string;
|
||||
amount: number;
|
||||
}
|
||||
|
||||
type LastProjectsComponent = {
|
||||
component: "LastProjects";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
readMoreButtonText: string;
|
||||
amount: number;
|
||||
}
|
||||
|
||||
type LastGalleriesComponent = {
|
||||
component: "LastGalleries";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
readMoreButtonText: string;
|
||||
amount: number;
|
||||
}
|
||||
17
astro/src/types/components/reviews.d.ts
vendored
Normal file
17
astro/src/types/components/reviews.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
type ReviewListComponent = {
|
||||
component: "Reviews";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
reviews: Review[];
|
||||
}
|
||||
|
||||
type Review = {
|
||||
id: string;
|
||||
name: string;
|
||||
review: string;
|
||||
date: string;
|
||||
stars: number;
|
||||
thumbnail: PhotoProps;
|
||||
}
|
||||
9
astro/src/types/components/textWithImage.d.ts
vendored
Normal file
9
astro/src/types/components/textWithImage.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
type TextWithImageComponent = {
|
||||
component: "TextWithImage";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
image: PhotoProps;
|
||||
imageSide: "left" | "right";
|
||||
}
|
||||
7
astro/src/types/components/wallOfText.d.ts
vendored
Normal file
7
astro/src/types/components/wallOfText.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
type WallOfTextComponent = {
|
||||
component: "WallOfText";
|
||||
|
||||
id: string;
|
||||
title: string;
|
||||
text: string;
|
||||
}
|
||||
21
astro/src/types/pages/page.d.ts
vendored
Normal file
21
astro/src/types/pages/page.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
type WebPage = {
|
||||
id: string;
|
||||
lastModified: Date;
|
||||
|
||||
url: string;
|
||||
searchEngine: SearchEngine;
|
||||
components: WebpageComponent[];
|
||||
}
|
||||
|
||||
type WebpageComponent =
|
||||
ContactComponent |
|
||||
EquipmentTableComponent |
|
||||
UpcomingEventsComponent |
|
||||
FrequentlyAskedQuestionsComponent |
|
||||
HeroComponent |
|
||||
LastBlogsComponent |
|
||||
LastProjectsComponent |
|
||||
LastGalleriesComponent |
|
||||
ReviewListComponent |
|
||||
TextWithImageComponent |
|
||||
WallOfTextComponent;
|
||||
Reference in New Issue
Block a user