Add victory chart to show error
This commit is contained in:
parent
bafc4238fb
commit
c9c014a573
|
@ -52,7 +52,8 @@
|
|||
"redux": "3.5.2",
|
||||
"redux-thunk": "2.0.1",
|
||||
"reselect": "2.5.1",
|
||||
"window-handle": "1.0.0"
|
||||
"window-handle": "1.0.0",
|
||||
"victory": "0.9.0"
|
||||
},
|
||||
"jenkinscd": {
|
||||
"extDependencies": [
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import React from 'react';
|
||||
import { VictoryChart } from 'victory';
|
||||
|
||||
export default class MyChart extends React.Component {
|
||||
render() {
|
||||
return <VictoryChart />;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
import { Route, Redirect, IndexRoute, IndexRedirect } from 'react-router';
|
||||
import React from 'react';
|
||||
import Dashboard from './Dashboard';
|
||||
import MyChart from './MyChart';
|
||||
import OrganizationPipelines from './OrganizationPipelines';
|
||||
import {
|
||||
Pipelines,
|
||||
|
@ -17,31 +18,6 @@ import {
|
|||
|
||||
export default (
|
||||
<Route path="/" component={Dashboard}>
|
||||
<Route path="organizations/:organization" component={OrganizationPipelines}>
|
||||
<IndexRedirect to="pipelines" />
|
||||
<Route path="pipelines" component={Pipelines} />
|
||||
|
||||
<Route component={PipelinePage}>
|
||||
<Route path=":pipeline/branches" component={MultiBranch} />
|
||||
<Route path=":pipeline/activity" component={Activity} />
|
||||
<Route path=":pipeline/pr" component={PullRequests} />
|
||||
|
||||
<Route path=":pipeline/detail/:branch/:runId" component={RunDetails}>
|
||||
<IndexRedirect to="pipeline" />
|
||||
<Route path="pipeline" component={RunDetailsPipeline} >
|
||||
<Route path=":node" component={RunDetailsPipeline} />
|
||||
</Route>
|
||||
<Route path="changes" component={RunDetailsChanges} />
|
||||
<Route path="tests" component={RunDetailsTests} />
|
||||
<Route path="artifacts" component={RunDetailsArtifacts} />
|
||||
</Route>
|
||||
|
||||
<Redirect from=":pipeline(/*)" to=":pipeline/activity" />
|
||||
</Route>
|
||||
</Route>
|
||||
<Route path="/pipelines" component={OrganizationPipelines}>
|
||||
<IndexRoute component={Pipelines} />
|
||||
</Route>
|
||||
<IndexRedirect to="pipelines" />
|
||||
<Route path="chart" component={MyChart}/>
|
||||
</Route>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue