├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── resources ├── assets │ └── bootstrap-star-rating-4.0.3 │ │ ├── css │ │ └── star-rating.min.css │ │ ├── img │ │ └── loading.gif │ │ ├── js │ │ ├── locales │ │ │ ├── LANG.js │ │ │ ├── ar.js │ │ │ ├── de.js │ │ │ ├── es.js │ │ │ ├── fa.js │ │ │ ├── fr.js │ │ │ ├── it.js │ │ │ ├── ko.js │ │ │ ├── pl.js │ │ │ ├── pt-BR.js │ │ │ ├── ro.js │ │ │ ├── ru.js │ │ │ ├── tr.js │ │ │ ├── ua.js │ │ │ └── zh.js │ │ └── star-rating.min.js │ │ └── themes │ │ ├── krajee-fa │ │ ├── theme.css │ │ ├── theme.js │ │ ├── theme.min.css │ │ └── theme.min.js │ │ ├── krajee-svg │ │ ├── theme.css │ │ ├── theme.js │ │ ├── theme.min.css │ │ └── theme.min.js │ │ └── krajee-uni │ │ ├── theme.css │ │ ├── theme.js │ │ ├── theme.min.css │ │ └── theme.min.js └── views │ └── input.blade.php └── src ├── StarRating.php ├── StarRatingExtension.php └── StarRatingServiceProvider.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | phpunit.phar 3 | /vendor 4 | composer.phar 5 | composer.lock 6 | *.project 7 | .idea/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2018 金小龙(jxlwqq) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Star Rating extension for laravel-admin 2 | 3 | This is a `laravel-admin` extension that integrates [bootstrap-star-rating](https://github.com/kartik-v/bootstrap-star-rating) into `laravel-admin`. 4 | 5 | ## Screenshot 6 | 7 | 8 | 9 | ## Installation 10 | 11 | ```bash 12 | composer require jxlwqq/star-rating 13 | php artisan vendor:publish --tag=laravel-admin-star-rating 14 | ``` 15 | 16 | ## Update 17 | 18 | ```bash 19 | composer require jxlwqq/star-rating 20 | php artisan vendor:publish --tag=laravel-admin-star-rating --force 21 | ``` 22 | 23 | ## Configuration 24 | 25 | In the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension. 26 | ```php 27 | 28 | 'extensions' => [ 29 |   30 |      'star-rating' => [ 31 |       32 |          // set to false if you want to disable this extension 33 |          'enable' => true, 34 |           35 |          // configuration 36 |          'config' => [ 37 |              'min' => 1, 'max' => 5, 'step' => 1, 'size' => 'xs', 'language' => 'zh', 38 |          ] 39 |      ] 40 |  ] 41 | 42 | ``` 43 | 44 | More configuration can be found in the [Bootstrap Star Rating Document](http://plugins.krajee.com/star-rating). 45 | 46 | ## Usage 47 | 48 | Use it in the form form: 49 | ```php 50 | $form->starRating('rate'); 51 | ``` 52 | 53 | ## More resources 54 | 55 | [Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin) 56 | 57 | 58 | ## License 59 | 60 | Licensed under [The MIT License (MIT)](LICENSE). 61 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jxlwqq/star-rating", 3 | "description": "Star Rating extension for laravel-admin.", 4 | "type": "library", 5 | "keywords": ["laravel-admin", "extension"], 6 | "homepage": "https://github.com/jxlwqq/star-rating", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "jxlwqq", 11 | "email": "jxlwqq@gmail.com" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=7.0.0", 16 | "encore/laravel-admin": "~1.6" 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": "~6.0" 20 | }, 21 | "autoload": { 22 | "psr-4": { 23 | "Jxlwqq\\StarRating\\": "src/" 24 | } 25 | }, 26 | "extra": { 27 | "laravel": { 28 | "providers": [ 29 | "Jxlwqq\\StarRating\\StarRatingServiceProvider" 30 | ] 31 | 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/css/star-rating.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * bootstrap-star-rating v4.0.3 3 | * http://plugins.krajee.com/star-rating 4 | * 5 | * Author: Kartik Visweswaran 6 | * Copyright: 2013 - 2017, Kartik Visweswaran, Krajee.com 7 | * 8 | * Licensed under the BSD 3-Clause 9 | * https://github.com/kartik-v/bootstrap-star-rating/blob/master/LICENSE.md 10 | */.rating-loading{width:25px;height:25px;font-size:0;color:#fff;background:url(../img/loading.gif) top left no-repeat;border:none}.rating-container .rating-stars{position:relative;cursor:pointer;vertical-align:middle;display:inline-block;overflow:hidden;white-space:nowrap}.rating-container .rating-input{position:absolute;cursor:pointer;width:100%;height:1px;bottom:0;left:0;font-size:1px;border:none;background:0 0;padding:0;margin:0}.rating-disabled .rating-input,.rating-disabled .rating-stars{cursor:not-allowed}.rating-container .star{display:inline-block;margin:0 3px;text-align:center}.rating-container .empty-stars{color:#aaa}.rating-container .filled-stars{position:absolute;left:0;top:0;margin:auto;color:#fde16d;white-space:nowrap;overflow:hidden;-webkit-text-stroke:1px #777;text-shadow:1px 1px #999}.rating-rtl{float:right}.rating-animate .filled-stars{transition:width .25s ease;-o-transition:width .25s ease;-moz-transition:width .25s ease;-webkit-transition:width .25s ease}.rating-rtl .filled-stars{left:auto;right:0;-moz-transform:matrix(-1,0,0,1,0,0) translate3d(0,0,0);-webkit-transform:matrix(-1,0,0,1,0,0) translate3d(0,0,0);-o-transform:matrix(-1,0,0,1,0,0) translate3d(0,0,0);transform:matrix(-1,0,0,1,0,0) translate3d(0,0,0)}.rating-rtl.is-star .filled-stars{right:.06em}.rating-rtl.is-heart .empty-stars{margin-right:.07em}.rating-lg{font-size:3.91em}.rating-md{font-size:3.13em}.rating-sm{font-size:2.5em}.rating-xs{font-size:2em}.rating-xl{font-size:4.89em}.rating-container .clear-rating{color:#aaa;cursor:not-allowed;display:inline-block;vertical-align:middle;font-size:60%;padding-right:5px}.clear-rating-active{cursor:pointer!important}.clear-rating-active:hover{color:#843534}.rating-container .caption .label{display:inline-block;padding:.25em .4em;line-height:1;text-align:center;vertical-align:baseline;border-radius:.25rem}.rating-container .caption{color:#999;display:inline-block;vertical-align:middle;font-size:60%;margin-top:-.6em;margin-left:5px;margin-right:0}.rating-rtl .caption{margin-right:5px;margin-left:0}@media print{.rating-container .clear-rating{display:none}} -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-admin-extensions/star-rating/ef4fd6360cdf209e87984ff5a86d9383032b78ca/resources/assets/bootstrap-star-rating-4.0.3/img/loading.gif -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/LANG.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales[''] = { 15 | defaultCaption: '{rating} Stars', 16 | starCaptions: { 17 | 0.5: 'Half Star', 18 | 1: 'One Star', 19 | 1.5: 'One & Half Star', 20 | 2: 'Two Stars', 21 | 2.5: 'Two & Half Stars', 22 | 3: 'Three Stars', 23 | 3.5: 'Three & Half Stars', 24 | 4: 'Four Stars', 25 | 4.5: 'Four & Half Stars', 26 | 5: 'Five Stars' 27 | }, 28 | clearButtonTitle: 'Clear', 29 | clearCaption: 'Not Rated' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/ar.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Arabic Translation By Abdulrahman Zaiter 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['ar'] = { 15 | defaultCaption: '{rating} نجوم', 16 | starCaptions: { 17 | 0.5: 'نصف نجمة', 18 | 1: 'نجمة واحدة', 19 | 1.5: 'نجمة ونصف', 20 | 2: 'نجمتين', 21 | 2.5: 'نجمتين ونصف', 22 | 3: 'ثلاث نجمات', 23 | 3.5: 'ثلاث نجمات ونصف', 24 | 4: 'أربع نجمات', 25 | 4.5: 'أربع نجمات ونصف', 26 | 5: 'خمسة نجمات' 27 | }, 28 | clearButtonTitle: 'مسح', 29 | clearCaption: 'غير مصنّف' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/de.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating German Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['de'] = { 15 | defaultCaption: '{rating} Sterne', 16 | starCaptions: { 17 | 0.5: 'Halber Stern', 18 | 1: 'Ein Stern', 19 | 1.5: 'Eineinhalb Sterne', 20 | 2: 'Zwei Sterne', 21 | 2.5: 'Zweieinhalb Sterne', 22 | 3: 'Drei Sterne', 23 | 3.5: 'Dreieinhalb Sterne', 24 | 4: 'Vier Sterne', 25 | 4.5: 'Viereinhalb Sterne', 26 | 5: 'Fünf Sterne' 27 | }, 28 | clearButtonTitle: 'Zuücksetzen', 29 | clearCaption: 'Nicht Bewertet' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/es.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Spanish Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales.es = { 15 | defaultCaption: '{rating} Estrellas', 16 | starCaptions: { 17 | 0.5: 'Media Estrella', 18 | 1: 'Una Estrella', 19 | 1.5: 'Una Estrella y Media', 20 | 2: 'Dos Estrellas', 21 | 2.5: 'Dos Estrellas y Media', 22 | 3: 'Tres Estrellas', 23 | 3.5: 'Tres Estrellas y Media', 24 | 4: 'Cuatro Estrellas', 25 | 4.5: 'Cuatro Estrellas y Media', 26 | 5: 'Cinco Estrellas' 27 | }, 28 | clearButtonTitle: 'Limpiar', 29 | clearCaption: 'Sin Calificar' 30 | }; 31 | })(window.jQuery); -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/fa.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Persian Translation Bt Saeed Sajadi (http://saeedsajadi.ir) 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['fa'] = { 15 | defaultCaption: '{rating} ستاره', 16 | starCaptions: { 17 | 0.5: 'نیم ستاره', 18 | 1: 'یک ستاره', 19 | 1.5: 'یک و نیم ستاره', 20 | 2: 'دو ستاره', 21 | 2.5: 'دو و نیم ستاره', 22 | 3: 'سه ستاره', 23 | 3.5: 'سه و نیم ستاره', 24 | 4: 'چهار ستاره', 25 | 4.5: 'چهار ستاره', 26 | 5: 'پنج ستاره' 27 | }, 28 | clearButtonTitle: 'پاک کردن', 29 | clearCaption: 'بدون رای' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/fr.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating French Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['fr'] = { 15 | defaultCaption: '{rating} étoiles', 16 | starCaptions: { 17 | 0.5: 'Une demi étoile', 18 | 1: 'Une étoile', 19 | 1.5: 'Une étoile et demi', 20 | 2: 'Deux étoiles', 21 | 2.5: 'Deux étoiles et demi', 22 | 3: 'Trois étoiles', 23 | 3.5: 'Trois étoiles et demi', 24 | 4: 'Quatre étoiles', 25 | 4.5: 'Quatre étoiles et demi', 26 | 5: 'Cinq étoiles' 27 | }, 28 | clearButtonTitle: 'Effacer', 29 | clearCaption: 'Non noté' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/it.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Italian Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['it'] = { 15 | defaultCaption: '{rating} Stelle', 16 | starCaptions: { 17 | 0.5: 'Mezza Stella', 18 | 1: 'Una Stella', 19 | 1.5: 'Una Stella & Mezzo', 20 | 2: 'Due Stelle', 21 | 2.5: 'Due Stelle & Mezzo', 22 | 3: 'Tre Stelle', 23 | 3.5: 'Tre Stelle & Mezzo', 24 | 4: 'Quattro Stelle', 25 | 4.5: 'Quattro Stelle & Mezzo', 26 | 5: 'Cinque Stelle' 27 | }, 28 | clearButtonTitle: 'Rimuovi', 29 | clearCaption: 'Nessuna valutazione' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/ko.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['ko'] = { 15 | defaultCaption: '{rating} 별점', 16 | starCaptions: { 17 | 0.5: '0.5 점', 18 | 1: '1 점', 19 | 1.5: '1.5 점', 20 | 2: '2 점', 21 | 2.5: '2.5 점', 22 | 3: '3 점', 23 | 3.5: '3.5 점', 24 | 4: '4 점', 25 | 4.5: '4.5 점', 26 | 5: '5 점' 27 | }, 28 | clearButtonTitle: '초기화', 29 | clearCaption: '평점 없음' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/pl.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Polish Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['pl'] = { 15 | defaultCaption: '{rating} Gwiazdek', 16 | starCaptions: { 17 | 0.5: 'Pół Gwiazdki', 18 | 1: 'Jedna Gwiazdka', 19 | 1.5: 'Półtora Gwiazdek', 20 | 2: 'Dwie Gwiazdki', 21 | 2.5: 'Dwa i pół Gwiazdek', 22 | 3: 'Trzy Gwiazdki', 23 | 3.5: 'Trzy i pół Gwiazdek', 24 | 4: 'Cztery Gwiazdki', 25 | 4.5: 'Cztery i pół Gwiazdek', 26 | 5: 'Pięć Gwiazdek' 27 | }, 28 | clearButtonTitle: 'Powrót', 29 | clearCaption: 'Nie Oceniać' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/pt-BR.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Portugese Brazilian Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['pt-BR'] = { 15 | defaultCaption: '{rating} Estrelas', 16 | starCaptions: { 17 | 0.5: 'Meia Estrela', 18 | 1: 'Uma Estrela', 19 | 1.5: 'Uma Estrela e Meia', 20 | 2: 'Duas Estrelas', 21 | 2.5: 'Duas Estrelas e Meia', 22 | 3: 'Três Estrelas', 23 | 3.5: 'Três Estrelas e Meia', 24 | 4: 'Quatro Estrelas', 25 | 4.5: 'Quatro Estrelas e Meia', 26 | 5: 'Cinco Estrelas' 27 | }, 28 | clearButtonTitle: 'Limpar', 29 | clearCaption: 'Não Avaliado' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/ro.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Romanian Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | */ 12 | (function ($) { 13 | "use strict"; 14 | $.fn.ratingLocales['ro'] = { 15 | defaultCaption: '{rating} stele', 16 | starCaptions: { 17 | 0.5: 'Jumatate de stea', 18 | 1: 'O Stea', 19 | 1.5: 'O stea si jumatate', 20 | 2: 'Doua stele', 21 | 2.5: 'Doua stele si jumatate', 22 | 3: 'Trei stele', 23 | 3.5: 'Trei stele si jumatate', 24 | 4: 'Patru stele', 25 | 4.5: 'Patru stele si jumatate', 26 | 5: 'Cinci stele' 27 | }, 28 | clearButtonTitle: 'Sterge', 29 | clearCaption: 'Fara vot' 30 | }; 31 | })(window.jQuery); 32 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/ru.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Russian Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | * @author Ivan Zhuravlev. 12 | */ 13 | (function ($) { 14 | "use strict"; 15 | $.fn.ratingLocales['ru'] = { 16 | defaultCaption: '{rating} Звёзды', 17 | starCaptions: { 18 | 0.5: 'Половина звезды', 19 | 1: 'Одна звезда', 20 | 1.5: 'Полторы звезды', 21 | 2: 'Две звезды', 22 | 2.5: 'Две с половиной звезды', 23 | 3: 'Три звезды', 24 | 3.5: 'Три с половиной звезды', 25 | 4: 'Четыре звезды', 26 | 4.5: 'Четыре с половиной звезды', 27 | 5: 'Пять звёзд' 28 | }, 29 | clearButtonTitle: 'Очистить', 30 | clearCaption: 'Без рейтинга' 31 | }; 32 | })(window.jQuery); 33 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/tr.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * @see http://github.com/kartik-v/bootstrap-star-rating 3 | * @author Oguz Külcü 4 | * Turkish Language 5 | */ 6 | (function ($) { 7 | "use strict"; 8 | $.fn.ratingLocales['tr'] = { 9 | defaultCaption: '{rating} Yıldız', 10 | starCaptions: { 11 | 0.5: 'Yarım Yıldız', 12 | 1: 'Tek Yıldız', 13 | 1.5: 'Bir Buçuk Yıldız', 14 | 2: 'İki Yıldız', 15 | 2.5: 'İki Buçuk Yıldız', 16 | 3: 'Üç Yıldız', 17 | 3.5: 'Üç Buçuk Yıldız', 18 | 4: 'Dört Yıldız', 19 | 4.5: 'Dört Buçuk Yıldız', 20 | 5: 'Beş Yıldız' 21 | }, 22 | clearButtonTitle: 'Temizle', 23 | clearCaption: 'Oylanmamış' 24 | }; 25 | })(window.jQuery); 26 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/ua.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Ukrainian Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | * @author https://github.com/wowkin2 12 | */ 13 | (function ($) { 14 | "use strict"; 15 | $.fn.ratingLocales['ua'] = { 16 | defaultCaption: '{rating} Зірки', 17 | starCaptions: { 18 | 0.5: 'Пів зірки', 19 | 1: 'Одна зірка', 20 | 1.5: 'Півтори зірки', 21 | 2: 'Дві зірки', 22 | 2.5: 'Дві з половиною зірки', 23 | 3: 'Три зірки', 24 | 3.5: 'Три з половиною зірки', 25 | 4: 'Чотири зірки', 26 | 4.5: 'Чотири з половиною зірки', 27 | 5: 'П\'ять зірок' 28 | }, 29 | clearButtonTitle: 'Очистити', 30 | clearCaption: 'Без рейтингу' 31 | }; 32 | })(window.jQuery); 33 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/locales/zh.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Star Rating Chinese Translations 3 | * 4 | * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or 5 | * any HTML markup tags in the messages must not be converted or translated. 6 | * 7 | * NOTE: this file must be saved in UTF-8 encoding. 8 | * 9 | * @see http://github.com/kartik-v/bootstrap-star-rating 10 | * @author Kartik Visweswaran 11 | * @author Freeman 12 | */ 13 | (function ($) { 14 | "use strict"; 15 | $.fn.ratingLocales['zh'] = { 16 | defaultCaption: '{rating} 星', 17 | starCaptions: { 18 | 0.5: '半星', 19 | 1: '一星', 20 | 1.5: '一星半', 21 | 2: '二星', 22 | 2.5: '二星半', 23 | 3: '三星', 24 | 3.5: '三星半', 25 | 4: '四星', 26 | 4.5: '四星半', 27 | 5: '五星' 28 | }, 29 | clearButtonTitle: '清除', 30 | clearCaption: '未评级' 31 | }; 32 | })(window.jQuery); 33 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/js/star-rating.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * bootstrap-star-rating v4.0.3 3 | * http://plugins.krajee.com/star-rating 4 | * 5 | * Author: Kartik Visweswaran 6 | * Copyright: 2013 - 2017, Kartik Visweswaran, Krajee.com 7 | * 8 | * Licensed under the BSD 3-Clause 9 | * https://github.com/kartik-v/bootstrap-star-rating/blob/master/LICENSE.md 10 | */!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";e.fn.ratingLocales={},e.fn.ratingThemes={};var t,a;t={NAMESPACE:".rating",DEFAULT_MIN:0,DEFAULT_MAX:5,DEFAULT_STEP:.5,isEmpty:function(t,a){return null===t||void 0===t||0===t.length||a&&""===e.trim(t)},getCss:function(e,t){return e?" "+t:""},addCss:function(e,t){e.removeClass(t).addClass(t)},getDecimalPlaces:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},applyPrecision:function(e,t){return parseFloat(e.toFixed(t))},handler:function(e,a,n,r,i){var l=i?a:a.split(" ").join(t.NAMESPACE+" ")+t.NAMESPACE;r||e.off(l),e.on(l,n)}},a=function(t,a){var n=this;n.$element=e(t),n._init(a)},a.prototype={constructor:a,_parseAttr:function(e,a){var n,r,i,l,s=this,o=s.$element,c=o.attr("type");if("range"===c||"number"===c){switch(r=a[e]||o.data(e)||o.attr(e),e){case"min":i=t.DEFAULT_MIN;break;case"max":i=t.DEFAULT_MAX;break;default:i=t.DEFAULT_STEP}n=t.isEmpty(r)?i:r,l=parseFloat(n)}else l=parseFloat(a[e]);return isNaN(l)?i:l},_parseValue:function(e){var t=this,a=parseFloat(e);return isNaN(a)&&(a=t.clearValue),!t.zeroAsNull||0!==a&&"0"!==a?a:null},_setDefault:function(e,a){var n=this;t.isEmpty(n[e])&&(n[e]=a)},_initSlider:function(e){var a=this,n=a.$element.val();a.initialValue=t.isEmpty(n)?0:n,a._setDefault("min",a._parseAttr("min",e)),a._setDefault("max",a._parseAttr("max",e)),a._setDefault("step",a._parseAttr("step",e)),(isNaN(a.min)||t.isEmpty(a.min))&&(a.min=t.DEFAULT_MIN),(isNaN(a.max)||t.isEmpty(a.max))&&(a.max=t.DEFAULT_MAX),(isNaN(a.step)||t.isEmpty(a.step)||0===a.step)&&(a.step=t.DEFAULT_STEP),a.diff=a.max-a.min},_initHighlight:function(e){var t,a=this,n=a._getCaption();e||(e=a.$element.val()),t=a.getWidthFromValue(e)+"%",a.$filledStars.width(t),a.cache={caption:n,width:t,val:e}},_getContainerCss:function(){var e=this;return"rating-container"+t.getCss(e.theme,"theme-"+e.theme)+t.getCss(e.rtl,"rating-rtl")+t.getCss(e.size,"rating-"+e.size)+t.getCss(e.animate,"rating-animate")+t.getCss(e.disabled||e.readonly,"rating-disabled")+t.getCss(e.containerClass,e.containerClass)},_checkDisabled:function(){var e=this,t=e.$element,a=e.options;e.disabled=void 0===a.disabled?t.attr("disabled")||!1:a.disabled,e.readonly=void 0===a.readonly?t.attr("readonly")||!1:a.readonly,e.inactive=e.disabled||e.readonly,t.attr({disabled:e.disabled,readonly:e.readonly})},_addContent:function(e,t){var a=this,n=a.$container,r="clear"===e;return a.rtl?r?n.append(t):n.prepend(t):r?n.prepend(t):n.append(t)},_generateRating:function(){var a,n,r,i=this,l=i.$element;n=i.$container=e(document.createElement("div")).insertBefore(l),t.addCss(n,i._getContainerCss()),i.$rating=a=e(document.createElement("div")).attr("class","rating-stars").appendTo(n).append(i._getStars("empty")).append(i._getStars("filled")),i.$emptyStars=a.find(".empty-stars"),i.$filledStars=a.find(".filled-stars"),i._renderCaption(),i._renderClear(),i._initHighlight(),n.append(l),i.rtl&&(r=Math.max(i.$emptyStars.outerWidth(),i.$filledStars.outerWidth()),i.$emptyStars.width(r)),l.appendTo(a)},_getCaption:function(){var e=this;return e.$caption&&e.$caption.length?e.$caption.html():e.defaultCaption},_setCaption:function(e){var t=this;t.$caption&&t.$caption.length&&t.$caption.html(e)},_renderCaption:function(){var a,n=this,r=n.$element.val(),i=n.captionElement?e(n.captionElement):"";if(n.showCaption){if(a=n.fetchCaption(r),i&&i.length)return t.addCss(i,"caption"),i.html(a),void(n.$caption=i);n._addContent("caption",'
'+a+"
"),n.$caption=n.$container.find(".caption")}},_renderClear:function(){var a,n=this,r=n.clearElement?e(n.clearElement):"";if(n.showClear){if(a=n._getClearClass(),r.length)return t.addCss(r,a),r.attr({title:n.clearButtonTitle}).html(n.clearButton),void(n.$clear=r);n._addContent("clear",'
'+n.clearButton+"
"),n.$clear=n.$container.find("."+n.clearButtonBaseClass)}},_getClearClass:function(){var e=this;return e.clearButtonBaseClass+" "+(e.inactive?"":e.clearButtonActiveClass)},_toggleHover:function(e){var t,a,n,r=this;e&&(r.hoverChangeStars&&(t=r.getWidthFromValue(r.clearValue),a=e.val<=r.clearValue?t+"%":e.width,r.$filledStars.css("width",a)),r.hoverChangeCaption&&(n=e.val<=r.clearValue?r.fetchCaption(r.clearValue):e.caption,n&&r._setCaption(n+"")))},_init:function(t){var a,n=this,r=n.$element.addClass("rating-input");return n.options=t,e.each(t,function(e,t){n[e]=t}),(n.rtl||"rtl"===r.attr("dir"))&&(n.rtl=!0,r.attr("dir","rtl")),n.starClicked=!1,n.clearClicked=!1,n._initSlider(t),n._checkDisabled(),n.displayOnly&&(n.inactive=!0,n.showClear=!1,n.showCaption=!1),n._generateRating(),n._initEvents(),n._listen(),a=n._parseValue(r.val()),r.val(a),r.removeClass("rating-loading")},_initEvents:function(){var e=this;e.events={_getTouchPosition:function(a){var n=t.isEmpty(a.pageX)?a.originalEvent.touches[0].pageX:a.pageX;return n-e.$rating.offset().left},_listenClick:function(e,t){return e.stopPropagation(),e.preventDefault(),e.handled===!0?!1:(t(e),void(e.handled=!0))},_noMouseAction:function(t){return!e.hoverEnabled||e.inactive||t&&t.isDefaultPrevented()},initTouch:function(a){var n,r,i,l,s,o,c,u,d=e.clearValue||0,p="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch;p&&!e.inactive&&(n=a.originalEvent,r=t.isEmpty(n.touches)?n.changedTouches:n.touches,i=e.events._getTouchPosition(r[0]),"touchend"===a.type?(e._setStars(i),u=[e.$element.val(),e._getCaption()],e.$element.trigger("change").trigger("rating:change",u),e.starClicked=!0):(l=e.calculate(i),s=l.val<=d?e.fetchCaption(d):l.caption,o=e.getWidthFromValue(d),c=l.val<=d?o+"%":l.width,e._setCaption(s),e.$filledStars.css("width",c)))},starClick:function(t){var a,n;e.events._listenClick(t,function(t){return e.inactive?!1:(a=e.events._getTouchPosition(t),e._setStars(a),n=[e.$element.val(),e._getCaption()],e.$element.trigger("change").trigger("rating:change",n),void(e.starClicked=!0))})},clearClick:function(t){e.events._listenClick(t,function(){e.inactive||(e.clear(),e.clearClicked=!0)})},starMouseMove:function(t){var a,n;e.events._noMouseAction(t)||(e.starClicked=!1,a=e.events._getTouchPosition(t),n=e.calculate(a),e._toggleHover(n),e.$element.trigger("rating:hover",[n.val,n.caption,"stars"]))},starMouseLeave:function(t){var a;e.events._noMouseAction(t)||e.starClicked||(a=e.cache,e._toggleHover(a),e.$element.trigger("rating:hoverleave",["stars"]))},clearMouseMove:function(t){var a,n,r,i;!e.events._noMouseAction(t)&&e.hoverOnClear&&(e.clearClicked=!1,a=''+e.clearCaption+"",n=e.clearValue,r=e.getWidthFromValue(n)||0,i={caption:a,width:r,val:n},e._toggleHover(i),e.$element.trigger("rating:hover",[n,a,"clear"]))},clearMouseLeave:function(t){var a;e.events._noMouseAction(t)||e.clearClicked||!e.hoverOnClear||(a=e.cache,e._toggleHover(a),e.$element.trigger("rating:hoverleave",["clear"]))},resetForm:function(t){t&&t.isDefaultPrevented()||e.inactive||e.reset()}}},_listen:function(){var a=this,n=a.$element,r=n.closest("form"),i=a.$rating,l=a.$clear,s=a.events;return t.handler(i,"touchstart touchmove touchend",e.proxy(s.initTouch,a)),t.handler(i,"click touchstart",e.proxy(s.starClick,a)),t.handler(i,"mousemove",e.proxy(s.starMouseMove,a)),t.handler(i,"mouseleave",e.proxy(s.starMouseLeave,a)),a.showClear&&l.length&&(t.handler(l,"click touchstart",e.proxy(s.clearClick,a)),t.handler(l,"mousemove",e.proxy(s.clearMouseMove,a)),t.handler(l,"mouseleave",e.proxy(s.clearMouseLeave,a))),r.length&&t.handler(r,"reset",e.proxy(s.resetForm,a),!0),n},_getStars:function(e){var t,a=this,n='';for(t=1;t<=a.stars;t++)n+=''+a[e+"Star"]+"";return n+""},_setStars:function(e){var t=this,a=arguments.length?t.calculate(e):t.calculate(),n=t.$element,r=t._parseValue(a.val);return n.val(r),t.$filledStars.css("width",a.width),t._setCaption(a.caption),t.cache=a,n},showStars:function(e){var t=this,a=t._parseValue(e);return t.$element.val(a),t._setStars()},calculate:function(e){var a=this,n=t.isEmpty(a.$element.val())?0:a.$element.val(),r=arguments.length?a.getValueFromPosition(e):n,i=a.fetchCaption(r),l=a.getWidthFromValue(r);return l+="%",{caption:i,width:l,val:r}},getValueFromPosition:function(e){var a,n,r=this,i=t.getDecimalPlaces(r.step),l=r.$rating.width();return n=r.diff*e/(l*r.step),n=r.rtl?Math.floor(n):Math.ceil(n),a=t.applyPrecision(parseFloat(r.min+n*r.step),i),a=Math.max(Math.min(a,r.max),r.min),r.rtl?r.max-a:a},getWidthFromValue:function(e){var t,a,n=this,r=n.min,i=n.max,l=n.$emptyStars;return!e||r>=e||r===i?0:(a=l.outerWidth(),t=a?l.width()/a:1,e>=i?100:(e-r)*t*100/(i-r))},fetchCaption:function(e){var a,n,r,i,l,s=this,o=parseFloat(e)||s.clearValue,c=s.starCaptions,u=s.starCaptionClasses;return o&&o!==s.clearValue&&(o=t.applyPrecision(o,t.getDecimalPlaces(s.step))),i="function"==typeof u?u(o):u[o],r="function"==typeof c?c(o):c[o],n=t.isEmpty(r)?s.defaultCaption.replace(/\{rating}/g,o):r,a=t.isEmpty(i)?s.clearCaptionClass:i,l=o===s.clearValue?s.clearCaption:n,''+l+""},destroy:function(){var a=this,n=a.$element;return t.isEmpty(a.$container)||a.$container.before(n).remove(),e.removeData(n.get(0)),n.off("rating").removeClass("rating rating-input")},create:function(e){var t=this,a=e||t.options||{};return t.destroy().rating(a)},clear:function(){var e=this,t=''+e.clearCaption+"";return e.inactive||e._setCaption(t),e.showStars(e.clearValue).trigger("change").trigger("rating:clear")},reset:function(){var e=this;return e.showStars(e.initialValue).trigger("rating:reset")},update:function(e){var t=this;return arguments.length?t.showStars(e):t.$element},refresh:function(t){var a=this,n=a.$element;return t?a.destroy().rating(e.extend(!0,a.options,t)).trigger("rating:refresh"):n}},e.fn.rating=function(n){var r=Array.apply(null,arguments),i=[];switch(r.shift(),this.each(function(){var l,s=e(this),o=s.data("rating"),c="object"==typeof n&&n,u=c.theme||s.data("theme"),d=c.language||s.data("language")||"en",p={},g={};o||(u&&(p=e.fn.ratingThemes[u]||{}),"en"===d||t.isEmpty(e.fn.ratingLocales[d])||(g=e.fn.ratingLocales[d]),l=e.extend(!0,{},e.fn.rating.defaults,p,e.fn.ratingLocales.en,g,c,s.data()),o=new a(this,l),s.data("rating",o)),"string"==typeof n&&i.push(o[n].apply(o,r))}),i.length){case 0:return this;case 1:return void 0===i[0]?this:i[0];default:return i}},e.fn.rating.defaults={theme:"",language:"en",stars:5,filledStar:'',emptyStar:'',containerClass:"",size:"md",animate:!0,displayOnly:!1,rtl:!1,showClear:!0,showCaption:!0,starCaptionClasses:{.5:"label label-danger badge-danger",1:"label label-danger badge-danger",1.5:"label label-warning badge-warning",2:"label label-warning badge-warning",2.5:"label label-info badge-info",3:"label label-info badge-info",3.5:"label label-primary badge-primary",4:"label label-primary badge-primary",4.5:"label label-success badge-success",5:"label label-success badge-success"},clearButton:'',clearButtonBaseClass:"clear-rating",clearButtonActiveClass:"clear-rating-active",clearCaptionClass:"label label-default",clearValue:null,captionElement:null,clearElement:null,hoverEnabled:!0,hoverChangeCaption:!0,hoverChangeStars:!0,hoverOnClear:!0,zeroAsNull:!0},e.fn.ratingLocales.en={defaultCaption:"{rating} Stars",starCaptions:{.5:"Half Star",1:"One Star",1.5:"One & Half Star",2:"Two Stars",2.5:"Two & Half Stars",3:"Three Stars",3.5:"Three & Half Stars",4:"Four Stars",4.5:"Four & Half Stars",5:"Five Stars"},clearButtonTitle:"Clear",clearCaption:"Not Rated"},e.fn.rating.Constructor=a,e(document).ready(function(){var t=e("input.rating");t.length&&t.removeClass("rating-loading").addClass("rating-loading").rating()})}); -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-fa/theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Font Awesome Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | .theme-krajee-fa .star { 9 | font-size: 1.1em; 10 | } 11 | 12 | .theme-krajee-fa .caption { 13 | margin-top: -0.2em; 14 | } -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-fa/theme.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Font Awesome Theme configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | (function ($) { 9 | "use strict"; 10 | $.fn.ratingThemes['krajee-fa'] = { 11 | filledStar: '', 12 | emptyStar: '', 13 | clearButton: '' 14 | }; 15 | })(window.jQuery); 16 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-fa/theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Font Awesome Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */.theme-krajee-fa .star{font-size:1.1em}.theme-krajee-fa .caption{margin-top:-.2em} -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-fa/theme.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Font Awesome Theme configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */!function(a){"use strict";a.fn.ratingThemes["krajee-fa"]={filledStar:'',emptyStar:'',clearButton:''}}(window.jQuery); -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-svg/theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee SVG Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | .theme-krajee-svg .krajee-icon { 9 | display: inline-block; 10 | width: 48px; 11 | height: 48px; 12 | -webkit-background-size: cover; 13 | -moz-background-size: cover; 14 | -o-background-size: cover; 15 | background-size: cover; 16 | } 17 | 18 | .theme-krajee-svg.rating-xl .krajee-icon { 19 | width: 80px; 20 | height: 80px; 21 | } 22 | 23 | .theme-krajee-svg.rating-lg .krajee-icon { 24 | width: 64px; 25 | height: 64px; 26 | } 27 | 28 | .theme-krajee-svg.rating-sm .krajee-icon { 29 | width: 40px; 30 | height: 40px; 31 | } 32 | 33 | .theme-krajee-svg.rating-xs .krajee-icon { 34 | width: 30px; 35 | height: 30px; 36 | } 37 | 38 | .theme-krajee-svg .filled-stars .krajee-icon-star { 39 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23fde16d%22%20stroke%3D%22%23777777%22%20d%3D%22M20.6%2011l-4.6-10.5-4.6%2010.5h-10.8l7.8%207.9-3%2012.1%2010.6-6%2010.6%206-3-12.1%207.8-7.9z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E'); 40 | } 41 | 42 | .theme-krajee-svg .krajee-icon-clear { 43 | display: inline-block; 44 | width: 39px; 45 | height: 39px; 46 | -webkit-background-size: cover; 47 | -moz-background-size: cover; 48 | -o-background-size: cover; 49 | background-size: cover; 50 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20id%3D%22svg2%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20158.81%20158.81%22%20version%3D%221.1%22%3E%0D%0A%3Cpath%20id%3D%22path4%22%20style%3D%22fill%3A%23aaa%22%20stroke-linejoin%3D%22round%22%20d%3D%22m155.06%2C79.438c0%2C41.799-33.885%2C75.684-75.684%2C75.684s-75.684-33.885-75.684-75.684%2C33.885-75.684%2C75.684-75.684%2C75.684%2C33.885%2C75.684%2C75.684z%22%20stroke%3D%22%23aaa%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%2F%3E%0D%0A%3Cpath%20id%3D%22rect3139%22%20style%3D%22fill%3A%23fff%22%20d%3D%22m37.216%2C64.443v28.67h88.24v-28.67h-88.24z%22%2F%3E%0D%0A%3C%2Fsvg%3E'); 51 | } 52 | 53 | .theme-krajee-svg .krajee-icon-clear:hover { 54 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20id%3D%22svg2%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20158.81%20158.81%22%20version%3D%221.1%22%3E%0D%0A%3Cpath%20id%3D%22path4%22%20style%3D%22fill%3A%23843534%22%20stroke-linejoin%3D%22round%22%20d%3D%22m155.06%2C79.438c0%2C41.799-33.885%2C75.684-75.684%2C75.684s-75.684-33.885-75.684-75.684%2C33.885-75.684%2C75.684-75.684%2C75.684%2C33.885%2C75.684%2C75.684z%22%20stroke%3D%22%23843534%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%2F%3E%0D%0A%3Cpath%20id%3D%22rect3139%22%20style%3D%22fill%3A%23fff%22%20d%3D%22m37.216%2C64.443v28.67h88.24v-28.67h-88.24z%22%2F%3E%0D%0A%3C%2Fsvg%3E'); 55 | } 56 | 57 | .theme-krajee-svg.rating-xl .krajee-icon-clear { 58 | width: 64px; 59 | height: 64px; 60 | } 61 | 62 | .theme-krajee-svg.rating-lg .krajee-icon-clear { 63 | width: 50px; 64 | height: 50px; 65 | } 66 | 67 | .theme-krajee-svg.rating-sm .krajee-icon-clear { 68 | width: 30px; 69 | height: 30px; 70 | } 71 | 72 | .theme-krajee-svg.rating-xs .krajee-icon-clear { 73 | width: 23px; 74 | height: 23px; 75 | } 76 | 77 | .theme-krajee-svg .empty-stars .krajee-icon-star { 78 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20stroke%3D%22%23777777%22%20d%3D%22M20.6%2011l-4.6-10.5-4.6%2010.5h-10.8l7.8%207.9-3%2012.1%2010.6-6%2010.6%206-3-12.1%207.8-7.9z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E'); 79 | } 80 | 81 | .theme-krajee-svg .filled-stars .krajee-icon-heart { 82 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fde16d%22%20stroke%3D%22%23777777%22%20stroke-width%3D%220.04em%22%20d%3D%22M12%2021.35l-1.45-1.32c-5.15-4.67-8.55-7.75-8.55-11.53%200-3.08%202.42-5.5%205.5-5.5%201.74%200%203.41.81%204.5%202.09%201.09-1.28%202.76-2.09%204.5-2.09%203.08%200%205.5%202.42%205.5%205.5%200%203.78-3.4%206.86-8.55%2011.54l-1.45%201.31z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E'); 83 | } 84 | 85 | .theme-krajee-svg .empty-stars .krajee-icon-heart { 86 | background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20stroke%3D%22%23777777%22%20stroke-width%3D%220.04em%22%20d%3D%22M12%2021.35l-1.45-1.32c-5.15-4.67-8.55-7.75-8.55-11.53%200-3.08%202.42-5.5%205.5-5.5%201.74%200%203.41.81%204.5%202.09%201.09-1.28%202.76-2.09%204.5-2.09%203.08%200%205.5%202.42%205.5%205.5%200%203.78-3.4%206.86-8.55%2011.54l-1.45%201.31z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E'); 87 | } 88 | 89 | .theme-krajee-svg .krajee-icon-heart { 90 | margin: 0 -0.08em; 91 | } 92 | 93 | .theme-krajee-svg.is-heart .caption { 94 | margin-top: -0.8em; 95 | } 96 | 97 | .theme-krajee-svg.is-heart .clear-rating { 98 | margin-top: -0.4em; 99 | } 100 | 101 | .theme-krajee-svg.rating-rtl.is-heart .filled-stars { 102 | right: 0.02em; 103 | } 104 | 105 | .theme-krajee-svg.rating-rtl.is-heart .empty-stars { 106 | margin-right: 0.01em; 107 | } -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-svg/theme.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee SVG Theme Configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | (function ($) { 9 | "use strict"; 10 | $.fn.ratingThemes['krajee-svg'] = { 11 | filledStar: '', 12 | emptyStar: '', 13 | clearButton: '' 14 | }; 15 | })(window.jQuery); 16 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-svg/theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee SVG Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | .theme-krajee-svg .krajee-icon{display:inline-block;width:48px;height:48px;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}.theme-krajee-svg.rating-xl .krajee-icon{width:80px;height:80px}.theme-krajee-svg.rating-lg .krajee-icon{width:64px;height:64px}.theme-krajee-svg.rating-sm .krajee-icon{width:40px;height:40px}.theme-krajee-svg.rating-xs .krajee-icon{width:30px;height:30px}.theme-krajee-svg .filled-stars .krajee-icon-star{background-image:url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23fde16d%22%20stroke%3D%22%23777777%22%20d%3D%22M20.6%2011l-4.6-10.5-4.6%2010.5h-10.8l7.8%207.9-3%2012.1%2010.6-6%2010.6%206-3-12.1%207.8-7.9z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E')}.theme-krajee-svg .empty-stars .krajee-icon-star{background-image:url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20stroke%3D%22%23777777%22%20d%3D%22M20.6%2011l-4.6-10.5-4.6%2010.5h-10.8l7.8%207.9-3%2012.1%2010.6-6%2010.6%206-3-12.1%207.8-7.9z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E')}.theme-krajee-svg .filled-stars .krajee-icon-heart{background-image:url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fde16d%22%20stroke%3D%22%23777777%22%20stroke-width%3D%220.04em%22%20d%3D%22M12%2021.35l-1.45-1.32c-5.15-4.67-8.55-7.75-8.55-11.53%200-3.08%202.42-5.5%205.5-5.5%201.74%200%203.41.81%204.5%202.09%201.09-1.28%202.76-2.09%204.5-2.09%203.08%200%205.5%202.42%205.5%205.5%200%203.78-3.4%206.86-8.55%2011.54l-1.45%201.31z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E')}.theme-krajee-svg .empty-stars .krajee-icon-heart{background-image:url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20stroke%3D%22%23777777%22%20stroke-width%3D%220.04em%22%20d%3D%22M12%2021.35l-1.45-1.32c-5.15-4.67-8.55-7.75-8.55-11.53%200-3.08%202.42-5.5%205.5-5.5%201.74%200%203.41.81%204.5%202.09%201.09-1.28%202.76-2.09%204.5-2.09%203.08%200%205.5%202.42%205.5%205.5%200%203.78-3.4%206.86-8.55%2011.54l-1.45%201.31z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E')}.theme-krajee-svg .krajee-icon-heart{margin:0 -.08em}.theme-krajee-svg.is-heart .caption{margin-top:-.8em}.theme-krajee-svg.is-heart .clear-rating{margin-top:-.4em}.theme-krajee-svg.rating-rtl.is-heart .filled-stars{right:.02em}.theme-krajee-svg.rating-rtl.is-heart .empty-stars{margin-right:.01em} -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-svg/theme.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee SVG Theme Configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */!function(a){"use strict";a.fn.ratingThemes["krajee-svg"]={filledStar:'',emptyStar:'',clearButton:''}}(window.jQuery); -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-uni/theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Unicode Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | .theme-krajee-uni .star { 9 | font-size: 1.3em; 10 | margin: 0; 11 | } 12 | 13 | .theme-krajee-uni .caption { 14 | margin-top: 0; 15 | } -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-uni/theme.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Unicode Theme configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */ 8 | (function ($) { 9 | "use strict"; 10 | $.fn.ratingThemes['krajee-uni'] = { 11 | filledStar: '★', 12 | emptyStar: '☆', 13 | clearButton: '⊝' 14 | }; 15 | })(window.jQuery); 16 | -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-uni/theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Unicode Theme styling for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.css'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */.theme-krajee-uni .star{font-size:1.3em;margin:0}.theme-krajee-uni .caption{margin-top:0} -------------------------------------------------------------------------------- /resources/assets/bootstrap-star-rating-4.0.3/themes/krajee-uni/theme.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Krajee Unicode Theme configuration for bootstrap-star-rating. 3 | * This file must be loaded after 'star-rating.js'. 4 | * 5 | * @see http://github.com/kartik-v/bootstrap-star-rating 6 | * @author Kartik Visweswaran 7 | */!function(e){"use strict";e.fn.ratingThemes["krajee-uni"]={filledStar:"★",emptyStar:"☆",clearButton:"⊝"}}(window.jQuery); 8 | -------------------------------------------------------------------------------- /resources/views/input.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
6 | 7 | @include('admin::form.error') 8 | 9 |
10 | 11 | 12 | 13 |
14 | 15 | @include('admin::form.help-block') 16 |
17 |
18 | -------------------------------------------------------------------------------- /src/StarRating.php: -------------------------------------------------------------------------------- 1 | id}').rating({$config});"); 35 | return parent::render(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/StarRatingExtension.php: -------------------------------------------------------------------------------- 1 | views()) { 21 | $this->loadViewsFrom($views, 'laravel-admin-star-rating'); 22 | } 23 | 24 | if ($this->app->runningInConsole() && $assets = $extension->assets()) { 25 | $this->publishes( 26 | [$assets => public_path('vendor/laravel-admin-ext/star-rating')], 27 | 'laravel-admin-star-rating' 28 | ); 29 | } 30 | 31 | Admin::booting(function () { 32 | Form::extend('starRating', StarRating::class); 33 | }); 34 | 35 | } 36 | } 37 | --------------------------------------------------------------------------------