├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src └── Rating.vue └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2016 fundon <cfddream@gmail.com< 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, 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, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rating 2 | 3 | Rating component is based on [starability.css](http://lunarlogic.github.io/starability/) for Vue Bulma. 4 | 5 | ## Installation 6 | 7 | ``` 8 | $ npm install vue-bulma-rating --save 9 | ``` 10 | 11 | ## Examples 12 | 13 | ```vue 14 | 20 | 21 | 64 | 65 | ``` 66 | 67 | 68 | ## Badges 69 | 70 | ![](https://img.shields.io/badge/license-MIT-blue.svg) 71 | ![](https://img.shields.io/badge/status-stable-green.svg) 72 | 73 | --- 74 | 75 | > [fundon.me](https://fundon.me)  ·  76 | > GitHub [@fundon](https://github.com/fundon)  ·  77 | > Twitter [@_fundon](https://twitter.com/_fundon) 78 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-bulma-rating", 3 | "version": "1.0.1", 4 | "description": "Rating component is based on starability for Vue Bulma", 5 | "main": "src/Rating.vue", 6 | "peerDependencies": { 7 | "bulma": ">=0.2", 8 | "vue": ">=2" 9 | }, 10 | "repository": "vue-bulma/rating", 11 | "keywords": [ 12 | "vue", 13 | "bulma", 14 | "vue-bulma", 15 | "vue-bulma-component", 16 | "vue-bulma-rating", 17 | "starability", 18 | "rating", 19 | "rate" 20 | ], 21 | "author": "Fangdun Cai ", 22 | "license": "MIT", 23 | "dependencies": { 24 | "starability": "1.0.5" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Rating.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 58 | 59 | 290 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | starability@1.0.5: 6 | version "1.0.5" 7 | resolved "https://registry.yarnpkg.com/starability/-/starability-1.0.5.tgz#5419145ec7d57dd169db353089acae19cffd05e0" 8 | --------------------------------------------------------------------------------