Fix indent.
This commit is contained in:
parent
f780be6b63
commit
bd484a994e
@ -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'
|
||||
}
|
||||
);
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user