From a45daf6ba320791109ff48a31812c841296544f0 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sat, 8 Apr 2023 09:43:04 +0200 Subject: [PATCH] Extend sAbstractHttpHandler. --- .../server/handler/RenderHandler.java | 4 +- src/main/resources/logback.xml | 4 +- src/main/resources/webassets/index.html | 33 ------------ src/main/resources/webassets/style.css | 51 ------------------- 4 files changed, 3 insertions(+), 89 deletions(-) delete mode 100644 src/main/resources/webassets/index.html delete mode 100644 src/main/resources/webassets/style.css diff --git a/src/main/java/ch/fritteli/labyrinth/server/handler/RenderHandler.java b/src/main/java/ch/fritteli/labyrinth/server/handler/RenderHandler.java index c5e47d9..5079a09 100644 --- a/src/main/java/ch/fritteli/labyrinth/server/handler/RenderHandler.java +++ b/src/main/java/ch/fritteli/labyrinth/server/handler/RenderHandler.java @@ -13,9 +13,9 @@ import lombok.extern.slf4j.Slf4j; import java.nio.ByteBuffer; @Slf4j -public class RenderHandler implements HttpHandler { +public class RenderHandler extends AbstractHttpHandler { @Override - public void handleRequest(final HttpServerExchange exchange) { + public void handle(final HttpServerExchange exchange) { log.debug("Handling render request"); if (exchange.isInIoThread()) { diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 69dd770..d660474 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -13,7 +13,5 @@ - - - + diff --git a/src/main/resources/webassets/index.html b/src/main/resources/webassets/index.html deleted file mode 100644 index b97b934..0000000 --- a/src/main/resources/webassets/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Labyrinth Generator - - - -
-

Labyrinth Generator

-

Enter some values, click the "Create!" button and see what happens!

-
-
- - - - - -
-
- - -
-
-
- - diff --git a/src/main/resources/webassets/style.css b/src/main/resources/webassets/style.css deleted file mode 100644 index 153f8e8..0000000 --- a/src/main/resources/webassets/style.css +++ /dev/null @@ -1,51 +0,0 @@ -:root { - --color-background: #181a1b; - --color-foreground: #e8e6e3; - --color-border: #5d6164; - --color-background-highlight: #292b2c; - --color-foreground-highlight: #f8f7f4; - --color-border-highlight: #6e7275; -} - -body { - display: flex; - font-family: sans-serif; - justify-content: center; -} - -body, button, input, select { - background-color: var(--color-background); - color: var(--color-foreground); -} - -button, input, select { - border: 1px solid var(--color-border); -} - -button:active, input:active, select:active, -button:focus, input:focus, select:focus, -button:hover, input:hover, select:hover { - background-color: var(--color-background-highlight); - border-color: var(--color-border-highlight); - color: var(--color-foreground-highlight); -} - -button.primary { - background-color: #ffcc00; - border-color: #eebb00; - color: var(--color-background); -} - -.content { - width: 75%; -} - -.content h1 { - text-align: center; -} - -.inputs-wrapper { - display: grid; - grid-row-gap: 1em; - grid-template-columns: 0.5fr 1fr; -}