Browse Source

ui change

dev
xmcp 6 years ago
parent
commit
5efaea76cb
  1. 1
      public/index.html
  2. 4
      src/Title.css
  3. 53
      src/Title.js
  4. 10
      src/UserAction.js

1
public/index.html

@ -29,6 +29,7 @@
var _czc=_czc||[];
_czc.push(["_setAccount","1274501752"]);
_czc.push(["_setCustomVar","has_token",localStorage['TOKEN']?'yes':'no',1]);
_czc.push(["_setCustomVar","background_image",localStorage['REPLACE_ERIRI_WITH_URL']||'null',0]);
var cnzz_s_tag = document.createElement('script');
cnzz_s_tag.type = 'text/javascript';
cnzz_s_tag.async = true;

4
src/Title.css

@ -50,4 +50,8 @@
color: black;
background-color: rgba(255,255,255,.5);
margin: 0 .5em;
}
.list-menu {
text-align: center;
}

53
src/Title.js

@ -8,37 +8,28 @@ import './Title.css';
const flag_re=/^\/\/setflag ([a-zA-Z0-9_]+)=(.*)$/;
const HELP_TEXT=(
<div className="box">
<p className="centered-line">使用提示</p>
<ul>
<li>为保证使用体验请使用 Chrome Mobile Safari 浏览器最新版</li>
<li>在列表中左右滑动可以预览回复点击展开侧边栏进行操作</li>
<li>新出现的帖子会在左上角显示一个圆点</li>
<li>本网站支持 3D Touch重压屏幕或者短暂按住 Esc 键可以快速返回 / 刷新树洞</li>
</ul>
<p>
&nbsp;
<a href="https://github.com/xmcp/ashole" target="_blank">
<span className="icon icon-github" /> GitHub
</a>
&nbsp;开源如有反馈请提交 Issue
</p>
<br />
<p>By @xmcp</p>
<br />
<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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
</p>
<div>
<div className="box list-menu">
<p><a href="http://pkuhelper.pku.edu.cn/treehole_rules.html" target="_blank">树洞管理规范</a></p>
<p><a href="https://github.com/xmcp/ashole/issues" target="_blank">意见反馈 <span className="icon icon-github" /></a></p>
</div>
<div className="box">
<p className="centered-line">树洞网页版 by @xmcp</p>
<br />
<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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
</p>
</div>
</div>
);

10
src/UserAction.js

@ -132,12 +132,12 @@ export class LoginForm extends Component {
<button type="button" onClick={()=>{token.set_value(null);}}>注销</button>
</p>
<p>
User Token<a onClick={this.copy_token.bind(this,token.value)}>复制</a><br />
<a onClick={this.copy_token.bind(this,token.value)}>复制 User Token</a><br />
User Token 可用于迁移登录状态请勿泄露因为它与您的账户唯一对应且泄露后无法重置
</p>
</div> :
<div>
<p>登录后可以使用关注回复等功能</p>
<p>登录后可以发树洞回复关注树洞</p>
<p>
<label>
 学号&nbsp;
@ -158,9 +158,6 @@ export class LoginForm extends Component {
登录
</button>
</p>
<p>
登录请求会被发送到北大统一验证接口和 PKU Helper 服务器
</p>
<hr />
<p>从其他设备导入登录状态</p>
<p>
@ -471,6 +468,9 @@ export class PostForm extends Component {
</p>
}
<SafeTextarea ref={this.area_ref} id="new_post" on_change={this.on_change_bound} on_submit={this.on_submit.bind(this)} />
<p><small>
请遵守<a href="http://pkuhelper.pku.edu.cn/treehole_rules.html" target="_blank">树洞管理规范</a>
</small></p>
</form>
)
}

Loading…
Cancel
Save