Module: clone a component, and the route cache default of 200
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc các issue module được tham chiếu cwa-nuxt-module#157, #408 và #259, cùng với api-components-bundle#502 và docs#259 về giới hạn chu kỳ. Cập nhật tài liệu về sao chép, xóa ở nhiều vị trí và giá trị mặc định của bộ nhớ đệm route, bao gồm giới hạn 200 route, thiết lập không giới hạn và sự đánh đổi về bộ nhớ. Hoàn thành khi hành vi được ghi trong tài liệu khớp với những thay đổi này và các tài liệu hiện có liên quan đã được cập nhật.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Module changes for the next @cwa/nuxt release (after 2.0.0-alpha.21) that need documenting:
Clone a component (cwa-nuxt-module#157, #408)
- What clone is: the same component, with the same IRI, placed in another position. It is never a copy, so an edit in one place, or publishing it, changes it everywhere.
- The flow:
- Select a component and choose Clone in the manager bar's dots menu.
- Clone mode shows a "Cloning" bar with Cancel; Escape also cancels. The header's Enable Navigation toggle lets you browse the site while in clone mode.
- Clicking a target opens a dialog offering what adding a component offers there: Add before or after, Add to start or end, Add here in an empty group, or Use here in a page-data slot. Options that aren't allowed are disabled, with every reason.
- A target in the layout is flagged as appearing on every page that uses it.
- Several instances: every on-screen instance of a selected component is outlined, and every instance of the component being cloned is highlighted.
- Delete: a component used in several locations asks Delete from all X locations or Remove from this location only. The Info tab shows "Used in X locations".
- Cycles: a container can't be placed inside its own subtree. The module disables the option, and the API refuses it (api-components-bundle#502, docs#259).
Route cache default (cwa-nuxt-module#259)
cwa.routeCacheLimitnow defaults to 200 routes, not 50. Lookups and eviction no longer slow down as the store grows; navigation stays at about 5 ms up to 100k stored resources.- Set
0for unbounded, which is only sensible for small sites. - Memory, not speed, is the limit: about 3 KB per stored resource, so roughly 100 MB at ~30k resources. An IndexedDB cold tier is tracked in cwa-nuxt-module#405 for sites that would exceed that.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 1 giờ 20 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của components-web-app/docs
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
components-web-app/docs#294 · 1 bình luận ·
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
components-web-app/docs#290 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
components-web-app/docs#289 · 2 bình luận ·
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
components-web-app/docs#285 ·
-
documentation
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
components-web-app/docs#284 ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kunchenguid/gh-axi#220 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
prerender: wait for env-runner worker readiness before crawlingCó thể đã có người làm @sarankumar1325 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày