botserver/web/desktop/index.html
Rodrigo Rodriguez (Pragmatismo) 4b185f00f9 feat: add HTTP server and refactor initialization
- Added HTTP server with CORS support and various endpoints
- Introduced http_tx/http_rx channels for HTTP server control
- Cleaned up build.rs by removing commented code
- Updated .gitignore to use *.rdb pattern instead of .rdb
- Simplified capabilities.json to empty object
- Improved UI initialization with better error handling
- Reorganized module imports in main.rs
- Added worker count configuration for HTTP server

The changes introduce a new HTTP server capability while cleaning up and improving existing code structure. The HTTP server includes authentication, session management, and websocket support.
2025-11-15 09:48:46 -03:00

47 lines
1.6 KiB
HTML

<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8"/>
<title>General Bots</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<link rel="stylesheet" href="shared/styles.css" type="text/css">
<link rel="stylesheet" href="css/chat.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="js/mock-data.js"></script>
<script src="js/auth.js"></script>
</head>
<body>
<!-- Include shared navbar -->
<div id="navbar-container"></div>
<!-- Main chat content -->
<div class="chat-container">
<div class="connection-status connecting" id="connectionStatus"></div>
<div class="flash-overlay" id="flashOverlay"></div>
<main id="messages"></main>
<footer class="chat-footer">
<div class="suggestions-container" id="suggestions"></div>
<div class="input-container">
<input id="messageInput" type="text" placeholder="Message..." autofocus/>
<button id="voiceBtn" title="Voice">🎤</button>
<button id="sendBtn" title="Send"></button>
</div>
</footer>
</div>
<!-- Load navbar template -->
<script>
fetch('shared/navbar.html')
.then(response => response.text())
.then(html => {
document.getElementById('navbar-container').innerHTML = html;
// Set active nav link
document.querySelector(`.nav-link[data-target="chat"]`).classList.add('active');
});
</script>
</body>
</html>