ember-spin-spinner
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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
index.js
@@ -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 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
8011
15
12
118
1
+ Addedalign-text@0.1.4(transitive)
+ Addedalter@0.2.0(transitive)
+ Addedarray-equal@1.0.2(transitive)
+ Addedast-traverse@0.1.1(transitive)
+ Addedast-types@0.8.12(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedasync-disk-cache@1.3.5(transitive)
+ Addedasync-promise-queue@1.0.5(transitive)
+ Addedbabel-core@5.8.38(transitive)
+ Addedbabel-plugin-constant-folding@1.0.1(transitive)
+ Addedbabel-plugin-dead-code-elimination@1.0.2(transitive)
+ Addedbabel-plugin-eval@1.0.1(transitive)
+ Addedbabel-plugin-inline-environment-variables@1.0.1(transitive)
+ Addedbabel-plugin-jscript@1.0.4(transitive)
+ Addedbabel-plugin-member-expression-literals@1.0.1(transitive)
+ Addedbabel-plugin-property-literals@1.0.1(transitive)
+ Addedbabel-plugin-proto-to-assign@1.0.4(transitive)
+ Addedbabel-plugin-react-constant-elements@1.0.3(transitive)
+ Addedbabel-plugin-react-display-name@1.0.3(transitive)
+ Addedbabel-plugin-remove-console@1.0.1(transitive)
+ Addedbabel-plugin-remove-debugger@1.0.1(transitive)
+ Addedbabel-plugin-runtime@1.0.7(transitive)
+ Addedbabel-plugin-undeclared-variables-check@1.0.2(transitive)
+ Addedbabel-plugin-undefined-to-void@1.1.6(transitive)
+ Addedbabylon@5.8.38(transitive)
+ Addedbinaryextensions@2.3.0(transitive)
+ Addedblank-object@1.0.2(transitive)
+ Addedbluebird@2.11.0(transitive)
+ Addedbreakable@1.0.0(transitive)
+ Addedbroccoli-babel-transpiler@5.7.4(transitive)
+ Addedbroccoli-funnel@1.2.0(transitive)
+ Addedbroccoli-kitchen-sink-helpers@0.3.1(transitive)
+ Addedbroccoli-merge-trees@1.2.4(transitive)
+ Addedbroccoli-persistent-filter@1.4.6(transitive)
+ Addedbroccoli-plugin@1.3.1(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcan-symlink@1.0.0(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefs@1.1.1(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addededitions@1.3.4(transitive)
+ Addedember-cli-babel@5.2.8(transitive)
+ Addedensure-posix-path@1.1.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.1.1(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedexists-sync@0.0.4(transitive)
+ Addedfast-ordered-set@1.0.3(transitive)
+ Addedfs-tree-diff@0.5.9(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhash-for-dep@1.5.1(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedheimdalljs@0.2.6(transitive)
+ Addedheimdalljs-logger@0.1.10(transitive)
+ Addedhome-or-tmp@1.0.0(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedistextorbinary@2.1.0(transitive)
+ Addedjs-tokens@1.0.1(transitive)
+ Addedjson-stable-stringify@1.2.1(transitive)
+ Addedjson5@0.4.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedmatcher-collection@1.1.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedminimatch@2.0.10(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpath-exists@1.0.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-posix@1.0.0(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedrecast@0.10.33(transitive)
+ Addedregenerator@0.8.40(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedresolve-package-path@1.2.7(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedrsvp@3.2.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsimple-fmt@0.1.0(transitive)
+ Addedsimple-is@0.2.0(transitive)
+ Addedstable@0.1.8(transitive)
+ Addedstringmap@0.2.2(transitive)
+ Addedstringset@0.2.1(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtextextensions@2.6.0(transitive)
+ Addedtmp@0.0.28(transitive)
+ Addedtry-resolve@1.0.1(transitive)
+ Addedtryor@0.1.2(transitive)
+ Addeduser-home@1.1.1(transitive)
+ Addedusername-sync@1.0.3(transitive)
+ Addedwalk-sync@0.3.4(transitive)
+ Addedwindow-size@0.1.4(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedworkerpool@2.3.4(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.27.0(transitive)
- Removedacorn-babel@0.11.1-38(transitive)
- Removedast-types@0.7.80.8.15(transitive)
- Removedbabel-core@4.7.16(transitive)
- Removedbroccoli-babel-transpiler@4.1.0(transitive)
- Removedbroccoli-filter@0.1.14(transitive)
- Removedbroccoli-kitchen-sink-helpers@0.2.9(transitive)
- Removedbroccoli-writer@0.1.1(transitive)
- Removedconvert-source-map@0.5.1(transitive)
- Removedcore-js@0.6.1(transitive)
- Removedember-cli-babel@4.3.3(transitive)
- Removedestraverse@1.9.3(transitive)
- Removedesutils@1.1.6(transitive)
- Removedjs-tokens@1.0.0(transitive)
- Removedleft-pad@0.0.3(transitive)
- Removedline-numbers@0.2.0(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedrecast@0.10.43(transitive)
- Removedregenerator-babel@0.8.13-2(transitive)
- Removedsource-map@0.4.4(transitive)
- Removedwalk-sync@0.1.3(transitive)
Updatedember-cli-babel@^5.0.0