feat: vibe-registry M1 — 万物皆注册框架骨架
- core: registerLayout/Widget/Action(泛型)/Schema + 校验闸门 - definePage: 页面只管业务,结构来自注册表 - presets: admin / app-shell 预设布局(vr add 物化) - cli: vr list/add/update 防覆盖 - examples/qa-orchestrator: 实战编排验证(workspace:* 依赖)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* 预设布局:app-shell(通用应用外壳)
|
||||
*
|
||||
* ⚠️ 此文件由 vibe-registry 物化而来:vr add app-shell 会将其拷贝为
|
||||
* 项目的 registry/layouts/app-shell.ts —— 之后它就是你的源码,可随意修改。
|
||||
* 升级用 vr update,不会静默覆盖你的改动(防覆盖)。
|
||||
*/
|
||||
import { registerLayout } from 'vibe-registry'
|
||||
|
||||
export default registerLayout({
|
||||
kind: 'layout',
|
||||
id: 'app-shell',
|
||||
slots: ['header', 'content'],
|
||||
description: '通用应用外壳:顶栏 + 内容区(营销/简单页面)',
|
||||
preview: {
|
||||
title: 'App Shell · 通用外壳',
|
||||
demoBlocks: [
|
||||
{ slot: 'header', widget: 'page-header', props: { title: '欢迎' } },
|
||||
{ slot: 'content', widget: 'hero-banner' },
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user