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

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

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 资源加载一次缓存到内存,