From a891a686fd4a9a2b7d4369a57478ce6a69d5b405 Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Thu, 6 Nov 2025 20:22:16 +0200 Subject: [PATCH] Almost finish implementing client side --- .../.idea/workspace.xml | 62 +- Client/.dockerignore | 4 + Client/.gitignore | 7 + Client/Dockerfile | 22 + Client/README.md | 89 + Client/app/api/api.ts | 146 + Client/app/app.css | 15 + Client/app/components/Footer.tsx | 9 + Client/app/components/Header.tsx | 304 ++ Client/app/components/Icon.tsx | 29 + Client/app/components/Loading.tsx | 5 + Client/app/components/Modal.tsx | 21 + Client/app/components/NotFound.tsx | 9 + Client/app/context/AuthContext.tsx | 90 + Client/app/layout/RootLayout.tsx | 14 + Client/app/root.tsx | 78 + Client/app/routes.ts | 8 + Client/app/routes/post.tsx | 392 ++ Client/app/routes/posts.tsx | 155 + Client/app/types/PaginatedResponse.tsx | 7 + Client/app/types/comment.tsx | 7 + Client/app/types/post.tsx | 12 + Client/app/types/tag.tsx | 9 + Client/app/types/user.tsx | 4 + Client/app/utils/tags.tsx | 9 + Client/package-lock.json | 4828 +++++++++++++++++ Client/package.json | 31 + Client/public/favicon.ico | Bin 0 -> 15086 bytes Client/react-router.config.ts | 7 + Client/tsconfig.json | 27 + Client/vite.config.ts | 8 + README.md | 5 - T120B165-ImgBoard.sln.DotSettings.user | 2 + .../Controllers/PostController.cs | 12 +- .../Controllers/TagController.cs | 20 +- T120B165-ImgBoard/Dtos/Comment/CommentDto.cs | 5 +- T120B165-ImgBoard/Dtos/Post/PostDto.cs | 11 +- T120B165-ImgBoard/Dtos/Tag/CreateTagDto.cs | 1 + T120B165-ImgBoard/Dtos/Tag/TagDto.cs | 14 + T120B165-ImgBoard/Models/Tag.cs | 2 + T120B165-ImgBoard/Program.cs | 10 +- T120B165-ImgBoard/Services/PostService.cs | 17 +- 42 files changed, 6450 insertions(+), 57 deletions(-) create mode 100644 Client/.dockerignore create mode 100644 Client/.gitignore create mode 100644 Client/Dockerfile create mode 100644 Client/README.md create mode 100644 Client/app/api/api.ts create mode 100644 Client/app/app.css create mode 100644 Client/app/components/Footer.tsx create mode 100644 Client/app/components/Header.tsx create mode 100644 Client/app/components/Icon.tsx create mode 100644 Client/app/components/Loading.tsx create mode 100644 Client/app/components/Modal.tsx create mode 100644 Client/app/components/NotFound.tsx create mode 100644 Client/app/context/AuthContext.tsx create mode 100644 Client/app/layout/RootLayout.tsx create mode 100644 Client/app/root.tsx create mode 100644 Client/app/routes.ts create mode 100644 Client/app/routes/post.tsx create mode 100644 Client/app/routes/posts.tsx create mode 100644 Client/app/types/PaginatedResponse.tsx create mode 100644 Client/app/types/comment.tsx create mode 100644 Client/app/types/post.tsx create mode 100644 Client/app/types/tag.tsx create mode 100644 Client/app/types/user.tsx create mode 100644 Client/app/utils/tags.tsx create mode 100644 Client/package-lock.json create mode 100644 Client/package.json create mode 100644 Client/public/favicon.ico create mode 100644 Client/react-router.config.ts create mode 100644 Client/tsconfig.json create mode 100644 Client/vite.config.ts create mode 100644 T120B165-ImgBoard/Dtos/Tag/TagDto.cs diff --git a/.idea/.idea.T120B165-ImgBoard/.idea/workspace.xml b/.idea/.idea.T120B165-ImgBoard/.idea/workspace.xml index f301cf3..a578a10 100644 --- a/.idea/.idea.T120B165-ImgBoard/.idea/workspace.xml +++ b/.idea/.idea.T120B165-ImgBoard/.idea/workspace.xml @@ -8,7 +8,19 @@