update
- add msg viewer - re-add hole.xmcp.ml deprecation alert - add http error detection - add freshman welcome
This commit is contained in:
10
src/App.js
10
src/App.js
@@ -9,6 +9,16 @@ import {load_config,bgimg_style} from './Config';
|
||||
import ImasuguApp from './imasugu/src/App';
|
||||
|
||||
function DeprecatedAlert(props) {
|
||||
if(document.domain==='hole.xmcp.ml')
|
||||
return (
|
||||
<div className="flow-item">
|
||||
<div className="box box-tip">
|
||||
<p><b>请使用新域名访问P大树洞!</b></p>
|
||||
<p><a href="http://pkuhelper.pku.edu.cn/hole/">pkuhelper.pku.edu.cn/hole</a></p>
|
||||
<p>当前域名将停止支持</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user