Skip to content

[Site] Add Icons package data #1864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ux.symfony.com/assets/images/ux_packages/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ux.symfony.com/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"symfony/ux-chartjs": "2.x-dev",
"symfony/ux-cropperjs": "2.x-dev",
"symfony/ux-dropzone": "2.x-dev",
"symfony/ux-icons": "^2.17",
"symfony/ux-lazy-image": "2.x-dev",
"symfony/ux-live-component": "2.x-dev",
"symfony/ux-notify": "2.x-dev",
Expand Down
81 changes: 80 additions & 1 deletion ux.symfony.com/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ux.symfony.com/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
Zenstruck\Foundry\ZenstruckFoundryBundle::class => ['dev' => true, 'test' => true],
Symfony\UX\TogglePassword\TogglePasswordBundle::class => ['all' => true],
Symfonycasts\SassBundle\SymfonycastsSassBundle::class => ['all' => true],
Symfony\UX\Icons\UXIconsBundle::class => ['all' => true],
];
11 changes: 11 additions & 0 deletions ux.symfony.com/src/Service/UxPackageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ public function findAll(?string $query = null): array
'I need an Ajax-autocomplete select field'
),

new UxPackage(
'icons',
'UX Icons',
'app_icons',
'#3737FF',
'linear-gradient(to bottom right, cyan, purple)',
'Render SVG icons seamlessly from your Twig templates.',
'I need to render SVG icons.',
'icons.svg',
),

(new UxPackage(
'chartjs',
'Chart.js',
Expand Down
12 changes: 12 additions & 0 deletions ux.symfony.com/symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,18 @@
"symfony/ux-dropzone": {
"version": "v2.1.1"
},
"symfony/ux-icons": {
"version": "2.17",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.17",
"ref": "803a3bbd5893f9584969ab8670290cdfb6a0a5b5"
},
"files": [
"assets/icons/symfony.svg"
]
},
"symfony/ux-lazy-image": {
"version": "v2.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion ux.symfony.com/templates/icons/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

Expand Down
7 changes: 6 additions & 1 deletion ux.symfony.com/tests/Functional/UxPackagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ public static function getSmokeTests(): \Generator
yield $package->getName() => [$package, 'Read full Documentation'];
continue;
}
if ('icons' === $package->getName()) {
// Icons has a different bottom section
yield $package->getName() => [$package, 'Documentation'];
continue;
}

yield $package->getName() => [$package, sprintf('Symfony UX %s Docs', $package->getHumanName())];
yield $package->getName() => [$package, sprintf('%s Docs', $package->getHumanName())];
}
}
}