diff --git a/package.json b/package.json index 1123420..ecff20a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "react": "^16.4.2", "react-dom": "^16.4.2", "react-lazyload": "latest", - "react-linkify": "^0.2.2", "react-scripts": "1.1.4", "react-timeago": "^4.1.9" }, diff --git a/src/Flows.js b/src/Flows.js index a082e2e..ce3deae 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -237,22 +237,6 @@ class FlowSidebar extends PureComponent { } } - star_brush() { - let count=prompt('Count:'); - if(count) { - let reqs=[]; - for(let i=parseInt(count);i;i--) - reqs.push(API.set_attention(this.state.info.pid,false,this.props.token)); - Promise.all(reqs) - .then(()=>{ - alert('Completed!') - }) - .catch((e)=>{ - alert('Failed!\n\n'+e); - }) - } - } - show_reply_bar(name,event) { if(this.reply_ref.current && event.target.tagName.toLowerCase()!=='a') { let text=this.reply_ref.current.get(); @@ -262,19 +246,11 @@ class FlowSidebar extends PureComponent { } render() { - const star_brush=localStorage['STAR_BRUSH']==='on'; - if(this.state.loading_status==='loading') return (
加载中……
); return (