Skip to content

Commit c7edf7c

Browse files
FEATURE: Get notified on corpus changes (#501)
&& Get notified on changes related to a topic (#152)
1 parent f73e489 commit c7edf7c

File tree

11 files changed

+893
-2
lines changed

11 files changed

+893
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"react-autosuggest": "^9.4.3",
2020
"react-dom": "^16.14.0",
2121
"react-geocode": "^0.2.2",
22+
"react-helmet": "^6.1.0",
2223
"react-router-dom": "^5.2.0",
2324
"yaml": "^1.10.0"
2425
},

src/components/Header.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react';
22
import { Link } from 'react-router-dom';
33
import Authenticated from './Authenticated.jsx';
4+
import Rss from './Rss.jsx';
45

56
class Header extends Component {
67

@@ -13,8 +14,13 @@ class Header extends Component {
1314
render() {
1415
return (
1516
<header className="row align-items-center">
16-
<div className="col-lg-2 d-none d-lg-block logo"></div>
17-
<h1 className="col-lg-8"><Link to="/">{this.state.user}</Link></h1>
17+
<div className="col-lg-4 d-none d-lg-block logo"></div>
18+
<h1 className="col-lg-4">
19+
<Link to="/">{this.state.user}</Link>
20+
</h1>
21+
<div className="col-lg-2">
22+
<Rss/>
23+
</div>
1824
<div className="col-lg-2">
1925
<Authenticated conf={this.props.conf} />
2026
</div>

src/components/Rss.jsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import React, { Component } from 'react';
2+
import { Trans } from '@lingui/macro';
3+
import { Link } from 'react-router-dom';
4+
5+
const RssIcon = () => (
6+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 448 448" xmlSpace="preserve" >
7+
<g>
8+
<g>
9+
<circle cx="64" cy="384" r="64" fill="#ffffff"/>
10+
</g>
11+
</g>
12+
<g>
13+
<g>
14+
<path fill="#ffffff" d="M0,149.344v85.344c117.632,0,213.344,95.68,213.344,213.312h85.312C298.656,283.328,164.672,149.344,0,149.344z"/>
15+
</g>
16+
</g>
17+
<g>
18+
<g>
19+
<path fill="#ffffff" d="M0,0v85.344C200,85.344,362.688,248,362.688,448H448C448,200.96,247.04,0,0,0z"/>
20+
</g>
21+
</g>
22+
</svg>
23+
);
24+
25+
class Rss extends Component {
26+
27+
constructor(props) {
28+
super(props);
29+
this.state = {rss: ''};
30+
}
31+
32+
render() {
33+
return (
34+
<div className="rss-btn">
35+
<Link to="/rss">
36+
<div className="rss-icon">
37+
<RssIcon/>
38+
</div>
39+
<Trans>Flux RSS</Trans>
40+
</Link>
41+
</div>
42+
);
43+
}
44+
45+
}
46+
47+
export default Rss;

0 commit comments

Comments
 (0)