Sha256: bf0dbc4a2b08b2742d2c0e495086fd544cca79b13a6e3574069fee1ff640ee4d
Contents?: true
Size: 1.71 KB
Versions: 20
Compression:
Stored size: 1.71 KB
Contents
# This is the app declaration mnoAppModules = [ # External libraries 'ngRoute', 'ngSanitize', 'xeditable', 'ui.bootstrap', # Internal libraries 'maestrano.assets', 'maestrano.utilities', 'maestrano.components', 'maestrano.message-bus', ] # Declare the application @maestranoApp = angular.module('maestrano',mnoAppModules) # Configure the http headers for AJAX requests # Define content type and set csrf token # TODO: properly configure SCE @maestranoApp.config(['$httpProvider', '$sceDelegateProvider', ($httpProvider,$sceDelegateProvider) -> $httpProvider.defaults.headers.common['Accept'] = 'application/json' $httpProvider.defaults.headers.common['Content-Type'] = 'application/json' if token = $("meta[name='csrf-token']").attr("content") $httpProvider.defaults.headers.common['X-CSRF-Token'] = token # Configure SCE to authorize the Maestrano domains #$sceProvider.enabled(false); $sceDelegateProvider.resourceUrlWhitelist([ # Allow same origin resource loads. 'self' # Allow UAT asset server #'https://assets-apse1-uat-maestrano.s3.amazonaws.com/assets/**', # Allow UAT Cloudfront distribution #'https://dbu1g4tv4k5kk.cloudfront.net/web/mno/assets/**', # Allow PROD asset server #'https://assets-apse1-prd-maestrano.s3.amazonaws.com/assets/**', # Allow PROD Cloudfront distribution #'https://cdn.maestrano.com/web/mno/assets/**' ]); return $httpProvider ]) # Configure asset in rootScope @maestranoApp.run(['$rootScope', 'AssetPath', 'TemplatePath','editableOptions', ($rootScope, AssetPath, TemplatePath, editableOptions) -> $rootScope.assetPath = AssetPath $rootScope.templatePath = TemplatePath editableOptions.theme = 'bs3' ])
Version data entries
20 entries across 20 versions & 1 rubygems