-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07183f1
commit 0dafe99
Showing
13 changed files
with
512 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
webpack.* | ||
tools | ||
dist | ||
server.js | ||
server.js | ||
/src/modules/statistics/components/UkraineMap.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,10 @@ html { | |
|
||
*, *:before, *:after { | ||
box-sizing: inherit; | ||
} | ||
|
||
|
||
.amchart_div { | ||
width: 100%; | ||
min-height: 600px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
'use strict'; | ||
|
||
import React, {Component, PropTypes} from 'react'; | ||
import Nav from 'react-bootstrap/lib/Nav'; | ||
import NavItem from 'react-bootstrap/lib/NavItem'; | ||
import { LinkContainer } from 'react-router-bootstrap'; | ||
|
||
import { | ||
PRIORITIES, | ||
ALLOCATIONS_ADMINUNITS, | ||
ALLOCATIONS_DEPARTMENTS, | ||
ALLOCATIONS_ADMINUNITS_MAP, | ||
PLACES, | ||
STATISTICS_MAP as map | ||
} from './../constants'; | ||
|
||
class Statistics extends Component { | ||
static propTypes = { | ||
children: PropTypes.any | ||
}; | ||
|
||
handleSelect = (selectedKey) => { | ||
console.log('selected ' + selectedKey); | ||
}; | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<div>Statistics</div> | ||
<Nav bsStyle="pills" stacked activeKey={1} onSelect={this.handleSelect}> | ||
<LinkContainer to={{ pathname: map[ALLOCATIONS_ADMINUNITS].route}}> | ||
<NavItem eventKey={1} > { map[ALLOCATIONS_ADMINUNITS].title } </NavItem> | ||
</LinkContainer> | ||
<LinkContainer to={{ pathname: map[ALLOCATIONS_ADMINUNITS_MAP].route}}> | ||
<NavItem eventKey={2} > { map[ALLOCATIONS_ADMINUNITS_MAP].title } </NavItem> | ||
</LinkContainer> | ||
<LinkContainer to={{ pathname: map[PRIORITIES].route}}> | ||
<NavItem eventKey={3} > { map[PRIORITIES].title } </NavItem> | ||
</LinkContainer> | ||
<LinkContainer to={{ pathname: map[ALLOCATIONS_DEPARTMENTS].route}}> | ||
<NavItem eventKey={4} > { map[ALLOCATIONS_DEPARTMENTS].title } </NavItem> | ||
</LinkContainer> | ||
<LinkContainer to={{ pathname: map[PLACES].route}}> | ||
<NavItem eventKey={5} > { map[PLACES].title } </NavItem> | ||
</LinkContainer> | ||
</Nav> | ||
{this.props.children} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Statistics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
import React, { Component } from 'react'; | ||
|
||
export default class StatisticsIndex extends React.Component { | ||
render () { | ||
return ( | ||
<div> | ||
Виберіть статистику для перегляду | ||
</div> | ||
); | ||
} | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.