mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update AppImage
This commit is contained in:
@@ -225,6 +225,12 @@ export function ScriptTerminalModal({
|
|||||||
}}
|
}}
|
||||||
onWebInteraction={handleWebInteraction}
|
onWebInteraction={handleWebInteraction}
|
||||||
onWebSocketCreated={handleWebSocketCreated}
|
onWebSocketCreated={handleWebSocketCreated}
|
||||||
|
onTerminalOutput={() => {
|
||||||
|
setIsWaitingNextInteraction(false)
|
||||||
|
if (waitingTimeoutRef.current) {
|
||||||
|
clearTimeout(waitingTimeoutRef.current)
|
||||||
|
}
|
||||||
|
}}
|
||||||
isScriptModal={true}
|
isScriptModal={true}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ type TerminalPanelProps = {
|
|||||||
initMessage?: Record<string, any>
|
initMessage?: Record<string, any>
|
||||||
onWebInteraction?: (interaction: any) => void
|
onWebInteraction?: (interaction: any) => void
|
||||||
onWebSocketCreated?: (ws: WebSocket) => void
|
onWebSocketCreated?: (ws: WebSocket) => void
|
||||||
|
onTerminalOutput?: () => void
|
||||||
isScriptModal?: boolean
|
isScriptModal?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,6 +143,7 @@ export function TerminalPanel({
|
|||||||
initMessage,
|
initMessage,
|
||||||
onWebInteraction,
|
onWebInteraction,
|
||||||
onWebSocketCreated,
|
onWebSocketCreated,
|
||||||
|
onTerminalOutput,
|
||||||
isScriptModal = false,
|
isScriptModal = false,
|
||||||
}: TerminalPanelProps) {
|
}: TerminalPanelProps) {
|
||||||
const [terminals, setTerminals] = useState<TerminalInstance[]>([])
|
const [terminals, setTerminals] = useState<TerminalInstance[]>([])
|
||||||
@@ -460,6 +462,10 @@ export function TerminalPanel({
|
|||||||
// Not JSON, it's regular terminal output
|
// Not JSON, it's regular terminal output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (onTerminalOutput) {
|
||||||
|
onTerminalOutput()
|
||||||
|
}
|
||||||
|
|
||||||
term.write(event.data)
|
term.write(event.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user