#pragma once
#include
// Embedded HTML page for web remote control
// Split into parts to avoid MSVC string literal limit (16KB)
inline std::string GetWebPageHTML() {
std::string html;
// Part 1: Head and base styles
html += R"HTML(
SimpleRemoter
)HTML";
// Part 6: HTML body
html += R"HTML(
SimpleRemoter
Connecting...
Devices 0
Total: 0
Showing: 0
Connecting...
100%
Terminal
Connecting...
User Management
Create New User
Existing Users
Confirm Logout
You will be returned to the login screen. Continue?
)HTML";
// 加载 xterm.js + FitAddon(终端)。放在 app script 前,保证 Terminal/FitAddon 全局可用。
html += R"HTML(
)HTML";
// Part 7: JavaScript - State and WebSocket
html += R"HTML(
)HTML";
return html;
}