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

Meta Refactoring - APE.dom

Đang mở
#11 2 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ó
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.Event
  • APE.EventPublisher 2)
    • 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

    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 GarrettS/ape-javascript-library

    Tất cả issue của GarrettS/ape-javascript-library

    Issue tương tự

    Thêm issue về JavaScript

    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.