From c22d6cf91e1196ff1184eda8bcbfb2fb89690373 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Fri, 3 May 2024 21:50:47 +0300 Subject: [PATCH] pages updated,added. --- .../Entities/Library/Shelf.cs | 2 - .../src/frontend/components/AudioBookForm.jsx | 118 ++++ .../frontend/components/GenreEditModal .jsx | 52 ++ .../frontend/components/LanguageSwitcher.jsx | 18 +- .../frontend/components/MagazineEditForm.jsx | 125 ++++ .../src/frontend/components/ThemeSwitcher.jsx | 1 + .../src/frontend/components/UploadForm.jsx | 89 +++ .../frontend/constants/appSidebarItems.jsx | 19 +- .../src/frontend/constants/meSidebarItems.jsx | 4 +- .../src/frontend/constants/site.jsx | 2 +- .../layouts/App/components/Navbar/index.jsx | 80 +-- .../src/frontend/package-lock.json | 590 ++++++++++++++++++ LibraryTrackingApp/src/frontend/package.json | 1 + .../src/frontend/pages/api/pdf-dummy.js | 18 + .../frontend/pages/app/audio-books/[id].jsx | 9 + .../frontend/pages/app/audio-books/index.jsx | 7 +- .../src/frontend/pages/app/e-books/[id].jsx | 73 +++ .../src/frontend/pages/app/e-books/index.jsx | 84 ++- .../src/frontend/pages/app/genre/index.jsx | 179 +++++- .../src/frontend/pages/app/genre/new.jsx | 9 - .../src/frontend/pages/app/magazines/[id].jsx | 32 + .../frontend/pages/app/magazines/index.jsx | 76 ++- .../src/frontend/pages/app/magazines/new.jsx | 53 ++ .../frontend/pages/app/printed-books/[id].jsx | 19 + .../pages/app/printed-books/index.jsx | 159 ++++- .../frontend/pages/app/printed-books/new.jsx | 9 + .../src/frontend/pages/app/thesis/index.jsx | 6 +- .../src/frontend/public/pdf-dummy.pdf | Bin 0 -> 13264 bytes 28 files changed, 1733 insertions(+), 101 deletions(-) create mode 100644 LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx create mode 100644 LibraryTrackingApp/src/frontend/components/GenreEditModal .jsx create mode 100644 LibraryTrackingApp/src/frontend/components/MagazineEditForm.jsx create mode 100644 LibraryTrackingApp/src/frontend/components/UploadForm.jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/api/pdf-dummy.js create mode 100644 LibraryTrackingApp/src/frontend/pages/app/audio-books/[id].jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/app/e-books/[id].jsx delete mode 100644 LibraryTrackingApp/src/frontend/pages/app/genre/new.jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/app/magazines/[id].jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/app/magazines/new.jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/app/printed-books/[id].jsx create mode 100644 LibraryTrackingApp/src/frontend/pages/app/printed-books/new.jsx create mode 100644 LibraryTrackingApp/src/frontend/public/pdf-dummy.pdf diff --git a/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs b/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs index 7f61cc2..2bb574f 100644 --- a/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs +++ b/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs @@ -1,7 +1,5 @@ namespace LibraryTrackingApp.Domain.Entities.Library; - -//bunlar bir sonraki güncellemede veritabanına migrate edilcektir. raf ve kitap bölmesi dataları public class Shelf : BaseEntity, IAuditable { public Guid Id { get; set; } diff --git a/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx b/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx new file mode 100644 index 0000000..9f2c37f --- /dev/null +++ b/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx @@ -0,0 +1,118 @@ +import { useState } from "react"; +import { + Box, + FormControl, + FormLabel, + Input, + Table, + TableCaption, + Tbody, + Textarea, + Th, + Thead, + Tr, +} from "@chakra-ui/react"; +import UploadForm from "./UploadForm"; + +const AudioBookForm = ({ onUpload }) => { + const [title, setTitle] = useState(""); + const [author, setAuthor] = useState(""); + const [narrator, setNarrator] = useState(""); + const [description, setDescription] = useState(""); + const [audioFile, setAudioFile] = useState(null); + const [audioFiles, setAudioFiles] = useState([]); + + const handleUpload = (file) => { + // ayarlanacak.. + }; + const handleDelete = (id) => { + setAudioFiles(eBooks.filter((audioFile) => audioFile.id !== id)); + }; + return ( + <> + + Başlık + setTitle(e.target.value)} + /> + + + Yazar + setAuthor(e.target.value)} + /> + + + Anlatan + setNarrator(e.target.value)} + /> + + + Açıklama +