diff --git a/src/accounts/accountBalances.factory.ts b/src/accounts/accountBalances.factory.ts index 35306b0..24e6606 100644 --- a/src/accounts/accountBalances.factory.ts +++ b/src/accounts/accountBalances.factory.ts @@ -1,7 +1,8 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : export function AccountBalancesFactory($resource) { - return $resource( - '/api/account/:id/balances', { - id: '@id' - } - ); + return $resource( + '/api/account/:id/balances', { + id: '@id' + } + ); }; diff --git a/src/accounts/accountBalances.ts b/src/accounts/accountBalances.ts index 23a0059..d649ef6 100644 --- a/src/accounts/accountBalances.ts +++ b/src/accounts/accountBalances.ts @@ -1,5 +1,6 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : export class AccountBalances { - current: number; - pointed: number; - future: number; + current: number; + pointed: number; + future: number; } diff --git a/src/app.config.ts b/src/app.config.ts index 272cb53..7fe96a5 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -1,40 +1,41 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : import { Level } from '@nsalaun/ng-logger'; var operationsTmpl = require('./operations/operations.html'); var schedulerTmpl = require('./scheduler/scheduler.html'); export default function AppConfig($uiRouterProvider) { - $uiRouterProvider.trace.enable(1); + $uiRouterProvider.trace.enable(1); - // Defining template and controller in function of route. - const $stateRegistry = $uiRouterProvider.stateRegistry; + // Defining template and controller in function of route. + const $stateRegistry = $uiRouterProvider.stateRegistry; - $stateRegistry.register({ - name: 'operations', - url: '/account/:accountId/operations', - templateUrl: operationsTmpl, - controller: 'OperationController', - controllerAs: 'operationsCtrl' - }); + $stateRegistry.register({ + name: 'operations', + url: '/account/:accountId/operations', + templateUrl: operationsTmpl, + controller: 'OperationController', + controllerAs: 'operationsCtrl' + }); - $stateRegistry.register({ - name: 'scheduler', - url: '/account/:accountId/scheduler', - templateUrl: schedulerTmpl, - controller: 'SchedulerController', - controllerAs: 'schedulerCtrl' - }); + $stateRegistry.register({ + name: 'scheduler', + url: '/account/:accountId/scheduler', + templateUrl: schedulerTmpl, + controller: 'SchedulerController', + controllerAs: 'schedulerCtrl' + }); - $stateRegistry.register({ - name: 'accounts', - url: '/accounts', - component: 'accountList', - }); + $stateRegistry.register({ + name: 'accounts', + url: '/accounts', + component: 'accountList', + }); - const $urlService = $uiRouterProvider.urlService; - $urlService.rules.otherwise({ - state: 'accounts' - }); + const $urlService = $uiRouterProvider.urlService; + $urlService.rules.otherwise({ + state: 'accounts' + }); }; export const ApiBaseURL = "http://localhost:8080/api";