Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Module: clone a component, and the route cache default of 200

Đã đóng Phù hợp với người mới
#260 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

documentation

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:
    1. Select a component and choose Clone in the manager bar's dots menu.
    2. 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.
    3. 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.
    4. 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.routeCacheLimit now 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 0 for 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của components-web-app/docs

Tất cả issue của components-web-app/docs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.