Code reference detail
phonebook-icons.ts
site/src/lib/phonebook-icons.ts
| Idea | Status | Tags | Summary |
|---|---|---|---|
| phonebook | Canonical project links and publishable npm package URLs live in ["./phonebook.json"]. Modules that need contact, repo, marketplace, or npm package URLs should read from there instead of hardcoding values. Typed access is shared via ["../scripts/phonebook.ts"] for the site and extension README generator. | ||
| phonebook_icons | Icon sets and lookup URLs live under the `icons` key in ["./phonebook.json"]. Each link or package icon references a set id ( `simple-icons`, `mdi`, … ) and slug `name` from that set's catalog. Search a set at its `search` URL when renaming or replacing icons. The site renders icons with Iconify via the packages listed in each set's `package` field per ["../site/reqs/icons.rq"]. Registry: ["../site/src/lib/phonebook-icons.ts"]. | ||
| cta_icon | The hero install control is a single " Install " menu button that opens an editor / download chooser ( Cursor, VS Code, Open VSX, Download VSIX ) — it must not assume the user's editor or pre-select one silently. Each menu row shows the target's icon beside its full label; icons resolve through [phonebook_icon_registry] via the quickstart icon set / name refs in ["../src/content/install-actions.ts"]. per ["./core.rq".components] | ||
| icon_registry | [phonebook_icon_registry] maps phonebook icon keys to bundled Iconify data. Every link and package icon in the phonebook must have a matching registry entry; the module throws at startup if one is missing. When adding or changing an icon in ["../../reqlan rq/phonebook.json"], update the registry import for that slug. | ||
| scope | site icon rendering for phonebook links and CTAs |
Reference labels
../site/src/lib/phonebook-icons.ts, ../src/lib/phonebook-icons.ts, phonebook_icon_registry