v0.6.0: beautifului 整合 + 会话/工作区/队列/权限/命令/附件全链路
- beautifului.dev 组件直连:Sidebar Nav、Tool Chips、Approval Card(抽屉化)、Streaming/Thinking、Code Block、Selection Actions、Prompt Bar、Search
This commit is contained in:
+6
-3
@@ -30,6 +30,9 @@
|
||||
|
||||
## beautifului.dev
|
||||
|
||||
- AI 原语组件的**设计参考**(Approval Card、Tool Chips、Task Rows、Streaming Text、Thinking、Prompt Bar 等 21 个)
|
||||
- copy-paste 式分发(类 shadcn),我们按此风格在 `apps/desktop` 内自实现同款组件(React + Tailwind),不引入其付费订阅
|
||||
- GSAP 用于消息入场、卡片展开等动效
|
||||
- AI 原语组件库(21 个原语,MIT 协议,**免费**),通过 shadcn registry copy-paste 式分发——此前「付费订阅、只作设计参考」的判断有误,v0.5.x 起直接接入
|
||||
- **接入方式**:`apps/desktop/components.json` 已配置,`npx shadcn add https://www.beautifului.dev/r/<slug>.json` 即可安装;foundation tokens 在 `src/renderer/src/styles/beautifului.css`(含 `.dark` 暗色 token,`html.dark` 生效),registry JSON 存档在 `scripts/beautifului/`
|
||||
- **已接入**:LoadingState(等待首 token)、ThinkingState(思考轨迹,喂真实文本)、ToolChips(工具调用,喂真实 args/result)、ApprovalCard + GlideMenu(registry 原样可用)、Button(应用审批卡采用其 ghost/success variant)
|
||||
- **适配约定**:组件放 `components/primitives|atoms/`;registry 自带的演示数据/gelato 文案通过新增可选 props(`rows`/`working`/`replay` 等)替换为真实数据,默认行为保持原版
|
||||
- 未引入:PromptBar(依赖 glimm)、SelectionActions(依赖 iconoir-react)、表格/图表类(无对应业务面);需要时按同一 registry 流程加装
|
||||
- GSAP 仍用于消息入场、卡片展开等动效
|
||||
|
||||
Reference in New Issue
Block a user