eisland-dev-add-guide-step

Featured

创建 eIsland 引导配置窗口的新步骤页面。当用户要求在引导界面(Guide)中新增配置步骤、引导页面、引导分页时使用此 skill。 触发关键词:guide 步骤、引导页面、引导分页、Guide step、新建引导页、添加引导配置。 适用于 src/renderer/components/components/ 目录下的 Guide 模块。

Web & Frontend 312 stars 16 forks Updated today GPL-3.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Guide Step — 引导配置步骤创建 ## 概述 eIsland 引导配置窗口采用分步架构,每个步骤是一个独立模块,位于 `src/renderer/components/components/Guide/<stepName>/`。 ## 目录结构 每个步骤模块必须包含以下子目录(参考已有的 `language` 和 `smtc` 步骤): ``` Guide/<stepName>/ ├── index.ts # 公共导出(仅导出主组件) ├── components/<StepName>.tsx # 步骤组件 ├── config/<stepName>Config.ts # 常量配置 ├── hooks/use<StepName>.ts # 逻辑 Hook ├── types/index.ts # 类型定义(Props 等) └── utils/ # 工具函数(可为空占位) ``` ## 创建步骤 ### 1. 创建目录与文件 在 `src/renderer/components/components/Guide/<stepName>/` 下创建完整模块结构。 ### 2. 类型定义 (`types/index.ts`) 所有步骤组件必须接受 `StepProps`,包含 `onNext` 和 `onPrev` 回调: ```typescript export interface XxxStepProps { onNext: () => void; onPrev: () => void; } ``` ### 3. Hook (`hooks/useXxx.ts`) 将业务逻辑抽离到 Hook 中,组件只负责渲染。Hook 返回状态和操作函数。 ### 4. 组件 (`components/XxxStep.tsx`) 组件使用标准布局结构: ```tsx export function XxxStep({ onNext, onPrev }: XxxStepProps): ReactElement { const { t } = useTranslation(); return ( <div className="guide-step"> <div className="guide-step-header"> <h2>{t('guide.xxx.title')}</h2> <p>{t('guide.xxx.subtitle')}</p> </div> {/* 步骤内容区域 */} <div className="guide-xxx-content"> {/* ... */} </div> <div className="guide-step-footer"> <button className="guide-prev-btn" onClick={onPrev}> {t('guide.actions.prev')} </button> <button className="guide-next-btn" onClick={onNext}> {t('guide.a...

Details

Author
JNTMTMTM
Repository
JNTMTMTM/eIsland
Created
5 months ago
Last Updated
today
Language
TypeScript
License
GPL-3.0

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Featured

eisland-dev-add-maxexpand-tab

为 eIsland 灵动岛的 MaxExpand(全展开)模式添加一个新的 Tab 页面。当用户要求创建新的 MaxExpand 页面、添加全展开界面组件(如计算器、时钟、天气面板、便签、日历等)时使用此 skill。 即使用户只说"新建一个 maxexpand 界面"、"加个全展开页面"、"在 maxexpand 里加个 XX", 也应触发。此 skill 覆盖从类型注册、设置配置、懒加载/即时加载渲染到 i18n 国际化的全部 8 个 修改点,确保新 Tab 完整可用且可在设置中拖拽排序与切换可见性。

312 Updated today
JNTMTMTM
Code & Development Listed

guide

Walk the user through a multi-step task (e.g. cloud console / permission / dashboard setup) with a live step tracker that is re-printed at the bottom of every reply so they never scroll up. Use when the user asks to "guide me through", "walk me through", "give me step by step" instructions, "how do I set up ..." for a UI/console task, or invokes guide. Also use when, mid-guide, they say a step "isn't working", "the menu isn't there", or ask a clarifying question about a step.

0 Updated today
nielsmadan
Web & Frontend Listed

html-guide

将任何内容(对话回答、笔记、代码、项目讲解、主题、URL)自动生成一份 自包含(单文件、零外部依赖)、可交互、可打印、现代化视觉的 HTML 指导文档 ——教程、指南、讲解页、操作手册、学习路径皆可,页面结构根据内容自适应。 Always use this skill when the user wants content turned into a visual HTML guide page. Triggers: "做成HTML"、"HTML指南"、"可视化文档"、"网页教程"、 "把这段内容整理成网页"、"页面化"、"生成一个好看的教学页面"、" make an HTML guide"、"render this as HTML"、"visualize content as HTML page"、 "create an interactive tutorial page"。Whenever the user has explained something (a concept, a project, a piece of code) and then asks to see it as a polished HTML document, this skill should fire — even if they don't say "skill".

0 Updated 3 weeks ago
BFRKQSB7