Files
ersatztv/design-system/templates/chicorytv-admin/data.js
T
timothy 8b9a7ed541
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (push) Has been skipped
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (push) Has been skipped
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 6m23s
Build ErsatzTV Image / Functional E2E (curl contracts) (push) Successful in 14m21s
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 19m9s
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 12m1s
feat(414): stamp immutable Channel.Origin (auto-tuned vs user-created) and surface it (#575)
Co-authored-by: Timothy <timothy.look@gmail.com>
Co-committed-by: Timothy <timothy.look@gmail.com>
2026-07-23 18:12:25 +00:00

131 lines
10 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Mock data for the ChicoryTV admin UI kit — vocabulary mirrors ErsatzTV
// (channels, streaming modes, FFmpeg profiles, playouts, schedules, libraries).
window.CTV_DATA = {
channels: [
{ num: "1.1", name: "Retro Cartoons", group: "Cartoons", lang: "English", mode: "HLS Segmenter", profile: "1080p H.264", live: true, enabled: true, epg: true, playouts: 1 },
{ num: "1.2", name: "Anime Block", group: "Cartoons", lang: "Japanese",mode: "HLS Segmenter", profile: "1080p H.264", live: false, enabled: true, epg: true, playouts: 1 },
{ num: "2.1", name: "News 24", group: "News", lang: "English", mode: "HLS Segmenter", profile: "720p H.264", live: true, enabled: true, epg: true, playouts: 1 },
{ num: "3.1", name: "Late Night Movies",group: "Movies", lang: "English", mode: "MPEG-TS", profile: "1080p HEVC", live: false, enabled: true, epg: true, playouts: 1 },
{ num: "7.3", name: "Sci-Fi Marathon", group: "Movies", lang: "English", mode: "MPEG-TS", profile: "1080p H.264", live: false, enabled: true, epg: false, playouts: 1, origin: "AutoTuned" },
{ num: "4.2", name: "Music Videos", group: "Music", lang: "English", mode: "HLS Segmenter", profile: "720p H.264", live: true, enabled: true, epg: true, playouts: 1, origin: "AutoTuned" },
{ num: "5.1", name: "Nature Docs", group: "Docs", lang: "Spanish", mode: "HLS Direct", profile: "—", live: false, enabled: true, epg: true, playouts: 0 },
{ num: "9.1", name: "Kids Block", group: "Kids", lang: "French", mode: "HLS Segmenter", profile: "720p H.264", live: true, enabled: true, epg: true, playouts: 1 },
{ num: "12.1", name: "Test Pattern", group: "System", lang: "English", mode: "MPEG-TS", profile: "480p H.264", live: false, enabled: false, epg: false, playouts: 1 },
],
playoutItems: [
{ start: "20:00:00", finish: "20:24:00", title: "Looney Tunes — Rabbit Fire", dur: "00:24:00", kind: "content" },
{ start: "20:24:00", finish: "20:24:30", title: "Station ID — Retro Bumper", dur: "00:00:30", kind: "filler" },
{ start: "20:24:30", finish: "20:48:30", title: "Tom & Jerry — The Cat Concerto", dur: "00:24:00", kind: "content" },
{ start: "20:48:30", finish: "20:52:30", title: "Retro Ad Break (4 spots)", dur: "00:04:00", kind: "filler" },
{ start: "20:52:30", finish: "21:16:30", title: "Popeye — Sindbad the Sailor", dur: "00:24:00", kind: "content" },
{ start: "21:16:30", finish: "21:17:00", title: "Station ID — Retro Bumper", dur: "00:00:30", kind: "filler" },
{ start: "21:17:00", finish: "21:47:00", title: "The Flintstones — The Big Bank", dur: "00:30:00", kind: "content" },
],
schedules: [
{ name: "Prime Time Cartoons", items: 14, mode: "Multiple", pad: "30 min" },
{ name: "Overnight Movies", items: 6, mode: "One", pad: "None" },
{ name: "Music Rotation", items: 22, mode: "Shuffle", pad: "5 min" },
{ name: "Weekend Docs", items: 9, mode: "Ordered", pad: "15 min" },
],
// Media sources — GROUND-UP: libraries grouped under their source connection.
sources: [
{ kind: "Local", name: "Local media", detail: "/media/library", status: "connected", lastScan: "2h ago",
libs: [ { name: "Cartoons", media: "Other Videos", items: 1284, status: "ok" }, { name: "Music Videos", media: "Music Videos", items: 2960, status: "ok" } ] },
{ kind: "Plex", name: "Plex — Living Room", detail: "plex.local:32400", status: "connected", lastScan: "scanning",
libs: [ { name: "Movies", media: "Movies", items: 642, status: "scan", pct: 62 } ] },
{ kind: "Jellyfin", name: "Jellyfin", detail: "jelly.local:8096", status: "connected", lastScan: "5h ago",
libs: [ { name: "TV Shows", media: "Shows", items: 318, status: "ok" } ] },
{ kind: "Emby", name: "Emby", detail: "emby.local:8096", status: "warn", lastScan: "1d ago",
libs: [ { name: "Documentaries", media: "Movies", items: 210, status: "warn" } ] },
],
libraries: [
{ kind: "Local", name: "Cartoons", media: "Other Videos", items: 1284, status: "ok", pct: 100 },
{ kind: "Plex", name: "Movies", media: "Movies", items: 642, status: "scan", pct: 62 },
{ kind: "Jellyfin", name: "TV Shows", media: "Shows", items: 318, status: "ok", pct: 100 },
{ kind: "Local", name: "Music Videos", media: "Music Videos", items: 2960, status: "ok", pct: 100 },
{ kind: "Emby", name: "Documentaries",media: "Movies", items: 210, status: "warn", pct: 100 },
],
activity: [
{ icon: "RefreshCw", tone: "accent", text: "Playout rebuilt for 1.1 Retro Cartoons", time: "2m ago" },
{ icon: "Radio", tone: "ok", text: "Channel 4.2 Music Videos went on air", time: "9m ago" },
{ icon: "Library", tone: "accent", text: "Scan started · Plex Movies", time: "14m ago" },
{ icon: "TriangleAlert", tone: "warn", text: "FFmpeg profile 720p H.264 not normalizing audio", time: "28m ago" },
{ icon: "Check", tone: "ok", text: "XMLTV guide regenerated (128 channels)", time: "41m ago" },
],
// Health checks — real ErsatzTV check titles. status: pass|info|warning|fail
health: [
{ title: "FFmpeg Version", status: "pass", detail: "6.1.1 detected" },
{ title: "Hardware Acceleration", status: "pass", detail: "VAAPI available" },
{ title: "FFmpeg Capabilities", status: "info", detail: "QSV not configured" },
{ title: "Movie Metadata", status: "warning", detail: "12 movies missing metadata" },
{ title: "Zero Duration", status: "warning", detail: "3 items report 00:00:00" },
{ title: "File Not Found", status: "fail", detail: "8 files missing on disk" },
{ title: "Episode Metadata", status: "pass", detail: "All episodes tagged" },
{ title: "VAAPI Driver", status: "pass", detail: "iHD driver loaded" },
],
releaseNotes: {
version: "v26.4.0",
date: "Jun 28, 2026",
items: [
"New: drag-to-reorder schedule items in the redesigned editor.",
"New: dark EPG grid with jump-to-now.",
"Fixed: HLS Segmenter audio drift on some MPEG-TS sources.",
"Changed: channel logos now cache for 24h.",
],
},
// Schedule editor — items (left lineup) with full detail (inspector)
scheduleItems: [
{ id: 1, startType: "Fixed", start: "20:00", collection: "Prime Time Cartoons", collType: "Multi Collection", order: "Shuffle", mode: "Multiple", count: 3, guide: "Normal", durEst: "~1h 12m", pre: true, mid: true, post: false },
{ id: 2, startType: "Dynamic", start: "—", collection: "Retro Station IDs", collType: "Collection", order: "Random", mode: "One", count: 1, guide: "Filler", durEst: "~0m 30s", pre: false, mid: false, post: false },
{ id: 3, startType: "Fixed", start: "20:30", collection: "Classic Shorts", collType: "Smart Collection", order: "Shuffle In Order", mode: "Multiple", count: 2, guide: "Normal", durEst: "~24m", pre: false, mid: true, post: false },
{ id: 4, startType: "Dynamic", start: "—", collection: "Retro Ad Break", collType: "Playlist", order: "Chronological", mode: "One", count: 1, guide: "Filler", durEst: "~4m", pre: false, mid: false, post: false },
{ id: 5, startType: "Fixed", start: "21:00", collection: "Feature Presentation",collType: "Television Show", order: "Season/Episode", mode: "One", count: 1, guide: "Normal", durEst: "~1h 36m", pre: true, mid: false, post: true },
],
// EPG grid — channels (subset) × programmes. offset/span in 30-min slots from grid start.
epgStart: "20:00",
epgSlots: ["20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00"],
epg: [
{ num: "1.1", name: "Retro Cartoons", programmes: [
{ title: "Looney Tunes", sub: "Rabbit Fire", cat: "Animation", offset: 0, span: 1 },
{ title: "Tom & Jerry", sub: "The Cat Concerto", cat: "Animation", offset: 1, span: 1, live: true },
{ title: "Popeye", sub: "Sindbad the Sailor", cat: "Animation", offset: 2, span: 1 },
{ title: "The Flintstones", sub: "The Big Bank", cat: "Animation", offset: 3, span: 2 },
{ title: "Bumper", sub: "Station ID", cat: "Filler", offset: 5, span: 1, filler: true },
]},
{ num: "2.1", name: "News 24", programmes: [
{ title: "World Tonight", sub: "Evening bulletin", cat: "News", offset: 0, span: 2, live: true },
{ title: "Market Watch", sub: "Close of day", cat: "News", offset: 2, span: 1 },
{ title: "Weather", sub: "7-day outlook", cat: "News", offset: 3, span: 1, filler: true },
{ title: "The Interview", sub: "Long form", cat: "Talk", offset: 4, span: 2 },
]},
{ num: "3.1", name: "Late Night Movies", programmes: [
{ title: "Blade Runner", sub: "1982 · Sci-Fi", cat: "Movie", offset: 0, span: 4, live: true },
{ title: "Alien", sub: "1979 · Horror", cat: "Movie", offset: 4, span: 3 },
]},
{ num: "4.2", name: "Music Videos", programmes: [
{ title: "80s Block", sub: "Synthpop hour", cat: "Music", offset: 0, span: 2, live: true },
{ title: "Ad Break", sub: "", cat: "Filler", offset: 2, span: 1, filler: true },
{ title: "90s Block", sub: "Alt rotation", cat: "Music", offset: 3, span: 2 },
{ title: "Chart Countdown", sub: "Top 20", cat: "Music", offset: 5, span: 2 },
]},
{ num: "5.1", name: "Nature Docs", programmes: [
{ title: "Blue Planet", sub: "The Deep", cat: "Documentary", offset: 0, span: 2, live: true },
{ title: "Planet Earth", sub: "Mountains", cat: "Documentary", offset: 2, span: 2 },
{ title: "Bumper", sub: "Station ID", cat: "Filler", offset: 4, span: 1, filler: true },
{ title: "Frozen Planet", sub: "To the Ends", cat: "Documentary", offset: 5, span: 2 },
]},
{ num: "9.1", name: "Kids Block", programmes: [
{ title: "Sesame Street", sub: "Episode 4102", cat: "Kids", offset: 0, span: 2, live: true },
{ title: "Bluey", sub: "Keepy Uppy", cat: "Kids", offset: 2, span: 1 },
{ title: "Ad Break", sub: "", cat: "Filler", offset: 3, span: 1, filler: true },
{ title: "Peppa Pig", sub: "Muddy Puddles", cat: "Kids", offset: 4, span: 3 },
]},
],
};