Fixture builder: a PageBuilder or PageDataBuilder as a route target
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- documentation, testing
调研方向
负载没有指明文档文件,因此请先在 API 文档中找到 fixtures / scaffold 页面。在动笔之前,先阅读 issue 中链接的 api-components-bundle#474,以确认 linkRoute、redirect 和 linkIri 的签名以及错误情况。完成的标准是:页面记录了三种调用形式、routeName 与 page: 二选一的规则、--append 的各种情况,以及没有路由的构建器的例外。
由索引模型根据 Issue 内容生成。
描述
The API bundle's CwaFixtureBuilder now accepts the builder itself wherever a scaffold referred to a route by name (components-web-app/api-components-bundle#474, fixes components-web-app/api-components-bundle#471).
Please document, in the fixtures / scaffold page of the API docs:
$cwa->component($link)->linkRoute('route', page: $about)and the same on aPageDataBuilder:page:takes aPageBuilderorPageDataBuilder; pass exactly one ofrouteNameandpage:.$cwa->redirect('/old', to: $about):to:takes a route name, aPageBuilderor aPageDataBuilder.linkIri():route:takes either builder (the IRI of its route),page:aPageBuilderandpageData:aPageDataBuilder(the IRI of the entity).- It resolves to the route generated for that page, whatever its name (e.g. a suffixed
about-1), at the same moment named links resolve, so it costs no extra flush. In an--appendload a kept page resolves to its existing route, and a page whose declared path was already in use resolves to the route at that path. - A builder with no route (a template page,
withoutRoute(), untitled page data) throws, naming the page and the call that referred to it. generate-fixtureskeeps writing route names; this is a convenience for scaffolds written by hand.
- 主要语言
- Vue
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/docs 的其他 Issue
-
难度 2/5 半天 新手友好度 68/100
components-web-app/docs#244 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
components-web-app/docs#243 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
components-web-app/docs#241 ·
-
documentation
难度 5/5 一周以上 新手友好度 15/100
components-web-app/docs#246 ·
-
Document the generate-fixtures asset store (fixtures.assets, $cwa->asset(), prune-fixture-assets)未关闭
难度 3/5 1-2 天 新手友好度 45/100
components-web-app/docs#242 ·
查看 components-web-app/docs 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
CarlosDanielDev/aiacc#74 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 66/100
-
binding:web core docs p3
难度 2/5 1-3 小时 新手友好度 85/100
RunanywhereAI/runanywhere-sdks#1123 ·
维护者通常 1 天内回复