From 7199d5ecf4b2553ee0072f3ec6c204b1ae82e5ca Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sat, 12 Sep 2020 12:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=B8=8E=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + public/index.html | 24 +++++++++++++++++--- src/UserAction.js | 2 ++ {public/static => src}/fonts_7/icomoon.css | 1 + {public/static => src}/fonts_7/icomoon.svg | 0 {public/static => src}/fonts_7/icomoon.ttf | Bin {public/static => src}/fonts_7/icomoon.woff | Bin src/index.js | 1 + src/infrastructure/widgets.js | 6 +++-- 9 files changed, 30 insertions(+), 5 deletions(-) rename {public/static => src}/fonts_7/icomoon.css (99%) rename {public/static => src}/fonts_7/icomoon.svg (100%) rename {public/static => src}/fonts_7/icomoon.ttf (100%) rename {public/static => src}/fonts_7/icomoon.woff (100%) diff --git a/.gitignore b/.gitignore index f7222bc..49f060a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ /build/ build.* +*.log diff --git a/public/index.html b/public/index.html index 4f368fc..555a50d 100644 --- a/public/index.html +++ b/public/index.html @@ -6,8 +6,6 @@ - - @@ -26,6 +24,26 @@ 新T树洞 -
请开启javascript,或稍等片刻
+
+ 请开启javascript,或 强制刷新 +
+ diff --git a/src/UserAction.js b/src/UserAction.js index 01a2304..df7cc8c 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -56,6 +56,7 @@ export function InfoSidebar(props) { +

强烈建议开始使用前先看一遍所有设置选项

@@ -85,6 +86,7 @@ export function InfoSidebar(props) {

意见反馈请加tag #意见反馈 或到github后端的issue区。

+

新T树洞强烈期待有其他更多树洞的出现,一起分布式互联,构建清华树洞族。详情见 关于 中的描述。

联系我们:{EMAIL}

diff --git a/public/static/fonts_7/icomoon.css b/src/fonts_7/icomoon.css similarity index 99% rename from public/static/fonts_7/icomoon.css rename to src/fonts_7/icomoon.css index 42842e1..72bb343 100644 --- a/public/static/fonts_7/icomoon.css +++ b/src/fonts_7/icomoon.css @@ -110,3 +110,4 @@ } .icon-trash:before { content: "\1f5d1"; +} diff --git a/public/static/fonts_7/icomoon.svg b/src/fonts_7/icomoon.svg similarity index 100% rename from public/static/fonts_7/icomoon.svg rename to src/fonts_7/icomoon.svg diff --git a/public/static/fonts_7/icomoon.ttf b/src/fonts_7/icomoon.ttf similarity index 100% rename from public/static/fonts_7/icomoon.ttf rename to src/fonts_7/icomoon.ttf diff --git a/public/static/fonts_7/icomoon.woff b/src/fonts_7/icomoon.woff similarity index 100% rename from public/static/fonts_7/icomoon.woff rename to src/fonts_7/icomoon.woff diff --git a/src/index.js b/src/index.js index e2a3d40..f44e849 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; +import './fonts_7/icomoon.css' import App from './App'; //import {elevate} from './infrastructure/elevator'; import registerServiceWorker from './registerServiceWorker'; diff --git a/src/infrastructure/widgets.js b/src/infrastructure/widgets.js index cf8185d..8c8aea7 100644 --- a/src/infrastructure/widgets.js +++ b/src/infrastructure/widgets.js @@ -59,10 +59,12 @@ class LoginPopupSelf extends Component { this.input_token_ref=React.createRef(); }; - setThuhole(tar, ref) { + setThuhole(e, tar, ref) { console.log(tar); + e.preventDefault(); tar.href = '/_login?p=thuhole&token=' + ref.current.value; console.log(tar); + alert('应T大树洞要求,已停止T大树洞token登陆'); } render() { @@ -84,7 +86,7 @@ class LoginPopupSelf extends Component {
{this.setThuhole(e.target, this.input_token_ref)}} + onClick={(e) =>{this.setThuhole(e, e.target, this.input_token_ref)}} >  T大树洞