feat: enhance UI components and application features
Add new shadcn/ui components (popover, tabs, tooltip) and improve multiple application modules including chat, query-view, and studio. Update dependencies and refactor code for better user experience.
This commit is contained in:
29
web/.github/prompts/astro.prompt.md
vendored
29
web/.github/prompts/astro.prompt.md
vendored
@@ -1,5 +1,32 @@
|
||||
---
|
||||
agent: agent
|
||||
tags: ["astro", "react", "tailwindcss", "shadcn/ui", "typescript"]
|
||||
createdAt: 2026-01-03
|
||||
---
|
||||
当前项目使用的是astro和react,使用了tailwindcss,和shadcn/ui组件库。都已经安装好了。
|
||||
|
||||
# 项目技术栈和上下文
|
||||
|
||||
## 核心框架和库
|
||||
- **Astro** - 静态站点生成框架,用于构建高性能网站
|
||||
- **React** - 用于构建交互式 UI 组件
|
||||
- **TypeScript** - 项目使用 TypeScript 编写,有 tsconfig.json 配置
|
||||
|
||||
## UI 和样式
|
||||
- **TailwindCSS** - CSS 框架,已集成
|
||||
- **shadcn/ui** - 高质量 React 组件库,已安装
|
||||
|
||||
## 项目结构特点
|
||||
- 使用 pnpm 工作区管理
|
||||
- `src/` 目录包含主要源代码
|
||||
- `apps/` - 应用模块(chat、cv、studio、query-view 等)
|
||||
- `components/` - React组件
|
||||
- `pages/` - Astro 页面
|
||||
- `layouts/` - Astro 布局
|
||||
- `slides/` - 演示幻灯片内容
|
||||
|
||||
## 开发指南
|
||||
- 修改代码时遵循项目现有的代码结构和命名约定
|
||||
- React 组件通常使用 `.tsx` 后缀
|
||||
- Astro 组件使用 `.astro` 后缀
|
||||
- 样式优先使用 TailwindCSS 类
|
||||
- 复用已有的 shadcn/ui 组件库中的组件
|
||||
|
||||
Reference in New Issue
Block a user