docs: document resource API and shared component conventions
Align the root guidance, existing skill entry points, and README with resource API directories, complete response envelopes, and named component folders. Keep the root guidance as the single source of project rules.
This commit is contained in:
1 parent
6b537c03e0
commit
4ef792a6f4
7 files changed
+10
-8
No files matched your search
@@ -3,4 +3,4 @@ name: v3-use-utils
|
||||
description: 复用公共工具与认证能力
|
||||
---
|
||||
|
||||
先读根 AGENTS.md 和 `web/src/common/utils/` 的实际实现。命令、路径、通知、PWA 等按已有签名复用;认证 Token 由 user store 维护,不绕过会话与动态路由清理。没有模板示例的角色/日期工具,不引入虚构依赖。页面专用转换留在页面模块,未知外部输入在边界校验。
|
||||
先读根 AGENTS.md 和 `web/src/common/utils/` 的实际实现。命令、路径、通知、PWA 等按已有签名复用;认证 Token 由 user store 维护,不绕过会话与动态路由清理。没有模板示例的角色/日期工具,不引入虚构依赖。API 请求只通过 `common/apis/<resource>/index.ts` 的独立函数与 `http/axios` 的 request;原生资源票据缓存等实际共享工具留在 common/utils。页面专用转换留在页面模块,未知外部输入在边界校验。
|
||||
Reference in new issue
Block a user