Skip to content

Commit 375a736

Browse files
committed
fix: links
1 parent af615d2 commit 375a736

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

web/flux/components/footer.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, {PropTypes, Component} from 'react/addons';
22
import shouldPureComponentUpdate from 'react-pure-render/function';
33
import cx from 'classnames';
44

5-
import Link from 'components/link.jsx';
6-
75
export default class Footer extends Component {
86
static propTypes = {
97
className: PropTypes.string
@@ -21,10 +19,10 @@ export default class Footer extends Component {
2119
<hr/>
2220
<div className="page-footer">
2321
<div className="page-footer__left">
24-
<a href="https://github.com/istarkov">@ IVAN STARKOV</a>
22+
<a target="_blank" href="https://github.com/istarkov">@ IVAN STARKOV</a>
2523
</div>
2624
<div className="page-footer__right">
27-
<Link href={'/tmp/eee'}>GOOGLE MAP README</Link>
25+
<a target="_blank" href={'https://github.com/istarkov/google-map-react'}>GOOGLE-MAP-REACT README</a>
2826
</div>
2927
</div>
3028
</footer>

web/flux/components/header.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default class Header extends Component {
1616
className: PropTypes.string,
1717
title: PropTypes.string,
1818
info: PropTypes.string,
19+
source: PropTypes.string,
1920
next: PropTypes.string,
2021
prev: PropTypes.string
2122
}
@@ -41,7 +42,7 @@ export default class Header extends Component {
4142
dangerouslySetInnerHTML={{__html: this.props.info}} />
4243
</span>)
4344
<span className="header-grid__center-title">{this.props.title}</span>
44-
(<Link href={'/tmp/444'}>source</Link>)
45+
(<a target="_blank" href={this.props.source}>source</a>)
4546
</div>
4647
<div className="header-grid__right">
4748
<Link style={this.props.next ? styleEmpty : styleHidden} href={this.props.next}>Next Example</Link>

web/flux/consts/example_defs.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
const K_EXAMPLES_SOURCE_ROOT = 'https://github.com/istarkov/google-map-react-examples/blob/master/web/flux/components/examples/';
3+
14
const exampleDefs = {
25
main: {
36
title: 'MAIN EXAMPLE',
@@ -9,36 +12,42 @@ const exampleDefs = {
912
'Ability to hover on every marker <i>(zoom out to test)</i>;<br/>' +
1013
'Hover probability <i>(different hover probability for markers)</i>;<br/>' +
1114
'No map moving on balloon open.<br/><br/>' +
12-
'</div>'
15+
'</div>',
16+
source: K_EXAMPLES_SOURCE_ROOT + 'x_main/main_map_block.jsx'
1317
},
1418

1519
simple: {
1620
title: 'SIMPLE EXAMPLE',
1721
info: 'Base map usage example. <br/>' +
18-
'Show any react component on the map.'
22+
'Show any react component on the map.',
23+
source: K_EXAMPLES_SOURCE_ROOT + 'x_simple/simple_map_page.jsx'
1924
},
2025

2126
simple_hover: {
2227
title: 'SIMPLE HOVER EXAMPLE',
23-
info: 'Show base of internal hover algorithm.'
28+
info: 'Show base of internal hover algorithm.',
29+
source: K_EXAMPLES_SOURCE_ROOT + 'x_simple_hover/simple_hover_map_page.jsx'
2430
},
2531

2632
distance_hover: {
2733
title: 'DISTANCE HOVER EXAMPLE',
2834
info: 'Show how to use internal hover algorithm.<br/>' +
2935
'For use with non symmetric markers, or to tweak hover probability on some kind of markers.<br/>' +
30-
'There is more probable to hover on marker A at this example.'
36+
'There is more probable to hover on marker A at this example.',
37+
source: K_EXAMPLES_SOURCE_ROOT + 'x_distance_hover/distance_hover_map_page.jsx'
3138
},
3239

3340
events: {
3441
title: 'EVENTS EXAMPLE',
3542
info: 'Be sure you understand <a href="https://github.com/matthewwithanm/react-controllables">react-controllables</a>.<br/>' +
36-
'Click on markers.'
43+
'Click on markers.',
44+
source: K_EXAMPLES_SOURCE_ROOT + 'x_events/events_map_page.jsx'
3745
},
3846

3947
balderdash: {
4048
title: 'BALDERDASH',
41-
info: 'Many different markers.'
49+
info: 'Many different markers.',
50+
source: K_EXAMPLES_SOURCE_ROOT + 'x_main/main_map_block.jsx'
4251
}
4352
};
4453

0 commit comments

Comments
 (0)