From cf99229441cc99cfdb29bd6e7955939cecb620b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 16 Dec 2023 08:28:42 +0100 Subject: [PATCH] Add some css to the webui status page controller --- .../webui/statuspagecontroller.cpp | 102 +++++++++++++----- 1 file changed, 74 insertions(+), 28 deletions(-) diff --git a/YACReaderLibrary/server/controllers/webui/statuspagecontroller.cpp b/YACReaderLibrary/server/controllers/webui/statuspagecontroller.cpp index 80e65d76..8312bb88 100644 --- a/YACReaderLibrary/server/controllers/webui/statuspagecontroller.cpp +++ b/YACReaderLibrary/server/controllers/webui/statuspagecontroller.cpp @@ -4,13 +4,11 @@ #include "yacreader_global.h" #include "db_helper.h" #include "yacreader_libraries.h" -#include "QsLog.h" #include using stefanfrings::HttpRequest; using stefanfrings::HttpResponse; -// using stefanfrings::HttpSession; using stefanfrings::Template; StatusPageController::StatusPageController() { } @@ -23,36 +21,84 @@ void StatusPageController::service(HttpRequest &request, HttpResponse &response) Template StatusPage = Template( QStringLiteral( "\n" - "\n" + "\n" "\n" - "YACReaderLibrary Server\n" + " \n" + " \n" + " " + " YACReaderLibrary Server\n" + " \n" "\n" - "\n\n" - "
\n" - "\n" - "

YACReaderLibraryServer is up and running.

\n" - "

YACReader {yr.version}

\n" - "

Server {server.version}

\n" - "

OS:\t{os.name} {os.version}

\n" - "

Port:\t{os.port}

\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "{loop Library}" - "\n" - "\n" - "\n" - "\n" - "{end Library}" - "

\n" - "\n" + "\n" + "
\n" + " YACReaderLibrary Server Logo\n" + "

YACReaderLibrary Server is up and running.

" + "

YACReader {yr.version}

\n" + "

Server {server.version}

\n" + "

OS: {os.name} {os.version}

\n" + "

Port: {os.port}

\n" + "
\n" + "
\n" + "
LibraryPath
{Library.Name}{Library.Path}
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " {loop Library}\n" + " \n" + " \n" + " \n" + " \n" + " {end Library}\n" + " \n" + "
LibraryPath
{Library.Name}{Library.Path}
\n" + " \n" "\n" "\n"), - "StatusPage"); StatusPage.enableWarnings();