返回顶部
o

orbcafe-layout-navigationORBCAFE布局导航

Build ORBCAFE application shell and navigation with CAppPageLayout, NavigationIsland, useNavigationIsland, i18n, markdown renderer, and CPageTransition using official examples patterns. Use for app frame, user menu, locale switching, navigation tree, and route transition UX, especially when UI renders but behavior looks inactive.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
267
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

orbcafe-layout-navigation

ORBCAFE 布局 + 导航

工作流程

  1. 1. 首先对照 skills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是一个 Hook-first 模块。
  2. 执行安装与基础壳层接入。
  3. 使用 references/patterns.md 选择完整壳层或仅导航。
  4. 使用 references/guardrails.md 逐条检查语言环境、水合、菜单动作和动效。
  5. 以官方示例中的布局/提供者/页面骨架为基础产出代码。

安装与引导(必选)

bash
npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs

本仓库联调:

bash
npm run build
cd examples
npm install
npm run dev

参考实现:

  • - examples/app/layout.tsx
  • examples/app/providers.tsx
  • examples/app/components/HomeDemoClient.tsx
  • examples/app/components/StdReportExampleClient.tsx

输出契约

  1. 0. 模式:Hook-first。
  2. 布局决策:完整壳层 vs 仅导航。
  3. 代码片段:最小属性应用框架。
  4. 运行时安全:语言环境、水合、路由高亮安全策略。
  5. 验证:菜单跳转、语言环境切换、用户菜单动作、过渡动画。
  6. 故障排查:至少包含 3 条页面看起来没反应排查项。

基于示例的经验总结

  • - 在 App Router 下优先采用 Server page -> Client page 分层,不在客户端首屏直接消费 Promise 语义路由参数。
  • usePathname 高亮逻辑使用 mounted 防抖策略,避免 SSR/CSR 首帧不一致。
  • CAppPageLayout 内部负责壳层,业务页只注入 menu/user/logo/children,避免重复造壳。
  • CPageTransition 持续使用 160-260ms,仅用 transform/opacity 变换,性能更稳。
  • Providers 层集中挂载 ThemeProvider + LocalizationProvider + GlobalMessage,避免每页重复配置。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 orbcafe-layout-navigation-1776160689 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 orbcafe-layout-navigation-1776160689 技能

通过命令行安装

skillhub install orbcafe-layout-navigation-1776160689

下载

⬇ 下载 orbcafe-layout-navigation v1.0.1(免费)

文件大小: 3.64 KB | 发布时间: 2026-4-15 13:40

v1.0.1 最新 2026-4-15 13:40
- Updated skill description for clarity, emphasizing use for inactive UI behavior troubleshooting.
- Expanded workflow steps to reference official examples, module contracts, and detailed installation/bootstrapping.
- Added mandatory installation and local development instructions.
- Output contract revised to specify "Hook-first" mode, enhanced runtime safety, and require troubleshooting tips.
- Included practical implementation references and experience-based advice for SSR/CSR, menu highlight, and transition effects.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部