Almost finish implementing client side

This commit is contained in:
2025-11-06 20:22:16 +02:00
parent a847779582
commit a891a686fd
42 changed files with 6450 additions and 57 deletions

View File

@@ -0,0 +1,7 @@
export type PaginatedResponse<T> = {
items: T[];
pageSize: number;
totalPages: number;
totalCount: number;
currentPage: number;
}

View File

@@ -0,0 +1,7 @@
import type { SlimUser } from "./user"
export type Comment = {
id: number
text: string
author: SlimUser
}

12
Client/app/types/post.tsx Normal file
View File

@@ -0,0 +1,12 @@
import type { Tag } from "./tag"
import type { SlimUser } from "./user"
export type Post = {
id: number
title: string
description: string
author: SlimUser
fileUrl: string
tags: Tag[]
createdAt: string
}

9
Client/app/types/tag.tsx Normal file
View File

@@ -0,0 +1,9 @@
export enum TagType {
General = "General",
Copyright = "Copyright"
}
export type Tag = {
name: string
type: TagType
}

View File

@@ -0,0 +1,4 @@
export type SlimUser = {
userId: string
userName: string
}