Skip to content

Commit f8f809f

Browse files
committed
minor #1864 [Site] Add Icons package data (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Site] Add Icons package data | Q | A | ------------- | --- | Bug fix? | no | New feature? |no | Issues | Fix #... | License | MIT Add missing metadata for icons Commits ------- 01b8a3d [Site] Add Icons package data
2 parents 020348c + 01b8a3d commit f8f809f

File tree

8 files changed

+120
-3
lines changed

8 files changed

+120
-3
lines changed
Lines changed: 8 additions & 0 deletions
Loading

ux.symfony.com/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"symfony/ux-chartjs": "2.x-dev",
3939
"symfony/ux-cropperjs": "2.x-dev",
4040
"symfony/ux-dropzone": "2.x-dev",
41+
"symfony/ux-icons": "^2.17",
4142
"symfony/ux-lazy-image": "2.x-dev",
4243
"symfony/ux-live-component": "2.x-dev",
4344
"symfony/ux-notify": "2.x-dev",

ux.symfony.com/composer.lock

Lines changed: 80 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ux.symfony.com/config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030
Zenstruck\Foundry\ZenstruckFoundryBundle::class => ['dev' => true, 'test' => true],
3131
Symfony\UX\TogglePassword\TogglePasswordBundle::class => ['all' => true],
3232
Symfonycasts\SassBundle\SymfonycastsSassBundle::class => ['all' => true],
33+
Symfony\UX\Icons\UXIconsBundle::class => ['all' => true],
3334
];

ux.symfony.com/src/Service/UxPackageRepository.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ public function findAll(?string $query = null): array
5353
'I need an Ajax-autocomplete select field'
5454
),
5555

56+
new UxPackage(
57+
'icons',
58+
'UX Icons',
59+
'app_icons',
60+
'#3737FF',
61+
'linear-gradient(to bottom right, cyan, purple)',
62+
'Render SVG icons seamlessly from your Twig templates.',
63+
'I need to render SVG icons.',
64+
'icons.svg',
65+
),
66+
5667
(new UxPackage(
5768
'chartjs',
5869
'Chart.js',

ux.symfony.com/symfony.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,18 @@
548548
"symfony/ux-dropzone": {
549549
"version": "v2.1.1"
550550
},
551+
"symfony/ux-icons": {
552+
"version": "2.17",
553+
"recipe": {
554+
"repo": "github.com/symfony/recipes",
555+
"branch": "main",
556+
"version": "2.17",
557+
"ref": "803a3bbd5893f9584969ab8670290cdfb6a0a5b5"
558+
},
559+
"files": [
560+
"assets/icons/symfony.svg"
561+
]
562+
},
551563
"symfony/ux-lazy-image": {
552564
"version": "v2.1.1"
553565
},

ux.symfony.com/templates/icons/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{% set meta = {
99
title: 'UX Icons - SVG icons made easy',
10-
description: 'Search for icons on iconify.design.',
10+
description: 'Render SVG icons seamlessly from your Twig templates. Find the perfect icon among 200,000 choices from the most popular icon sets.',
1111
canonical: url('app_icons'),
1212
} %}
1313

ux.symfony.com/tests/Functional/UxPackagesTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ public static function getSmokeTests(): \Generator
5252
yield $package->getName() => [$package, 'Read full Documentation'];
5353
continue;
5454
}
55+
if ('icons' === $package->getName()) {
56+
// Icons has a different bottom section
57+
yield $package->getName() => [$package, 'Documentation'];
58+
continue;
59+
}
5560

56-
yield $package->getName() => [$package, sprintf('Symfony UX %s Docs', $package->getHumanName())];
61+
yield $package->getName() => [$package, sprintf('%s Docs', $package->getHumanName())];
5762
}
5863
}
5964
}

0 commit comments

Comments
 (0)