File size: 6,436 Bytes
345855e | 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Basyx V11 Content OS</title>
<style>
:root {
--void:#080808;
--surface:#0f0f0f;
--panel:#161616;
--border:#232323;
--accent:#e8ff47;
--accent-dim:#b8cc30;
--muted:#555;
--text:#e8e8e8;
--text-dim:#888;
--red:#ef4444;
--font-mono: monospace;
--font-display: Bebas Neue, sans-serif;
--font-body: system-ui;
}
*{box-sizing:border-box}
body{
margin:0;
background:var(--void);
color:var(--text);
font-family:var(--font-body);
}
/* ================= SIDEBAR ================= */
.sidebar{
position:fixed;
left:0;
top:0;
width:220px;
height:100vh;
background:#0c0c0c;
border-right:1px solid var(--border);
padding:16px;
overflow-y:auto;
}
.brand{
font-family:var(--font-display);
font-size:28px;
color:var(--accent);
margin-bottom:20px;
}
.nav-group-title{
color:var(--text-dim);
font-size:11px;
margin:14px 0 6px;
}
.nav-item{
padding:10px;
cursor:pointer;
color:var(--text-dim);
border-left:2px solid transparent;
}
.nav-item:hover{
color:var(--text);
}
.nav-item.active{
border-left:2px solid var(--accent);
color:var(--accent);
}
/* ================= MAIN ================= */
.main{
margin-left:220px;
padding:24px;
}
.section{display:none}
.section.active{display:block}
/* ================= PANELS ================= */
.panel{
background:var(--panel);
border:1px solid var(--border);
padding:20px;
border-radius:4px;
margin-bottom:16px;
}
/* ================= INPUTS ================= */
input, textarea, select{
width:100%;
padding:10px;
background:#111;
border:1px solid var(--border);
color:var(--text);
margin-top:8px;
}
button{
padding:12px 16px;
border:none;
cursor:pointer;
background:var(--accent);
color:#000;
font-weight:600;
margin-top:10px;
}
button:disabled{
opacity:0.6;
}
/* ================= RESULT ================= */
pre{
background:#0b0b0b;
padding:12px;
overflow:auto;
border:1px solid var(--border);
}
/* ================= MOBILE ================= */
@media(max-width:768px){
.sidebar{
transform:translateX(-100%);
position:fixed;
z-index:10;
}
.sidebar.open{
transform:translateX(0);
}
.main{
margin-left:0;
}
}
</style>
</head>
<body>
<!-- SIDEBAR -->
<div class="sidebar" id="sidebar">
<div class="brand">⚡ BASYX V11</div>
<div class="nav-group-title">ANALYSIS</div>
<div class="nav-item active" onclick="nav('transcribe')">Transcribe</div>
<div class="nav-item" onclick="nav('subtitles')">Subtitles</div>
<div class="nav-item" onclick="nav('highlights')">Highlights</div>
<div class="nav-item" onclick="nav('viral-score')">Viral Score</div>
<div class="nav-item" onclick="nav('strategy')">Strategy</div>
<div class="nav-group-title">RENDER</div>
<div class="nav-item" onclick="nav('render')">Render</div>
<div class="nav-item" onclick="nav('generate-thumbnail')">Thumbnail</div>
<div class="nav-item" onclick="nav('generate-metadata')">Metadata</div>
<div class="nav-group-title">PUBLISH</div>
<div class="nav-item" onclick="nav('publish')">Publish</div>
<div class="nav-item" onclick="nav('auto-publish')">Auto Publish</div>
<div class="nav-group-title">SYSTEM</div>
<div class="nav-item" onclick="nav('batch')">Batch</div>
<div class="nav-item" onclick="nav('autonomous')">Autonomous</div>
</div>
<!-- MAIN -->
<div class="main">
<!-- HOME -->
<section id="home" class="section active">
<h1 style="font-family:var(--font-display);color:var(--accent);font-size:48px;">
AUTONOMOUS CONTENT OPERATOR
</h1>
</section>
<!-- GENERIC TASK TEMPLATE -->
<section id="transcribe" class="section">
<div class="panel">
<h2>TRANSCRIBE</h2>
<input type="file" id="file-transcribe">
<input type="text" id="url-transcribe" placeholder="Video URL">
<button onclick="run('transcribe')">Execute</button>
</div>
<pre id="result-transcribe"></pre>
</section>
<section id="subtitles" class="section">
<div class="panel">
<h2>SUBTITLES</h2>
<input type="file" id="file-subtitles">
<input type="text" id="url-subtitles">
<button onclick="run('subtitles')">Execute</button>
</div>
<pre id="result-subtitles"></pre>
</section>
<section id="render" class="section">
<div class="panel">
<h2>RENDER</h2>
<input type="file" id="file-render">
<input type="text" id="url-render">
<button onclick="run('render')">Execute</button>
</div>
<video id="video-render" controls style="width:100%"></video>
</section>
<section id="highlights" class="section">
<div class="panel">
<h2>HIGHLIGHTS</h2>
<input type="file" id="file-highlights">
<button onclick="run('highlights')">Execute</button>
</div>
<pre id="result-highlights"></pre>
</section>
<section id="viral-score" class="section">
<div class="panel">
<h2>VIRAL SCORE</h2>
<input type="file" id="file-viral-score">
<button onclick="run('viral-score')">Execute</button>
</div>
<pre id="result-viral-score"></pre>
</section>
<section id="strategy" class="section">
<div class="panel">
<h2>STRATEGY</h2>
<input type="file" id="file-strategy">
<button onclick="run('strategy')">Execute</button>
</div>
<pre id="result-strategy"></pre>
</section>
<script>
function nav(id){
document.querySelectorAll('.section').forEach(s=>s.classList.remove('active'));
document.getElementById(id).classList.add('active');
document.querySelectorAll('.nav-item').forEach(n=>n.classList.remove('active'));
event.target.classList.add('active');
location.hash = id;
}
async function run(task){
const file = document.getElementById('file-'+task).files[0];
const url = document.getElementById('url-'+task)?.value;
const fd = new FormData();
if(file) fd.append("file", file);
if(url) fd.append("url_input", url);
const res = await fetch(`/execute/${task}`, {
method:"POST",
body:fd
});
const type = res.headers.get("content-type");
if(type && type.includes("video")){
const blob = await res.blob();
const urlObj = URL.createObjectURL(blob);
document.getElementById("video-"+task).src = urlObj;
return;
}
const data = await res.json();
document.getElementById("result-"+task).textContent =
JSON.stringify(data, null, 2);
}
</script>
</body>
</html> |