Pahse 5
This commit is contained in:
34
sites/src/types/index.ts
Normal file
34
sites/src/types/index.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
export interface SiteDefinition {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
version: number;
|
||||
layout: string;
|
||||
theme: Record<string, any>;
|
||||
navigation: NavigationItem[];
|
||||
pages: PageDefinition[];
|
||||
config: Record<string, any>;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface NavigationItem {
|
||||
label: string;
|
||||
slug: string;
|
||||
order: number;
|
||||
}
|
||||
|
||||
export interface PageDefinition {
|
||||
id: number;
|
||||
slug: string;
|
||||
title: string;
|
||||
type: string;
|
||||
blocks: Block[];
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface Block {
|
||||
type: string;
|
||||
data: Record<string, any>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user