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}
|
||||
onWebSocketCreated={handleWebSocketCreated}
|
||||
onTerminalOutput={() => {
|
||||
setIsWaitingNextInteraction(false)
|
||||
if (waitingTimeoutRef.current) {
|
||||
clearTimeout(waitingTimeoutRef.current)
|
||||
}
|
||||
}}
|
||||
isScriptModal={true}
|
||||
/>
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ type TerminalPanelProps = {
|
||||
initMessage?: Record<string, any>
|
||||
onWebInteraction?: (interaction: any) => void
|
||||
onWebSocketCreated?: (ws: WebSocket) => void
|
||||
onTerminalOutput?: () => void
|
||||
isScriptModal?: boolean
|
||||
}
|
||||
|
||||
@@ -142,6 +143,7 @@ export function TerminalPanel({
|
||||
initMessage,
|
||||
onWebInteraction,
|
||||
onWebSocketCreated,
|
||||
onTerminalOutput,
|
||||
isScriptModal = false,
|
||||
}: TerminalPanelProps) {
|
||||
const [terminals, setTerminals] = useState<TerminalInstance[]>([])
|
||||
@@ -460,6 +462,10 @@ export function TerminalPanel({
|
||||
// Not JSON, it's regular terminal output
|
||||
}
|
||||
|
||||
if (onTerminalOutput) {
|
||||
onTerminalOutput()
|
||||
}
|
||||
|
||||
term.write(event.data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user