mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
c76c5a697b
全前端显式 any 计数 2→0:Slot children?: any → ReactNode | MotionValue 联合(motion 真实类型),顺带修复潜在崩溃(原代码在 isValidElement 前访问 children.type,children 缺失时 TypeError,现无效 children 返回 null,hooks 无条件合规);useControlledState Rest extends any[] → unknown[]。两处 eslint-disable no-explicit-any 注释随之删除。 Experiments: #28 Metric: 全前端 any 2 → 0,tsc/eslint/vitest 全绿
Wavelet Frontend
Modern frontend application for the Wavelet scaffold framework.
中文 | English
Tech Stack
- Framework: Next.js 16
- Styling: Tailwind CSS 4
- UI Components: Radix UI
- Icons: Lucide React
- Package Manager: pnpm
Getting Started
Prerequisites
- Node.js (Latest LTS recommended)
- pnpm
Installation
-
Install dependencies:
pnpm install -
Run the development server:
pnpm devOpen http://localhost:3000 (or the port shown in your terminal) with your browser to see the result.
Project Structure
app/: Next.js App Router pages and layoutscomponents/: Reusable UI componentsui/: Base UI components (buttons, inputs, etc.)common/: Shared business components
lib/: Utility functions and service definitionspublic/: Static assets
Scripts
pnpm dev: Start development server with Turbopackpnpm build: Build the application for productionpnpm start: Start production serverpnpm lint: Run ESLint