diff --git a/my-app-seed-war/src/main/webapp/js/app-config.js b/my-app-seed-war/src/main/webapp/js/app-config.js deleted file mode 100644 index 468c042..0000000 --- a/my-app-seed-war/src/main/webapp/js/app-config.js +++ /dev/null @@ -1,68 +0,0 @@ -define(['angular'], function(angular) { - - var config = angular.module('app-config', []); - config - .constant('APP_FLAGS', { - 'features' : false, - 'showSearch' : true, - 'isWeb' : false, - 'gaSearchParam' : 'q', - 'loginOnLoad' : false - }) - .constant('SERVICE_LOC', { - 'aboutURL' : null, - 'sessionInfo' : 'staticFeeds/session.json', - 'featuresInfo' : 'staticFeeds/features.json', - 'notificationsURL' : 'staticFeeds/notifications.json', - 'kvURL' : null, - 'groupURL' : null, - 'loginSilentURL' : null - }) - .constant('NAMES', { - 'title' : 'App Seed', - 'guestUserName' : 'guest', - 'fname' : 'sample-fname' - }) - .constant('SEARCH',{ - 'searchURL' : 'https://my.wisc.edu/web/apps/search/' - }) - .constant('NOTIFICATION', { - 'enabled' : false, - 'groupFiltering' : false, - 'notificationFullURL' : 'notifications' - }) - .constant('MISC_URLS',{ - 'back2ClassicURL' : null, - 'feedbackURL' : 'https://my.wisc.edu/portal/p/feedback', - 'helpdeskURL' : 'https://kb.wisc.edu/helpdesk/', - 'loginURL' : '/portal/Login?profile=bucky', - 'logoutURL' : '/portal/Logout', - 'myuwHome' : 'https://my.wisc.edu', - 'rootURL' : '/web', - 'addToHomeURLS' : { - 'layoutURL' : '/portal/web/layoutDoc?tab=UW Bucky Home', - 'addToHomeActionURL' : '/portal/web/layout?tabName=UW Bucky Home&action=addPortlet&fname=' - } - - }) - .constant('FOOTER_URLS', [ - { "url" : "/web/static/myuw-help", - "target" : "_blank", - "title" : "Help" - }, - { "url" : "https://my.wisc.edu/portal/p/feedback", - "target" : "_blank", - "title" : "Feedback" - } - ]) - .constant('APP_BETA_FEATURES', [ - { - "id" : "toogleSomething", - "title" : "Sample Toggle", - "description" : "This is just an example of a toggle. Look at your localStorage after you switch this on for the first time." - } - ]); - - return config; - -}); diff --git a/my-app-seed-war/src/main/webapp/js/override.js b/my-app-seed-war/src/main/webapp/js/override.js new file mode 100644 index 0000000..cc68d94 --- /dev/null +++ b/my-app-seed-war/src/main/webapp/js/override.js @@ -0,0 +1,24 @@ +define(['angular'], function(angular) { + + /*Keep in sync with docs/mardown/configuration.md*/ + + var config = angular.module('override', []); + config + //see http://uw-madison-doit.github.io/uw-frame/latest/#/md/configuration for howto + .constant('OVERRIDE', { + 'NAMES' : { + 'title' : 'My App Seed Name', + 'fname' : 'app-seed-fname' + }, + 'APP_BETA_FEATURES' : [ + { + "id" : "someAdditionalBetaFeature", + "title" : "App Seed Beta Feature", + "description" : "This is just an example of a toggle. Look at your localStorage after you switch this on for the first time." + } + ] + }) + + return config; + +}); diff --git a/pom.xml b/pom.xml index 72f2d94..e6a8711 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ edu.wisc.my.apps uw-frame - 2.1.0 + 2.2.0 war @@ -55,7 +55,7 @@ - + my-app-seed-war