Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Angulartics implementation, silent login, cleanup

Choose a tag to compare

@timlevett timlevett released this 03 Feb 15:43
· 2620 commits to master since this release

Minor Changes

#134 : MUMUP-2139 : angulartics impl
#133 : MUMUP-2334 : Silent login on load

Cleanup

#142 : Fix hover state of inner nav
#140 : MUMUP-2341 : Upgrade a lot of dependencies (all patch or minor releases).
#139 : MUMUP-2326 Uw river falls theme
#138 : MUMUP-2357 : Move styling for white-page out of frame-page so we can use it with j…
#137 : MUMUP-2360 : Fix events
#136 : MUMUP-2357 : Add in optional background of whiteness
#135 : MUMUP-2356 : if APP_FLAGS.loginOnLoad = true, the unit tests still pass
#132 : MUMUP-2268: Remove uw-ui-toolkit variable names, use color# vars

Upgrading from 2.0.3

app-config.js Optional updates :

  • Added APP_FLAGS. gaSearchParam. Defaulted to q.
  • Added APP_FLAGS.loginOnLoad. Defaulted to false
  • Added SERVICE_LOC.loginSilentURL. Required only if APP_FLAGS.loginOnLoad is true. Example value: '/portal/Login?silent=true'

/config.js updates (for anyone overwriting this file):

@@ -12,6 +12,8 @@ define([], function() {
     paths: {
         'angular'       : "bower_components/angular/angular.min",
         'angular-mocks' : "bower_components/angular-mocks/angular-mocks",
+        'angulartics'   : "bower_components/angulartics/dist/angulartics.min",
+        'angulartics-google-analytics' : "bower_components/angulartics-google-analytics/dist/angulartics-google-analytics.min",
         'app-config'    : "js/app-config",
         'frame-config'  : "js/frame-config",
         'jquery'        : "bower_components/jquery/dist/jquery.min",
 @@ -30,6 +32,8 @@ define([], function() {
     shim: {
         'angular'       : { deps: ['jquery'], exports: 'angular' },
         'angular-mocks' : { deps: ['angular'] },
+        'angulartics'   : { deps: ['angular'], exports: 'angulartics' },
+        'angulartics-google-analytics' : { deps: ['angulartics'] },
         'ngRoute'       : { deps: ['angular'] },
         'ngSanitize'    : { deps: ['angular'] },
         'ngStorage'     : { deps: ['angular'] },
 @@ -38,7 +42,7 @@ define([], function() {
         'ui-gravatar'   : { deps: ['angular'] },
         'uw-ui-toolkit' : { deps: ['jquery'] }
     },
-    
+
     waitSeconds : 0

   }

Special thanks to committers:

@jhanstra
@timlevett