From 0f281567f76553c5e22a3e4da650d035443779cf Mon Sep 17 00:00:00 2001 From: tck Date: Thu, 19 Mar 2026 09:45:29 +0800 Subject: [PATCH] feat(quick-4): add remote-hd display mode for port 9999 - Add 'remote-hd' to DisplayMode type alongside 'kiosk' and 'remote' - Update useDisplayMode() to return 'remote-hd' for port 9999 - Update getDisplayMode() to return 'remote-hd' for port 9999 - Port 9090 continues to return 'remote' - All other ports return 'kiosk' (default) --- sample_interface/src/app/hooks/useDisplayMode.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sample_interface/src/app/hooks/useDisplayMode.ts b/sample_interface/src/app/hooks/useDisplayMode.ts index c96971840..30900428e 100644 --- a/sample_interface/src/app/hooks/useDisplayMode.ts +++ b/sample_interface/src/app/hooks/useDisplayMode.ts @@ -1,6 +1,6 @@ import { useMemo } from 'react'; -export type DisplayMode = 'kiosk' | 'remote'; +export type DisplayMode = 'kiosk' | 'remote' | 'remote-hd'; export function useDisplayMode(): DisplayMode { return useMemo(() => { @@ -10,6 +10,10 @@ export function useDisplayMode(): DisplayMode { const port = window.location.port; + if (port === '9999') { + return 'remote-hd'; + } + if (port === '9090') { return 'remote'; } @@ -25,6 +29,10 @@ export function getDisplayMode(): DisplayMode { const port = window.location.port; + if (port === '9999') { + return 'remote-hd'; + } + if (port === '9090') { return 'remote'; }