import React, { Component } from 'react';
class NewFooter extends Component {
  constructor(props) {
    super(props)
    this.state={
      forge_footer: undefined
    }
  }
  componentDidMount() {

    //获取游览器地址
    try {
      var chromesettingArray = JSON.parse(localStorage.getItem('chromesetting'));
      this.setState({
        forge_footer: chromesettingArray.footer
      })
    } catch (e) {
    }
  }
  showhtml=(htmlString)=>{
    var html = {__html:htmlString};
    return   <div dangerouslySetInnerHTML={html}></div> ;
  }

  render() {
    const {forge_footer} = this.state;
    return (
      <div>
        <style>
					{
						`
						p {
								margin-top: 0;
								margin-bottom:0px !important;
						}
						`
					}
				</style>
      <div style={{height:"483px"}}></div>
      <div className="newFooter edu-txt-center">
        {forge_footer && this.showhtml(forge_footer)}
        {/* <div className="footerInfos">
          <ul>
            <li>社区</li>
            <li><a href={`/`} target="_blank">网站首页</a></li>
            <li><a href={`https://www.trustie.net/agreement`} target="_blank">服务协议</a></li>
            <li><a href={`https://forum.trustie.net/forums/1168/detail`} target="_blank">帮助中心</a></li>
            <li><a href={`https://forum.trustie.net/`} target="_blank">问吧交流</a></li>
            <li><a href={`https://www.trustie.net/cooperation`} target="_blank">合作伙伴</a></li>
          </ul>
          <ul>
            <li>支持与服务</li>
            <li><a href={`https://forgeplus.trustie.net/docs/api`} target="_blank">API文档</a></li>
            <li><a href={`https://forum.trustie.net/forums/1168/detail`} target="_blank">帮助中心</a></li>
            <li><a href={`https://git-scm.com`} target="_blank">Git常用命令</a></li>
            <li><a href={`https://forum.trustie.net/forums/3080/detail`} target="_blank">DevOps使用文档</a></li>
            <li><a href={`https://forgeplus.trustie.net/projects/jasder/forgeplus/tree/master/CHANGELOG.md`} target="_blank">日志更新</a></li>
          </ul>
          <ul>
            <li>合作伙伴</li>
            <li><a href={`http://www.sei.pku.edu.cn`} target="_blank">北京大学</a></li>
            <li><a href={`http://scse.buaa.edu.cn`} target="_blank">北京航空航天大学</a></li>
            <li><a href={`https://www.nju.edu.cn`} target="_blank">南京大学</a></li>
            <li><a href={`https://www.xtu.edu.cn`} target="_blank">湘潭大学</a></li>
            <li><a href={`http://www.iscas.ac.cn`} target="_blank">ISCAS</a></li>
            <li><a href={`https://www.ucloud.cn`} target="_blank">UCloud优刻得</a></li>
            <li><a href={`http://www.inforbus.com`} target="_blank">中创软件</a></li>
            <li><a href={`https://www.inspur.com`} target="_blank">浪潮集团</a></li>
            <li><a href={`http://www.copu.org.cn`} target="_blank">中国开源软件推进联盟</a></li>
            <li><a href={`https://www.sjtu.edu.cn`} target="_blank">上海交通大学</a></li>
          </ul>
          <ul>
            <li>合作伙伴</li>
            <li><span>热线：</span></li>
            <li><span>QQ群：1071514693</span></li>
          </ul>
        </div>
        <p className="footerCopy">© Copyright 2007~2021 国防科技大学Trustie团队 & IntelliDE <a href="https://beian.miit.gov.cn">湘ICP备 17009477号</a></p> */}
      </div>
    </div>
    );
  }
}

export default NewFooter;
