From 28e4942727fd622321cdc01010ca60853900969e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9?= Date: Fri, 21 Apr 2023 00:06:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=83=D0=B4=D0=B0=D0=BB=D1=8F?= =?UTF-8?q?=D0=BB=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/LabWork/app/AppApplication.java | 1 - .../controller/Manga/MangaController.java | 13 -------- .../controller/Manga/MangaMvcController.java | 2 -- .../com/LabWork/app/WebConfiguration.java | 5 --- .../templates/creatorAction-edit.html | 4 --- .../resources/templates/creatorAction.html | 25 --------------- .../resources/templates/readerAction.html | 31 ------------------- 7 files changed, 81 deletions(-) diff --git a/src/main/java/com/LabWork/app/AppApplication.java b/src/main/java/com/LabWork/app/AppApplication.java index 1395cf2..de82a42 100644 --- a/src/main/java/com/LabWork/app/AppApplication.java +++ b/src/main/java/com/LabWork/app/AppApplication.java @@ -3,7 +3,6 @@ package com.LabWork.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; - @SpringBootApplication public class AppApplication { public static void main(String[] args) { diff --git a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java index 7dc9552..7b70240 100644 --- a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java +++ b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java @@ -38,19 +38,6 @@ public class MangaController { .map(x -> new ReaderMangaDto(x)) .toList(); } -/* - @PostMapping - public MangaReaderDto createManga(@RequestParam("creatorId") Long creatorId, - @RequestParam("chapterCount") Integer chapterCount, - @RequestParam("mangaName") String mangaName) { - return new MangaReaderDto(mangaService.addManga(creatorId, chapterCount, mangaName), mangaService.getReader(creatorId)); - }*/ - -/* @PutMapping("/{id}") - public MangaReaderDto updateManga(@PathVariable Long id, - @RequestParam("chapterCount") Integer chapterCount) { - return new MangaReaderDto(mangaService.updateManga(id, chapterCount), mangaService.getReader(id)); - }*/ @DeleteMapping("/{id}") public MangaDto deleteManga(@PathVariable Long id) { diff --git a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java index f72ca4f..858810a 100644 --- a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java +++ b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java @@ -35,6 +35,4 @@ public class MangaMvcController { .toList()); return "mangaPage"; } - - } diff --git a/src/main/java/com/LabWork/app/WebConfiguration.java b/src/main/java/com/LabWork/app/WebConfiguration.java index 79b2cd6..c2729aa 100644 --- a/src/main/java/com/LabWork/app/WebConfiguration.java +++ b/src/main/java/com/LabWork/app/WebConfiguration.java @@ -1,13 +1,8 @@ package com.LabWork.app; -import org.springframework.boot.web.server.ErrorPage; -import org.springframework.boot.web.server.WebServerFactoryCustomizer; -import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpStatus; import org.springframework.web.servlet.config.annotation.*; - @Configuration public class WebConfiguration implements WebMvcConfigurer { public static final String REST_API = "/api"; diff --git a/src/main/resources/templates/creatorAction-edit.html b/src/main/resources/templates/creatorAction-edit.html index ab3be3e..884d620 100644 --- a/src/main/resources/templates/creatorAction-edit.html +++ b/src/main/resources/templates/creatorAction-edit.html @@ -21,10 +21,6 @@ -
-
@@ -68,28 +67,4 @@ - \ No newline at end of file diff --git a/src/main/resources/templates/readerAction.html b/src/main/resources/templates/readerAction.html index a0d6b92..8ab63c6 100644 --- a/src/main/resources/templates/readerAction.html +++ b/src/main/resources/templates/readerAction.html @@ -27,9 +27,6 @@ - - -
@@ -44,8 +41,6 @@
- -
@@ -65,8 +60,6 @@ th:attr="onclick=|confirm('Удалить запись?') && document.getElementById('remove-${manga.id}').click()|"> Удалить -
- \ No newline at end of file