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) {
|
copy_link(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
copy(
|
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`+
|
`${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`+
|
`(${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')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,3 +44,7 @@
|
|||||||
.list-menu {
|
.list-menu {
|
||||||
text-align: center;
|
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 flag_re=/^\/\/setflag ([a-zA-Z0-9_]+)=(.*)$/;
|
||||||
|
|
||||||
const HELP_TEXT=(
|
const HELP_TEXT=(
|
||||||
<div className="box">
|
<div className="box help-desc-box">
|
||||||
<p className="centered-line">树洞网页版 by @xmcp</p>
|
<p>
|
||||||
<br />
|
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>
|
<p>
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
</p>
|
</p>
|
||||||
<br />
|
|
||||||
<p>
|
<p>
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
|||||||
@@ -208,6 +208,10 @@ export class LoginForm extends Component {
|
|||||||
<p>
|
<p>
|
||||||
<b>您已登录。</b>
|
<b>您已登录。</b>
|
||||||
<button type="button" onClick={()=>{token.set_value(null);}}>注销</button>
|
<button type="button" onClick={()=>{token.set_value(null);}}>注销</button>
|
||||||
|
<br />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
根据计算中心要求,访问授权三个月内有效。<br />若提示“授权过期”,请注销后重新登录。
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a onClick={()=>{this.props.show_sidebar(
|
<a onClick={()=>{this.props.show_sidebar(
|
||||||
|
|||||||
Reference in New Issue
Block a user