소스 정보
- 저장소
- qu-yquan/ratel-manager
- 최근 소스 활동
- 2026년 6월 9일 15:28
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 5
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/qu-yquan/ratel-manager --skill ratel-view-development명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | ratel-view-development |
| description | Ratel前端项目开发规范与指南,包含目录结构、命名规范、组件开发、微前端配置等,只要涉及到前端代码开发必读。 |
| type | skill |
| 文档 | 说明 | 适用场景 |
|---|---|---|
| 01-project-and-conventions.md | 项目结构、样式规范、命名规范 | 编写任何前端代码 |
| 02-components-and-pages.md | 组件/页面开发、WCAG 2.1、data-ai-approval | 创建页面或组件 |
| 03-core-library-and-api.md | @gwsu/core 完整指南、API 规范、状态管理、事件 | 使用共享库、调用接口 |
| 04-list-page-pattern.md | 列表页模式、操作列、权限控制 | 开发列表页 |
| 05-checklist.md | 开发检查清单 | 自查 |
aria-label,装饰性图标 aria-hidden="true"*.module.less,禁止 CSS-in-JSimport styles from './index.module.less'className={styles.xxx}import { ThemeLayout, useThemeContext, AuthGate, FileUpload, FileDownloadButton, FileScope } from '@gwsu/core';
import { get, post, put, del } from '@gwsu/core';
import { useUserStore, useMenuStore, useAuthStore } from '@gwsu/core';
import { useAuth, useFileUpload, useFileDownload } from '@gwsu/core';
import { EventType, emitEvent, onEvent } from '@gwsu/core';
import { fetchDictValuesBatch, fetchConfigsBatch } from '@gwsu/core';
禁止自行封装,使用 @gwsu/core 组件:
// 上传(组件方式)
<FileUpload property={{ scope: FileScope.PROTECTED, categorize: 'doc' }} maxSize={50*1024*1024} onChange={(ids) => ...} />
// 下载(组件方式)
<FileDownloadButton fileId={record.fileId} fileName={record.fileName} />
// 上传(Hook方式,自定义UI时)
const { upload, progress, abort } = useFileUpload({ scope: FileScope.PROTECTED });
// 下载(Hook方式)
const { download, progress, abort } = useFileDownload();
一个页面多个字典/配置时,必须只调用一次接口:
const dictMap = await fetchDictValuesBatch(['user_status', 'gender']);
const configMap = await fetchConfigsBatch(['site_name', 'max_upload_size']);
权限标识必须定义为常量(permissionConstants.ts),禁止硬编码:
<AuthGate buttonKey={PERM_ADD}><Button type="primary">新增</Button></AuthGate>
const canEdit = useAuth(PERM_EDIT);
核心:按钮点击后是否立即触发后端数据变更。需要则加,不需要则不加。
| 需要 | 不需要 |
|---|---|
| 删除、状态切换、保存/提交 | 新增(打开空表单)、详情、搜索 |
import { ThemeLayout } from '@gwsu/core';
const Layout: React.FC = () => <ThemeLayout><Outlet /></ThemeLayout>;