SPB Git

Repository Public

board-nodes.ts 487 B 8 lines typescript

1import type { Dict } from "@/lib/i18n";2import type { NodeRecord } from "@/lib/schemas";3import type { BoardNode } from "./LiveBoard";45/** The static part of a live tile, taken from the inventory (server side). */6export const boardNodes = (nodes: NodeRecord[], t: Dict): BoardNode[] =>7  nodes.map((n) => ({ id: n.id, number: n.number, name: n.publicName, family: n.family, chip: n.chip, cpuCores: n.cpuCores, memoryGB: n.unifiedMemoryGB, familyLabel: t.common.families[n.family] }));8
Files main
Menu

Theme