tweak code style

This commit is contained in:
iacore
2024-02-17 17:00:33 +00:00
parent 890490b45a
commit ff1fdd8456
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package doc
var PresetProxies = []string{
// the list of proxies on /settings
var BuiltinProxyList = []string{
"https://pximg.exozy.me",
"https://pixiv.ducks.party",
"https://***.nyan.xyz",
+1 -1
View File
@@ -83,7 +83,7 @@ func setLogout(c *fiber.Ctx) error {
func SettingsPage(c *fiber.Ctx) error {
return c.Render("pages/settings", fiber.Map{
"Proxies": doc.PresetProxies,
"ProxyList": doc.BuiltinProxyList,
})
}
+1 -1
View File
@@ -36,7 +36,7 @@
<h2>Image proxy server</h2>
<div class="form-field">
<form action="/settings/image_server" method="post">
{{ range Proxies }}
{{ range ProxyList }}
<label>
<input type="radio" name="image-proxy" required="true" value="{{.}}" />
{{.}}