mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 07:53:54 +01:00
Decouple Tree from client app's hotkey system by adding getSelectedItems() to TreeHandle and having callers register hotkeys externally. Extract shared action callbacks to eliminate duplication between hotkey and context menu handlers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
import { createModelStore } from "@yaakapp-internal/model-store";
|
|
import type { HttpExchange } from "@yaakapp-internal/proxy-lib";
|
|
|
|
type ProxyModels = {
|
|
http_exchange: HttpExchange;
|
|
};
|
|
|
|
export const { dataAtom, applyChange, replaceAll, listAtom, orderedListAtom } =
|
|
createModelStore<ProxyModels>(["http_exchange"]);
|
|
|
|
export const httpExchangesAtom = orderedListAtom(
|
|
"http_exchange",
|
|
"createdAt",
|
|
"desc",
|
|
);
|