Files
stackviz/app/js/on_config.js
Austin Clark 093c02d0b9 Fix lint errors and update eslint
Fixes a couple of lint errors caught by `npm run lint` in timeline-
overview.js and timeline-viewport.js. Also restructures the test-
details controller to use appropriate `this.` syntax instead of
`$scope.`

In addition, eslint and eslint-config-openstack have been updated,
and a new .eslintrc.json config file has been created to tweak some
specific rules for stackviz.

Change-Id: I9e1fe5121621730eb3efda4b99e9fe182f399aee
2016-02-04 13:52:12 -07:00

38 lines
903 B
JavaScript

'use strict';
/**
* @ngInject
*/
function OnConfig($stateProvider, $locationProvider, $urlRouterProvider) {
$stateProvider.state('home', {
url: '/{datasetId:int}',
params: { datasetId: 0 },
controller: 'HomeController as home',
templateUrl: 'home.html',
title: 'Home'
});
$stateProvider.state('timeline', {
url: '/{datasetId:int}/timeline?test',
controller: 'TimelineController as timeline',
templateUrl: 'timeline.html',
reloadOnSearch: false,
title: 'Timeline'
});
$stateProvider.state('testDetails', {
url: '/{datasetId:int}/test-details/{test}',
controller: 'TestDetailsController',
controllerAs: 'testDetails',
templateUrl: 'test-details.html',
title: 'Test Details'
});
$urlRouterProvider.otherwise('/');
}
OnConfig.$inject = ['$stateProvider','$locationProvider','$urlRouterProvider'];
module.exports = OnConfig;