From 0fc91c7eeac9df19fa8d29dd99f12493372b501d Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 14 Oct 2024 10:06:38 +0200 Subject: Dashboard: oplog entry data download, more detail, styling tweaks. (#194) * MSVC's std::fs::path doesn't like appending '/' separated path components * Redirect '/dashboard' to '/dashboard/' * Missed a few copyright headers * Moved unescaped logo somewhere more suitable * More robust catching and displaying of errors * No need for the guard now or for waiting * Formal access to a component's style * Style tables explicitly without instead of via a CSS variable * Highlight a row under the cursor to guide user's eye * Not using css_var() so it was removed * Add more detail to a project's list of oplogs * Disabled test page's CbObject testing * Consider all fields ending in "importedpackageids" as dependencies * Don't wrap sector headers * Package ids were derived with endianess back to front * Moved oplog marker column further left * Adopt a vararg-style to Table.add_row() for cell contents * List and hotlink oplog entries' package data * Modest control over how a table's columns are arranged * Added tables to test column spacing * Keep stat filter input box correctly up to date * A clang-format run * Updated html.zip * validate found oplog directories when doing discover pass --------- Co-authored-by: Dan Engelbrecht --- src/zenserver/frontend/frontend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/zenserver/frontend/frontend.cpp') diff --git a/src/zenserver/frontend/frontend.cpp b/src/zenserver/frontend/frontend.cpp index 7ce19363a..31d9e1c94 100644 --- a/src/zenserver/frontend/frontend.cpp +++ b/src/zenserver/frontend/frontend.cpp @@ -133,7 +133,8 @@ HttpFrontendService::HandleRequest(zen::HttpServerRequest& Request) // The given content directory overrides any zip-fs discovered in the binary if (!m_Directory.empty()) { - FileContents File = ReadFile(m_Directory / Uri); + auto FullPath = m_Directory / std::filesystem::path(Uri).make_preferred(); + FileContents File = ReadFile(FullPath); if (!File.ErrorCode) { -- cgit v1.2.3