diff --git a/src/main/java/ru/redrise/marinesco/RootController.java b/src/main/java/ru/redrise/marinesco/RootController.java
index db3ba4d..b817113 100644
--- a/src/main/java/ru/redrise/marinesco/RootController.java
+++ b/src/main/java/ru/redrise/marinesco/RootController.java
@@ -5,17 +5,12 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
-import lombok.extern.slf4j.Slf4j;
-
-@Slf4j
@Controller
@RequestMapping("/")
public class RootController {
@GetMapping
public String getPage(@ModelAttribute("search") String text) {
- // TODO: SEARCH PAGE + CONTROLLER
- log.info(text);
return "root";
}
}
diff --git a/src/main/java/ru/redrise/marinesco/AuthorController.java b/src/main/java/ru/redrise/marinesco/library/AuthorController.java
similarity index 91%
rename from src/main/java/ru/redrise/marinesco/AuthorController.java
rename to src/main/java/ru/redrise/marinesco/library/AuthorController.java
index b033fdd..0c30f07 100644
--- a/src/main/java/ru/redrise/marinesco/AuthorController.java
+++ b/src/main/java/ru/redrise/marinesco/library/AuthorController.java
@@ -1,4 +1,4 @@
-package ru.redrise.marinesco;
+package ru.redrise.marinesco.library;
import java.util.List;
@@ -10,8 +10,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import ru.redrise.marinesco.data.AuthorRepository;
import ru.redrise.marinesco.data.BookRepository;
-import ru.redrise.marinesco.library.Author;
-import ru.redrise.marinesco.library.Book;
@Controller
@RequestMapping("/author")
diff --git a/src/main/java/ru/redrise/marinesco/BookController.java b/src/main/java/ru/redrise/marinesco/library/BookController.java
similarity index 92%
rename from src/main/java/ru/redrise/marinesco/BookController.java
rename to src/main/java/ru/redrise/marinesco/library/BookController.java
index b73007d..cd5182c 100644
--- a/src/main/java/ru/redrise/marinesco/BookController.java
+++ b/src/main/java/ru/redrise/marinesco/library/BookController.java
@@ -1,4 +1,4 @@
-package ru.redrise.marinesco;
+package ru.redrise.marinesco.library;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
@@ -7,7 +7,6 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import ru.redrise.marinesco.data.BookRepository;
-import ru.redrise.marinesco.library.Book;
@Controller
@RequestMapping("/book")
diff --git a/src/main/java/ru/redrise/marinesco/library/InpxScanner.java b/src/main/java/ru/redrise/marinesco/library/InpxScanner.java
index 158a593..479fbde 100644
--- a/src/main/java/ru/redrise/marinesco/library/InpxScanner.java
+++ b/src/main/java/ru/redrise/marinesco/library/InpxScanner.java
@@ -134,22 +134,23 @@ public class InpxScanner implements Runnable {
}
private void parseInp(File inpxFile) throws Exception {
+ /*
log.warn("REMOVE TEMPORARY SOLUTION - BREAKER");
log.warn("REMOVE TEMPORARY SOLUTION - BREAKER");
log.warn("REMOVE TEMPORARY SOLUTION - BREAKER");
boolean breaker = false;
-
+ */
try (ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(inpxFile))) {
ZipEntry zipEntry = zipInputStream.getNextEntry();
while (zipEntry != null) {
if (zipEntry.getName().toLowerCase().endsWith(".inp")) {
- // *
+ /*
if (breaker) {
zipEntry = zipInputStream.getNextEntry();
continue;
}
- breaker = true;//
+ breaker = true;
// */
byte[] content = inpToByteArray(zipInputStream, zipEntry.getSize());
parseInpContent(content, zipEntry.getName());
diff --git a/src/main/resources/static/styles/styles.css b/src/main/resources/static/styles/styles.css
index 51619ae..bad83d7 100644
--- a/src/main/resources/static/styles/styles.css
+++ b/src/main/resources/static/styles/styles.css
@@ -156,12 +156,11 @@ header {
color: #74bfbd;
}
-.header_entry_link:link {
- color: #74bfbd;
-}
+.header_entry_link:link,
.header_entry_link:visited {
color: #74bfbd;
}
+
.header_entry_link:hover {
color: #b6a795;
}
@@ -175,10 +174,6 @@ header {
margin-right: 10px;
}
-a.entry {
- text-decoration: none;
-}
-
.header_title {
font-size: 1.5em;
}
@@ -262,9 +257,6 @@ button:hover {
text-shadow: -1px -1px 0 #1e1e1e, 1px -1px 0 #1e1e1e, -1px 1px 0 #1e1e1e, 1px 1px 0 #1e1e1e;
color: #74bfbd;
}
-.copy_link:hover {
- color: #b6a795;
-}
/* error */
.error {
diff --git a/src/main/resources/templates/book.html b/src/main/resources/templates/book.html
index 9176248..7aa1415 100644
--- a/src/main/resources/templates/book.html
+++ b/src/main/resources/templates/book.html
@@ -21,7 +21,7 @@
-
+
diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 2e2bd23..62ebc0d 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -7,10 +7,8 @@
diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index b43c7bc..42f6fe2 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -14,9 +14,7 @@