mirror of
https://github.com/symfony/ux-toolkit.git
synced 2026-03-24 00:02:08 +01:00
[Toolkit] Minor fixes
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,14 +28,17 @@
|
||||
Symfony UX initiative: a JavaScript ecosystem for Symfony
|
||||
</p>
|
||||
</div>
|
||||
<li class="[&>svg]:w-3.5 [&>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="[&>svg]:w-3.5 [&>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="[&>svg]:w-3.5 [&>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>
|
||||
|
||||
@@ -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="[&>svg]:w-3.5 [&>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="[&>svg]:w-3.5 [&>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>
|
||||
Reference in New Issue
Block a user