docs: clarify multi-set and CDN-loaded object icons

This commit is contained in:
2026-08-08 12:47:05 +08:00
parent 9619cc3863
commit f390f170da
+6 -4
View File
@@ -212,11 +212,13 @@ proxy API and `packages/extract` directly for analysis.
- `components/viewers.tsx` — viewer registry (`registerViewer` / - `components/viewers.tsx` — viewer registry (`registerViewer` /
`resolveViewer`) plus a `DefaultViewer` that renders an object's fields; `resolveViewer`) plus a `DefaultViewer` that renders an object's fields;
custom per-class viewers can be registered later. custom per-class viewers can be registered later.
- `components/objectIcons.tsx` — maps TTS object classes to one or more MDI - `components/objectIcons.tsx` — maps TTS object classes to one or more
icons (`iconsForObject`); unknown classes fall back to a help icon. Iconify icons (`iconsForObject`); unknown classes fall back to a help icon.
Icons may come from multiple sets (mdi, material-symbols, file-icons, ...);
names not bundled are fetched from the Iconify CDN at runtime.
- `components/objectIconsData.ts` — generated by - `components/objectIconsData.ts` — generated by
`scripts/generate-object-icons.mjs`; registers only the used MDI icons with `scripts/generate-object-icons.mjs`; registers a small mdi subset with
Iconify's offline storage so the full set isn't bundled. Iconify's offline storage so those render without a network round-trip.
- `stores/searchStore.ts` / `stores/modStore.ts` — Zustand stores for search - `stores/searchStore.ts` / `stores/modStore.ts` — Zustand stores for search
and mod state. and mod state.
- `vite.config.ts` — dev proxy for `/search`, `/items`, `/health` → - `vite.config.ts` — dev proxy for `/search`, `/items`, `/health` →