Update generator form for supported formats and Never expiry
- Remove WebP and AVIF options (encoding not supported) - Add GIF option (encoding is supported) - Add 'Never' TTL option as default
This commit is contained in:
parent
b55b75cbe7
commit
37af10cc2b
@ -106,10 +106,9 @@
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
||||
>
|
||||
<option value="orig" {{if eq .FormFormat "orig"}}selected{{end}}>Original</option>
|
||||
<option value="webp" {{if eq .FormFormat "webp"}}selected{{end}}>WebP</option>
|
||||
<option value="jpeg" {{if eq .FormFormat "jpeg"}}selected{{end}}>JPEG</option>
|
||||
<option value="png" {{if eq .FormFormat "png"}}selected{{end}}>PNG</option>
|
||||
<option value="avif" {{if eq .FormFormat "avif"}}selected{{end}}>AVIF</option>
|
||||
<option value="gif" {{if eq .FormFormat "gif"}}selected{{end}}>GIF</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
@ -154,10 +153,11 @@
|
||||
name="ttl"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
||||
>
|
||||
<option value="0" {{if or (eq .FormTTL "0") (eq .FormTTL "")}}selected{{end}}>Never</option>
|
||||
<option value="3600" {{if eq .FormTTL "3600"}}selected{{end}}>1 hour</option>
|
||||
<option value="86400" {{if eq .FormTTL "86400"}}selected{{end}}>1 day</option>
|
||||
<option value="604800" {{if eq .FormTTL "604800"}}selected{{end}}>1 week</option>
|
||||
<option value="2592000" {{if or (eq .FormTTL "2592000") (eq .FormTTL "")}}selected{{end}}>30 days</option>
|
||||
<option value="2592000" {{if eq .FormTTL "2592000"}}selected{{end}}>30 days</option>
|
||||
<option value="31536000" {{if eq .FormTTL "31536000"}}selected{{end}}>1 year</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user