diff --git a/frontend/src/globalInterfaces.ts b/frontend/src/globalInterfaces.ts index 64c16ba..a88fd88 100644 --- a/frontend/src/globalInterfaces.ts +++ b/frontend/src/globalInterfaces.ts @@ -64,9 +64,52 @@ export interface DocumentItem { tags?: string[]; } -export interface NavLink { +export interface PostVotes { + id: string; + post_id: string; + user_id: string; + vote_type: 'like' | 'dislike'; + created: string; + updated: string; +} + +export interface VoteStats { + likes: number; + dislikes: number; + userVote: 'like' | 'dislike' | null; +} + +export interface Comment { + id: string; + post_id: string; + user_id: string; + author_name: string; + content: string; + status: 'pending' | 'published'; + created: string; + updated: string; +} + +export interface Consultation { + id: string; name: string; - url: string; + phone: string; + question: string; + status: 'new' | 'in_progress' | 'completed'; + created: string; +} + +export interface PostResponse { + id: string; + slug: string; + title: string; + description: string; + author: string; + category: string; + categoryColor: string; + date: string; + readTime: string; + image: string | null; } export interface CompanyInfo { diff --git a/frontend/src/layouts/Layout.astro b/frontend/src/layouts/Layout.astro index 478af40..817fb16 100644 --- a/frontend/src/layouts/Layout.astro +++ b/frontend/src/layouts/Layout.astro @@ -14,9 +14,10 @@ export interface Props { description: string; canonicalLink?: string; breadcrumbs?: Array<{ label: string; href?: string }>; + ogImage?: string; } -const { title, description, canonicalLink, breadcrumbs } = Astro.props; +const { title, description, canonicalLink, breadcrumbs, ogImage } = Astro.props; --- @@ -32,6 +33,17 @@ const { title, description, canonicalLink, breadcrumbs } = Astro.props;