Discussion: Reconsider the route/template structure for donate and thank-you
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Xem xét cấu trúc được liệt kê của project.hbs và project/{index,settings,tasks,donate,thank-you}.hbs, tập trung vào layout bị trùng lặp và action joinProject của component project-details. Đọc tài liệu về hook renderTemplate của Ember và so sánh ba tùy chọn routing trong issue. Được xem là hoàn tất khi đã chọn và ghi lại cấu trúc route/layout tránh mã layout bị trùng lặp và xác định rõ owner của action.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Right now, our route structure is as follows:
project.hbs
project/
index.hbs
settings.hbs
tasks.hbs
donate.hbs
thank-you.
project.hbs is just an {{outlet}}. index, settings and tasks share most of the same layout, but the code needs to be duplicated because donate and thank-you have a completely different layout.
This is somewhat confusing by itself. An additional, unfortunate side-effect is that the index, settings and tasks share the same project-details component, which internally, defines a joinProjectaction. This action can't be handled at route level, because it's used in 3 different routes. Instead, right now, it's handled by the component internally.
I'm really not sure what the best architecture here is, but it doesn't feel right. I think project.hbs should have the outlet for the varying content, but it should also have the default project layout components such as the header, etc. The subroutes should either share the layout or not be subroutes, or we should find a third way to render it.
That means that our options are either:
donateandthank-youshould not be part of the project route structure.donateandthank-youcan be part of the project route structure, but should then share the project layout- we should add a named outlet to our application route. "Layoutless" routes such as
donateandthank-youshould render directly into this named outlet. This gives us an explicit way to specify a route as layoutless. We could use the route'srenderTemplatehook to achieve this behavior
- Ngôn ngữ chính
- JavaScript
- Star
- 120
- Fork
- 75
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 code-corps/code-corps-ember
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code-corps/code-corps-ember#1616 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
code-corps/code-corps-ember#1613 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
code-corps/code-corps-ember#1612 ·
-
Difficulty: Medium Skill: ember-cli-page-object
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
code-corps/code-corps-ember#1063 · 1 reaction ·
-
greenkeeper
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
code-corps/code-corps-ember#1765 · 1 bình luận ·
Tất cả issue của code-corps/code-corps-ember
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TheOdinProject/curriculum#31444 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[software-development-practices:nist-ssdf] github/gh-aw-threat-detection repository guidanceĐang mởsoftware-development-practices software-development-practices:nist-ssdf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
githubnext/gh-aw-cao#15860 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
framework/gatsby help wanted kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
PedestrianDynamics/pyFDS-Evac#476 ·
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
aiko-chan-ai/DiscordBotClient#380 ·