diff --git a/src/home/Index.jsx b/src/home/Index.jsx
deleted file mode 100644
index 7105a89d3..000000000
--- a/src/home/Index.jsx
+++ /dev/null
@@ -1,167 +0,0 @@
-import React , { useEffect , useState } from 'react';
-import "./Index.scss";
-import TopEdition from './TopEdition';
-import ThirdEdition from './ThirdEdition';
-import { Anchor } from 'antd';
-import F41 from './Img/4-1.png';
-import F42 from './Img/4-2.png';
-import F43 from './Img/4-3.png';
-import F44 from './Img/4-4.png';
-import SecondEdition from './SecondEdition';
-import FifthEdition from './FifthEdition';
-import { TPMIndexHOC } from '../modules/tpm/TPMIndexHOC';
-import Axios from 'axios';
-
-function Index(props) {
- const [ value , setValue ] = useState("");
- const [ flag , setFlag ] = useState(true);
-
- const [ bannerTab , setBannerTab ] = useState(undefined);
- const register = props && props.mygetHelmetapi && props.mygetHelmetapi.common && props.mygetHelmetapi.common.register;
-
- const { current_user } = props;
- useEffect(()=>{
- window.addEventListener("scroll",scrollListener);
- getTab();
- return ComponentWillUnmount;
- },[])
-
- function ComponentWillUnmount() {
- window.removeEventListener("scroll",scrollListener);
- }
-
- function getTab() {
- const url = `/topics.json?topic_type=card`;
- Axios.get(url,{
- params:{
- limit:3
- }
- }).then(result=>{
- if(result){
- setBannerTab(result.data.topics);
- }
- }).catch(error=>{})
- }
-
- function scrollListener(event) {
-
- let third = document.getElementById("thirdContent").offsetTop;
- let top = document.documentElement.scrollTop + 60;
- if(top>= third)
- {
- setFlag(false)
- }else{
- setFlag(true)
- }
- }
-
- function changeActive(params) {
- if(params){
- setValue(params);
- let h = params.split("#")[1];
- let t = document.getElementById(h).offsetTop;
- document.documentElement.scrollTop = t-100;
- }else{
- setValue("");
- }
- }
-
-
- return(
-
-
- {/*
*/}
-
- {
- bannerTab && bannerTab.length > 0 ?
-
- :
-
- }
-
-
-
-
-
GitLink,新一代开源创新服务平台
- {
- flag &&
-
- changeActive("#hadoop")} className={value === "#hadoop"?"active":""}>分布式协作开发
- changeActive("#oneStop")} className={value === "#oneStop"?"active":""}>一站式过程管理
- changeActive("#highDevops")} className={value === "#highDevops"?"active":""}>高效流水线运维
- changeActive("#multipleAnalyse")} className={value === "#multipleAnalyse"?"active":""}>多层次代码分析
- changeActive("#multidimensional")} className={value === "#multidimensional"?"active":""}>多维度用户画像
-
- }
-
-
-
-
-
-
-
-
加入GitLink,和社区伙伴们一起踏上开源创新的辉煌旅程!
-
- { !(current_user && current_user.login) &&
立即注册 }
-
-
- -
-
- 发现
- 探索丰富优质的开发资源
-
- -
-
- 加入
- 寻找志同道合的协作伙伴
-
- -
-
- 合作
- 开启开放共享的协同之旅
-
- -
-
- 贡献
- 书写开源创新的精彩成就
-
-
-
-
-
-
开源生态
-
GitLink与各大企业、高校、科研机构开展广泛的技术合作,推动我国开源软件生态的快速构建与发展
-
-
-
- )
-}
-export default TPMIndexHOC(Index);
\ No newline at end of file
diff --git a/src/home/index.jsx b/src/home/index.jsx
deleted file mode 100644
index 7105a89d3..000000000
--- a/src/home/index.jsx
+++ /dev/null
@@ -1,167 +0,0 @@
-import React , { useEffect , useState } from 'react';
-import "./Index.scss";
-import TopEdition from './TopEdition';
-import ThirdEdition from './ThirdEdition';
-import { Anchor } from 'antd';
-import F41 from './Img/4-1.png';
-import F42 from './Img/4-2.png';
-import F43 from './Img/4-3.png';
-import F44 from './Img/4-4.png';
-import SecondEdition from './SecondEdition';
-import FifthEdition from './FifthEdition';
-import { TPMIndexHOC } from '../modules/tpm/TPMIndexHOC';
-import Axios from 'axios';
-
-function Index(props) {
- const [ value , setValue ] = useState("");
- const [ flag , setFlag ] = useState(true);
-
- const [ bannerTab , setBannerTab ] = useState(undefined);
- const register = props && props.mygetHelmetapi && props.mygetHelmetapi.common && props.mygetHelmetapi.common.register;
-
- const { current_user } = props;
- useEffect(()=>{
- window.addEventListener("scroll",scrollListener);
- getTab();
- return ComponentWillUnmount;
- },[])
-
- function ComponentWillUnmount() {
- window.removeEventListener("scroll",scrollListener);
- }
-
- function getTab() {
- const url = `/topics.json?topic_type=card`;
- Axios.get(url,{
- params:{
- limit:3
- }
- }).then(result=>{
- if(result){
- setBannerTab(result.data.topics);
- }
- }).catch(error=>{})
- }
-
- function scrollListener(event) {
-
- let third = document.getElementById("thirdContent").offsetTop;
- let top = document.documentElement.scrollTop + 60;
- if(top>= third)
- {
- setFlag(false)
- }else{
- setFlag(true)
- }
- }
-
- function changeActive(params) {
- if(params){
- setValue(params);
- let h = params.split("#")[1];
- let t = document.getElementById(h).offsetTop;
- document.documentElement.scrollTop = t-100;
- }else{
- setValue("");
- }
- }
-
-
- return(
-
-
- {/*
*/}
-
- {
- bannerTab && bannerTab.length > 0 ?
-
- :
-
- }
-
-
-
-
-
GitLink,新一代开源创新服务平台
- {
- flag &&
-
- changeActive("#hadoop")} className={value === "#hadoop"?"active":""}>分布式协作开发
- changeActive("#oneStop")} className={value === "#oneStop"?"active":""}>一站式过程管理
- changeActive("#highDevops")} className={value === "#highDevops"?"active":""}>高效流水线运维
- changeActive("#multipleAnalyse")} className={value === "#multipleAnalyse"?"active":""}>多层次代码分析
- changeActive("#multidimensional")} className={value === "#multidimensional"?"active":""}>多维度用户画像
-
- }
-
-
-
-
-
-
-
-
加入GitLink,和社区伙伴们一起踏上开源创新的辉煌旅程!
-
- { !(current_user && current_user.login) &&
立即注册 }
-
-
- -
-
- 发现
- 探索丰富优质的开发资源
-
- -
-
- 加入
- 寻找志同道合的协作伙伴
-
- -
-
- 合作
- 开启开放共享的协同之旅
-
- -
-
- 贡献
- 书写开源创新的精彩成就
-
-
-
-
-
-
开源生态
-
GitLink与各大企业、高校、科研机构开展广泛的技术合作,推动我国开源软件生态的快速构建与发展
-
-
-
- )
-}
-export default TPMIndexHOC(Index);
\ No newline at end of file