Meta Refactoring - APE.dom
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
Start by inventorying APE.dom and its callers, especially the className, DOM traversal, style, and constants functions. Compare the existing APE.dom.Event, APE.EventPublisher, getPixelCoords, and getOffsetCoords objects before proposing boundaries. Done means a decided decomposition and an organized migration of the affected interfaces and callers.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
APE.dom is a god object that can be broken up.
Breaking up APE.dom encourages keeps the size and complexity of the core trim while allowing proliferation of more interface-objects for various contexts.
Currently, APE.dom does:
- className functions (has, add, remove, toggle, getElementsBy, findAncestorWith)
- DOM Traversal (contains, findAncestorWithAttribute, nextSiblingElement, etc)
- style reading
- constants
The problems is that as more widgets are created, more context needs are created and APE.dom grows.
TODO: Investigate breaking off smaller chunks into their own objects.
Investigate where similar interface objects exist and how they can be organized. Two examples:
- APE.dom.getPixelCoords
- APE.dom.getOffsetCoords
className functions - APE.className? APE.dom.className?
traversal functions - APE.dom.traversal ?
style functions APE.dom.style? APE.elementStyle?
The DOM constants are used throughout, where does it go? APE.dom.constants, or simply remain on a whittled APE.dom?
- Ngôn ngữ chính
- JavaScript
- Star
- 32
- Fork
- 3
- 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
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 GarrettS/ape-javascript-library
-
Website link 404Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
GarrettS/ape-javascript-library#16 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Refactoring: position-f.jsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
GarrettS/ape-javascript-library#10 · 1 bình luận ·
Tất cả issue của GarrettS/ape-javascript-library
Issue tương tự
-
[Website] Catalog: unknown sort value and mixed-case technology in the URL break the filtersCó thể đã có người làm @barbierajput378-pixel đã nhận hôm nay. Đang mởarea/website framework/jekyll help wanted language/css language/javascript language/markdown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
meshery/meshery.io#3088 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
firecrawl/firecrawl-mcp-server#548 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area:WebGL p5.js 2.0+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
processing/p5.js#9302 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
wassim-azi/agy-powerline#47 ·
Maintainer thường phản hồi trong vòng 1 ngày