api-naming
FreePowerX API 命名、前缀配置、版本迁移与插件网关路径规范(/admin、/internal 边界)。
The English summary is being prepared. Showing the original description.
PowerX Nuxt CRUD 页面与主题规范。
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
本文件内嵌规则。kind: ruleset
name: plugin/crud/frontend/nuxt_pages
version: 1
pages:
resource: template
files:
- target: web-admin/app/pages/templates/index.vue
template: builtin/nuxt_page_table
params:
title: "Templates"
columns: ["name","description","updated_at"]
actions: ["create","edit","delete","view"]
- target: web-admin/app/pages/templates/[id].vue
template: builtin/nuxt_page_detail
params:
title: "Template Detail"
theme:
description: |
浅色模式:使用浅色面板(如 `bg-white/95`)+ 深色前景(不超过 `text-gray-900`),禁止在浅色面板上放白色文字或图标。
深色模式:完全对齐模板 CRUD 组件,面板使用深海军蓝 (`#0f192a`~`#111a2b`) 并辅以低饱和边框;标题 `#fdfcff`,正文/描述 `#d6e2ff` 附近,不得出现深灰文字。
图标/按钮:所有状态图标(参考租户配置左侧纵向卡片)在浅色模式用 `text-primary-600`;暗色模式需改为高亮浅色(`#fdfcff` 或 `#93c5fd`),不可保留灰黑图标。
页面开发必须参照模板 CRUD 组件的色阶搭配(面板、按钮、表格 hover 状态等),保证在明暗主题下对比度一致。
gates.require: [PG-FE-UI-001, PG-FE-RBAC-001]
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
PowerX API 命名、前缀配置、版本迁移与插件网关路径规范(/admin、/internal 边界)。
The English summary is being prepared. Showing the original description.
PowerX 底座 Capability 治理与发布准入规则。用于审计 REST/OpenAPI/gRPC/Gin 生成的能力候选、正式 platform_capabilities 目录、Capability Registry 登记、agent_usable/permission_code/risk_level 元数据、ignore 清单和缺失能力;当用户要求“重新识别能力”“能力是否能发布”“补齐能力登记”“检查 capability-gen/audit/check”“底座接口暴露给插件/agent”时使用。
The English summary is being prepared. Showing the original description.
PowerX REST 契约规则(资源命名、分页、错误、版本化)。
The English summary is being prepared. Showing the original description.
PowerX CRUD 依赖注入规则(Deps 单入口、构造注入、跨传输复用)。
The English summary is being prepared. Showing the original description.
PowerX CRUD DTO 规则(输入输出分离、分页、校验)。
The English summary is being prepared. Showing the original description.
PowerX CRUD gRPC 开发规范(proto、server、拦截器、错误映射)。
The English summary is being prepared. Showing the original description.