From 35592e2f48d44080dd6cbf28d91aa12f1474d13b Mon Sep 17 00:00:00 2001
From: 0xb00bface <0xboobface@gmail.com>
Date: Sun, 12 Nov 2023 13:48:31 +0100
Subject: [PATCH] Move Help servlets to common module and embed it into the
webinterface
---
client/pom.xml | 5 -
.../src/main/java/ctbrec/docs/DocServer.java | 21 +-
client/src/main/resources/html/docs/400.html | 3 -
client/src/main/resources/html/docs/404.html | 2 -
.../src/main/resources/html/docs/footer.html | 83 --
.../src/main/resources/html/docs/header.html | 107 --
common/pom.xml | 5 +
.../ctbrec/servlet}/AbstractDocServlet.java | 96 +-
.../java/ctbrec/servlet}/MarkdownServlet.java | 38 +-
.../java/ctbrec/servlet}/SearchServlet.java | 28 +-
common/src/main/resources/docs/400.html | 3 +
common/src/main/resources/docs/404.html | 2 +
common/src/main/resources/docs/500.html | 3 +
.../src/main/resources}/docs/Avidemux.md | 0
.../main/resources}/docs/ConfigurationFile.md | 70 +-
.../src/main/resources}/docs/FFmpeg.md | 12 +-
.../src/main/resources}/docs/MKVToolNix.md | 0
.../main/resources}/docs/PostProcessing.md | 2 +-
.../resources}/docs/QuestionsAndAnswers.md | 20 +-
.../main/resources}/docs/RunningTheServer.md | 0
.../main/resources}/docs/VideoTutorials.md | 0
common/src/main/resources/docs/footer.html | 41 +
common/src/main/resources/docs/header.html | 80 ++
.../ctbrec/recorder/server/HttpServer.java | 11 +
.../src/main/resources/html/static/ctbrec.svg | 155 +++
.../main/resources/html/static/favicon.svg | 108 ++
.../src/main/resources/html/static/index.html | 1016 +++++++++--------
27 files changed, 1097 insertions(+), 814 deletions(-)
delete mode 100644 client/src/main/resources/html/docs/400.html
delete mode 100644 client/src/main/resources/html/docs/404.html
delete mode 100644 client/src/main/resources/html/docs/footer.html
delete mode 100644 client/src/main/resources/html/docs/header.html
rename {client/src/main/java/ctbrec/docs => common/src/main/java/ctbrec/servlet}/AbstractDocServlet.java (51%)
rename {client/src/main/java/ctbrec/docs => common/src/main/java/ctbrec/servlet}/MarkdownServlet.java (77%)
rename {client/src/main/java/ctbrec/docs => common/src/main/java/ctbrec/servlet}/SearchServlet.java (85%)
create mode 100644 common/src/main/resources/docs/400.html
create mode 100644 common/src/main/resources/docs/404.html
create mode 100644 common/src/main/resources/docs/500.html
rename {client/src/main/resources/html => common/src/main/resources}/docs/Avidemux.md (100%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/ConfigurationFile.md (66%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/FFmpeg.md (77%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/MKVToolNix.md (100%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/PostProcessing.md (99%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/QuestionsAndAnswers.md (91%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/RunningTheServer.md (100%)
rename {client/src/main/resources/html => common/src/main/resources}/docs/VideoTutorials.md (100%)
create mode 100644 common/src/main/resources/docs/footer.html
create mode 100644 common/src/main/resources/docs/header.html
create mode 100644 server/src/main/resources/html/static/ctbrec.svg
create mode 100644 server/src/main/resources/html/static/favicon.svg
diff --git a/client/pom.xml b/client/pom.xml
index 689d8fd4..1aea5857 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -80,11 +80,6 @@
{message}400 Bad Request
-404 File Not Found
-Try something else!
\ No newline at end of file
diff --git a/client/src/main/resources/html/docs/footer.html b/client/src/main/resources/html/docs/footer.html
deleted file mode 100644
index 694625d2..00000000
--- a/client/src/main/resources/html/docs/footer.html
+++ /dev/null
@@ -1,83 +0,0 @@
-