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) {
|
export function AccountBalancesFactory($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
'/api/account/:id/balances', {
|
'/api/account/:id/balances', {
|
||||||
id: '@id'
|
id: '@id'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user