Refactored editor.page.html to use a Vue-style `data()` function for reactive state, adding a new `content` property and cleaning up redundant inline styles. Updated profile-form.html to replace single `error` handling with field-specific `errors.<field>` bindings, improving form validation clarity and user feedback.
53 lines
2.5 KiB
HTML
53 lines
2.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>General Bots Desktop</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<link rel="stylesheet" href="css/app.css" />
|
|
<script defer src="js/alpine.js"></script>
|
|
</head>
|
|
<body>
|
|
<nav x-data="{ current: 'drive' }">
|
|
<div class="logo">⚡ General Bots</div>
|
|
<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>
|
|
<a href="#dashboard" @click.prevent="current = 'dashboard'; window.switchSection('dashboard')"
|
|
:class="{ active: current === 'dashboard' }">📊 Dashboard</a>
|
|
<a href="#editor" @click.prevent="current = 'editor'; window.switchSection('editor')"
|
|
:class="{ active: current === 'editor' }">📝 Editor</a>
|
|
<a href="#player" @click.prevent="current = 'player'; window.switchSection('player')"
|
|
:class="{ active: current === 'player' }">🎬 Player</a>
|
|
<a href="#paper" @click.prevent="current = 'paper'; window.switchSection('paper')"
|
|
:class="{ active: current === 'paper' }">📄 Paper</a>
|
|
<a href="#settings" @click.prevent="current = 'settings'; window.switchSection('settings')"
|
|
:class="{ active: current === 'settings' }">⚙️ Settings</a>
|
|
<a href="#tables" @click.prevent="current = 'tables'; window.switchSection('tables')"
|
|
:class="{ active: current === 'tables' }">📋 Tables</a>
|
|
<a href="#news" @click.prevent="current = 'news'; window.switchSection('news')"
|
|
:class="{ active: current === 'news' }">📰 News</a>
|
|
</nav>
|
|
|
|
<div id="main-content">
|
|
<!-- Sections will be loaded dynamically -->
|
|
</div>
|
|
|
|
<!-- Load Module Scripts -->
|
|
<script src="js/layout.js"></script>
|
|
<script src="drive/drive.js"></script>
|
|
<script src="tasks/tasks.js"></script>
|
|
<script src="mail/mail.js"></script>
|
|
<script src="dashboard/dashboard.js"></script>
|
|
<script src="editor/editor.js"></script>
|
|
<script src="player/player.js"></script>
|
|
<script src="paper/paper.js"></script>
|
|
<script src="settings/settings.js"></script>
|
|
<script src="tables/tables.js"></script>
|
|
<script src="news/news.js"></script>
|
|
|
|
</body>
|
|
</html>
|