|
@ -4,7 +4,7 @@ import { connect } from 'react-redux'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const SetControl = (props) => { |
|
|
const SetControl = (props) => { |
|
|
const { dispatch, actions, clientHeight, history ,pomsAmbari} = props |
|
|
const { dispatch, actions, clientHeight, history, pomsAmbari, pomsKubesphere } = props |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
|
|
|
|
|
|
}, []) |
|
|
}, []) |
|
@ -24,39 +24,43 @@ const SetControl = (props) => { |
|
|
}}> |
|
|
}}> |
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }} onClick={() => { |
|
|
<div style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }} onClick={() => { |
|
|
history.push({ pathname: '/facility/serverInformation/grafana', }) |
|
|
history.push({ pathname: '/facility/serverInformation/grafana', }) |
|
|
}}> |
|
|
}}> |
|
|
|
|
|
|
|
|
<img src='/assets/images/background/grafana.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<img src='/assets/images/background/grafana.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>grafana</div> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>grafana</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>监控可视化工具</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>监控可视化工具</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }} onClick={() => { |
|
|
{/* <div style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }} onClick={() => { |
|
|
history.push({ pathname: '/facility/serverInformation/kubesphere',}) |
|
|
history.push({ pathname: '/facility/serverInformation/kubesphere', }) |
|
|
}}> |
|
|
}}> */} |
|
|
|
|
|
<a target='_blank' href={pomsKubesphere} style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }}> |
|
|
<img src='/assets/images/background/kubesphere.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<img src='/assets/images/background/kubesphere.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>kubesphere</div> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>kubesphere</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>容器应用管理服务</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>容器应用管理服务</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</a> |
|
|
|
|
|
{/* </div> */} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<div style={{ width: 'calc(33.3%)', display: 'flex', justifyContent: 'center' }}> |
|
|
<a target='_blank' href={pomsAmbari} style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }}> |
|
|
<a target='_blank' href={pomsAmbari} style={{ display: 'flex', flexDirection: 'column', width: 200, height: 310 }}> |
|
|
<img src='/assets/images/background/ambari.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<img src='/assets/images/background/ambari.png' style={{ width: 200, height: 200, marginBottom: 20 }} /> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>ambari</div> |
|
|
<div style={{ fontWeight: 500, fontSize: 18, color: '#000', width: 75, height: 25, margin: '16px 0 8px' }}>ambari</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>Hadoop集群管理工具</div> |
|
|
<div style={{ fontSize: 16, color: '#646566' }}>Hadoop集群管理工具</div> |
|
|
</div> |
|
|
</div> |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div > |
|
|
</div > |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
@ -66,7 +70,7 @@ function mapStateToProps (state) { |
|
|
return { |
|
|
return { |
|
|
clientHeight: global.clientHeight, |
|
|
clientHeight: global.clientHeight, |
|
|
pomsAmbari: global.pomsAmbari, |
|
|
pomsAmbari: global.pomsAmbari, |
|
|
|
|
|
pomsKubesphere: global.pomsKubesphere, |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|