Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ember-spin-spinner
Advanced tools
Simple Ember spinner component based on spin.js.
npm install ember-spin-spinner --save-dev
ember generate ember-spin-spinner
Example:
<!-- somepage.hbs -->
<div class='loading-container'>
{{spin-spinner lines=13 length=20 width=10}}
</div>
/* somepage.css */
.loading-container {
/* The spinner is absolutely positioned (in the center by default) so set parent position to relative */
position: relative;
}
The following properties can be set to customize a particular spinner:
lines
(default: 13): the number of lines to drawlength
(default: 20): the length of each linewidth
(default: 10): the line thicknessradius
(default: 30): the radius of the inner circlecorners
(default: 1): corner roundness (0..1)rotate
(default: 0): the rotation offsetdirection
(default: 1): 1 for clockwise, -1 for counterclockwisecolor
(default: parent element text color): #rgb or #rrggbb or array of colorsspeed
(default: 1): rounds per secondtrail
(default: 60): afterglow percentageshadow
(default: false): whether to render a shadowhwaccel
(default: false): whether to use hardware accelerationtop
(default: '50%'): top position relative to parentleft
(default: '50%'): left position relative to parent.If you want to set different defaults for all spinners in your application, extend the component and override the defaults with your own:
// app/components/spin-spinner.js
import SpinSpinnerComponent from 'ember-spin-spinner/components/spin-spinner';
export default SpinSpinnerComponent.extend({
length: 6,
width: 2
});
FAQs
Ember component wrapper for spin.js.
The npm package ember-spin-spinner receives a total of 590 weekly downloads. As such, ember-spin-spinner popularity was classified as not popular.
We found that ember-spin-spinner 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.