Separate in submodules.

This commit is contained in:
Alexis Lahouze 2016-02-08 22:49:54 +01:00
parent dbf49dcd9f
commit e38c18c118
4 changed files with 42 additions and 15 deletions

View File

@ -17,7 +17,17 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
'use strict';
angular.module('accountant')
angular.module('accountant.accounts', [
'ngResource',
'ui-notification',
'xeditable',
'ngBootbox'
])
.config(['$resourceProvider', function($resourceProvider) {
// Keep trailing slashes to avoid redirect by flask..
$resourceProvider.defaults.stripTrailingSlashes = false;
}])
.factory('Account', ['$resource', function($resource) {
var Account = $resource(

View File

@ -18,14 +18,13 @@
'use strict';
angular.module('accountant', [
'ngResource', 'ngRoute',
'mgcrea.ngStrap',
'highcharts-ng',
'accountant.accounts',
'accountant.operations',
'accountant.scheduler',
'ngRoute',
'ngBootbox',
'http-auth-interceptor',
'ui-notification',
'Storage.Service',
'xeditable',
'ngBootbox'
'Storage.Service'
])
.factory('sessionInjector', ['$storage', function($storage) {
@ -89,11 +88,6 @@ angular.module('accountant', [
$storageProvider.setEnabledStorageEngines(['local', 'session']);
}])
.config(['$resourceProvider', function($resourceProvider) {
// Keep trailing slashes to avoid redirect by flask..
$resourceProvider.defaults.stripTrailingSlashes = false;
}])
.run(function(editableOptions) {
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
})

View File

@ -17,7 +17,20 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
'use strict';
angular.module('accountant')
angular.module('accountant.operations', [
'accountant.accounts',
'ngRoute',
'ngResource',
'ngBootbox',
'ui-notification',
'mgcrea.ngStrap',
'highcharts-ng',
])
.config(['$resourceProvider', function($resourceProvider) {
// Keep trailing slashes to avoid redirect by flask..
$resourceProvider.defaults.stripTrailingSlashes = false;
}])
.factory('Operation', [ '$resource', function($resource) {
return $resource(

View File

@ -17,7 +17,17 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
'use strict';
angular.module('accountant')
angular.module('accountant.scheduler', [
'ngRoute',
'ngBootbox',
'ui-notification',
'mgcrea.ngStrap'
])
.config(['$resourceProvider', function($resourceProvider) {
// Keep trailing slashes to avoid redirect by flask..
$resourceProvider.defaults.stripTrailingSlashes = false;
}])
.factory('ScheduledOperation', ['$resource', function($resource) {
return $resource(