Skip to content

Commit

Permalink
FEATURE: Get notified on corpus changes (#501)
Browse files Browse the repository at this point in the history
&& Get notified on changes related to a topic (#152)
  • Loading branch information
therealdarkflamemaster committed Jun 25, 2021
1 parent f73e489 commit 9f887aa
Show file tree
Hide file tree
Showing 10 changed files with 892 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Authenticated from './Authenticated.jsx';
import Rss from './Rss.jsx';

class Header extends Component {

Expand All @@ -13,8 +14,13 @@ class Header extends Component {
render() {
return (
<header className="row align-items-center">
<div className="col-lg-2 d-none d-lg-block logo"></div>
<h1 className="col-lg-8"><Link to="/">{this.state.user}</Link></h1>
<div className="col-lg-4 d-none d-lg-block logo"></div>
<h1 className="col-lg-4">
<Link to="/">{this.state.user}</Link>
</h1>
<div className="col-lg-2">
<Rss/>
</div>
<div className="col-lg-2">
<Authenticated conf={this.props.conf} />
</div>
Expand Down
47 changes: 47 additions & 0 deletions src/components/Rss.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React, { Component } from 'react';
import { Trans } from '@lingui/macro';
import { Link } from 'react-router-dom';

const RssIcon = () => (
<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" >
<g>
<g>
<circle cx="64" cy="384" r="64" fill="#ffffff"/>
</g>
</g>
<g>
<g>
<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"/>
</g>
</g>
<g>
<g>
<path fill="#ffffff" d="M0,0v85.344C200,85.344,362.688,248,362.688,448H448C448,200.96,247.04,0,0,0z"/>
</g>
</g>
</svg>
);

class Rss extends Component {

constructor(props) {
super(props);
this.state = {rss: ''};
}

render() {
return (
<div className="rss-btn">
<Link to="/rss">
<div className="rss-icon">
<RssIcon/>
</div>
<Trans>Flux RSS</Trans>
</Link>
</div>
);
}

}

export default Rss;
Loading

0 comments on commit 9f887aa

Please sign in to comment.