Theme checker: look for x-teme::between-items in a theme's skin folders, not only its root templates
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
The warning comes from the teme:theme:check Artisan command, so start in its handler and find where it reads views/templates/* to test for x-teme::between-items. Make the scan follow @include and @extends into the skin folders, or cover every view in the theme, and add a case where the component appears only in an included skin file. Also make the database-failure path report the h1 rule as not checked rather than passed. Done when the reproduction no longer warns and the database-down run no longer prints "The theme passes" for that rule.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
php artisan teme:theme:check warns "Lists don't call x-teme::between-items, so plugins can't place content between items." It seems to look for the component only in the theme's root templates (views/templates/*). A theme that keeps one folder of pages per skin, and whose root templates are one-line includes of the active skin's page (so a later update can add skins), draws its lists in the skin's own files. Those lists do call the component, but the check warns anyway.
To reproduce:
- A theme whose
views/templates/latest.blade.phpis@include('theme::skins.'.($themeSettings['skin'] ?? 'fable').'.home'). - The skin's
home.blade.phploops over the feed and calls<x-teme::between-items :after="$loop->iteration" :last="$loop->last" />after each item. php artisan teme:theme:check <code>still warns. The warning goes away only when the component's name also appears in the root template, for example in a comment.
Expected: the check follows @include/@extends (or scans every view in the theme) before it warns. Or the manifest could say where a theme's lists are.
Also seen in the same run: when the site's database can't be read, the check prints "The pages were not checked for an h1" and still ends with "The theme passes". A line that says the h1 rule was not checked at all, rather than passed, would help.
- Ngôn ngữ chính
- PHP
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 giờ 40 phút
- Pull request đã merge (30 ngày)
- 143
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 temecms/teme
-
area/admin type/enhancement when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/media type/enhancement when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/admin type/bug when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/import type/documentation when/soon
Độ khó 2/5 Nửa ngày 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
-
area/admin area/import type/bug when/later
Độ 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
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
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 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
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 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
P2 Team S Type: Infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
google/site-kit-wp#14271 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Display price Views field throws TypeError when the row has no productCó thể đã có người làm @albanycomputers đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
backdrop-contrib/ubercart#610 ·