ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
assets.hpp File Reference
#include <filesystem>
#include <string>
#include <string_view>
Include dependency graph for assets.hpp:

Go to the source code of this file.

Namespaces

namespace  rux
namespace  rux::gui

Functions

std::filesystem::path rux::gui::resolve_asset_dir (const std::filesystem::path &override_dir)
 Locate the frontend asset directory, in precedence order:
std::filesystem::path rux::gui::executable_dir ()
 Directory of the running executable, or an empty path if it cannot be determined.
std::string rux::gui::percent_decode (std::string_view text)
 Percent-decode a URL path component ("%2e%2e" -> "..").
std::filesystem::path rux::gui::resolve_asset (const std::filesystem::path &root, std::string_view url_path)
 Map a request path onto a file inside root.
bool rux::gui::looks_like_spa_route (std::string_view url_path)
 True when a path looks like a client-side route rather than a missing file.
std::string rux::gui::mime_type_for (const std::filesystem::path &path)
 Content type for a file, by extension.
std::string rux::gui::placeholder_page (std::string_view project_name)
 The built-in landing page served when no asset bundle is installed.