stackviz/app/js/on_config.js
Tim Buckley c5a38e44e1 Add console.html summary and viewer
This adds a new console.html summary and details view that can
gives overview information about console output, organizes output
by section, and can also determine the currently running script at
job failure time. The console viewer is a CodeMirror-based widget
that provides basic highlighting and folding capabilities to make
console output easier to browse.

Change-Id: I27a9a532ae117d2914dc2f3a866c780378e79f72
2016-04-29 20:06:31 -06:00

46 lines
1.1 KiB
JavaScript

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