'use strict';
const UTag = props => {
const tag_name = props.tag;
const turl = "/?rank=tags&tags=" + tag_name;
return (
)
}
const Paper = props => {
const p = props.paper;
const adder = () => fetch("/add/" + p.id + "/" + prompt("tag to add to this paper:"))
.then(response => console.log(response.text()));
const subber = () => fetch("/sub/" + p.id + "/" + prompt("tag to subtract from this paper:"))
.then(response => console.log(response.text()));
const utags = p.utags.map((utxt, ix) => );
const similar_url = "/?rank=tags&pid=" + p.id;
return (
{p.weight.toFixed(2)}
{p.authors}
{p.time}
{p.tags}
{p.summary}
)
}
const PaperList = props => {
const lst = props.papers;
const plst = lst.map((jpaper, ix) => );
return (
)
}
const Tag = props => {
const t = props.tag;
const turl = "/?rank=tags&tags=" + t.name;
return (
)
}
const TagList = props => {
const lst = props.tags;
const tlst = lst.map((jtag, ix) => );
const deleter = () => fetch("/del/" + prompt("delete tag name:"))
.then(response => console.log(response.text()));
return (
)
}
const Opts = props => {
const g = props.gvars;
return (
time filter (days):
)
}
ReactDOM.render(, document.getElementById('wrap'))
ReactDOM.render(, document.getElementById('tagwrap'))
//ReactDOM.render(, document.getElementById('cbox'))