diff --git a/client/app/main.controller.js b/client/app/main.controller.js index e5bcacf..d442efd 100755 --- a/client/app/main.controller.js +++ b/client/app/main.controller.js @@ -18,11 +18,8 @@ angular.module('dssWebApp') $rootScope.setCurrentUser(user); return $state.go(toState.name, toParams); }, function (reason) { - debugger; console.error(reason); }); - } else { - debugger; } }); $rootScope.safeApply = function (fn) { diff --git a/client/app/views/mixes/upload/upload.controller.js b/client/app/views/mixes/upload/upload.controller.js index 7e12ac5..eb5e0df 100755 --- a/client/app/views/mixes/upload/upload.controller.js +++ b/client/app/views/mixes/upload/upload.controller.js @@ -6,8 +6,10 @@ angular.module('dssWebApp') Session, MixModel, LoginService, ImageUploadService, SERVER_CONFIG, AUTH_EVENTS) { $scope.mix = mix; - $scope.waveformHeader = '(drag & drop or click & browse)'; + $scope.waveformHeader = + "" + + "Generating waveform, we'll try to let you know when it's done or send you an email."; $scope.waveformFooter = ''; $scope.sending = false; @@ -113,7 +115,7 @@ angular.module('dssWebApp') $scope.mix = result; $timeout(function () { var url = $state.href('root.user.mix', {user: $scope.mix.user.slug, mix: $scope.mix.slug}); - $scope.waveformFooter = "Your mix will be available Here"; + $scope.waveformFooter = "Your mix will be available Here"; $scope.$apply(); }, 6400); @@ -151,10 +153,8 @@ angular.module('dssWebApp') $scope.$apply(); }, complete: function (file) { + $scope.uploadState = uploadStates.AUDIO_SENT; if (file.status !== 'error') { - $scope.waveformHeader = - "" + - "Generating waveform, we'll try to let you know when it's done or send you an email."; $scope.uploadState = uploadStates.AUDIO_SENT; $scope.$apply(); _checkRedirect(); } else { @@ -171,4 +171,8 @@ angular.module('dssWebApp') $scope.genreSearchResults = results.data.results; }); }; + $('#waveform-status-info').pulsate({ + color: "#FCB322", + glow: true + }); }); \ No newline at end of file diff --git a/client/app/views/mixes/upload/upload.html b/client/app/views/mixes/upload/upload.html index 3482a5f..bbe5f0c 100755 --- a/client/app/views/mixes/upload/upload.html +++ b/client/app/views/mixes/upload/upload.html @@ -1,30 +1,34 @@
-
-
- {{uploadProgress}}% -
-
-
+ +
+
+ {{uploadProgress}}% +
+
+ +
-
-
-
-
- -
+
+
+
+

+
+ +

+
+ class="row" id="details-wrapper">
@@ -40,7 +44,8 @@ -

Title must be between 5 and 250 characters

- Select image + Select image Change @@ -109,9 +115,12 @@
Mix options
- - - + + +
diff --git a/client/assets/flatlab/pulstate.js b/client/assets/flatlab/pulstate.js new file mode 100644 index 0000000..5dc6163 --- /dev/null +++ b/client/assets/flatlab/pulstate.js @@ -0,0 +1,4 @@ +(function(c){var k={init:function(a){var b={color:c(this).css("background-color"),reach:20,speed:1E3,pause:0,glow:!0,repeat:!0,onHover:!1};c(this).css({"-moz-outline-radius":c(this).css("border-top-left-radius"),"-webkit-outline-radius":c(this).css("border-top-left-radius"),"outline-radius":c(this).css("border-top-left-radius")});a&&c.extend(b,a);b.color=c("
").css("background-color");!0!==b.repeat&&(!isNaN(b.repeat)&&0f?0:d;var h=(f-d)/f,e=a.color.split(","),h="rgba("+e[0].split("(")[1]+","+e[1]+","+e[2].split(")")[0]+","+h+")",e={outline:"2px solid "+h};a.glow?(e["box-shadow"]="0px 0px "+parseInt(d/1.5)+"px "+h,userAgent=navigator.userAgent||"",/(chrome)[ \/]([\w.]+)/.test(userAgent.toLowerCase())&& +(e["outline-offset"]=d+"px",e["outline-radius"]="100 px")):e["outline-offset"]=d+"px";c(b).css(e);b.timer&&clearTimeout(b.timer);b.timer=setTimeout(function(){if(d>=f&&!a.repeat)return c(b).pulsate("destroy"),!1;if(d>=f&&!0!==a.repeat&&!isNaN(a.repeat)&&0=f)return l(a,b,d+1),!1;g(a,b,d+1)},a.speed/f)},l=function(a,b,c){innerfunc=function(){g(a,b,c)};b.timer=setTimeout(innerfunc,a.pause)};c.fn.pulsate=function(a){if(k[a])return k[a].apply(this,Array.prototype.slice.call(arguments, + 1));if("object"===typeof a||!a)return k.init.apply(this,arguments);c.error("Method "+a+" does not exist on jQuery.pulsate")}})(jQuery); diff --git a/client/index.html b/client/index.html index f7427e6..d86dc94 100644 --- a/client/index.html +++ b/client/index.html @@ -147,6 +147,7 @@ + diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 7c70bc0..0fcce9c 100755 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -8,7 +8,7 @@ module.exports = { seedDB: true, redisHost: 'localhost', - //apiUrl: 'http://ext-test.deepsouthsounds.com:8001', - apiUrl: 'http://localhost:8001', + apiUrl: 'http://ext-test.deepsouthsounds.com:8001', + //apiUrl: 'http://localhost:8001', radioUrl: 'http://localhost:8000' };