forked from newthuhole/hole_thu_frontend
change about text
This commit is contained in:
@@ -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')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,4 +43,8 @@
|
||||
|
||||
.list-menu {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.help-desc-box p {
|
||||
margin: .5em;
|
||||
}
|
||||
18
src/Title.js
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,
|
||||
基于
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0.zh-cn.html" target="_blank">GPLv3</a>
|
||||
协议在 <a href="https://github.com/pkuhelper-web/webhole" target="_blank">GitHub</a> 开源
|
||||
</p>
|
||||
<p>
|
||||
PKUHelper 网页版的诞生离不开
|
||||
<a href="https://reactjs.org/" target="_blank" rel="noopener">React</a>
|
||||
、
|
||||
<a href="https://icomoon.io/#icons" target="_blank" rel="noopener">IcoMoon</a>
|
||||
等开源项目
|
||||
</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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user