mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-29 19:52:54 +01:00
Yaak Proxy: HTTPS decryption UI, and Info and Body in the card's tabs
The strip, quiet encrypted rows, warning rows for refused handshakes, the encrypted card with named actions, trust at the first Decrypt, the toast with Undo and Reconnect, the pill's Decrypt everything switch, Settings' Decryption section, the Encrypted sidebar row, and two-step setup. Both body tabs read Body with a type badge; Info leads the request half with the timeline folded in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5148b0f0ba
commit
b0425069f4
43 files changed
+3019
-586
No files matched your search
@@ -98,6 +98,8 @@ export interface DropdownProps {
|
||||
fullWidth?: boolean;
|
||||
hotKeyAction?: HotkeyAction;
|
||||
onOpen?: () => void;
|
||||
/** The menu closed, however it was closed */
|
||||
onClose?: () => void;
|
||||
}
|
||||
|
||||
export interface DropdownRef {
|
||||
@@ -117,7 +119,7 @@ const openAtom = atom<string | null>(null);
|
||||
const openStore = createStore();
|
||||
|
||||
export const Dropdown = forwardRef<DropdownRef, DropdownProps>(function Dropdown(
|
||||
{ children, items, hotKeyAction, fullWidth, onOpen }: DropdownProps,
|
||||
{ children, items, hotKeyAction, fullWidth, onOpen, onClose }: DropdownProps,
|
||||
ref,
|
||||
) {
|
||||
const id = useRef(generateId());
|
||||
@@ -129,9 +131,10 @@ export const Dropdown = forwardRef<DropdownRef, DropdownProps>(function Dropdown
|
||||
const newIsOpen = globalOpenId === id.current;
|
||||
if (newIsOpen !== isOpen) {
|
||||
setIsOpen(newIsOpen);
|
||||
if (!newIsOpen) onClose?.();
|
||||
}
|
||||
});
|
||||
}, [isOpen]);
|
||||
}, [isOpen, onClose]);
|
||||
|
||||
// const [isOpen, _setIsOpen] = useState<boolean>(false);
|
||||
const [defaultSelectedIndex, setDefaultSelectedIndex] = useState<number | null>(null);
|
||||
|
||||
Reference in new issue
Block a user