diff --git a/bower.json b/bower.json index f85fbab..7967995 100644 --- a/bower.json +++ b/bower.json @@ -8,6 +8,7 @@ "dependencies": { "ngCordova": "~0.1.12-alpha", "socket.io-client": "https://github.com/Automattic/socket.io-client.git#1.3.4", - "angular-uuid4": "~0.3.0" + "angular-uuid4": "~0.3.0", + "angular-spinner": "https://github.com/urish/angular-spinner.git#~0.6.1" } } diff --git a/client/www/app/app.module.js b/client/www/app/app.module.js index 19e36b0..4722324 100644 --- a/client/www/app/app.module.js +++ b/client/www/app/app.module.js @@ -47,6 +47,24 @@ delete $httpProvider.defaults.headers.common["X-Requested-With"]; }) + .config(function (usSpinnerConfigProvider) { + usSpinnerConfigProvider.setDefaults({ + lines: 11, // The number of lines to draw + length: 21, // The length of each line + width: 2, // The line thickness + radius: 19, // The radius of the inner circle + corners: 1, // Corner roundness (0..1) + rotate: 0, // The rotation offset + direction: 1, // 1: clockwise, -1: counterclockwise + color: '#000', // #rgb or #rrggbb or array of colors + speed: 0.8, // Rounds per second + trail: 48, // Afterglow percentage + // shadow: true, // Whether to render a shadow + top: '50%', // Top position relative to parent + left: '50%' // Left position relative to parent + }); + }) + .config(function($stateProvider, $urlRouterProvider) { $stateProvider diff --git a/client/www/app/core/core.module.js b/client/www/app/core/core.module.js index 84f954d..2af3c57 100644 --- a/client/www/app/core/core.module.js +++ b/client/www/app/core/core.module.js @@ -1,7 +1,6 @@ (function() { 'use strict'; - angular.module('app.core', ['app.media', 'ngCordova', 'app.tools', 'app.data', 'uuid4']); + angular.module('app.core', ['app.media', 'app.data', 'app.tools', 'app.third-party.tools']); })(); - diff --git a/client/www/app/core/third-party.tools.module.js b/client/www/app/core/third-party.tools.module.js new file mode 100644 index 0000000..294cf38 --- /dev/null +++ b/client/www/app/core/third-party.tools.module.js @@ -0,0 +1,6 @@ +(function() { + 'use strict'; + + angular.module('app.third-party.tools', ['ngCordova','uuid4','angularSpinner']); + +})(); diff --git a/client/www/app/moment/items/showImage.directive.html b/client/www/app/moment/items/showImage.directive.html index f102454..a89d100 100644 --- a/client/www/app/moment/items/showImage.directive.html +++ b/client/www/app/moment/items/showImage.directive.html @@ -1,5 +1,6 @@