Convert admin panel to svelte

This commit is contained in:
2021-05-25 22:15:29 +02:00
parent c0045fa9d0
commit 74defb0cf0
18 changed files with 492 additions and 267 deletions

View File

@@ -65,10 +65,10 @@ func adType() (banner, floater int) {
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
}
switch i := rand.Intn(4); i {
case 0, 1, 2: // 75%
switch i := rand.Intn(3); i {
case 0, 1: // 66%
floater = propellerFloat
case 3: // 25%
case 2: // 33%
floater = adSterraFloat
default:
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))