Fix indent.

This commit is contained in:
Alexis Lahouze 2017-07-21 00:52:47 +02:00
parent f780be6b63
commit bd484a994e
3 changed files with 37 additions and 34 deletions

View File

@ -1,7 +1,8 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export function AccountBalancesFactory($resource) { export function AccountBalancesFactory($resource) {
return $resource( return $resource(
'/api/account/:id/balances', { '/api/account/:id/balances', {
id: '@id' id: '@id'
} }
); );
}; };

View File

@ -1,5 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class AccountBalances { export class AccountBalances {
current: number; current: number;
pointed: number; pointed: number;
future: number; future: number;
} }

View File

@ -1,40 +1,41 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
import { Level } from '@nsalaun/ng-logger'; import { Level } from '@nsalaun/ng-logger';
var operationsTmpl = require('./operations/operations.html'); var operationsTmpl = require('./operations/operations.html');
var schedulerTmpl = require('./scheduler/scheduler.html'); var schedulerTmpl = require('./scheduler/scheduler.html');
export default function AppConfig($uiRouterProvider) { export default function AppConfig($uiRouterProvider) {
$uiRouterProvider.trace.enable(1); $uiRouterProvider.trace.enable(1);
// Defining template and controller in function of route. // Defining template and controller in function of route.
const $stateRegistry = $uiRouterProvider.stateRegistry; const $stateRegistry = $uiRouterProvider.stateRegistry;
$stateRegistry.register({ $stateRegistry.register({
name: 'operations', name: 'operations',
url: '/account/:accountId/operations', url: '/account/:accountId/operations',
templateUrl: operationsTmpl, templateUrl: operationsTmpl,
controller: 'OperationController', controller: 'OperationController',
controllerAs: 'operationsCtrl' controllerAs: 'operationsCtrl'
}); });
$stateRegistry.register({ $stateRegistry.register({
name: 'scheduler', name: 'scheduler',
url: '/account/:accountId/scheduler', url: '/account/:accountId/scheduler',
templateUrl: schedulerTmpl, templateUrl: schedulerTmpl,
controller: 'SchedulerController', controller: 'SchedulerController',
controllerAs: 'schedulerCtrl' controllerAs: 'schedulerCtrl'
}); });
$stateRegistry.register({ $stateRegistry.register({
name: 'accounts', name: 'accounts',
url: '/accounts', url: '/accounts',
component: 'accountList', component: 'accountList',
}); });
const $urlService = $uiRouterProvider.urlService; const $urlService = $uiRouterProvider.urlService;
$urlService.rules.otherwise({ $urlService.rules.otherwise({
state: 'accounts' state: 'accounts'
}); });
}; };
export const ApiBaseURL = "http://localhost:8080/api"; export const ApiBaseURL = "http://localhost:8080/api";