Add card.html support to embedded resources

This commit includes `card.html` in the embedded files by updating the `all.hpp` file. It modifies the function to map and include the `card.html` resource. Additionally, `index.html` was updated to ensure the latest content is embedded.
This commit is contained in:
2024-12-04 22:14:30 +01:00
parent 0b04ea0ac2
commit c1f3ece454
7 changed files with 112 additions and 69 deletions

View File

@@ -5,6 +5,7 @@
#include <saucer/webview.hpp>
#include "card.html.hpp"
#include "index.html.hpp"
namespace saucer::embedded
@@ -13,7 +14,8 @@ namespace saucer::embedded
{
std::unordered_map<std::string, embedded_file> rtn;
rtn.emplace("index.html", embedded_file{saucer::stash<>::view(f1Dqesn4NxFvpVB4P1U5D6IgLugdGaqMvuMcidTvXLCgieH9Dg), "text/html"});
rtn.emplace("card.html", embedded_file{saucer::stash<>::view(fIMvMxLtCtgaCyOWT9Sq2cpZQFAUlr60fpjd781IKV2QwoDk), "text/html"});
rtn.emplace("index.html", embedded_file{saucer::stash<>::view(f1Dqesn4NxFvpVZNG4N54sqKwGMdL3bEomjcPeIDDbCgBnsxvo), "text/html"});
return rtn;
}