From a6590e7d84d17ced3eca2cd78bde05ea44372474 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 9 Sep 2013 21:25:45 -0400 Subject: [PATCH] [#1505] add memberServices into static. I'm adding way too many deps to the static page, I need to separate out authServices bare-bones & only use that in static --- Gruntfile.js | 2 ++ public/js/static.js | 2 +- views/static/layout.jade | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8edc93db47..00ecbbf19d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -69,9 +69,11 @@ module.exports = function(grunt) { 'public/bower_components/jquery/jquery.min.js', 'public/bower_components/habitrpg-shared/dist/habitrpg-shared.js', 'public/bower_components/angular/angular.min.js', + 'public/bower_components/angular-resource/angular-resource.min.js', 'public/bower_components/bootstrap/docs/assets/js/bootstrap.min.js', 'public/js/static.js', + 'public/js/services/memberServices.js', 'public/js/services/userServices.js', 'public/js/controllers/authCtrl.js' ] diff --git a/public/js/static.js b/public/js/static.js index 4876031b17..f65568c182 100644 --- a/public/js/static.js +++ b/public/js/static.js @@ -1,6 +1,6 @@ "use strict"; -window.habitrpg = angular.module('habitrpg', ['userServices']) +window.habitrpg = angular.module('habitrpg', ['userServices', 'memberServices']) .constant("API_URL", "") .constant("STORAGE_USER_ID", 'habitrpg-user') .constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings') \ No newline at end of file diff --git a/views/static/layout.jade b/views/static/layout.jade index 3891e553f3..f9b5ef3e8d 100644 --- a/views/static/layout.jade +++ b/views/static/layout.jade @@ -29,9 +29,11 @@ html script(type='text/javascript', src='/bower_components/jquery/jquery.min.js') script(type='text/javascript', src='/bower_components/habitrpg-shared/dist/habitrpg-shared.js') script(type='text/javascript', src='/bower_components/angular/angular.min.js') + script(type='text/javascript', src='/bower_components/angular-resource/angular-resource.min.js') script(type='text/javascript', src='/bower_components/bootstrap/docs/assets/js/bootstrap.min.js') script(type='text/javascript', src='/js/static.js') + script(type='text/javascript', src='/js/services/memberServices.js') script(type='text/javascript', src='/js/services/userServices.js') script(type='text/javascript', src='/js/controllers/authCtrl.js') -}