-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c5e7f1e
Showing
3,834 changed files
with
4,293 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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,13 @@ | ||
* text=auto | ||
|
||
/.github export-ignore | ||
/bin export-ignore | ||
/dist export-ignore | ||
/tests export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php_cs.dist export-ignore | ||
CHANGELOG.md export-ignore | ||
phpunit.xml.dist export-ignore | ||
README.md export-ignore | ||
UPGRADE.md export-ignore |
This file contains 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,38 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [7.4, 8.0] | ||
laravel: [^8.0] | ||
|
||
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} | ||
|
||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update | ||
composer update --prefer-dist --no-interaction --no-progress | ||
- name: Execute tests | ||
run: vendor/bin/phpunit --verbose |
This file contains 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,5 @@ | ||
dist/ | ||
composer.lock | ||
phpunit.xml | ||
vendor | ||
.phpunit.result.cache |
This file contains 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,12 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->notPath('vendor') | ||
->in(getcwd(). '/src') | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
return Codeat3\styles($finder); |
This file contains 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,4 @@ | ||
preset: laravel | ||
enabled: | ||
- heredoc_indentation | ||
- trailing_comma_in_multiline_call |
This file contains 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,8 @@ | ||
# Changelog | ||
|
||
This changelog follows [the Keep a Changelog standard](https://keepachangelog.com). | ||
|
||
|
||
## 1.0.0 (2021-07-02) | ||
* Initial release. | ||
* Synced with the latest commit [Game Icons - commit: c547b7e4941d83bba737cd97a0a168e6719a7807](https://github.com/game-icons/icons/commit/c547b7e4941d83bba737cd97a0a168e6719a7807) |
This file contains 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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Swapnil Sarwe | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains 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,92 @@ | ||
<p align="center"> | ||
<img src="./socialcard-blade-game-icons.png" width="1280" title="Social Card Blade Game Icons"> | ||
</p> | ||
|
||
# Blade Game Icons | ||
|
||
<a href="https://github.com/codeat3/blade-game-icons/actions?query=workflow%3ATests"> | ||
<img src="https://github.com/codeat3/blade-game-icons/workflows/Tests/badge.svg" alt="Tests"> | ||
</a> | ||
<a href="https://packagist.org/packages/codeat3/blade-game-icons"> | ||
<img src="https://img.shields.io/packagist/v/codeat3/blade-game-icons" alt="Latest Stable Version"> | ||
</a> | ||
<a href="https://packagist.org/packages/codeat3/blade-game-icons"> | ||
<img src="https://img.shields.io/packagist/dt/codeat3/blade-game-icons" alt="Total Downloads"> | ||
</a> | ||
|
||
A package to easily make use of [Blade Game Icons](https://github.com/CyCraft/Game Icons) in your Laravel Blade views. | ||
|
||
For a full list of available icons see [the SVG directory](resources/svg) or preview them at [Game Icons.com](https://Game Icons.com/). | ||
|
||
## Requirements | ||
|
||
- PHP 7.4 or higher | ||
- Laravel 8.0 or higher | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require codeat3/blade-game-icons | ||
``` | ||
|
||
## Updating | ||
|
||
Please refer to [`the upgrade guide`](UPGRADE.md) when updating the library. | ||
|
||
## Blade Icons | ||
|
||
Blade Game Icons uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library. | ||
|
||
## Configuration | ||
|
||
Blade Game Icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-game-icons.php` config file: | ||
|
||
```bash | ||
php artisan vendor:publish --tag=blade-game-icons-config | ||
``` | ||
|
||
## Usage | ||
|
||
Icons can be used as self-closing Blade components which will be compiled to SVG icons: | ||
|
||
```blade | ||
<x-gameicon-3d-stairs/> | ||
``` | ||
|
||
You can also pass classes to your icon components: | ||
|
||
```blade | ||
<x-gameicon-3d-stairs class="w-6 h-6 text-gray-500"/> | ||
``` | ||
|
||
And even use inline styles: | ||
|
||
```blade | ||
<x-gameicon-3d-stairs style="color: #555"/> | ||
``` | ||
|
||
### Raw SVG Icons | ||
|
||
If you want to use the raw SVG icons as assets, you can publish them using: | ||
|
||
```bash | ||
php artisan vendor:publish --tag=blade-game-icons --force | ||
``` | ||
|
||
Then use them in your views like: | ||
|
||
```blade | ||
<img src="{{ asset('vendor/blade-game-icons/3d-stairs.svg') }}" width="10" height="10"/> | ||
``` | ||
|
||
## Changelog | ||
|
||
Check out the [CHANGELOG](CHANGELOG.md) in this repository for all the recent changes. | ||
|
||
## Maintainers | ||
|
||
Blade Game Icons is developed and maintained by [Swapnil Sarwe](https://swapnilsarwe.com). | ||
|
||
## License | ||
|
||
Blade Game Icons is open-sourced software licensed under [the MIT license](LICENSE.md). |
This file contains 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,23 @@ | ||
# Upgrade Guide | ||
|
||
General steps for every update: | ||
|
||
- Run `php artisan view:clear` | ||
|
||
## Upgrading from Blade Icons | ||
|
||
If you're upgrading from the original Blade Icons package there's very little steps you would need to take. The syntax for the Blade components has remained the same. | ||
|
||
### Raw Icons | ||
|
||
If you were using the raw exported icons you'll need to re-publish them with: | ||
|
||
```bash | ||
php artisan vendor:publish --tag=blade-game-icons --force | ||
``` | ||
|
||
The new way to reference them is: | ||
|
||
```blade | ||
<img src="{{ asset('vendor/blade-game-icons/3d-stairs.svg') }}" width="10" height="10"/> | ||
``` |
This file contains 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 @@ | ||
{ | ||
"name": "codeat3/blade-game-icons", | ||
"description": "A package to easily make use of Game Icons in your Laravel Blade views.", | ||
"keywords": ["Blade", "Game Icons", "icons", "Laravel"], | ||
"homepage": "https://github.com/codeat3/blade-game-icons", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Swapnil Sarwe", | ||
"homepage": "https://swapnilsarwe.com" | ||
}, | ||
{ | ||
"name": "Dries Vints", | ||
"homepage": "https://driesvints.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4|^8.0", | ||
"blade-ui-kit/blade-icons": "^1.0", | ||
"illuminate/support": "^8.0" | ||
}, | ||
"require-dev": { | ||
"codeat3/phpcs-styles": "dev-main", | ||
"orchestra/testbench": "^6.0", | ||
"phpunit/phpunit": "^9.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Codeat3\\BladeGameIcons\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Codeat3\\BladeGameIcons\\BladeGameIconsServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit", | ||
"format": "vendor/bin/php-cs-fixer fix" | ||
} | ||
} |
This file contains 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,57 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|----------------------------------------------------------------- | ||
| Default Prefix | ||
|----------------------------------------------------------------- | ||
| | ||
| This config option allows you to define a default prefix for | ||
| your icons. The dash separator will be applied automatically | ||
| to every icon name. It's required and needs to be unique. | ||
| | ||
*/ | ||
|
||
'prefix' => 'gameicon', | ||
|
||
/* | ||
|----------------------------------------------------------------- | ||
| Fallback Icon | ||
|----------------------------------------------------------------- | ||
| | ||
| This config option allows you to define a fallback | ||
| icon when an icon in this set cannot be found. | ||
| | ||
*/ | ||
|
||
'fallback' => '', | ||
|
||
/* | ||
|----------------------------------------------------------------- | ||
| Default Set Classes | ||
|----------------------------------------------------------------- | ||
| | ||
| This config option allows you to define some classes which | ||
| will be applied by default to all icons within this set. | ||
| | ||
*/ | ||
|
||
'class' => '', | ||
|
||
/* | ||
|----------------------------------------------------------------- | ||
| Default Set Attributes | ||
|----------------------------------------------------------------- | ||
| | ||
| This config option allows you to define some attributes which | ||
| will be applied by default to all icons within this set. | ||
| | ||
*/ | ||
|
||
'attributes' => [ | ||
// 'width' => 50, | ||
// 'height' => 50, | ||
], | ||
|
||
]; |
This file contains 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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Blade Google Material Design Icons Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.