botserver/web/desktop/index.html
Rodrigo Rodriguez (Pragmatismo) f9a1e3a8c0 refactor(web): consolidate routing and expose auth handler
- Add `*.log` to `.gitignore` to exclude log files from version control.
- Change `auth_handler` to `pub` in `src/auth/mod.rs` to make the endpoint publicly accessible.
- Remove unused `bot_index` import and route; replace direct service registration with `web_server::configure_app` in `src/main.rs`.
- Refactor `src/web_server/mod.rs`:
  - Remove the `bot_index` handler.
  - Introduce `serve_html` helper for loading HTML pages.
  - Simplify static file serving by configuring separate routes for JS and CSS assets.
  - Centralize all route and static file configuration in `configure_app`.
- Clean up related imports and improve error handling for missing pages.
2025-11-17 10:00:12 -03:00

43 lines
No EOL
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>General Bots</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="css/app.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 defer src="js/alpine.js"></script>
</head>
<body>
<nav x-data="{ current: 'drive' }">
<div class="logo">⚡ General Bots</div>
<a href="#chat" @click.prevent="current = 'chat'; window.switchSection('chat')"
:class="{ active: current === 'chat' }">💬 Chat</a>
<a href="#drive" @click.prevent="current = 'drive'; window.switchSection('drive')"
:class="{ active: current === 'drive' }">📁 Drive</a>
<a href="#tasks" @click.prevent="current = 'tasks'; window.switchSection('tasks')"
:class="{ active: current === 'tasks' }">✓ Tasks</a>
<a href="#mail" @click.prevent="current = 'mail'; window.switchSection('mail')"
:class="{ active: current === 'mail' }">✉ Mail</a>
</nav>
<div id="main-content">
<!-- Sections will be loaded dynamically -->
</div>
<!-- Load Module Scripts -->
<script src="js/layout.js"></script>
<script src="chat/chat.js"></script>
<script src="drive/drive.js"></script>
<script src="tasks/tasks.js"></script>
<script src="mail/mail.js"></script>
</body>
</html>