[Toolkit] Minor fixes

This commit is contained in:
Hugo Alliaume
2025-09-18 13:56:52 +02:00
parent 67f45ea4aa
commit 55a30692ec
5 changed files with 13 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ if (!class_exists(Application::class)) {
}
$filesystem = new Filesystem();
$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer($filesystem));
$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer());
$kitFactory = new KitFactory($filesystem, $kitSynchronizer);
(new Application())->add($command = new DebugKitCommand($kitFactory))

View File

@@ -4,6 +4,7 @@
"name": "AlertDialog",
"description": "A modal dialog that interrupts the user with important content and expects a response.",
"copy-files": {
"assets/": "assets/",
"templates/": "templates/"
},
"dependencies": {

View File

@@ -105,7 +105,7 @@ final class KitContextRunner
{
foreach ($this->kit->getRecipes(type: RecipeType::Component) as $recipe) {
foreach ($recipe->getFiles() as $file) {
if (str_ends_with($file->sourceRelativePathName, str_replace(':', '/', $name).'.html.twig')) {
if (str_ends_with($file->sourceRelativePathName, 'templates/components/'.str_replace(':', '/', $name).'.html.twig')) {
return $file->sourceRelativePathName;
}
}

View File

@@ -28,14 +28,17 @@
Symfony UX initiative: a JavaScript ecosystem for Symfony
</p>
</div>
<li class="[&amp;&gt;svg]:w-3.5 [&amp;&gt;svg]:h-3.5 my-4" role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"></path></svg></li>
<div class="shrink-0 bg-border h-[1px] w-full my-4" role="none">
</div>
<div class="flex h-5 items-center space-x-4 text-sm">
<a href="https://ux.symfony.com" class="hover:underline">Website</a>
<li class="[&amp;&gt;svg]:w-3.5 [&amp;&gt;svg]:h-3.5 " orientation="vertical" role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"></path></svg></li>
<div class="shrink-0 bg-border h-full w-[1px]" role="none">
</div>
<a href="https://ux.symfony.com/packages" class="hover:underline">Packages</a>
<li class="[&amp;&gt;svg]:w-3.5 [&amp;&gt;svg]:h-3.5 " orientation="vertical" role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"></path></svg></li>
<div class="shrink-0 bg-border h-full w-[1px]" role="none">
</div>
<a href="https://github.com/symfony/ux" class="hover:underline">Source</a>
</div>

View File

@@ -14,10 +14,12 @@
- Rendered code (prettified for testing purposes, run "php vendor/bin/phpunit -d --update-snapshots" to update snapshots): -->
<div class="flex h-5 items-center gap-4 text-sm">
<div>Blog</div>
<li class="[&amp;&gt;svg]:w-3.5 [&amp;&gt;svg]:h-3.5 " orientation="vertical" role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"></path></svg></li>
<div class="shrink-0 bg-border h-full w-[1px]" role="none">
</div>
<div>Docs</div>
<li class="[&amp;&gt;svg]:w-3.5 [&amp;&gt;svg]:h-3.5 " orientation="vertical" role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"></path></svg></li>
<div class="shrink-0 bg-border h-full w-[1px]" role="none">
</div>
<div>Source</div>
</div>