mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 16:10:50 +00:00
* Codex worktree snapshot: startup-cleanup Co-authored-by: Codex * fix(browser): close malformed proxy connections without a reply * feat(browser): embed host browsing in terminal side panels * style(browser): blend compact browser chrome into terminal panels * feat(browser): open terminal links internally with a system browser preference * fix(browser): retain the first terminal link during panel mount replay * fix(browser): release contexts when their split pane closes * style(browser): remove the downloads panel shadow * fix(browser): ignore late downloads after panel closure * fix(browser): mount browser content on terminal auto-open * fix(browser): preserve empty-vault recovery with bookmarks * fix(browser): expose actions for supported terminal types * fix(browser): retain open requests before the panel mounts * fix(browser): align vault actions with supported hosts * fix(browser): share download controls across host contexts * fix(browser): keep vault browser requests on visible sessions * fix(browser): release contexts after workspace detach * fix(browser): enforce WebRTC routing on page contents * fix(browser): skip unsupported sessions in open requests * style(browser): encode glyphs in ASCII-safe source
17 lines
747 B
TypeScript
17 lines
747 B
TypeScript
import React from 'react';
|
|
import { useHostBrowserPanel } from '../application/state/useHostBrowserPanel';
|
|
import { useI18n } from '../application/i18n/I18nProvider';
|
|
|
|
export function HostBrowserSidePanel(props: Parameters<typeof useHostBrowserPanel>[0]) {
|
|
const { elementRef, error, retry } = useHostBrowserPanel(props);
|
|
const { t } = useI18n();
|
|
return (
|
|
<div ref={elementRef} className="relative h-full min-h-0 w-full overflow-hidden" data-section="host-browser-panel" data-browser-host-id={props.host.id}>
|
|
{error && <div className="p-4 text-sm text-muted-foreground">
|
|
<p>{error}</p>
|
|
<button type="button" className="mt-3 text-primary" onClick={retry}>{t('common.retry')}</button>
|
|
</div>}
|
|
</div>
|
|
);
|
|
}
|