forked from Gitlink/forgeplus-react
66 lines
2.3 KiB
JavaScript
66 lines
2.3 KiB
JavaScript
import React, { useEffect , useState } from 'react';
|
||
import './header.scss';
|
||
|
||
function Footer(){
|
||
const [ value , setValue ] = useState(undefined);
|
||
|
||
useEffect(()=>{
|
||
try {
|
||
var chromesettingArray = JSON.parse(localStorage.getItem('chromesetting'));
|
||
setValue(chromesettingArray.footer);
|
||
} catch (e) {
|
||
}
|
||
},[])
|
||
|
||
function showhtml(htmlString){
|
||
var html = {__html:htmlString};
|
||
return <div dangerouslySetInnerHTML={html}></div> ;
|
||
}
|
||
|
||
return(
|
||
<div>
|
||
<div style={{height:"443px"}}></div>
|
||
<div className="newFooter edu-txt-center">
|
||
{value && showhtml(value)}
|
||
{/* <div className="footEdition">
|
||
<div className="footContent">
|
||
<ul className="center">
|
||
<img src={""} alt="Gitlink(确实开源)" height="29px"/>
|
||
<p>(确实开源)</p>
|
||
</ul>
|
||
<ul>
|
||
<li className="thehead">社区</li>
|
||
<li><a href="/">网站首页</a></li>
|
||
<li><a href="https://forum.trustie.net/forums/1168/detail">帮助中心</a></li>
|
||
<li><a href="https://forum.trustie.net/">论坛交流</a></li>
|
||
<li><a href="https://www.trustie.net/cooperation">合作伙伴</a></li>
|
||
</ul>
|
||
<ul>
|
||
<li className="thehead">支持与服务</li>
|
||
<li><a href="https://forgeplus.trustie.net/docs/api">API文档</a></li>
|
||
<li><a href="https://git-scm.com">Git常用命令</a></li>
|
||
<li><a href="https://forum.trustie.net/forums/3080/detail">DevOps使用文档</a></li>
|
||
<li><a href='https://www.trustie.net/agreement'>服务协议</a></li>
|
||
</ul>
|
||
<ul>
|
||
<li className="thehead">加入我们</li>
|
||
<li className="theline">
|
||
<div className="mr50">
|
||
<li>公众号</li>
|
||
<img src={"Img"} alt="公众号"/>
|
||
</div>
|
||
<div>
|
||
<li>qq群</li>
|
||
<img src={"qqImg"} alt="qq群"/>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<p className="copyrightDesc">©Copyright 2007~2021 国防科技大学Gitlink团队 & IntelliDE <br/>湘ICP备 17009477号</p>
|
||
</div> */}
|
||
</div>
|
||
</div>
|
||
)
|
||
}
|
||
export default Footer;
|