New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-spin-spinner

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-spin-spinner - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

.watchmanconfig

14

addon/components/spin-spinner.js

@@ -6,4 +6,2 @@ import Ember from 'ember';

attributeBindings: ['style'],
lines: 13,

@@ -37,7 +35,11 @@

style: Ember.computed('top', 'left', function () {
return Ember.String.htmlSafe('position: absolute; width: 0; height: 0; left: '+ this.get('left') +'; top: '+ this.get('top') +';');
}),
startSpinner: Ember.on('didInsertElement', function () {
this.$().css({
'position': 'absolute',
'width': 0,
'height': 0,
'left': this.get('left'),
'top': this.get('top')
});
startSpinner: Ember.on('didInsertElement', function () {
this.$().spin({

@@ -44,0 +46,0 @@ lines: this.get('lines'),

@@ -0,1 +1,4 @@

/* jshint node: true */
'use strict';
module.exports = {

@@ -2,0 +5,0 @@ normalizeEntityName: function() {},

@@ -15,7 +15,16 @@ /* jshint node: true */

var spinPath = path.join(app.bowerDirectory, 'spin.js');
/* This check is a temporary hack to make it possible to use this addon
* both as a top level addon dependency, and as a nested addon dependency
* for another addon, pending resolution of https://github.com/ember-cli/ember-cli/issues/3718
*
* Any addon that wants to use this addon as a nested addon dependency needs
* to do the below imports itself in its included hook.
*/
if (typeof(app.import) === 'function') {
var spinPath = path.join(app.bowerDirectory, 'spin.js');
app.import(path.join(spinPath, 'spin.js'));
app.import(path.join(spinPath, 'jquery.spin.js'));
app.import(path.join(spinPath, 'spin.js'));
app.import(path.join(spinPath, 'jquery.spin.js'));
}
}
};
{
"name": "ember-spin-spinner",
"version": "0.2.1",
"version": "0.2.2",
"description": "Ember component wrapper for spin.js.",

@@ -12,3 +12,3 @@ "directories": {

"build": "ember build",
"test": "ember test"
"test": "ember try:testall"
},

@@ -23,14 +23,16 @@ "repository": "https://github.com/rsschermer/ember-spin-spinner",

"broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.2",
"ember-cli": "0.2.7",
"ember-cli-app-version": "0.3.3",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-htmlbars": "0.7.4",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-htmlbars": "0.7.6",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.9",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.16.1",
"ember-cli-qunit": "0.3.13",
"ember-cli-uglify": "^1.0.1",
"ember-data": "1.0.0-beta.18",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2",
"ember-disable-prototype-extensions": "^1.0.0"
"ember-disable-prototype-extensions": "^1.0.0",
"ember-try": "0.0.6"
},

@@ -46,3 +48,3 @@ "keywords": [

"dependencies": {
"ember-cli-babel": "^4.0.0"
"ember-cli-babel": "^5.0.0"
},

@@ -49,0 +51,0 @@ "ember-addon": {

@@ -35,16 +35,16 @@ # Ember-spin-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
* `corners` (default: 1): corner roundness (0..1)
* `rotate` (default: 0): the rotation offset
* `direction` (default: 1): 1 for clockwise, -1 for counterclockwise
* `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
* `corners` (default: `1`): corner roundness (0..1)
* `rotate` (default: `0`): the rotation offset
* `direction` (default: `1`): 1 for clockwise, -1 for counterclockwise
* `color` (default: parent element text color): #rgb or #rrggbb or array of colors
* `speed` (default: 1): rounds per second
* `trail` (default: 60): afterglow percentage
* `shadow` (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.
* `speed` (default: `1`): rounds per second
* `trail` (default: `60`): afterglow percentage
* `shadow` (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.

@@ -51,0 +51,0 @@ If you want to set different defaults for all spinners in your application, extend the component and override the

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc