Adds the new shows admin screen and drives schedule from it

This commit is contained in:
kfj001 committed 2026-06-22 04:19:51 +00:00
1 parent e627fe3637
commit eb9a00f21a
28 files changed
+546 -54

No files matched your search

+8
View File
@@ -6,6 +6,7 @@ import { ShowService } from '../services/show.service';
import { Show } from '../interfaces/show';
import { StationConfigService } from '../services/station-config.service';
import { SortSchedulesPipe } from '../pipes/sort-schedules.pipe';
import { getAppConfig } from '../services/app-config.service';
interface ScheduleState {
loading: boolean;
@@ -29,4 +30,11 @@ export class ScheduleComponent {
map((shows) => ({ loading: false, shows })),
startWith({ loading: true, shows: [] }),
);
/** Resolve a relative uploads/… path to an absolute URL for image rendering. */
resolveAsset(url: string | null): string {
if (!url) return '';
if (url.startsWith('http://') || url.startsWith('https://')) return url;
return `${getAppConfig().apiBaseUrl}/${url}`;
}
}