feat: 优化当日收益计算方式

This commit is contained in:
hzm
2026-03-22 13:51:21 +08:00
parent 270bc3ab08
commit 73ce520573
9 changed files with 338 additions and 26 deletions

28
components/ui/AGENTS.md Normal file
View File

@@ -0,0 +1,28 @@
# components/ui/ — shadcn/ui Primitives
## OVERVIEW
15 shadcn/ui components (new-york style, JSX). Low-level primitives — do NOT modify manually.
## WHERE TO LOOK
```
accordion.jsx button.jsx dialog.jsx drawer.jsx
field.jsx input-otp.jsx label.jsx progress.jsx
radio-group.jsx select.jsx separator.jsx sonner.jsx
spinner.jsx switch.jsx tabs.jsx
```
## CONVENTIONS
- **Add via CLI**: `npx shadcn@latest add <component>` — never copy-paste manually
- **Style**: new-york, CSS variables enabled, neutral base color
- **Icons**: lucide-react
- **Path aliases**: `@/components/ui/*`, `@/lib/utils` (cn helper)
- **forwardRef pattern** — all components use React.forwardRef
- **Styling**: tailwind-merge via `cn()` in `lib/utils.js`
## ANTI-PATTERNS (THIS DIRECTORY)
- **Do not edit** — manual changes will be overwritten by shadcn CLI updates
- **No custom components here** — app-specific components belong in `app/components/`