update
This commit is contained in:
24
src/Flows.js
24
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 (<p className="box box-tip">加载中……</p>);
|
||||
return (
|
||||
<div className="flow-item-row sidebar-flow-item">
|
||||
<div className="box box-tip">
|
||||
{(star_brush && !!this.props.token) &&
|
||||
<span>
|
||||
<a onClick={this.star_brush.bind(this)}>-</a>
|
||||
/
|
||||
</span>
|
||||
}
|
||||
{!!this.props.token &&
|
||||
<span>
|
||||
<a onClick={this.report.bind(this)}>举报</a>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d)/g;
|
||||
export const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d|\u20e3)/g;
|
||||
export const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Japanese|Kind|Little|Magic|Naïve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|洞主)(?![A-Za-z])/gi;
|
||||
export const URL_RE=/(?:^|\b)((?:https?:\/\/)?(?:[\w-]+\.)+[a-zA-Z]{2,3}(?::\d{1,5})?(?:\/[\w~!@#$%^&*()-_=+[\];,./?]*)?)(?:$|\b)/gi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user