Spaces:
Sleeping
Sleeping
File size: 7,333 Bytes
f14212d 5071059 f14212d 5071059 f14212d 5071059 f14212d 5071059 f14212d 5071059 f14212d 5071059 f14212d 5071059 f14212d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Agent - HF Space</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<div class="app">
<!-- Sidebar -->
<aside class="sidebar">
<div class="logo">
<h1>π€ AI Agent</h1>
</div>
<nav class="nav-menu">
<button class="nav-item active" data-tab="chat">
π¬ Chat
</button>
<button class="nav-item" data-tab="scanner">
π Scanner
</button>
<button class="nav-item" data-tab="project">
π Project
</button>
<button class="nav-item" data-tab="settings">
βοΈ Settings
</button>
</nav>
<div class="sidebar-footer">
<div class="status">
<div class="status-dot online"></div>
<span>Connected</span>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="main">
<!-- Chat Tab -->
<section id="chat-tab" class="tab-content active">
<div class="chat-container">
<header class="chat-header">
<h2>Chat with AI Agent</h2>
<p>Ask about your project, scan for issues, or request changes</p>
</header>
<div id="chat-messages" class="chat-messages"></div>
<div class="chat-input-area">
<div class="quick-commands">
<button class="command-btn" data-command="/scan">π Scan</button>
<button class="command-btn" data-command="/status">π Status</button>
<button class="command-btn" data-command="/issues">π Issues</button>
<button class="command-btn" data-command="/help">β Help</button>
</div>
<form id="chat-form">
<input
type="text"
id="message-input"
placeholder="Type your message or use commands (/scan, /status, /issues)..."
autocomplete="off"
>
<button type="submit" class="send-btn">Send</button>
</form>
</div>
</div>
</section>
<!-- Scanner Tab -->
<section id="scanner-tab" class="tab-content">
<div class="scanner-container">
<header class="section-header">
<h2>Project Scanner</h2>
<p>Scan for issues and get AI recommendations</p>
</header>
<div class="scanner-controls">
<button id="manual-scan-btn" class="btn btn-primary">
π Run Manual Scan
</button>
<button id="auto-scan-toggle" class="btn btn-secondary">
Start Auto-Scan (1 hour)
</button>
</div>
<div id="scanner-results" class="scanner-results">
<p class="placeholder">No scan results yet. Click "Run Manual Scan" to start.</p>
</div>
</div>
</section>
<!-- Project Tab -->
<section id="project-tab" class="tab-content">
<div class="project-container">
<header class="section-header">
<h2>Project Information</h2>
<p>View project structure and files</p>
</header>
<div class="project-grid">
<div class="project-card">
<h3>π Project Structure</h3>
<div id="project-structure" class="file-tree">
<p class="loading">Loading project structure...</p>
</div>
</div>
<div class="project-card">
<h3>π README</h3>
<div id="project-readme" class="readme-content">
<p class="loading">Loading README...</p>
</div>
</div>
<div class="project-card">
<h3>π³ Dockerfile</h3>
<div id="project-dockerfile" class="dockerfile-content">
<p class="loading">Loading Dockerfile...</p>
</div>
</div>
</div>
</div>
</section>
<!-- Settings Tab -->
<section id="settings-tab" class="tab-content">
<div class="settings-container">
<header class="section-header">
<h2>Settings & Configuration</h2>
<p>Configure AI Agent behavior</p>
</header>
<div class="settings-grid">
<div class="setting-group">
<label for="auto-fix-toggle">
<input type="checkbox" id="auto-fix-toggle" />
Enable Auto-Fix for detected issues
</label>
</div>
<div class="setting-group">
<label for="auto-commit-toggle">
<input type="checkbox" id="auto-commit-toggle" />
Auto-commit fixes to GitHub
</label>
</div>
<div class="setting-group">
<label for="scan-interval">
Scan Interval (minutes):
<input type="number" id="scan-interval" value="60" min="10" max="1440" />
</label>
</div>
</div>
<div class="settings-info">
<h4>βΉοΈ Information</h4>
<div id="app-info" class="info-box">
<p>Loading...</p>
</div>
</div>
</div>
</section>
</main>
</div>
<script src="/assets/js/app.js" type="module"></script>
</body>
</html>
|