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:
@@ -0,0 +1,20 @@
|
||||
// 把 registry 原版组件复制进 renderer(保持 beautifului.dev 原始源码)
|
||||
import { mkdir, copyFile } from 'node:fs/promises'
|
||||
|
||||
const stage = new URL('./beautifului/stage/', import.meta.url)
|
||||
const root = new URL('../apps/desktop/src/renderer/src/components/', import.meta.url)
|
||||
|
||||
await mkdir(new URL('atoms/', root), { recursive: true })
|
||||
await mkdir(new URL('primitives/', root), { recursive: true })
|
||||
|
||||
const verbatim = [
|
||||
['Button.tsx', 'atoms/Button.tsx'],
|
||||
['GlideMenu.tsx', 'primitives/GlideMenu.tsx'],
|
||||
['LoadingState.tsx', 'primitives/LoadingState.tsx'],
|
||||
['ApprovalCard.tsx', 'primitives/ApprovalCard.tsx']
|
||||
]
|
||||
|
||||
for (const [from, to] of verbatim) {
|
||||
await copyFile(new URL(from, stage), new URL(to, root))
|
||||
console.log('copied', from, '->', to)
|
||||
}
|
||||
Reference in New Issue
Block a user