Skip to content

Commit

Permalink
Merge pull request #6 from chkilel/dev
Browse files Browse the repository at this point in the history
Freeze lib dependency `iconify/json` to version 1
  • Loading branch information
chkilel authored May 11, 2022
2 parents 2e2fe82 + 82f100d commit 00b1cb3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 29 deletions.
41 changes: 17 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ One library, over **100,000** vector icons, Modern replacement for icon fonts. F

![Icônes FormWidget](https://res.cloudinary.com/chkilel/image/upload/v1629852348/icones-plugin/README/IconesFinder-demo_kyztau.gif)


## Advantages of this form widget
Every time I use icon fonts, end users don't find them appealing, or even they don't find what they want.
Styling was challenging, with SVG icons you can apply classes and style them as you want.
Expand All @@ -24,37 +23,31 @@ You don't need to load any dependency at all.
You can use Font Awesome, Material Design Icons, Unicons, Dashicons, Emoji, ... and many other icon sets on same page or application using one form widget.

# TOC
- [Installation](#installation)
- [From GitHub repository](#from-github-repository)
- [Composer](#composer)
- [How to use](#how-to-use)
- [Field Options](#field-options)
- [Form field showName option](#form-field-showName-option)
- [Form field showIconSetName option](#form-field-showIconSetName-option)
- [Icônes Form Widget 🪄 🎉 🎊](#icônes-form-widget----)
- [Advantages of this form widget](#advantages-of-this-form-widget)
- [TOC](#toc)
- [Installation](#installation)
- [Composer](#composer)
- [How to use](#how-to-use)
- [Field Options](#field-options)
- [Form field showName option](#form-field-showname-option)
- [Form field showIconSetName option](#form-field-showiconsetname-option)
- [Form field size option](#form-field-size-option)
- [Form field iconSets option](#form-field-iconSets-option)
- [Form field iconSets option](#form-field-iconsets-option)
- [Settings](#settings)
- [Permissions](#permissions)
- [Usage in Twig template](#usage-in-twig-template)
- [Permissions](#permissions)
- [Usage in Twig template](#usage-in-twig-template)
- [Twig filter options](#twig-filter-options)
- [Options detail](#options-detail)
- [Usage in PHP](#usage-in-php)
- [Usage in Backend List](#usage-in-backend-list)
- [Options detail](#options-detail)
- [Usage in PHP](#usage-in-php)
- [Usage in Backend List](#usage-in-backend-list)


## Installation
Simply install the plugin from the marketplace, if you run into problems because of composer dependencies, please use one of the following methods.

### From GitHub repository
Clone the repository [https://github.com/chkilel/icones-plugin](https://github.com/chkilel/icones-plugin) from GitHub into the plugins folder, then run following commands in the project’s root directory:

```bash
composer install
php artisan october:up
```
Simply install the plugin from the marketplace, if you run into problems because of composer dependencies, please use composer.

### Composer
If you prefer Composer or you run into problems when installing from the marketplace, run following commands in the project’s root directory:
If you prefer Composer or you run into problems when installing from the marketplace, run the following commands in the project’s root directory:
```bash
composer require chkilel/icones-plugin
php artisan october:up
Expand Down
23 changes: 23 additions & 0 deletions updates/change_body_datatype_in_icons_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php namespace Chkilel\Icones\Updates;

use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;

class updateBodyIconsTable extends Migration
{
public function up()
{
Schema::table('chkilel_icones_icons', function (Blueprint $table) {
// Svg body without <svg> tag
$table->mediumText('body')->change();
});
}

public function down()
{
Schema::table('chkilel_icones_icons', function (Blueprint $table) {
$table->text('body')->change();
});
}
}
8 changes: 3 additions & 5 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
- 'Fix a typo in version.yaml preventing installation'
1.0.3:
- 'Move core CSS to the plugin for better compatibility'

1.0.4:
- Fix author and license properties
- Fix icon set palette and category names in settings
- 'Update body icon datatype in DB (from `text` to `mediumText`)'
- 'Freeze lib dependency `iconify/json` to version 1'
- 'Update svg body datatype (from `text` to `mediumText`)'
- change_body_datatype_in_icons_table.php
1.0.5:
- Fix dependencies version incompatibility

0 comments on commit 00b1cb3

Please sign in to comment.