Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
ember-star-rating
Advanced tools
Changelog
[3.0.0]
Readme
Ember.js component for ratings.
Check out the dummy app here
In your application's directory:
$ ember install ember-star-rating
Use the component in your template:
<StarRating @rating={{rating}} />
or with positional params.
{{star-rating rating}}
Option | Type | Default | Info |
---|---|---|---|
rating | Number | 0 | The current rating value |
numStars | Number | 5 | The number of "stars" to render |
readOnly | Boolean | false | Whether the component can be edited or not |
anyPercent | Boolean | false | Allow setting a rating to any percentage. Example: 3.2 |
wholeOnly | Boolean | false | Only allow integer rating values. Example: 1 - 5 |
useHalfStars | Boolean | true | Allow half rating values. Example: 2.5 |
onHover | Function | NOOP | Called on the mouseMove and mouseLeave events with the rating value at the time. |
onClick | Function | NOOP | Called when the user selects a rating value. This is still invoked when readOnly is set to true |
width | Number | 26 | Width of the SVG element |
height | Number | 26 | Height of the SVG element |
viewBox | String | '0 0 26 26' | ViewBox of the SVG element |
svgPath | String | '...' | Path value of the SVG element |
fillColor | String | 'yellow' | Color of the SVG element that is considered full (has a rating) |
baseColor | String | 'lightgrey' | Color of the SVG element that is considered empty |
FAQs
Star ratings for emberjs.
The npm package ember-star-rating receives a total of 530 weekly downloads. As such, ember-star-rating popularity was classified as not popular.
We found that ember-star-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.