2015-01-30 11:58:36 +01:00
|
|
|
angular.module('OpenSlidesApp', [
|
2015-03-09 15:40:54 +01:00
|
|
|
'angular-loading-bar',
|
2015-02-13 23:23:48 +01:00
|
|
|
'js-data',
|
2015-02-08 22:37:55 +01:00
|
|
|
'gettext',
|
2015-03-09 15:40:54 +01:00
|
|
|
'ngAnimate',
|
|
|
|
'ui.bootstrap',
|
|
|
|
'ui.tree',
|
2015-06-17 09:45:00 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
angular.module('OpenSlidesApp.projector', [
|
|
|
|
'OpenSlidesApp',
|
|
|
|
'OpenSlidesApp.core.projector',
|
2015-06-25 10:19:38 +02:00
|
|
|
'OpenSlidesApp.agenda.projector',
|
2015-06-24 15:04:40 +02:00
|
|
|
'OpenSlidesApp.motions.projector',
|
|
|
|
'OpenSlidesApp.assignments.projector',
|
2015-06-17 09:45:00 +02:00
|
|
|
'OpenSlidesApp.users.projector',
|
2015-03-09 15:40:54 +01:00
|
|
|
'OpenSlidesApp.mediafiles',
|
2015-06-17 09:45:00 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
angular.module('OpenSlidesApp.site', [
|
|
|
|
'OpenSlidesApp',
|
|
|
|
'ui.router',
|
|
|
|
'ngBootbox',
|
|
|
|
'ngFabForm',
|
|
|
|
'ngMessages',
|
|
|
|
'ngCsvImport',
|
|
|
|
'ngSanitize', // TODO: remove this as global dependency
|
|
|
|
'ui.select',
|
|
|
|
'xeditable',
|
|
|
|
'OpenSlidesApp.core.site',
|
|
|
|
'OpenSlidesApp.agenda.site',
|
|
|
|
'OpenSlidesApp.motions.site',
|
|
|
|
'OpenSlidesApp.assignments.site',
|
|
|
|
'OpenSlidesApp.users.site',
|
|
|
|
'OpenSlidesApp.mediafiles.site',
|
2015-01-30 11:58:36 +01:00
|
|
|
])
|
|
|
|
|
2015-02-08 14:57:02 +01:00
|
|
|
.config(function($urlRouterProvider, $locationProvider) {
|
|
|
|
// define fallback url and html5Mode
|
|
|
|
$urlRouterProvider.otherwise('/');
|
2015-01-30 11:58:36 +01:00
|
|
|
$locationProvider.html5Mode(true);
|
|
|
|
})
|
|
|
|
|
2015-02-08 14:57:02 +01:00
|
|
|
.config(function($httpProvider) {
|
|
|
|
// Combine the django csrf system with the angular csrf system
|
|
|
|
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
|
|
|
|
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
|
2015-06-15 19:56:12 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
.config(function(uiSelectConfig) {
|
|
|
|
uiSelectConfig.theme = 'bootstrap';
|
2015-01-30 11:58:36 +01:00
|
|
|
});
|