Browse Source

change about text

dev
xmcp 6 years ago
parent
commit
91c9b6b21f
  1. 7
      src/Flows.js
  2. 4
      src/Title.css
  3. 18
      src/Title.js
  4. 4
      src/UserAction.js

7
src/Flows.js

@ -104,10 +104,13 @@ class FlowItem extends PureComponent {
copy_link(event) {
event.preventDefault();
copy(
`${event.target.href}\n`+
`${event.target.href}${this.props.info.tag ? ' 【'+this.props.info.tag+'】' : ''}\n`+
`${this.props.info.text}${this.props.info.type==='image'?' [图片]':this.props.info.type==='audio'?' [语音]':''}\n`+
`${format_time(new Date(this.props.info.timestamp*1000))} ${this.props.info.likenum}关注 ${this.props.info.reply}回复)\n`+
this.props.replies.map((r)=>(r.text)).join('\n')
this.props.replies.map((r)=>(
(r.tag ? '【'+r.tag+'】' : '')+
r.text
)).join('\n')
);
}

4
src/Title.css

@ -43,4 +43,8 @@
.list-menu {
text-align: center;
}
.help-desc-box p {
margin: .5em;
}

18
src/Title.js

@ -10,16 +10,26 @@ import './Title.css';
const flag_re=/^\/\/setflag ([a-zA-Z0-9_]+)=(.*)$/;
const HELP_TEXT=(
<div className="box">
<p className="centered-line">树洞网页版 by @xmcp</p>
<br />
<div className="box help-desc-box">
<p>
PKUHelper 网页版树洞 by @xmcp
基于&nbsp;
<a href="https://www.gnu.org/licenses/gpl-3.0.zh-cn.html" target="_blank">GPLv3</a>
&nbsp;协议在 <a href="https://github.com/pkuhelper-web/webhole" target="_blank">GitHub</a>
</p>
<p>
PKUHelper 网页版的诞生离不开&nbsp;
<a href="https://reactjs.org/" target="_blank" rel="noopener">React</a>
<a href="https://icomoon.io/#icons" target="_blank" rel="noopener">IcoMoon</a>
&nbsp;等开源项目
</p>
<p>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
</p>
<br />
<p>
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of

4
src/UserAction.js

@ -208,6 +208,10 @@ export class LoginForm extends Component {
<p>
<b>您已登录</b>
<button type="button" onClick={()=>{token.set_value(null);}}>注销</button>
<br />
</p>
<p>
根据计算中心要求访问授权三个月内有效<br />若提示授权过期请注销后重新登录
</p>
<p>
<a onClick={()=>{this.props.show_sidebar(

Loading…
Cancel
Save