Initial commit

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-11 15:55:14 -04:00
commit 290ff0bc1e
41 changed files with 7998 additions and 0 deletions
+121
View File
@@ -0,0 +1,121 @@
export type Notice = {
title: string;
message: string;
severity: 'info' | 'warning' | 'critical';
start_date?: string;
end_date?: string;
active?: boolean;
priority?: number;
};
export type FuelPrice = {
fuel_type: string;
price_per_litre: number;
currency: string;
last_updated: string;
notes?: string;
};
export type EventItem = {
title: string;
slug: string;
description: string;
start_datetime: string;
end_datetime?: string;
location_text?: string;
registration_link?: string;
status?: string;
is_featured?: boolean;
tags?: string[];
};
export type NewsItem = {
title: string;
slug: string;
summary: string;
body: string;
publish_date: string;
status?: string;
tags?: string[];
};
export type DocumentItem = {
title: string;
category: string;
description?: string;
fileUrl?: string;
uploaded_at?: string;
};
export type ContactItem = {
name: string;
role: string;
email: string;
phone?: string;
is_public?: boolean;
order?: number;
};
export const fallbackNotices: Notice[] = [
{
title: 'Welcome to Swansea Airport',
message: 'Operational notices and visitor information will appear here once Directus content is published.',
severity: 'info',
active: true,
priority: 1,
},
];
export const fallbackFuelPrices: FuelPrice[] = [
{
fuel_type: 'AVGAS',
price_per_litre: 2.35,
currency: 'GBP',
last_updated: '2026-05-11',
notes: 'Placeholder rate for the initial scaffold.',
},
];
export const fallbackEvents: EventItem[] = [
{
title: 'Airfield open day',
slug: 'airfield-open-day',
description: 'Example event to verify the listing and detail page flow.',
start_datetime: '2026-06-14T09:00:00Z',
end_datetime: '2026-06-14T16:00:00Z',
location_text: 'Main apron',
is_featured: true,
tags: ['Public'],
},
];
export const fallbackNews: NewsItem[] = [
{
title: 'Site scaffolding started',
slug: 'site-scaffolding-started',
summary: 'The new Astro and Directus architecture has been scaffolded.',
body: '<p>This is a starter article that proves the detail route and rich text rendering.</p>',
publish_date: '2026-05-11',
tags: ['Website'],
},
];
export const fallbackDocuments: DocumentItem[] = [
{
title: 'Pilot information pack',
category: 'Pilots',
description: 'Starter document entry for the documents listing.',
uploaded_at: '2026-05-11',
},
];
export const fallbackContacts: ContactItem[] = [
{
name: 'Airport office',
role: 'General enquiries',
email: 'info@swansea-airport.wales',
phone: '01792 687 042',
is_public: true,
order: 1,
},
];