
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ember-spin-spinner
Advanced tools
Simple Ember spinner component based on spin.js.
ember install 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 make sure to set the containing element's position to relative.
*/
position: relative;
}
The spinner is absolutely positioned (in the center by default), so make sure to set the containing element's position to relative. You may also want to give the containing element a minimum height.
The following properties can be set to customize a particular spinner:
lines
(default: 13
): the number of lines to draw.length
(default: 20
): the length of each line.width
(default: 10
): the line thickness.radius
(default: 30
): the radius of the inner circle.scale
(default: 1
): scales the overall size of the spinner.corners
(default: 1
): corner roundness (0..1).rotate
(default: 0
): the rotation offset.direction
(default: 1
): 1 for clockwise, -1 for counterclockwise.color
(default: #333
): #rgb or #rrggbb or array of colors.speed
(default: 1
): rounds per second.trail
(default: 60
): afterglow percentage.zIndex
(default: 2e9
): the z-indexshadow
(default: false
): whether to render a shadow.hwaccel
(default: false
): whether to use hardware acceleration.top
(default: '50%'
): top position relative to parent.left
(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
});
0.4.0
Upgrade to ember-cli 3.5.0 and spin.js 4.0.0, eliminate bower dependency.
BREAKING: spinner color will no longer default to the parent elements text color, but will instead default to #333
.
FAQs
Ember component wrapper for spin.js.
The npm package ember-spin-spinner receives a total of 565 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.