-
Notifications
You must be signed in to change notification settings - Fork 4
[Ux icon] Add tests icons #37
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
Draft
cavasinf
wants to merge
3
commits into
main
Choose a base branch
from
ux_icon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Full configuration reference: https://symfony.com/bundles/ux-icons/current/index.html#configuration | ||
| ux_icons: | ||
| aliases: | ||
| about: 'fa7-solid:info-circle' | ||
|
|
||
| # Default HTML attributes to add to all icons | ||
| default_icon_attributes: | ||
|
|
||
| # Use current text color to fill the icon | ||
| fill: currentColor | ||
|
|
||
| # Default dimensions | ||
| height: '1em' | ||
| width: '1em' | ||
|
|
||
| # Throw an exception if an icon is not | ||
| ignore_not_found: false | ||
|
|
||
| when@prod: | ||
| ux_icons: | ||
| # Suppress exceptions for missing icons in production | ||
| ignore_not_found: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?php | ||
|
|
||
| /* | ||
| * This file is part of the Tabler-Bundle demo. | ||
| * Copyright 2021 Kevin Papst - www.kevinpapst.de | ||
| * | ||
| * For the full copyright and license information, please view the LICENSE | ||
| * file that was distributed with this source code. | ||
| */ | ||
|
|
||
| namespace App\Controller; | ||
|
|
||
| use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
| use Symfony\Component\HttpFoundation\Response; | ||
| use Symfony\Component\Routing\Attribute\Route; | ||
|
|
||
| class AddonsController extends AbstractController | ||
| { | ||
| #[Route('/icons', name: 'icons')] | ||
| public function icons(): Response | ||
| { | ||
| return $this->render('addons/icons.html.twig'); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| {% extends 'layout.html.twig' %} | ||
|
|
||
| {% block page_content %} | ||
| {% embed '@Tabler/embeds/card.html.twig' with {fullsize : false} %} | ||
| {% block box_title %}Interface icons{% endblock %} | ||
| {% block box_body %} | ||
| <div class="card"> | ||
| <table class="table table-vcenter card-table"> | ||
| <thead> | ||
| <tr> | ||
| <th>Type</th> | ||
| <th>Alias</th> | ||
| <th>Ux icon fullName</th> | ||
| <th>Fontawesome name</th> | ||
| <th>Fontawesome fullName</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr class="bg-primary-lt"> | ||
| <td>Values</td> | ||
| <td><code>about</code></td> | ||
| <td><code>fa7-solid:info-circle</code></td> | ||
| <td><code>fa-info-circle</code></td> | ||
| <td><code>fas fa-info-circle</code></td> | ||
| </tr> | ||
| <tr> | ||
| <td>Ux icon</td> | ||
| <td>{{ ux_icon('about') }}</td> | ||
| <td>{{ ux_icon('fa7-solid:info-circle') }}</td> | ||
| <td></td> | ||
| <td></td> | ||
| </tr> | ||
| <tr> | ||
| <td>NEW tabler_icon</td> | ||
| <td>{{ tabler_icon('about', true) }}</td> | ||
| <td>{{ tabler_icon('fa7-solid:info-circle', true) }}</td> | ||
| <td>{{ tabler_icon('fa-info-circle', true) }}</td> | ||
| <td>{{ tabler_icon('fas fa-info-circle', true) }}</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Manual</td> | ||
| <td>{{ ux_icon('tabler:forms') }}</td> | ||
| <td>{{ tabler_icon('forms') }}</td> | ||
| <td>{{ tabler_icon('tabler:forms') }}</td> | ||
| <td>{{ tabler_icon('tabler:forms', true) }}</td> | ||
| <td></td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
| {% endblock %} | ||
| {% endembed %} | ||
| {% endblock %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be in the project require, but from
kevinpapst/tabler-bundlerequire that himsefl requiressymfony/ux-icons.To fix when kevinpapst/TablerBundle#195 is merged