Separate in submodules.
This commit is contained in:
parent
dbf49dcd9f
commit
e38c18c118
@ -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(
|
||||
|
@ -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'
|
||||
})
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user