qotnews/webclient/src/utils.js

75 lines
23 KiB
JavaScript
Raw Normal View History

2020-11-02 23:48:19 +00:00
import React from "react";
import moment from "moment";
import { Link } from "react-router-dom";
2019-08-24 05:04:51 +00:00
export const sourceLink = (story) => {
const url = story.url || story.link;
const urlObj = new URL(url);
2020-11-02 23:48:19 +00:00
const host = urlObj.hostname.replace(/^www\./, "");
return (
<a className="source" href={url}>
{host}
</a>
);
2019-08-24 05:04:51 +00:00
};
2020-11-02 23:48:19 +00:00
export const infoLine = (story) => (
<div className="info">
{story.score} points by <a href={story.author_link}>{story.author}</a>
&#8203; {moment.unix(story.date).fromNow()}
&#8203; on <a href={story.link}>{story.source}</a> | &#8203;
<Link
className={story.num_comments > 99 ? "hot" : ""}
to={"/" + story.id + "/c"}
>
{story.num_comments} comment{story.num_comments !== 1 && "s"}
2019-08-24 05:04:51 +00:00
</Link>
</div>
2020-11-02 23:48:19 +00:00
);
export class ToggleDot extends React.Component {
render() {
const id = this.props.id;
const article = this.props.article;
return (
2020-11-02 23:48:19 +00:00
<div className="toggleDot">
<div className="button">
<Link to={"/" + id + (article ? "" : "/c")}>
{article ? "" : ""}
</Link>
</div>
</div>
);
}
}
export class ForwardDot extends React.Component {
2020-01-04 23:36:24 +00:00
goForward() {
2020-11-02 23:48:19 +00:00
localStorage.setItem("scrollLock", "True");
2020-01-04 23:36:24 +00:00
window.history.forward();
}
render() {
2020-01-04 23:36:24 +00:00
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
if (!isMobile) return null;
return (
2020-11-02 23:48:19 +00:00
<div className="forwardDot" onClick={this.goForward}>
<div className="button"></div>
</div>
);
}
}
export const logos = {
2020-11-02 23:48:19 +00:00
hackernews: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wgeBhwhciGZUAAAABl0RVh0Q29tbWVudABDcmVhdG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