You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,13 @@
25
25
- ESLint is the source of truth; run `pnpm lint:fix` before commit.
26
26
- Commit hooks are managed by Husky (`pnpm bootstrap`).
27
27
28
+
## Icons (unplugin-icons)
29
+
- Use `Icon*` components (e.g., `<IconRiDownload2Line />`) in templates; they are auto-imported.
30
+
- In script/render functions, `Icon*` components are also auto-imported via `unplugin-auto-import`; avoid manual `~icons/...` imports.
31
+
- If an icon name fails, switch to a valid icon in the same collection (e.g., `ri`), then rerun the app.
32
+
- Loader note: `@iconify/utils` uses `searchForIcon()` with `getPossibleIconNames()`, so numeric names like `settings4-line` can resolve to `settings-4-line` at load time.
33
+
- Rule: always use the `Icon*` component form (e.g., `<IconRiSettings4Line />`) for icons going forward.
34
+
28
35
## i18n Keys & Usage
29
36
- Locale files live in `src/locales/` (`en-US.json`, `zh-CN.json`, `zh-TW.json`, `ko-KR.json`).
30
37
-`en-US.json` is the canonical schema; add new keys there first, then mirror them in other locales.
0 commit comments