Added some info in the settings page

This commit is contained in:
VnPower 2023-07-06 10:27:00 +07:00
parent 7765343913
commit e3e966dd0e
Signed by: vnpower
GPG key ID: 881DE3DEB966106C

View file

@ -1,42 +1,70 @@
<div class="container">
<h2>Settings</h2>
{{ if isset(Message) }}
{{ Message }}
{{ end }}
<form action="/settings/token" method="post">
<fieldset class="settings-fieldset">
<legend>Custom token</legend>
<p>Experimental, set this to enable the landing page. Proceed with caution.</p>
<input type="text" name="token" autocomplete="off" />
<input type="submit" value="Apply" />
</fieldset>
</form>
<h2>Settings</h2>
{{ if isset(Message) }} {{ Message }} {{ end }}
<form action="/settings/token" method="post">
<fieldset class="settings-fieldset">
<form action="/settings/image_server" method="post">
<legend>Image proxy server</legend>
<input type="radio" name="image-proxy" id="image-proxy" value="i.pixiv.cat" />
<label for="image-proxy">i.pixiv.cat</label>
<br />
<input type="radio" name="image-proxy" id="image-proxy" value="px2.rainchan.win" />
<label for="image-proxy">px2.rainchan.win</label>
<br />
<input type="radio" name="image-proxy" id="image-proxy" value="px3.rainchan.win" />
<label for="image-proxy">px3.rainchan.win</label>
<br />
<input type="radio" name="image-proxy" id="image-proxy" value="px.s.rainchan.win" />
<label for="image-proxy">px.s.rainchan.win</label>
<br />
<br />
<input type="submit" value="Apply" />
</form>
<form action="/settings/image_server" method="post">
<label for="image-proxy">Custom image proxy server</label>
<br />
<input type="text" name="image-proxy" id="image-proxy" placeholder="Paste the address here..."
autocomplete="off" />
<br />
<input type="submit" value="Apply" />
</form>
<legend>Custom token</legend>
<p>
Experimental, set this to enable the landing page. Proceed with caution.
</p>
<p>
You will get logged out automatically after 1 day or when the server
restarts.
</p>
<input type="text" name="token" autocomplete="off" />
<input type="submit" value="Apply" />
</fieldset>
</form>
<fieldset class="settings-fieldset">
<form action="/settings/image_server" method="post">
<legend>Image proxy server</legend>
<input
type="radio"
name="image-proxy"
id="image-proxy"
value="i.pixiv.cat"
/>
<label for="image-proxy">i.pixiv.cat</label>
<br />
<input
type="radio"
name="image-proxy"
id="image-proxy"
value="px2.rainchan.win"
/>
<label for="image-proxy">px2.rainchan.win</label>
<br />
<input
type="radio"
name="image-proxy"
id="image-proxy"
value="px3.rainchan.win"
/>
<label for="image-proxy">px3.rainchan.win</label>
<br />
<input
type="radio"
name="image-proxy"
id="image-proxy"
value="px.s.rainchan.win"
/>
<label for="image-proxy">px.s.rainchan.win</label>
<br />
<br />
<input type="submit" value="Apply" />
</form>
<form action="/settings/image_server" method="post">
<label for="image-proxy">Custom image proxy server</label>
<br />
<input
type="text"
name="image-proxy"
id="image-proxy"
placeholder="Paste the address here..."
autocomplete="off"
/>
<br />
<input type="submit" value="Apply" />
</form>
</fieldset>
</div>