feat(image-to-text): unify single/multi/folder intake into studio, chunked streaming queue, and fixed download options
This commit is contained in:
+764
-437
File diff suppressed because it is too large
Load Diff
+192
-216
@@ -19,29 +19,6 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- ════════════════════════════════════════════════════════════════
|
||||
LIQUID GLASS · SVG FILTER DEFS
|
||||
════════════════════════════════════════════════════════════════ -->
|
||||
<svg width="0" height="0" style="position:absolute;pointer-events:none;" aria-hidden="true">
|
||||
<defs>
|
||||
<filter id="liquid-glass-panel" x="-10%" y="-10%" width="120%" height="120%" color-interpolation-filters="sRGB">
|
||||
<feImage href="assets/displacement-map-w2qrsb.png" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
|
||||
<feDisplacementMap in="SourceGraphic" in2="displacement_map" xChannelSelector="R" yChannelSelector="G" result="displaced" scale="18"></feDisplacementMap>
|
||||
<feColorMatrix in="displaced" type="saturate" result="displaced_saturated" values="3"></feColorMatrix>
|
||||
<feImage href="assets/specular-map-w2qrsb.png" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
|
||||
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
|
||||
<feBlend in="specular_saturated" in2="displaced" mode="screen"></feBlend>
|
||||
</filter>
|
||||
|
||||
<filter id="liquid-glass-bar" x="-5%" y="-5%" width="110%" height="110%" color-interpolation-filters="sRGB">
|
||||
<feImage href="assets/displacement-map-76hifn.png" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
|
||||
<feDisplacementMap in="SourceGraphic" in2="displacement_map" xChannelSelector="R" yChannelSelector="G" result="displaced" scale="10"></feDisplacementMap>
|
||||
<feImage href="assets/specular-map-76hifn.png" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
|
||||
<feBlend in="specular_layer" in2="displaced" mode="screen"></feBlend>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
<!-- Ambient background glows -->
|
||||
<div class="ambient-glow glow-top-left"></div>
|
||||
<div class="ambient-glow glow-bottom-right"></div>
|
||||
@@ -63,16 +40,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Nav Tabs -->
|
||||
<!-- Unified Nav Tabs (Batch tab removed; everything is unified in Studio) -->
|
||||
<nav class="nav-tabs" id="navTabs">
|
||||
<button class="nav-tab active" data-tab="studio">
|
||||
<i class="fa-solid fa-cube"></i>
|
||||
<span>Studio</span>
|
||||
</button>
|
||||
<button class="nav-tab" data-tab="batch">
|
||||
<i class="fa-solid fa-layer-group"></i>
|
||||
<span>Batch Dataset</span>
|
||||
</button>
|
||||
<button class="nav-tab" data-tab="presets">
|
||||
<i class="fa-solid fa-sliders"></i>
|
||||
<span>Presets</span>
|
||||
@@ -119,52 +92,137 @@
|
||||
<main class="app-main">
|
||||
|
||||
<!-- ─────────────────────────────────────────────────────────────
|
||||
TAB 1: SINGLE IMAGE STUDIO
|
||||
UNIFIED STUDIO (Single Image, Multiple Images, Complete Folder)
|
||||
───────────────────────────────────────────────────────────── -->
|
||||
<section class="tab-pane active" id="pane-studio">
|
||||
<div class="studio-layout">
|
||||
|
||||
<!-- Left Column: Input and Configuration -->
|
||||
<!-- Left Column: Unified Intake & Parameter Controls -->
|
||||
<div class="studio-col input-col">
|
||||
|
||||
<!-- Image Dropzone Glass Card -->
|
||||
<!-- Unified Dropzone Card -->
|
||||
<div class="glass-card dropzone-card" id="dropzoneCard">
|
||||
<input type="file" id="imageFileInput" accept="image/*" style="display: none;">
|
||||
|
||||
<!-- Hidden File Inputs -->
|
||||
<input type="file" id="imageFileInput" accept="image/*" multiple style="display: none;">
|
||||
<input type="file" id="folderFileInput" webkitdirectory directory multiple style="display: none;">
|
||||
|
||||
<!-- 1. Dropzone Empty / Intake View -->
|
||||
<div class="dropzone-empty" id="dropzoneEmpty">
|
||||
<div class="dropzone-icon">
|
||||
<i class="fa-solid fa-cloud-arrow-up"></i>
|
||||
</div>
|
||||
<div class="dropzone-text">
|
||||
<div class="primary-text">Drag & drop your image here</div>
|
||||
<div class="secondary-text">or <button type="button" class="link-btn" id="browseBtn">browse files</button> · or press <kbd>Ctrl+V</kbd> to paste</div>
|
||||
<div class="primary-text">Drag & drop single image, multiple images, or entire folder</div>
|
||||
<div class="secondary-text">or choose an intake method below · or paste with <kbd>Ctrl+V</kbd></div>
|
||||
</div>
|
||||
|
||||
<div class="intake-actions-row">
|
||||
<button type="button" class="intake-btn" id="browseImagesBtn">
|
||||
<i class="fa-regular fa-images"></i>
|
||||
<span>Select Images</span>
|
||||
</button>
|
||||
<button type="button" class="intake-btn" id="browseFolderBtn">
|
||||
<i class="fa-solid fa-folder-open"></i>
|
||||
<span>Select Folder</span>
|
||||
</button>
|
||||
<button type="button" class="intake-btn" id="toggleServerPathBtn">
|
||||
<i class="fa-solid fa-terminal"></i>
|
||||
<span>Server Path</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Server Folder Path Drawer -->
|
||||
<div class="server-path-drawer" id="serverPathDrawer" style="display: none;">
|
||||
<div class="drawer-input-row">
|
||||
<div class="input-with-icon">
|
||||
<i class="fa-solid fa-folder"></i>
|
||||
<input type="text" id="serverFolderPathInput" class="glass-input" placeholder="/home/creserver/Desktop/my_images_dataset">
|
||||
</div>
|
||||
<button type="button" class="primary-btn" id="scanServerFolderBtn" style="width: auto; padding: 10px 18px;">
|
||||
<i class="fa-solid fa-magnifying-glass"></i>
|
||||
<span>Scan</span>
|
||||
</button>
|
||||
</div>
|
||||
<label class="glass-checkbox" style="margin-top: 8px;">
|
||||
<input type="checkbox" id="serverRecursiveCb">
|
||||
<span class="checkmark"></span>
|
||||
<span>Scan subdirectories recursively</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="dropzone-formats">JPG · PNG · WEBP · BMP · TIFF · AVIF</div>
|
||||
</div>
|
||||
|
||||
<div class="dropzone-filled" id="dropzoneFilled" style="display: none;">
|
||||
<!-- 2. Single Image Focus View -->
|
||||
<div class="dropzone-filled" id="singleImageFilled" style="display: none;">
|
||||
<div class="preview-wrap">
|
||||
<img id="previewImg" src="" alt="Preview">
|
||||
<button class="remove-img-btn" id="removeImgBtn" title="Remove image">
|
||||
<button class="remove-img-btn" id="clearSingleImgBtn" title="Clear image">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="preview-meta" id="previewMeta">
|
||||
<span class="meta-pill" id="imgDimensionsPill"><i class="fa-regular fa-image"></i> -- x --</span>
|
||||
<div class="preview-meta">
|
||||
<span class="meta-pill" id="imgDimensionsPill"><i class="fa-regular fa-image"></i> -- × --</span>
|
||||
<span class="meta-pill" id="imgSizePill"><i class="fa-solid fa-weight-hanging"></i> -- KB</span>
|
||||
<span class="meta-pill" id="imgNamePill"><i class="fa-solid fa-tag"></i> filename.png</span>
|
||||
<button type="button" class="link-btn" id="addMoreFilesBtn" style="margin-left: auto;">
|
||||
<i class="fa-solid fa-plus"></i> Add more to queue
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 3. Multi-Image Queue View -->
|
||||
<div class="queue-container" id="queueContainer" style="display: none;">
|
||||
<div class="queue-toolbar">
|
||||
<div class="queue-info">
|
||||
<span class="queue-badge"><i class="fa-solid fa-layer-group"></i> Queue: <b id="queueTotalCount">0</b></span>
|
||||
<div class="queue-filters" id="queueFilterTabs">
|
||||
<button class="filter-tab active" data-filter="all">All (<span id="filterAllCount">0</span>)</button>
|
||||
<button class="filter-tab" data-filter="pending">Pending (<span id="filterPendingCount">0</span>)</button>
|
||||
<button class="filter-tab" data-filter="done">Done (<span id="filterDoneCount">0</span>)</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="queue-actions">
|
||||
<button type="button" class="intake-btn mini" id="queueAddImagesBtn" title="Add more files">
|
||||
<i class="fa-solid fa-plus"></i> Add
|
||||
</button>
|
||||
<button type="button" class="intake-btn mini danger" id="clearQueueBtn" title="Clear all">
|
||||
<i class="fa-solid fa-trash-can"></i> Clear
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Focused Preview in Multi-mode -->
|
||||
<div class="queue-focus-preview" id="queueFocusPreview">
|
||||
<div class="queue-preview-box">
|
||||
<img id="queueFocusImg" src="" alt="Focus preview">
|
||||
</div>
|
||||
<div class="queue-focus-meta">
|
||||
<div class="focus-title" id="queueFocusFilename">filename.png</div>
|
||||
<div class="focus-sub" id="queueFocusSub">Select an image thumbnail below to inspect</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Chunked / Paginated Thumbnail Filmstrip -->
|
||||
<div class="queue-filmstrip-wrap">
|
||||
<div class="queue-filmstrip" id="queueFilmstrip"></div>
|
||||
<div class="queue-pagination" id="queuePagination" style="display: none;">
|
||||
<button class="page-btn" id="prevPageBtn"><i class="fa-solid fa-chevron-left"></i></button>
|
||||
<span class="page-info" id="pageInfoText">Chunk 1 / 1</span>
|
||||
<button class="page-btn" id="nextPageBtn"><i class="fa-solid fa-chevron-right"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Analysis Modes Glass Card -->
|
||||
<!-- Analysis Configuration Card -->
|
||||
<div class="glass-card mode-card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<i class="fa-solid fa-wand-magic"></i>
|
||||
<span>Analysis Mode</span>
|
||||
</div>
|
||||
<span class="card-badge" id="selectedModeBadge">Flux / MJ Prompt</span>
|
||||
<span class="card-badge" id="selectedModeBadge">Prompt (Flux / MJ)</span>
|
||||
</div>
|
||||
|
||||
<div class="mode-grid" id="modeGrid">
|
||||
@@ -221,6 +279,20 @@
|
||||
<textarea id="promptInput" class="glass-textarea" rows="3" placeholder="Enter instructions or query for the Vision model..."></textarea>
|
||||
</div>
|
||||
|
||||
<!-- Dataset / Batch Checkboxes -->
|
||||
<div class="checkbox-group" style="margin-bottom: 14px;">
|
||||
<label class="glass-checkbox">
|
||||
<input type="checkbox" id="saveSidecarCb" checked>
|
||||
<span class="checkmark"></span>
|
||||
<span>Save sidecar <kbd><image>.txt</kbd> files alongside images (ideal for LoRA training)</span>
|
||||
</label>
|
||||
<label class="glass-checkbox">
|
||||
<input type="checkbox" id="skipExistingCb" checked>
|
||||
<span class="checkmark"></span>
|
||||
<span>Skip already processed images (auto-resume support)</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- Advanced Tuning Accordion -->
|
||||
<div class="accordion glass-accordion">
|
||||
<button class="accordion-header" id="accordionToggle">
|
||||
@@ -252,29 +324,39 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Generate Button -->
|
||||
<button class="primary-btn glow-btn" id="generateBtn">
|
||||
<span class="btn-spinner" id="btnSpinner" style="display: none;">
|
||||
<i class="fa-solid fa-circle-notch fa-spin"></i>
|
||||
</span>
|
||||
<span class="btn-content">
|
||||
<i class="fa-solid fa-sparkles"></i>
|
||||
<span>Generate Prompt / Text</span>
|
||||
<kbd class="shortcut-kbd">Ctrl+Enter</kbd>
|
||||
</span>
|
||||
</button>
|
||||
<!-- Unified Action CTA Row -->
|
||||
<div class="cta-actions-row">
|
||||
<button class="primary-btn glow-btn" id="mainActionBtn">
|
||||
<span class="btn-spinner" id="btnSpinner" style="display: none;">
|
||||
<i class="fa-solid fa-circle-notch fa-spin"></i>
|
||||
</span>
|
||||
<span class="btn-content" id="btnContent">
|
||||
<i class="fa-solid fa-sparkles"></i>
|
||||
<span id="btnText">Generate Prompt / Text</span>
|
||||
<kbd class="shortcut-kbd" id="shortcutKbd">Ctrl+Enter</kbd>
|
||||
</span>
|
||||
</button>
|
||||
<button class="action-btn danger-btn" id="pauseQueueBtn" style="display: none;" title="Stop queue">
|
||||
<i class="fa-solid fa-stop"></i>
|
||||
<span>Stop</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right Column: Results and Output -->
|
||||
<!-- Right Column: Unified Output & Results -->
|
||||
<div class="studio-col output-col">
|
||||
<div class="glass-card output-card">
|
||||
|
||||
<!-- Output Header with Dynamic Actions -->
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<i class="fa-solid fa-sparkles"></i>
|
||||
<span>Generated Output</span>
|
||||
<span id="outputCardTitle">Generated Output</span>
|
||||
</div>
|
||||
<div class="output-actions">
|
||||
|
||||
<!-- Action Buttons: Single Mode -->
|
||||
<div class="output-actions" id="singleOutputActions">
|
||||
<button class="action-btn" id="copyResultBtn" title="Copy text to clipboard">
|
||||
<i class="fa-regular fa-copy"></i>
|
||||
<span>Copy</span>
|
||||
@@ -288,18 +370,57 @@
|
||||
<span>JSON</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Action Buttons: Multi-Image / Queue Mode -->
|
||||
<div class="output-actions" id="queueOutputActions" style="display: none;">
|
||||
<button class="action-btn glow-action" id="downloadAllZipBtn" title="Download complete ZIP of all .txt sidecars">
|
||||
<i class="fa-solid fa-file-zipper"></i>
|
||||
<span>Download ZIP</span>
|
||||
</button>
|
||||
<button class="action-btn" id="exportCsvBtn" title="Export CSV summary">
|
||||
<i class="fa-solid fa-file-csv"></i>
|
||||
<span>CSV</span>
|
||||
</button>
|
||||
<button class="action-btn" id="exportJsonBtn" title="Export JSON summary">
|
||||
<i class="fa-solid fa-code"></i>
|
||||
<span>JSON</span>
|
||||
</button>
|
||||
<button class="action-btn" id="copyAllPromptsBtn" title="Copy all prompts to clipboard">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
<span>Copy All</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Result Display State -->
|
||||
<!-- Live Queue Progress Bar (When processing multiple images) -->
|
||||
<div class="progress-block" id="queueProgressBlock" style="display: none;">
|
||||
<div class="progress-meta">
|
||||
<span class="progress-status" id="queueProgressStatus">Processing queue...</span>
|
||||
<span class="progress-numbers" id="queueProgressNumbers">0 / 0 (0%)</span>
|
||||
</div>
|
||||
<div class="progress-bar-track">
|
||||
<div class="progress-bar-fill" id="queueProgressBarFill" style="width: 0%;"></div>
|
||||
</div>
|
||||
<div class="progress-current-file">
|
||||
<span>Current: </span>
|
||||
<strong id="queueProgressCurrentFile">--</strong>
|
||||
<span id="queueTimeEst" style="margin-left: auto;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Output Content Area -->
|
||||
<div class="output-content">
|
||||
|
||||
<!-- Empty / Ready Placeholder -->
|
||||
<div class="output-placeholder" id="outputPlaceholder">
|
||||
<div class="placeholder-icon">
|
||||
<i class="fa-solid fa-wand-sparkles"></i>
|
||||
</div>
|
||||
<div class="placeholder-title">Ready for inference</div>
|
||||
<div class="placeholder-desc">Upload an image and choose a mode to reverse-engineer prompts or transcribe text.</div>
|
||||
<div class="placeholder-desc">Upload a single image, select multiple images, or drop an entire folder to synthesize generative prompts, tags, or OCR.</div>
|
||||
</div>
|
||||
|
||||
<!-- Single Active Result View -->
|
||||
<div class="output-result" id="outputResult" style="display: none;">
|
||||
<div class="result-text-container">
|
||||
<pre class="result-text" id="resultText"></pre>
|
||||
@@ -310,10 +431,20 @@
|
||||
<span class="chip" id="chipTime"><i class="fa-solid fa-stopwatch"></i> --s</span>
|
||||
<span class="chip" id="chipTokens"><i class="fa-solid fa-bars-staggered"></i> -- tokens</span>
|
||||
<span class="chip" id="chipMode"><i class="fa-solid fa-layer-group"></i> prompt</span>
|
||||
<span class="chip" id="chipDim"><i class="fa-solid fa-vector-square"></i> -- x --</span>
|
||||
<span class="chip" id="chipDim"><i class="fa-solid fa-vector-square"></i> -- × --</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Live Stream of Queue Results (Cards / Table) -->
|
||||
<div class="queue-results-stream" id="queueResultsStream" style="display: none;">
|
||||
<div class="stream-header">
|
||||
<span class="stream-title">Live Processed Items</span>
|
||||
<span class="stream-sub" id="streamSubText">0 items processed</span>
|
||||
</div>
|
||||
<div class="stream-items-list" id="streamItemsList"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -321,162 +452,7 @@
|
||||
</section>
|
||||
|
||||
<!-- ─────────────────────────────────────────────────────────────
|
||||
TAB 2: BATCH & DATASET GENERATOR
|
||||
───────────────────────────────────────────────────────────── -->
|
||||
<section class="tab-pane" id="pane-batch">
|
||||
<div class="batch-layout">
|
||||
|
||||
<!-- Batch Controls Card -->
|
||||
<div class="glass-card batch-controls-card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<i class="fa-solid fa-layer-group"></i>
|
||||
<span>Batch & Dataset Configuration</span>
|
||||
</div>
|
||||
<div class="batch-source-toggle">
|
||||
<button class="toggle-btn active" id="batchSourceUploadBtn">Upload Files</button>
|
||||
<button class="toggle-btn" id="batchSourceFolderBtn">Server Folder Path</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Source A: Multi-file upload -->
|
||||
<div class="batch-source-section" id="batchSourceUploadSection">
|
||||
<input type="file" id="batchFilesInput" multiple accept="image/*" style="display: none;">
|
||||
<div class="batch-dropzone" id="batchDropzone">
|
||||
<i class="fa-solid fa-images"></i>
|
||||
<div class="dropzone-text">
|
||||
<div class="primary-text">Drag & drop multiple images or a whole dataset</div>
|
||||
<div class="secondary-text">or <button type="button" class="link-btn" id="batchBrowseBtn">browse files</button></div>
|
||||
</div>
|
||||
<div class="batch-files-count" id="batchFilesCount">0 files selected</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Source B: Server folder path -->
|
||||
<div class="batch-source-section" id="batchSourceFolderSection" style="display: none;">
|
||||
<div class="folder-input-group">
|
||||
<label for="batchFolderPathInput" class="field-label">Absolute Server Folder Path</label>
|
||||
<div class="input-with-icon">
|
||||
<i class="fa-solid fa-folder"></i>
|
||||
<input type="text" id="batchFolderPathInput" class="glass-input" placeholder="/home/creserver/Desktop/my_images_dataset">
|
||||
</div>
|
||||
</div>
|
||||
<div class="checkbox-row">
|
||||
<label class="glass-checkbox">
|
||||
<input type="checkbox" id="batchRecursiveCb">
|
||||
<span class="checkmark"></span>
|
||||
<span>Recursive scan subdirectories</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Batch Settings -->
|
||||
<div class="batch-settings-grid">
|
||||
<div class="setting-item">
|
||||
<label class="field-label">Preset Mode</label>
|
||||
<select id="batchModeSelect" class="glass-select">
|
||||
<option value="prompt">Prompt (Flux / Midjourney)</option>
|
||||
<option value="flux">Flux.1 Detailed</option>
|
||||
<option value="detailed">Dense Visual Description</option>
|
||||
<option value="ocr">OCR Text Transcription</option>
|
||||
<option value="tags">Keywords & Tags</option>
|
||||
<option value="short">Short Caption</option>
|
||||
<option value="story">Creative Narrative</option>
|
||||
<option value="custom">Custom Instruction</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="setting-item custom-prompt-item" id="batchCustomPromptItem" style="display: none;">
|
||||
<label class="field-label">Custom Instruction</label>
|
||||
<input type="text" id="batchCustomPromptInput" class="glass-input" placeholder="e.g. List all clothing and colors">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="checkbox-group">
|
||||
<label class="glass-checkbox">
|
||||
<input type="checkbox" id="batchSidecarCb" checked>
|
||||
<span class="checkmark"></span>
|
||||
<span>Save sidecar <kbd><image>.txt</kbd> files alongside images (ideal for LoRA datasets)</span>
|
||||
</label>
|
||||
<label class="glass-checkbox">
|
||||
<input type="checkbox" id="batchSkipExistingCb" checked>
|
||||
<span class="checkmark"></span>
|
||||
<span>Skip already processed images (auto-resume support)</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="batch-actions-row">
|
||||
<button class="primary-btn glow-btn" id="startBatchBtn">
|
||||
<i class="fa-solid fa-play"></i>
|
||||
<span>Start Batch Processing</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Batch Progress & Live Results Card -->
|
||||
<div class="glass-card batch-results-card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<i class="fa-solid fa-list-check"></i>
|
||||
<span>Batch Status & Progress</span>
|
||||
</div>
|
||||
<div class="batch-export-btns" id="batchExportBtns" style="display: none;">
|
||||
<a id="exportZipBtn" class="action-btn" href="#" target="_blank">
|
||||
<i class="fa-solid fa-file-zipper"></i>
|
||||
<span>Download ZIP</span>
|
||||
</a>
|
||||
<a id="exportJsonBtn" class="action-btn" href="#" target="_blank">
|
||||
<i class="fa-solid fa-code"></i>
|
||||
<span>JSON</span>
|
||||
</a>
|
||||
<a id="exportCsvBtn" class="action-btn" href="#" target="_blank">
|
||||
<i class="fa-solid fa-file-csv"></i>
|
||||
<span>CSV</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Progress Bar Block -->
|
||||
<div class="progress-block" id="progressBlock" style="display: none;">
|
||||
<div class="progress-meta">
|
||||
<span class="progress-status" id="progressStatusText">Processing...</span>
|
||||
<span class="progress-numbers" id="progressNumbers">0 / 0 (0%)</span>
|
||||
</div>
|
||||
<div class="progress-bar-track">
|
||||
<div class="progress-bar-fill" id="progressBarFill" style="width: 0%;"></div>
|
||||
</div>
|
||||
<div class="progress-current-file">
|
||||
<span>Current: </span>
|
||||
<strong id="progressCurrentFile">--</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Results Table / List -->
|
||||
<div class="batch-table-wrap">
|
||||
<table class="glass-table" id="batchTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50px;">#</th>
|
||||
<th style="width: 200px;">Image</th>
|
||||
<th style="width: 100px;">Status</th>
|
||||
<th>Generated Output</th>
|
||||
<th style="width: 90px;">Time</th>
|
||||
<th style="width: 80px;">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="batchTableBody">
|
||||
<tr class="empty-row">
|
||||
<td colspan="6">No batch job running yet. Select images or folder to begin.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ─────────────────────────────────────────────────────────────
|
||||
TAB 3: PRESETS LIBRARY
|
||||
TAB 2: PRESETS LIBRARY
|
||||
───────────────────────────────────────────────────────────── -->
|
||||
<section class="tab-pane" id="pane-presets">
|
||||
<div class="presets-container">
|
||||
@@ -492,7 +468,7 @@
|
||||
</section>
|
||||
|
||||
<!-- ─────────────────────────────────────────────────────────────
|
||||
TAB 4: HISTORY & GALLERY
|
||||
TAB 3: HISTORY & GALLERY
|
||||
───────────────────────────────────────────────────────────── -->
|
||||
<section class="tab-pane" id="pane-history">
|
||||
<div class="history-container">
|
||||
@@ -500,7 +476,7 @@
|
||||
<div class="hero-with-action">
|
||||
<div>
|
||||
<h2>Recent Generations</h2>
|
||||
<p>Browse recent single-image inferences, inspect full results, and re-copy generated text.</p>
|
||||
<p>Browse recent inferences, inspect full results, and re-copy or load into studio.</p>
|
||||
</div>
|
||||
<button class="danger-btn" id="clearHistoryBtn">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
|
||||
@@ -296,7 +296,7 @@ body {
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
.app-main {
|
||||
flex: 1;
|
||||
padding: 24px;
|
||||
padding: 16px 24px 32px;
|
||||
max-width: 1720px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
@@ -321,7 +321,7 @@ body {
|
||||
background: var(--glass-card);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 20px;
|
||||
padding: 22px;
|
||||
padding: 20px;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
@@ -331,7 +331,7 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 18px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
@@ -448,6 +448,384 @@ kbd {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ── Intake Buttons in Dropzone ── */
|
||||
.intake-actions-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.intake-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 7px 14px;
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--text-secondary);
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.intake-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.intake-btn.mini {
|
||||
padding: 4px 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.intake-btn.danger:hover {
|
||||
border-color: var(--accent-red);
|
||||
color: var(--accent-red);
|
||||
}
|
||||
|
||||
.server-path-drawer {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.drawer-input-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ── Multi-Image Queue Container ── */
|
||||
.queue-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.queue-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.queue-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.queue-badge {
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
color: var(--accent);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.queue-filters {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.filter-tab {
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.filter-tab:hover {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.filter-tab.active {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.queue-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.queue-focus-preview {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 10px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.queue-preview-box {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 8px;
|
||||
background: #000;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.queue-preview-box img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.queue-focus-meta {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.focus-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.focus-sub {
|
||||
font-size: 11px;
|
||||
color: var(--text-tertiary);
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
/* ── Filmstrip ── */
|
||||
.queue-filmstrip-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.queue-filmstrip {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
|
||||
gap: 8px;
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.queue-thumb-card {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 10px;
|
||||
background: #000;
|
||||
border: 1.5px solid var(--glass-border);
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.queue-thumb-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: scale(1.04);
|
||||
}
|
||||
|
||||
.queue-thumb-card.active {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 12px var(--accent-glow);
|
||||
}
|
||||
|
||||
.queue-thumb-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.queue-thumb-badge {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.queue-thumb-badge.done {
|
||||
background: var(--accent-green);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.queue-thumb-badge.running {
|
||||
background: var(--accent);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.queue-thumb-badge.failed {
|
||||
background: var(--accent-red);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.queue-pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
font-size: 12px;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.page-btn {
|
||||
background: none;
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--text-secondary);
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page-btn:hover {
|
||||
color: #fff;
|
||||
border-color: var(--glass-border-hi);
|
||||
}
|
||||
|
||||
/* ── Live Stream Output List ── */
|
||||
.queue-results-stream {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-top: 14px;
|
||||
max-height: 480px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.stream-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.stream-title {
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.stream-sub {
|
||||
color: var(--text-tertiary);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.stream-items-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.stream-card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
border: 1px solid var(--glass-border);
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.stream-card:hover {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-color: var(--glass-border-hi);
|
||||
}
|
||||
|
||||
.stream-card.selected {
|
||||
border-color: var(--accent);
|
||||
background: rgba(0, 229, 255, 0.04);
|
||||
}
|
||||
|
||||
.stream-card-thumb {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 8px;
|
||||
background: #000;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stream-card-thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.stream-card-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.stream-card-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.stream-card-meta strong {
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.stream-card-text {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.4;
|
||||
margin-top: 4px;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.glow-action {
|
||||
background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(124, 77, 255, 0.15)) !important;
|
||||
border-color: var(--accent) !important;
|
||||
color: #fff !important;
|
||||
box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
|
||||
}
|
||||
|
||||
.glow-action:hover {
|
||||
box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.cta-actions-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dropzone-filled {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -841,13 +1219,12 @@ kbd {
|
||||
}
|
||||
|
||||
.result-text-container {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
padding: 14px 16px;
|
||||
background: rgba(3, 4, 8, 0.85);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 14px;
|
||||
margin-bottom: 16px;
|
||||
max-height: 500px;
|
||||
margin-bottom: 12px;
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user