Refactor(Web): Extract embedded HTML to server/web/index.html

This commit is contained in:
yuanyuanxiang committed 2026-05-17 18:46:21 +02:00
1 parent 4d2b12a9dd
commit dc48091d5b
5 files changed
+3493 -3546

No files matched your search

+3
View File
@@ -255,6 +255,9 @@ void CWebService::ServerThread(int port) {
// Serve static HTML page and file downloads
static std::string cachedHtml = GetWebPageHTML();
// Log loaded size; zero bytes means the RC BINARY resource is missing or
// server/web/index.html was not embedded — check 2015Remote.rc and rebuild.
Mprintf("[WebService] index.html loaded: %zu bytes\n", cachedHtml.size());
std::string payloadsDir = m_PayloadsDir; // Capture for lambda
// 静态资源缓存:xterm.js / xterm.css / fit-addon。RC binary 资源加载一次缓存到内存,