Official
git
Built-in git UI (JavaScript UI plugin).
The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/git@0.3.1
Permissions in 0.3.1
Files
views/layout.ts2 KB
// Source-control layout tokens shared by its pure render functions.
// One grid for the whole panel: every row starts its icon where the
// message box starts its text (a multi-line field insets it 10px) and is
// the same height.
import * as kit from "divergence";
export const INSET = 10;
export const ROW_H = 24;
// Layout for the templates below: a flex column, a row that centres its
// children across, a child that takes the free space (and may shrink below
// its content), the whole of the parent, the hover wash, the hover group of
// something clickable, a popover's lifted card, and the buttons that float
// over the right end of a row while the pointer is on it.
export const column = { display: "flex", flexDirection: "column" } as const;
export const row = { display: "flex", flexDirection: "row", alignItems: "center" } as const;
export const fill = { flexGrow: 1, flexShrink: 1, flexBasis: "0%", minWidth: 0, minHeight: 0 } as const;
export const full = { width: "100%", height: "100%" } as const;
export const HOVER = { background: "hover" } as const;
export const clickable = { group: "hover" } as const;
// The shared surface looks from the runtime; an older runtime without them
// gets the same `elevation`, which its kernel already draws.
const RAISED = kit.RAISED ?? { elevation: "raised" };
export const menuCard = {
...column,
gap: "small",
padding: "small",
// Glass like the prompt box.
background: "card/40",
backdrop: { blur: 6 },
borderRadius: "md",
// Raised like the kernel's own floating layers.
...RAISED,
};
export const hoverActions = {
...row,
gap: 2,
padding: "small",
paddingX: 2,
background: "muted",
borderRadius: "sm",
visibility: "hidden",
groupHover: { group: "hover", visibility: "visible" },
position: "absolute",
top: 0,
bottom: 0,
right: 4,
};
// A row of the panel: the grid every row shares, and the hover wash.
export const panelRow = {
...row,
...clickable,
gap: "medium",
padding: "small",
paddingX: INSET,
height: ROW_H,
borderRadius: "sm",
hover: HOVER,
};
No comments yet.