add downloading from urls and custom tags to clients.
This commit is contained in:
@@ -105,24 +105,54 @@
|
||||
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-300 mb-2"
|
||||
>Installer Upload</label
|
||||
>
|
||||
<div
|
||||
id="upload-zone"
|
||||
class="border-2 border-dashed border-slate-700 rounded-xl p-6 bg-slate-950/60 hover:border-cyan-500 transition-colors cursor-pointer"
|
||||
>
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="w-12 h-12 rounded-full bg-cyan-900/40 flex items-center justify-center text-cyan-300">
|
||||
<i class="fa-solid fa-cloud-arrow-up"></i>
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-slate-100">Drag & drop an installer</div>
|
||||
<div class="text-sm text-slate-400">or click to select a file</div>
|
||||
</div>
|
||||
</div>
|
||||
<input id="upload-input" type="file" class="hidden" />
|
||||
<!-- Source mode tabs -->
|
||||
<div class="flex gap-1 mb-3 p-1 rounded-lg bg-slate-950/60 border border-slate-800 w-fit">
|
||||
<button id="tab-upload" class="px-4 py-1.5 rounded-md text-sm font-medium bg-slate-700 text-slate-100 transition-colors">
|
||||
<i class="fa-solid fa-cloud-arrow-up mr-1"></i> Upload File
|
||||
</button>
|
||||
<button id="tab-url" class="px-4 py-1.5 rounded-md text-sm font-medium text-slate-400 hover:text-slate-100 transition-colors">
|
||||
<i class="fa-solid fa-link mr-1"></i> File URL
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Upload panel -->
|
||||
<div id="panel-upload">
|
||||
<div
|
||||
id="upload-zone"
|
||||
class="border-2 border-dashed border-slate-700 rounded-xl p-6 bg-slate-950/60 hover:border-cyan-500 transition-colors cursor-pointer"
|
||||
>
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="w-12 h-12 rounded-full bg-cyan-900/40 flex items-center justify-center text-cyan-300">
|
||||
<i class="fa-solid fa-cloud-arrow-up"></i>
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-slate-100">Drag & drop an installer</div>
|
||||
<div class="text-sm text-slate-400">or click to select a file</div>
|
||||
</div>
|
||||
</div>
|
||||
<input id="upload-input" type="file" class="hidden" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- URL panel -->
|
||||
<div id="panel-url" class="hidden">
|
||||
<div class="flex gap-2">
|
||||
<input
|
||||
id="url-input"
|
||||
type="text"
|
||||
placeholder="https://example.com/installer.exe"
|
||||
class="flex-1 px-4 py-2 rounded-lg border border-slate-700 bg-slate-950 text-slate-100 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500"
|
||||
/>
|
||||
<button
|
||||
id="fetch-url-btn"
|
||||
class="px-4 py-2 rounded-lg bg-cyan-700 hover:bg-cyan-600 text-white font-semibold flex items-center gap-2 whitespace-nowrap"
|
||||
>
|
||||
<i class="fa-solid fa-download"></i> Fetch
|
||||
</button>
|
||||
</div>
|
||||
<p class="text-xs text-slate-500 mt-1">The server will download the file and stage it for dispatch.</p>
|
||||
</div>
|
||||
|
||||
<div class="mt-3 text-sm text-slate-400" id="upload-status">
|
||||
No file uploaded yet.
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user