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-07-27 14:03:39 +02:00
|
|
|
import * as angular from 'angular';
|
2017-06-10 18:02:19 +02:00
|
|
|
|
2017-07-25 22:08:18 +02:00
|
|
|
import {
|
|
|
|
downgradeInjectable,
|
2017-07-27 00:35:11 +02:00
|
|
|
downgradeComponent
|
2017-07-25 22:08:18 +02:00
|
|
|
} from '@angular/upgrade/static';
|
|
|
|
|
|
|
|
import { ToastrService } from 'ngx-toastr';
|
|
|
|
|
2017-07-07 23:11:21 +02:00
|
|
|
var ngResource = require('angular-resource'),
|
|
|
|
ngStrap = require('angular-strap');
|
|
|
|
|
2017-07-11 08:49:39 +02:00
|
|
|
import accountModule from '@accountant/accounts';
|
2017-06-18 00:46:20 +02:00
|
|
|
|
2017-07-27 14:13:13 +02:00
|
|
|
import { BalanceChartComponent } from './balanceChart.component';
|
2017-07-29 17:24:25 +02:00
|
|
|
import { CategoryChartComponent } from './categoryChart.component';
|
2017-07-29 22:26:38 +02:00
|
|
|
import { OperationService } from './operation.service';
|
2017-07-27 14:03:39 +02:00
|
|
|
|
2017-07-30 09:21:50 +02:00
|
|
|
import { OperationController } from './operation.controller';
|
2017-07-07 22:52:27 +02:00
|
|
|
|
2017-07-10 15:51:58 +02:00
|
|
|
export default angular.module('accountant.operations', [
|
2017-06-10 18:02:19 +02:00
|
|
|
ngResource,
|
2017-06-18 00:46:20 +02:00
|
|
|
ngStrap,
|
2017-07-06 10:39:14 +02:00
|
|
|
accountModule,
|
2016-04-12 10:55:08 +02:00
|
|
|
])
|
|
|
|
|
2017-07-25 22:08:18 +02:00
|
|
|
.factory('toastrService', downgradeInjectable(ToastrService))
|
|
|
|
|
2017-07-29 22:26:38 +02:00
|
|
|
.factory('operationService', downgradeInjectable(OperationService))
|
2017-06-15 17:21:17 +02:00
|
|
|
|
2017-07-07 22:52:27 +02:00
|
|
|
.controller('OperationController', OperationController)
|
2017-07-05 21:48:20 +02:00
|
|
|
|
2017-07-27 14:03:39 +02:00
|
|
|
.directive('balanceChart', downgradeComponent({
|
|
|
|
component: BalanceChartComponent
|
|
|
|
}) as angular.IDirectiveFactory)
|
|
|
|
|
2017-07-29 17:18:36 +02:00
|
|
|
.directive('categoryChart', downgradeComponent({
|
|
|
|
component: CategoryChartComponent
|
|
|
|
}) as angular.IDirectiveFactory)
|
|
|
|
|
2017-07-06 10:35:15 +02:00
|
|
|
.name;
|