From 196ce072ba08159c01ca958bd318188829d8c865 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Mon, 4 Dec 2023 22:25:03 +0400 Subject: [PATCH] lab4 maybe it is end --- ReactLibrary/data.json | 36 ++++++------ ReactLibrary/src/App.jsx | 2 +- ReactLibrary/src/index.css | 8 ++- ReactLibrary/src/main.jsx | 66 +++++++++++++++++++++- ReactLibrary/src/pages/AdminPage.jsx | 23 ++++++++ ReactLibrary/src/pages/AuthorEdit.jsx | 59 +++++++++++++++++++ ReactLibrary/src/pages/AuthorsTable.jsx | 27 +++++++++ ReactLibrary/src/pages/BookEdit.jsx | 56 ++++++++++++++++++ ReactLibrary/src/pages/BooksTable.jsx | 28 +++++++++ ReactLibrary/src/pages/CategoriesTable.jsx | 25 ++++++++ ReactLibrary/src/pages/CategoryEdit.jsx | 39 +++++++++++++ ReactLibrary/src/pages/ErrorPage.jsx | 3 +- ReactLibrary/src/pages/LoginPage.jsx | 45 +++++++++++++++ ReactLibrary/src/pages/MainPage.jsx | 6 +- ReactLibrary/src/pages/RegPage.jsx | 55 ++++++++++++++++++ ReactLibrary/src/pages/UserFavorities.jsx | 28 +++++++++ ReactLibrary/src/pages/UserHistory.jsx | 29 ++++++++++ ReactLibrary/src/pages/UserPage.jsx | 22 ++++++++ 18 files changed, 529 insertions(+), 28 deletions(-) create mode 100644 ReactLibrary/src/pages/AdminPage.jsx create mode 100644 ReactLibrary/src/pages/AuthorEdit.jsx create mode 100644 ReactLibrary/src/pages/AuthorsTable.jsx create mode 100644 ReactLibrary/src/pages/BookEdit.jsx create mode 100644 ReactLibrary/src/pages/BooksTable.jsx create mode 100644 ReactLibrary/src/pages/CategoriesTable.jsx create mode 100644 ReactLibrary/src/pages/CategoryEdit.jsx create mode 100644 ReactLibrary/src/pages/LoginPage.jsx create mode 100644 ReactLibrary/src/pages/RegPage.jsx create mode 100644 ReactLibrary/src/pages/UserFavorities.jsx create mode 100644 ReactLibrary/src/pages/UserHistory.jsx create mode 100644 ReactLibrary/src/pages/UserPage.jsx diff --git a/ReactLibrary/data.json b/ReactLibrary/data.json index c1dbe76..880438e 100644 --- a/ReactLibrary/data.json +++ b/ReactLibrary/data.json @@ -13,6 +13,24 @@ "name": "Лирическое стихотворение" } ], + "authors": [ + { + "id": 1, + "name": "Пушкин А. С." + }, + { + "id": 2, + "name": "Державин Г. Р." + }, + { + "id": 3, + "name": "Квинт Гораций Флакк" + }, + { + "id": 4, + "name": "Карамзин Н. М." + } + ], "books": [ { "categoriesId": "3", @@ -46,23 +64,5 @@ "image": "", "id": 4 } - ], - "authors": [ - { - "id": 1, - "name": "Пушкин А. С." - }, - { - "id": 2, - "name": "Державин Г. Р." - }, - { - "id": 3, - "name": "Квинт Гораций Флакк" - }, - { - "id": 4, - "name": "Карамзин Н. М." - } ] } \ No newline at end of file diff --git a/ReactLibrary/src/App.jsx b/ReactLibrary/src/App.jsx index 63089b5..450cf9c 100644 --- a/ReactLibrary/src/App.jsx +++ b/ReactLibrary/src/App.jsx @@ -12,7 +12,7 @@ const App = ({ routes }) => { -