Remove Cloudflare quick upload section from custom form

This commit is contained in:
thePR0M3TH3AN committed 2025-09-27 22:50:14 -04:00
1 parent c851abc989
commit 3e083336b3
1 file changed
-100
-100
View File
@@ -147,106 +147,6 @@
cost control.
</p>
</div>
<details
id="quickR2Section"
class="rounded-md border border-gray-800 bg-gray-900/60 p-4"
>
<summary class="cursor-pointer text-sm font-semibold text-gray-200">
Optional: Upload directly to Cloudflare R2
</summary>
<div class="mt-3 space-y-4 text-sm text-gray-300">
<p class="text-xs text-gray-400">
Supply your Cloudflare credentials to upload in-browser. Keys
stay on this device unless you opt in to remember them.
</p>
<div class="grid gap-3 md:grid-cols-2">
<label class="block text-xs font-medium text-gray-300">
Account ID
<input
id="quickR2AccountId"
type="text"
autocomplete="off"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="023e105f4ecef8ad9ca31a8372d0c353"
/>
</label>
<label class="block text-xs font-medium text-gray-300">
S3 Access Key ID
<input
id="quickR2AccessKeyId"
type="text"
autocomplete="off"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</label>
<label class="block text-xs font-medium text-gray-300">
S3 Secret Access Key
<input
id="quickR2SecretAccessKey"
type="password"
autocomplete="off"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</label>
<label class="block text-xs font-medium text-gray-300">
Cloudflare API Token (R2 write)
<input
id="quickR2ApiToken"
type="password"
autocomplete="off"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Token with Workers R2 Storage Write"
/>
</label>
<label class="block text-xs font-medium text-gray-300">
Custom domain (optional)
<input
id="quickR2CustomDomain"
type="text"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="media.example.com"
/>
</label>
<label class="block text-xs font-medium text-gray-300">
Zone ID (for custom domain)
<input
id="quickR2ZoneId"
type="text"
autocomplete="off"
class="mt-1 w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</label>
</div>
<div class="flex flex-wrap items-center gap-4 text-xs text-gray-300">
<label class="inline-flex items-center gap-2">
<input id="quickR2Remember" type="checkbox" class="h-4 w-4 rounded border-gray-600 bg-gray-800 text-blue-500 focus:ring-blue-500" />
Remember keys on this device
</label>
<label class="inline-flex items-center gap-2">
<input id="quickR2AllowManaged" type="checkbox" class="h-4 w-4 rounded border-gray-600 bg-gray-800 text-blue-500 focus:ring-blue-500" checked />
Allow r2.dev fallback when no custom domain
</label>
</div>
<div class="flex flex-wrap items-center gap-3">
<input
id="quickR2File"
type="file"
class="w-full max-w-xs rounded-md border border-dashed border-gray-600 bg-gray-900 px-3 py-2 text-xs text-gray-300 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500"
accept="video/*,application/vnd.apple.mpegurl,application/dash+xml"
/>
<button
id="quickR2UploadButton"
type="button"
class="rounded-md bg-blue-500 px-4 py-2 text-xs font-semibold text-white transition hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500"
>
Upload to R2
</button>
</div>
<p id="quickR2Status" class="text-xs text-gray-400" role="status"></p>
</div>
</details>
<div>
<label
for="uploadThumbnail"