Commit Graph

2 Commits

Author SHA1 Message Date
TerryM
9b6539ff71 feat(category): add branded icons for contract-address and data-records
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 41s
Backend zh-CN /api/categories now returns two new categories:
  id=17 slug=contract-address  (合约地址)
  id=18 slug=data-records      (数据收录)

Export the matching gold-tone PNGs from Figma and wire them into
slugToAsset so CategoryIcon serves the branded artwork instead of
falling back to the lucide iconKey (folder / play). en locale still
returns 13 categories, so English users will pick this up once the
backend ships translations for the two new entries.
2026-06-08 00:35:27 +08:00
TerryM
0733ea8b18 feat(category-icon): 分类图标支持 PNG 资源,学院类目改用 PNG
categorySvgUrlForSlug → categoryAssetUrlForSlug,映射值改为带子目录
的相对路径(svg/ 或 png/),新增 academy-materials / academy-video
的 PNG 图标并兼容拼写别名 acedemy-video。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 17:34:18 +08:00