Theme checker: look for x-teme::between-items in a theme's skin folders, not only its root templates
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 h 40 min
- PR fusionados (30 d)
- 143
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temecms/teme
-
area/admin type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area/media type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area/admin type/bug when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
area/import type/documentation when/soon
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/admin area/import type/bug when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de temecms/teme
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Los mantenedores suelen responder en 2 días
-
P2 Team S Type: Infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/site-kit-wp#14271 ·
Los mantenedores suelen responder en 2 días
-
Display price Views field throws TypeError when the row has no productPosiblemente ocupada @albanycomputers la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
backdrop-contrib/ubercart#610 ·