Sha256: 26b6c8d4a13ea64b82c46494000148b2fea3272aea7fe137b0518309562775d3

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 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', 'cfp.hotkeys'
])

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, 422, 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

3 entries across 3 versions & 1 rubygems

Version Path
kms-1.2.1 app/assets/javascripts/kms/application/module.coffee
kms-1.2.0 app/assets/javascripts/kms/application/module.coffee
kms-1.1.0 app/assets/javascripts/kms/application/module.coffee