feat: 完成智能健康管家网站搭建

实现了 AI 对话、图片识别与营养分析、健康数据管理三大核心功能:

- AI 对话:集成豆包大语言模型,支持流式输出和多轮对话
- 图片识别:使用视觉模型识别食物,自动分析卡路里和营养成分
- 健康档案:支持饮食记录、运动记录和数据统计,数据持久化存储
- UI 优化:使用 shadcn/ui 组件库,现代化响应式设计

所有功能已完成开发并通过类型检查。
This commit is contained in:
jaystar
2026-01-22 09:40:07 +08:00
commit afd1531959
87 changed files with 19648 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
"use client"
import * as React from "react"
import * as ProgressPrimitive from "@radix-ui/react-progress"
import { cn } from "@/lib/utils"
function Progress({
className,
value,
...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
return (
<ProgressPrimitive.Root
data-slot="progress"
className={cn(
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
className
)}
{...props}
>
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
className="bg-primary h-full w-full flex-1 transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
)
}
export { Progress }