Sha256: e493605ae64859c69d606f94e94aaaebf39fb5ca1ec6c989e8bb09974241415c

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

angular.module('KMS', ['ui.bootstrap', 'ui.router', 'ngCookies', 'restangular', 'templates', 'ui.tree', 'ui.codemirror', 'flow', 'ui.select', 'ngSanitize', 'ngCkeditor', 'toggle-switch', 'angular-loading-bar', 'angularjs-dropdown-multiselect', 'Alertify', 'xeditable', 'as.sortable'])

angular.module('KMS').config ['$httpProvider', '$locationProvider', 'RestangularProvider', 'flowFactoryProvider', 'cfpLoadingBarProvider', ($httpProvider, $locationProvider, RestangularProvider, flowFactoryProvider, cfpLoadingBarProvider) ->
  cfpLoadingBarProvider.includeSpinner = false
  $locationProvider.html5Mode(true)
  $httpProvider.defaults.withCredentials = true

  RestangularProvider.setBaseUrl('/kms')
  RestangularProvider.setRequestSuffix(".json")

  flowFactoryProvider.defaults =
    target: '/kms/assets.json'
    permanentErrors: [404, 500, 501]
    maxChunkRetries: 1
    chunkSize: 50*1024*1024
    chunkRetryInterval: 5000
    simultaneousUploads: 4
    testChunks: false
    fileParameterName: "asset[file]"
]
  .run ['$http', '$cookies', 'editableOptions', '$rootScope', '$state', ($http, $cookies, editableOptions, $rootScope, $state) ->
    $rootScope.$state = $state
    $http.defaults.headers.common['X-XSRF-TOKEN'] = $cookies.get('XSRF-TOKEN')
    editableOptions.theme = 'bs3'
]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kms-1.0.1 app/assets/javascripts/kms/application/module.coffee
kms-1.0.0 app/assets/javascripts/kms/application/module.coffee
kms-0.9.0 app/assets/javascripts/kms/application/module.coffee
kms-0.8.0 app/assets/javascripts/kms/application/module.coffee