package templates import "git.maid.zone/stuff/soundcloak/lib/cfg" templ checkbox(name string, checked bool) { if checked { } else { } } type option struct { value string desc string disabled bool } // i hate this // ^ outdated, i no longer hate this templ sel(name string, options []option, selected string) { } templ sel_audio(name string, selected string, noOpus bool) { @sel(name, []option{ {cfg.AudioBest, "Best", noOpus}, {cfg.AudioAAC, "M4A AAC 160kb/s", false}, {cfg.AudioOpus, "OGG Opus 72kb/s", noOpus}, {cfg.AudioMP3, "MP3 128kb/s", false}, }, selected) } templ Preferences(prefs cfg.Preferences) {

Preferences

if cfg.ProxyImages { } if cfg.Restream { } if *prefs.AutoplayNextTrack { } switch *prefs.Player { case cfg.HLSPlayer:

Player-specific preferences

if cfg.ProxyStreams { } case cfg.RestreamPlayer:

Player-specific preferences

}

These preferences get saved in a cookie.

Management

Preferences

Export Reset

}