2016-10-09 20:17:11 +02:00
|
|
|
// vim: set tw=80 ts=4 sw=4 sts=4:
|
2016-04-12 10:55:08 +02:00
|
|
|
/*
|
|
|
|
This file is part of Accountant.
|
|
|
|
|
|
|
|
Accountant is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Accountant is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2017-06-10 18:02:19 +02:00
|
|
|
/* jshint node: true */
|
2016-04-12 10:55:08 +02:00
|
|
|
'use strict';
|
2017-06-10 18:02:19 +02:00
|
|
|
var angular = require('angular');
|
|
|
|
|
2017-07-13 21:37:47 +02:00
|
|
|
//declare var angular: angular.IAngularStatic;
|
|
|
|
import { downgradeInjectable } from '@angular/upgrade/static';
|
|
|
|
|
2017-06-10 18:02:19 +02:00
|
|
|
var ngResource = require('angular-resource'),
|
|
|
|
ngMessages = require('angular-messages'),
|
2017-07-08 09:12:25 +02:00
|
|
|
ngUiNotification = require('angular-ui-notification'),
|
|
|
|
ngStrap = require('angular-strap');
|
2017-06-10 18:02:19 +02:00
|
|
|
|
2017-07-16 22:25:50 +02:00
|
|
|
import { Logger } from '@nsalaun/ng-logger';
|
2017-07-20 10:32:05 +02:00
|
|
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
2017-07-21 00:29:03 +02:00
|
|
|
import { ToastrService } from 'ngx-toastr';
|
2017-07-16 22:25:50 +02:00
|
|
|
|
2017-07-16 14:23:23 +02:00
|
|
|
var accountsTmpl = require('./accounts.html');
|
|
|
|
|
2017-07-16 17:03:37 +02:00
|
|
|
import { AccountBalancesService } from './accountBalances.service';
|
2017-07-14 21:41:27 +02:00
|
|
|
import { AccountService } from './account.service';
|
2017-07-20 23:00:52 +02:00
|
|
|
import { AccountListComponent } from './accountList.component';
|
2017-06-10 18:02:19 +02:00
|
|
|
|
2017-07-11 18:51:01 +02:00
|
|
|
export default angular.module('accountant.accounts', [
|
2017-06-10 18:02:19 +02:00
|
|
|
ngResource,
|
|
|
|
ngMessages,
|
2017-07-08 09:12:25 +02:00
|
|
|
ngUiNotification,
|
|
|
|
ngStrap,
|
2016-04-12 10:55:08 +02:00
|
|
|
])
|
|
|
|
|
2017-07-21 00:29:03 +02:00
|
|
|
.factory('ToastrService', downgradeInjectable(ToastrService))
|
|
|
|
|
2017-07-16 22:25:50 +02:00
|
|
|
.factory('Logger', downgradeInjectable(Logger))
|
|
|
|
|
2017-07-20 10:32:05 +02:00
|
|
|
.factory('NgbModal', downgradeInjectable(NgbModal))
|
|
|
|
|
2017-07-16 17:03:37 +02:00
|
|
|
.factory('AccountBalancesService', downgradeInjectable(AccountBalancesService))
|
2017-07-10 08:17:11 +02:00
|
|
|
|
2017-07-14 10:24:46 +02:00
|
|
|
.factory('AccountService', downgradeInjectable(AccountService))
|
2016-04-12 10:55:08 +02:00
|
|
|
|
2017-07-16 14:23:23 +02:00
|
|
|
.component('accountList', {
|
2017-07-20 23:00:52 +02:00
|
|
|
controller: AccountListComponent,
|
2017-07-16 14:23:23 +02:00
|
|
|
controllerAs: 'accountsCtrl',
|
|
|
|
templateUrl: accountsTmpl
|
|
|
|
})
|
2017-07-05 21:48:20 +02:00
|
|
|
|
2017-07-06 10:35:15 +02:00
|
|
|
.name;
|