Files
mdg-filius/packages/editor/src/canvas/icons.ts
T
julian.kiedaischandClaude Opus 5.5 6e97e3565d feat(editor): F4.5e a router's connections in the device sheet
SheetRun now clicks through Java's JConnectionsDialog with a router, a
computer and a switch cabled in the GUIContainer: a click marks a card,
the same click unmarks it, another card swaps the cables or moves the
one; "+" adds 192.168.0.10/24 up to eight cards, "-" removes the last
card with its cable down to none, and a router without a card keeps no
gateway.

The document adds, removes and swaps a router's cards (the same cables,
the same devices), Java's click logic is one function for the test and
the page, and the sheet names the address at a cable's far end. The
page "Verbindungen verwalten" shows Java's RJ45 buttons in Java's
colours with each card's far end below. Not adopted: the last card
stays. A card tab or a mark whose card is undone away falls back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:12:27 +00:00

18 lines
853 B
TypeScript

// Java FILIUS' own hardware icons (GPL, src/main/resources/gfx/hardware),
// so that teachers recognise their worksheets (plan §7.1).
import cloud from '../assets/hardware/cloud.png';
import gateway from '../assets/hardware/gateway.png';
import laptop from '../assets/hardware/laptop.png';
import modem from '../assets/hardware/modem.png';
import router from '../assets/hardware/router.png';
import server from '../assets/hardware/server.png';
import rj45 from '../assets/hardware/rj45.png';
import networkSwitch from '../assets/hardware/switch.png';
import type { IconName } from './layout.js';
export const ICON_URLS: Readonly<Record<IconName, string>> = { cloud, gateway, laptop, modem, router, server, switch: networkSwitch };
/** A card's socket, on the buttons of a router's connections (JConnectionsDialog). */
export const RJ45_URL = rj45;