Switch qrunproxy to generated mock show, remove show.json

This commit is contained in:
Ian Gulliver
2026-02-20 20:23:34 -07:00
parent 287ca83724
commit 4e2135f483
4 changed files with 3 additions and 204 deletions

View File

@@ -1,9 +1,6 @@
package main
import (
"encoding/json"
"fmt"
)
import "fmt"
type Show struct {
Tracks []*Track `json:"tracks"`
@@ -39,18 +36,6 @@ type TriggerTarget struct {
Hook string `json:"hook"`
}
func loadMockShow() (*Show, error) {
buf, err := staticFS.ReadFile("static/show.json")
if err != nil {
return nil, err
}
var show Show
if err := json.Unmarshal(buf, &show); err != nil {
return nil, err
}
return &show, nil
}
func isValidEventForBlock(block *Block, event string) bool {
if block.Type == "cue" {
return event == "GO"