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:
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||||
'use strict';
|
'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) {
|
.factory('Account', ['$resource', function($resource) {
|
||||||
var Account = $resource(
|
var Account = $resource(
|
||||||
|
@ -18,14 +18,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('accountant', [
|
angular.module('accountant', [
|
||||||
'ngResource', 'ngRoute',
|
'accountant.accounts',
|
||||||
'mgcrea.ngStrap',
|
'accountant.operations',
|
||||||
'highcharts-ng',
|
'accountant.scheduler',
|
||||||
|
'ngRoute',
|
||||||
|
'ngBootbox',
|
||||||
'http-auth-interceptor',
|
'http-auth-interceptor',
|
||||||
'ui-notification',
|
'Storage.Service'
|
||||||
'Storage.Service',
|
|
||||||
'xeditable',
|
|
||||||
'ngBootbox'
|
|
||||||
])
|
])
|
||||||
|
|
||||||
.factory('sessionInjector', ['$storage', function($storage) {
|
.factory('sessionInjector', ['$storage', function($storage) {
|
||||||
@ -89,11 +88,6 @@ angular.module('accountant', [
|
|||||||
$storageProvider.setEnabledStorageEngines(['local', 'session']);
|
$storageProvider.setEnabledStorageEngines(['local', 'session']);
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.config(['$resourceProvider', function($resourceProvider) {
|
|
||||||
// Keep trailing slashes to avoid redirect by flask..
|
|
||||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
|
||||||
}])
|
|
||||||
|
|
||||||
.run(function(editableOptions) {
|
.run(function(editableOptions) {
|
||||||
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
|
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
|
||||||
})
|
})
|
||||||
|
@ -17,7 +17,20 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2:
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||||
'use strict';
|
'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) {
|
.factory('Operation', [ '$resource', function($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
|
@ -17,7 +17,17 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2:
|
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||||
'use strict';
|
'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) {
|
.factory('ScheduledOperation', ['$resource', function($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
|
Loading…
Reference in New Issue
Block a user