first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:12:36 +03:00
commit e881f38e4e
278 changed files with 24095 additions and 0 deletions

18
Type/images.ts Normal file
View File

@@ -0,0 +1,18 @@
export interface Images {
id: number;
title: string;
path: string;
processed_path: string;
original_filename: string;
format: string;
width: number;
height: number;
size: number;
quality: number;
slug: string;
created_at: string;
updated_at: string;
is_active: boolean;
is_front: boolean;
user: number;
}

47
Type/post.ts Normal file
View File

@@ -0,0 +1,47 @@
export interface PostType {
title: string;
content: string;
categories: Categorie[];
keywords: string;
tags: Tag[];
image: string | null;
thumb: string | null;
video: string;
slug: string;
created_at: string;
updated_at: string;
is_active: boolean;
is_front: boolean;
}
export interface Tag {
tag: string;
slug: string;
}
export interface CategoryPost {
slug: string;
}
export interface Categorie {
title: string;
parent: string | number | null;
is_active: boolean;
created_at: string;
order: number;
slug: string;
image: string | null;
keywords: string;
description: string;
posts?: CategoryPost[];
child?: Categorie[];
}
export interface PaginatedResponse<T> {
count: number;
next: string | null;
previous: string | null;
results: T[];
}
export type Setting = PostType[];