@@ -106,8 +146,66 @@ export default function StatusPage({ config }: StatusPageProps) {
{stats.errors}
+
+ {/* Media switch buttons if media set is detected */}
+ {(() => {
+ // Media set detection logic (copied from DeviceDetailOverlay)
+ const url = activeDevice.url;
+ if (!url) return null;
+ const match = url.match(/^(.+?)(\d+)(\.[^.]+)$/);
+ if (!match) return null;
+ const [, prefix, num, ext] = match;
+ const currentNum = parseInt(num);
+ const mediaSet = [];
+ for (let i = 1; i <= 10; i++) {
+ mediaSet.push(`${prefix}${i}${ext}`);
+ }
+ return (
+
+ {mediaSet.map((file, idx) => (
+
+ ))}
+
+ );
+ })()}