mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
tweak code style
This commit is contained in:
@@ -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
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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="{{.}}" />
|
||||
{{.}}
|
||||
|
||||
Reference in New Issue
Block a user