Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files123345767898 unmodified lines18192021222324459 unmodified lines4844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477484897497507517527537547557567574974984995005017587597607617627637647657667677687697707717727735045055067747757767777787797805087817825107837847857861 unmodified line7887897905187917927935217947957967977985267998008015285295305315328028038048058068078088098108118128135345355365375385395405415425435445455465478148158168178188198208218228238248258268278288298308318328338348358368375505518388398408415565575588428438448458468478485605618498508518528538548558565648578588598608618628638648655695705715725738668678688698708718728738748755755765778768778788795795805818808818828838845845858858868878888898908918921 unmodified line894895896593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705897898899900901902903904905708709710711906907713714715716717718719720721722908909910911912913914724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763915916917918919767920921770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825922923924925926927928<!DOCTYPE html><html lang="en">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>BLACK ARCH // SCRIPT GUI CONVERTER V1.0</title> <title>BLACK ARCH // SCRIPT GUI CONVERTER V12.0</title> <script src="https://cdn.tailwindcss.com"></script> <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap" rel="stylesheet"> <style>8 unmodified lines --purple: #bf00ff; --cyan: #00ffff; --orange: #ff6600; --matrix-green: #0f0; }
* {459 unmodified lines .hover\:bg-amber-800\/50:hover { background: rgba(255, 170, 0, 0.5); } .text-amber-500 { color: var(--amber); } .text-amber-600\/70 { color: rgba(255, 170, 0, 0.7); }
/* Matrix Rain Canvas */ #matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.15; }
/* Holographic Card Effect */ .holo-card { position: relative; background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%); border: 1px solid rgba(0, 255, 65, 0.2); overflow: hidden; }
.holo-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 0deg, var(--neon-green) 60deg, transparent 120deg); animation: holo-rotate 4s linear infinite; opacity: 0.1; }
.holo-card::after { content: ''; position: absolute; inset: 1px; background: var(--bg-black); }
.holo-content { position: relative; z-index: 1; }
@keyframes holo-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* Binary Rain Background */ .binary-rain { position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--neon-green); opacity: 0.3; animation: binary-fall linear infinite; white-space: nowrap; }
@keyframes binary-fall { 0% { transform: translateY(-100vh); opacity: 0; } 10% { opacity: 0.3; } 90% { opacity: 0.3; } 100% { transform: translateY(100vh); opacity: 0; } }
/* Tool Name Styling */ .tool-title { font-family: 'Share Tech Mono', monospace; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; background: linear-gradient(90deg, var(--neon-green), var(--electric-blue), var(--neon-green)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 3s ease infinite; text-shadow: 0 0 30px rgba(0, 255, 65, 0.5); }
@keyframes gradient-shift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
/* Version Badge */ .version-badge { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: linear-gradient(90deg, rgba(255, 0, 64, 0.2), rgba(0, 240, 255, 0.2)); border: 1px solid var(--crimson); font-size: 0.75rem; font-weight: 700; color: var(--crimson); text-shadow: 0 0 10px var(--crimson); }
.version-badge::before { content: ''; position: absolute; inset: -2px; background: linear-gradient(90deg, var(--crimson), var(--electric-blue), var(--crimson)); background-size: 200% auto; z-index: -1; animation: border-glow 2s linear infinite; opacity: 0.5; }
@keyframes border-glow { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
/* Decryption Effect */ .decrypt-text { animation: decrypt 0.5s steps(10) forwards; }
@keyframes decrypt { 0% { filter: blur(4px); letter-spacing: 0.5em; } 100% { filter: blur(0); letter-spacing: 0.15em; } }
/* Radar Animation */ .radar { position: relative; width: 60px; height: 60px; }
.radar::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--neon-green); border-radius: 50%; animation: radar-ping 2s ease-out infinite; }
.radar::after { content: ''; position: absolute; inset: 10px; background: var(--neon-green); border-radius: 50%; opacity: 0.3; animation: radar-pulse 1s ease-in-out infinite; }
@keyframes radar-ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes radar-pulse { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.1); opacity: 0.6; } }
/* Circuit Board Pattern */ .circuit-pattern { background-image: linear-gradient(90deg, var(--dark-green) 1px, transparent 1px), linear-gradient(var(--dark-green) 1px, transparent 1px); background-size: 20px 20px; position: relative; }
.circuit-pattern::before { content: ''; position: absolute; width: 6px; height: 6px; background: var(--neon-green); border-radius: 50%; box-shadow: 20px 0 var(--neon-green), 0 20px var(--neon-green), 20px 20px var(--neon-green), 40px 40px var(--electric-blue), 60px 40px var(--electric-blue), 40px 60px var(--electric-blue); animation: circuit-pulse 2s ease-in-out infinite; }
@keyframes circuit-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
/* Hexagon Grid */ .hex-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='%2300ff41' fill-opacity='0.05' d='M28 66L0 50V16L28 0l28 16v34L28 66zM0 84l28 16 28-16V66L28 50 0 66v18z'/%3E%3C/svg%3E"); }
/* Loading Bar */ .loading-bar { position: relative; height: 4px; background: var(--dark-green); overflow: hidden; }
.loading-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--neon-green), var(--electric-blue), var(--neon-green), transparent); animation: loading-slide 2s linear infinite; }
@keyframes loading-slide { 0% { left: -100%; } 100% { left: 100%; } }
/* Terminal Window */ .terminal-window { background: rgba(0, 10, 0, 0.95); border: 1px solid var(--neon-green); box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0, 255, 65, 0.02); }
.terminal-header { background: linear-gradient(90deg, var(--dark-green), transparent); border-bottom: 1px solid var(--neon-green); }
/* Data Stream */ .data-stream { position: relative; overflow: hidden; }
.data-stream::after { content: '01001000 01100001 01100011 01101011 01101001 01101110 01100111 00101110 00101110 00101110'; position: absolute; top: 0; right: 0; font-size: 8px; color: var(--dark-green); opacity: 0.5; animation: data-scroll 10s linear infinite; white-space: nowrap; }
@keyframes data-scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } } </style></head>
<body class="crt neural-bg grid-bg hex-pattern"> <canvas id="matrix-canvas"></canvas> <div class="scan-overlay"></div>
<!-- Header --> <header class="fixed top-0 left-0 right-0 z-50 border-b border-green-900/50 bg-black/95 backdrop-blur"> <div class="loading-bar"></div> <div class="flex items-center justify-between px-4 py-3"> <div class="flex items-center gap-4"> <div class="w-3 h-3 rounded-full status-dot active"></div> <h1 class="text-lg md:text-xl font-bold tracking-wider glitch" data-text="BLACK ARCH // SCRIPT GUI CONVERTER"> BLACK ARCH // SCRIPT GUI CONVERTER </h1> <span class="hidden md:inline text-xs text-green-700 border border-green-800 px-2 py-0.5">[UX TOOLKIT]</span> <div class="radar hidden md:block"></div> <div> <h1 class="text-lg md:text-2xl font-bold tracking-wider glitch tool-title decrypt-text" data-text="BLACK ARCH // SCRIPT GUI CONVERTER"> BLACK ARCH // SCRIPT GUI CONVERTER </h1> <div class="flex items-center gap-3 mt-1"> <span class="version-badge">UX V12.0</span> <span class="hidden md:inline text-xs text-green-700 border border-green-800 px-2 py-0.5">[ADVANCED TOOLKIT]</span> <span class="hidden md:inline text-xs text-green-600 flex items-center gap-1"> <span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span> SYSTEM ONLINE </span> </div> </div> </div> <div class="flex items-center gap-4"> <div class="hidden md:flex items-center gap-2 text-xs text-green-600"> <span>ENGINE:</span> <span class="text-green-400 font-mono">PARSER v3.7.2</span> <div class="hidden md:flex items-center gap-2 text-xs"> <span class="text-green-700">ENGINE:</span> <span class="text-cyan-400 font-mono animate-pulse">PARSER v12.0.7</span> <span class="text-green-700">|</span> <span class="text-green-700">MODE:</span> <span class="text-amber-400 font-mono">STEALTH</span> </div> <div class="text-xs text-green-700 font-mono" id="clock">00:00:00:00</div> <div class="text-xs text-green-500 font-mono bg-green-900/20 px-3 py-1 border border-green-800" id="clock">00:00:00:00</div> <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="text-xs border border-green-800 px-3 py-1 hover:bg-green-900 hover:text-white transition-all"> class="text-xs border border-green-800 px-3 py-1 hover:bg-green-900 hover:text-white transition-all pulse-green"> Built with anycoder </a> </div>1 unmodified line </header>
<!-- Main Container --> <main class="pt-16 min-h-screen flex flex-col relative z-10"> <main class="pt-20 min-h-screen flex flex-col relative z-10">
<!-- Script Input Section --> <section class="border-b border-green-900/50 bg-black/80 p-4"> <section class="border-b border-green-900/50 bg-black/80 p-4 circuit-pattern"> <div class="max-w-screen-2xl mx-auto"> <div class="grid md:grid-cols-2 gap-6">
<!-- Drop Zone --> <div class="drop-zone rounded-lg p-6 text-center relative" id="drop-zone"> <div class="holo-card rounded-lg p-6 text-center relative" id="drop-zone"> <input type="file" id="file-input" accept=".py,.sh" class="hidden"> <div class="holo-content"> <div id="drop-content"> <div class="w-16 h-16 mx-auto mb-4 rounded-full border-2 border-dashed border-green-700 flex items-center justify-center"> <svg class="w-8 h-8 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"></path> </svg> <div id="drop-content"> <div class="w-20 h-20 mx-auto mb-4 rounded-full border-2 border-dashed border-green-600 flex items-center justify-center animate-pulse"> <svg class="w-10 h-10 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"></path> </svg> </div> <p class="text-green-400 font-bold mb-2 text-lg tracking-wider">DROP SCRIPT FILE HERE</p> <p class="text-green-600 text-xs mb-4 font-mono">[ SUPPORTED: .py / .sh / .js ]</p> <button type="button" id="browse-btn" class="btn-arc bg-green-900/30 border border-green-600 text-green-400 px-8 py-3 text-sm hover:bg-green-800/50 transition-all tracking-widest"> ⟹ BROWSE FILES </button> </div> <p class="text-green-400 font-bold mb-2">DROP SCRIPT FILE HERE</p> <p class="text-green-700 text-xs mb-4">or click to browse (.py / .sh)</p> <button type="button" id="browse-btn" class="btn-arc bg-green-900/30 border border-green-700 text-green-400 px-6 py-2 text-xs hover:bg-green-800/50 transition-all"> BROWSE FILES </button> </div> <div id="file-info" class="hidden"> <div class="flex items-center justify-center gap-3 mb-3"> <svg class="w-10 h-10 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path> </svg> <div class="text-left"> <div id="filename" class="text-green-400 font-bold">script.py</div> <div id="filesize" class="text-green-700 text-xs">2.4 KB</div> <div id="file-info" class="hidden"> <div class="flex items-center justify-center gap-4 mb-4"> <div class="w-16 h-16 rounded-full bg-green-900/30 border-2 border-green-500 flex items-center justify-center"> <svg class="w-8 h-8 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path> </svg> </div> <div class="text-left"> <div id="filename" class="text-green-400 font-bold text-lg">script.py</div> <div id="filesize" class="text-green-600 text-sm font-mono">2.4 KB</div> <div class="flex gap-2 mt-2"> <span class="text-xs text-cyan-400">✓ SCANNED</span> <span class="text-xs text-amber-400">⚠ 3 WARNINGS</span> </div> </div> </div> <div id="file-type-badge" class="file-badge python mx-auto mb-4">PYTHON</div> <div class="flex justify-center gap-3"> <button type="button" onclick="analyzeFile()" class="text-xs bg-cyan-900/30 border border-cyan-600 text-cyan-400 px-4 py-2 hover:bg-cyan-800/50 transition-all"> [REANALYZE] </button> <button type="button" onclick="clearFile()" class="text-xs text-crimson hover:text-crimson/70 border border-crimson/50 px-4 py-2">[REMOVE]</button> </div> </div> <div id="file-type-badge" class="file-badge python mx-auto mb-3">PYTHON</div> <button type="button" onclick="clearFile()" class="text-xs text-crimson hover:text-crimson/70 underline">[REMOVE FILE]</button> </div> </div>
<!-- Script Preview --> <div class="data-card rounded-lg p-4 flex flex-col"> <div class="flex items-center justify-between mb-3 border-b border-green-900/50 pb-2"> <span class="text-xs text-green-600 font-bold">SOURCE CODE PREVIEW</span> <div class="terminal-window rounded-lg p-1 flex flex-col"> <div class="terminal-header px-4 py-2 flex items-center justify-between"> <span class="text-xs text-green-400 font-bold flex items-center gap-2"> <span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span> SOURCE_CODE_PREVIEW.exe </span> <div class="flex gap-2"> <button type="button" onclick="pasteFromClipboard()" class="text-xs text-cyan-400 hover:text-cyan-300">[PASTE]</button> <button type="button" onclick="clearPreview()" class="text-xs text-crimson hover:text-crimson/70">[CLEAR]</button> <button type="button" onclick="pasteFromClipboard()" class="text-xs text-cyan-400 hover:text-cyan-300 flex items-center gap-1"> <span>📋</span> PASTE </button> <button type="button" onclick="clearPreview()" class="text-xs text-crimson hover:text-crimson/70 flex items-center gap-1"> <span>🗑</span> CLEAR </button> </div> </div> <textarea id="code-preview" class="flex-1 bg-black/50 border border-green-900/30 text-green-300 p-3 font-mono text-xs resize-none focus:outline-none" rows="8" placeholder="// Script source code will appear here... // Or paste code directly"></textarea> <textarea id="code-preview" class="flex-1 bg-black/80 text-green-300 p-4 font-mono text-xs resize-none focus:outline-none" rows="10" placeholder="// Initialize script analysis... // Waiting for input stream... // [READY FOR INJECTION]"></textarea> <div class="px-4 py-2 bg-green-900/10 border-t border-green-900/30 flex justify-between items-center"> <span class="text-xs text-green-700 font-mono">LINES: <span id="line-count">0</span></span> <span class="text-xs text-green-700 font-mono">CHARS: <span id="char-count">0</span></span> </div> </div> </div>
<!-- Parse Controls --> <div class="mt-4 flex flex-wrap items-center justify-between gap-4"> <div class="flex items-center gap-4 text-xs flex-wrap"> <label class="flex items-center gap-2 cursor-pointer"> <input type="checkbox" id="detect-args" checked class="accent-green-500"> <span class="text-green-400">Auto-detect Arguments</span> <div class="mt-6 flex flex-wrap items-center justify-between gap-4 data-stream"> <div class="flex items-center gap-6 text-xs flex-wrap"> <label class="flex items-center gap-2 cursor-pointer holo-card px-3 py-2"> <input type="checkbox" id="detect-args" checked class="accent-green-500 w-4 h-4"> <span class="text-green-400 font-bold">AUTO-DETECT ARGS</span> </label> <label class="flex items-center gap-2 cursor-pointer holo-card px-3 py-2"> <input type="checkbox" id="detect-deps" checked class="accent-green-500 w-4 h-4"> <span class="text-green-400 font-bold">DEPENDENCY SCAN</span> </label> <label class="flex items-center gap-2 cursor-pointer"> <input type="checkbox" id="detect-deps" checked class="accent-green-500"> <span class="text-green-400">Detect Dependencies</span> <label class="flex items-center gap-2 cursor-pointer holo-card px-3 py-2"> <input type="checkbox" id="dark-theme" checked class="accent-green-500 w-4 h-4"> <span class="text-green-400 font-bold">DARK THEME GUI</span> </label> <label class="flex items-center gap-2 cursor-pointer"> <input type="checkbox" id="dark-theme" checked class="accent-green-500"> <span class="text-green-400">Dark Theme GUI</span> <label class="flex items-center gap-2 cursor-pointer holo-card px-3 py-2 critical"> <input type="checkbox" id="stealth-mode" class="accent-crimson w-4 h-4"> <span class="text-crimson font-bold">STEALTH MODE</span> </label> </div> <button type="button" onclick="parseScript()" id="parse-btn" class="btn-arc bg-gradient-to-r from-green-700 to-green-600 text-black font-bold px-8 py-3 hover:from-green-500 hover:to-green-400 transition-all uppercase tracking-widest text-sm pulse-green flex items-center gap-2"> <span id="parse-btn-text">⚡ CONVERT TO GUI</span> <button type="button" onclick="parseScript()" id="parse-btn" class="btn-arc bg-gradient-to-r from-green-700 via-green-600 to-cyan-600 text-black font-bold px-10 py-4 hover:from-green-500 hover:to-cyan-400 transition-all uppercase tracking-widest text-sm pulse-green flex items-center gap-3 holo-card"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path> </svg> <span id="parse-btn-text">⚡ INITIATE CONVERSION</span> <div id="parse-spinner" class="hidden w-5 h-5 border-2 border-black border-t-transparent rounded-full animate-spin"></div> </button> </div>1 unmodified line </section>
<!-- Progress Section --> <div id="progress-section" class="hidden border-b border-green-900/50 bg-black/90 p-2"> <div class="max-w-screen-2xl mx-auto flex items-center gap-4"> <span class="text-xs text-green-600 whitespace-nowrap">PARSING:</span> <div class="flex-1 h-2 bg-green-900/30 rounded overflow-hidden"> <div id="progress-bar" class="progress-fill h-full w-0"></div> </div> <span id="progress-text" class="text-xs text-green-400 font-mono w-16 text-right">0%</span> <span id="parse-status" class="text-xs text-cyan-400 font-mono">ANALYZING</span> </div> </div>
<!-- Tab Navigation --> <div class="border-b border-green-900/50 bg-black/90"> <div class="max-w-screen-2xl mx-auto flex overflow-x-auto"> <button type="button" onclick="switchTab('params')" id="tab-params" class="tab-btn active px-6 py-4 text-xs font-mono border-r border-green-900/50 whitespace-nowrap"> <span class="mr-2">01</span>PARAMETERS </button> <button type="button" onclick="switchTab('preview')" id="tab-preview" class="tab-btn px-6 py-4 text-xs font-mono border-r border-green-900/50 whitespace-nowrap hover:text-green-400"> <span class="mr-2">02</span>GUI PREVIEW </button> <button type="button" onclick="switchTab('code')" id="tab-code" class="tab-btn px-6 py-4 text-xs font-mono border-r border-green-900/50 whitespace-nowrap hover:text-green-400"> <span class="mr-2">03</span>GENERATED CODE </button> <button type="button" onclick="switchTab('export')" id="tab-export" class="tab-btn px-6 py-4 text-xs font-mono whitespace-nowrap hover:text-green-400"> <span class="mr-2">04</span>EXPORT </button> </div> </div>
<!-- Tab Contents --> <div class="flex-1 overflow-hidden bg-black/40">
<!-- Tab 1: Parameters --> <div id="content-params" class="tab-content h-full overflow-auto p-4"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center justify-between mb-4"> <h2 class="text-lg font-bold text-green-400 flex items-center gap-2"> <span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span> DETECTED PARAMETERS </h2> <button type="button" onclick="addCustomParam()" class="text-xs border border-green-700 px-3 py-1 hover:bg-green-900 transition-all"> + ADD CUSTOM </button> </div>
<div id="params-container" class="grid md:grid-cols-2 gap-4"> <div class="col-span-2 text-center py-12 text-green-700"> <div class="w-16 h-16 mx-auto mb-4 border-2 border-dashed border-green-900 rounded-full flex items-center justify-center"> <span class="text-2xl">⚡</span> </div> <p>Load a script to detect parameters</p> <p class="text-xs mt-2 opacity-60">Supports argparse, sys.argv, getopt, and click</p> </div> </div> </div> </div>
<!-- Tab 2: GUI Preview --> <div id="content-preview" class="tab-content hidden h-full overflow-auto p-4"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center justify-between mb-4"> <h2 class="text-lg font-bold text-cyan-400 flex items-center gap-2"> <span class="w-2 h-2 bg-cyan-500 rounded-full animate-pulse"></span> LIVE GUI PREVIEW </h2> <div class="flex gap-2"> <button type="button" onclick="refreshPreview()" class="text-xs border border-cyan-700 px-3 py-1 hover:bg-cyan-900/30 transition-all">REFRESH</button> <select id="theme-select" onchange="changeTheme()" class="bg-black border border-cyan-800 text-cyan-400 text-xs px-2 py-1"> <option value="cyber">CYBER GREEN</option> <option value="crimson">CRIMSON RED</option> <option value="ocean">DEEP OCEAN</option> <option value="amber">WARNING AMBER</option> </select> </div> </div>
<!-- Preview Frame --> <div class="data-card p-1 rounded-lg" id="preview-frame"> <div class="bg-black/80 rounded border border-green-900/50 overflow-hidden"> <!-- Preview Header --> <div class="bg-green-900/20 px-4 py-3 border-b border-green-900/30 flex items-center justify-between"> <div class="flex items-center gap-2"> <div class="w-2 h-2 rounded-full bg-green-500"></div> <span class="text-green-400 text-sm font-bold" id="preview-title">Generated Tool</span> </div> <div class="flex gap-1"> <div class="w-3 h-3 rounded-full bg-red-500/50"></div> <div class="w-3 h-3 rounded-full bg-yellow-500/50"></div> <div class="w-3 h-3 rounded-full bg-green-500/50"></div> </div> </div> <!-- Preview Content --> <div id="preview-content" class="p-6 min-h-[400px]"> <div class="text-center py-12 text-green-700"> <p>Convert a script to see GUI preview</p> </div> </div> </div> </div> </div> </div>
<!-- Tab 3: Generated Code --> <div id="content-code" class="tab-content hidden h-full overflow-auto p-4"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center justify-between mb-4"> <h2 class="text-lg font-bold text-purple-400 flex items-center gap-2"> <span class="w-2 h-2 bg-purple-500 rounded-full animate-pulse"></span> GENERATED HTML CODE </h2> <div class="flex gap-2"> <button type="button" onclick="copyGeneratedCode()" class="text-xs border border-purple-700 px-3 py-1 hover:bg-purple-900/30 transition-all">COPY ALL</button> <button type="button" onclick="downloadGenerated()" class="text-xs bg-purple-900/30 border border-purple-600 px-3 py-1 hover:bg-purple-800/50 transition-all">DOWNLOAD .HTML</button> <div id="progress-section" class="hidden border-b border-green-900/50 bg-black/95 p-3"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center gap-4 mb-2"> <span class="text-xs text-green-600 font-mono whitespace-nowrap animate-pulse">>>> PROCESSING:</span> <div class="flex-1 h-3 bg-green-900/30 rounded overflow-hidden border border-green-800"> <div id="progress-bar" class="progress-fill h-full w-0 relative"> <div class="absolute inset-0 bg-white/20 animate-pulse"></div> </div> </div>
<div class="code-block rounded-lg p-4 overflow-auto max-h-[600px]"> <pre id="generated-code" class="text-xs text-green-300"><code class="language-html"><!-- Generated GUI will appear here --></code></pre> </div> <span id="progress-text" class="text-lg text-green-400 font-mono w-16 text-right font-bold">0%</span> </div> </div>
<!-- Tab 4: Export --> <div id="content-export" class="tab-content hidden h-full overflow-auto p-4"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center justify-between mb-4"> <h2 class="text-lg font-bold text-amber-400 flex items-center gap-2"> <span class="w-2 h-2 bg-amber-500 rounded-full animate-pulse"></span> EXPORT OPTIONS </h2> <div class="flex items-center justify-between text-xs"> <div class="flex gap-4"> <span id="parse-status" class="text-cyan-400 font-mono animate-pulse">[INITIALIZING NEURAL NETWORK...]</span> <span class="text-green-700 font-mono">|</span> <span class="text-green-600 font-mono">THREADS: <span class="text-green-400">16</span></span> <span class="text-green-600 font-mono">MEMORY: <span class="text-green-400">4.2 GB</span></span> </div>
<div class="grid md:grid-cols-3 gap-4"> <div class="data-card p-6 text-center"> <div class="w-16 h-16 mx-auto mb-4 rounded-full border-2 border-amber-500/30 flex items-center justify-center"> <svg class="w-8 h-8 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path> </svg> </div> <h3 class="text-amber-400 font-bold mb-2">STANDALONE HTML</h3> <p class="text-amber-600/70 text-xs mb-4">Single file with embedded CSS/JS</p> <button type="button" onclick="exportStandalone()" class="w-full btn-arc bg-amber-900/30 border border-amber-600 text-amber-400 py-2 hover:bg-amber-800/50 transition-all text-xs font-bold"> DOWNLOAD </button> </div>
<div class="data-card p-6 text-center"> <div class="w-16 h-16 mx-auto mb-4 rounded-full border-2 border-cyan-500/30 flex items-center justify-center"> <svg class="w-8 h-8 text-cyan-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path> </svg> </div> <h3 class="text-cyan-400 font-bold mb-2">PYTHON WRAPPER</h3> <p class="text-cyan-600/70 text-xs mb-4">Tkinter wrapper for original script</p> <button type="button" onclick="exportPythonWrapper()" class="w-full btn-arc bg-cyan-900/30 border border-cyan-600 text-cyan-400 py-2 hover:bg-cyan-800/50 transition-all text-xs font-bold"> DOWNLOAD </button> </div>
<div class="data-card p-6 text-center"> <div class="w-16 h-16 mx-auto mb-4 rounded-full border-2 border-green-500/30 flex items-center justify-center"> <svg class="w-8 h-8 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path> </svg> </div> <h3 class="text-green-400 font-bold mb-2">ELECTRON APP</h3> <p class="text-green-600/70 text-xs mb-4">Desktop application package</p> <button type="button" onclick="exportElectron()" class="w-full btn-arc bg-green-900/30 border border-green-600 text-green-400 py-2 hover:bg-green-800/50 transition-all text-xs font-bold"> DOWNLOAD </button> </div> <div class="flex gap-2"> <span class="text-amber-400 font-mono animate-pulse">⚠ OPTIMIZING OUTPUT</span> </div> </div> </div>
</div>
<!-- Terminal Output --> <div class="border-t border-green-900/50 bg-black/95 p-4"> <div class="max-w-screen-2xl mx-auto"> <div class="flex items-center justify-between mb-2"> <span class="text-xs text-green-600 font-bold">CONVERSION LOG</span> <button type="button" onclick="clearTerminal()" class="text-xs text-green-700 hover:text-green-500">[CLEAR]</button> </div> <div id="terminal-output" class="font-mono text-xs text-green-400/80 h-32 overflow-auto bg-black/50 p-3 rounded border border-green-900/30"> <div class="text-green-700">Black Arch Script GUI Converter initialized...</div> <div class="text-green-700">Waiting for script input...</div> </div> </div> </div>
</main>
<script> // Global State let currentScript = null; let detectedParams = []; let generatedGUI = null; let currentTab = 'params';
// Clock function updateClock() { const now = new Date(); document.getElementById('clock').textContent = now.toISOString().substr(11, 8) + ':' + String(Math.floor(now.getMilliseconds() / 10)).padStart(2, '0'); } setInterval(updateClock, 10);
// Terminal Logging function log(message, type = 'info') { const terminal = document.getElementById('terminal-output'); const entry = document.createElement('div'); const timestamp = new Date().toISOString().substr(11, 8); let colorClass = 'text-green-400'; if (type === 'error') colorClass = 'text-crimson'; if (type === 'warn') colorClass = 'text-amber-400'; if (type === 'success') colorClass = 'text-cyan-400'; entry.className = `${colorClass} mb-1`; entry.innerHTML = `<span class="text-green-700">[${timestamp}]</span> ${message}`; terminal.appendChild(entry); terminal.scrollTop = terminal.scrollHeight; }
function clearTerminal() { document.getElementById('terminal-output').innerHTML = ''; }
// File Drop Handling - FIXED const dropZone = document.getElementById('drop <!-- Tab Navigation --> <div class="border-b border-green-900/50 bg-black/95 hex-grid"> <div class="max-w-screen-2xl mx-auto flex overflow-x-auto"> <button type="button" onclick="switchTab('params')" id="tab-params" class="tab-btn active px-8 py-5 text-sm font-mono border-r border-green-900/50 whitespace-nowrap flex items-center gap-3"> <span class="text-xs text-green-700">[01]</span> <span>PARAMETERS</span> <span class="index.html+383-280