From 91c9b6b21f35f4c460132ef0102c998e75167fd9 Mon Sep 17 00:00:00 2001 From: xmcp Date: Mon, 5 Aug 2019 00:29:41 +0800 Subject: [PATCH] change about text --- src/Flows.js | 7 +++++-- src/Title.css | 4 ++++ src/Title.js | 18 ++++++++++++++---- src/UserAction.js | 4 ++++ 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/Flows.js b/src/Flows.js index 43cd9b4..9024564 100644 --- a/src/Flows.js +++ b/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') ); } diff --git a/src/Title.css b/src/Title.css index 5abbfdb..ba43086 100644 --- a/src/Title.css +++ b/src/Title.css @@ -43,4 +43,8 @@ .list-menu { text-align: center; +} + +.help-desc-box p { + margin: .5em; } \ No newline at end of file diff --git a/src/Title.js b/src/Title.js index f80b9a1..9c9d154 100644 --- a/src/Title.js +++ b/src/Title.js @@ -10,16 +10,26 @@ import './Title.css'; const flag_re=/^\/\/setflag ([a-zA-Z0-9_]+)=(.*)$/; const HELP_TEXT=( -
-

树洞网页版 by @xmcp

-
+
+

+ PKUHelper 网页版树洞 by @xmcp, + 基于  + GPLv3 +  协议在 GitHub 开源 +

+

+ PKUHelper 网页版的诞生离不开  + React + 、 + IcoMoon +  等开源项目 +

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.

-

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/src/UserAction.js b/src/UserAction.js index 80321b6..cc3d6d6 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -208,6 +208,10 @@ export class LoginForm extends Component {

您已登录。 +
+

+

+ 根据计算中心要求,访问授权三个月内有效。
若提示“授权过期”,请注销后重新登录。

{this.props.show_sidebar(