|
|
@ -4,7 +4,7 @@ import { connect } from 'react-redux'; |
|
|
|
|
|
|
|
|
|
|
|
const Server = (props) => { |
|
|
|
const { dispatch, actions, user, loading, socket,pomsMonitor } = props |
|
|
|
const { dispatch, actions, user, loading, socket, pomsMonitor } = props |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
@ -13,10 +13,24 @@ const Server = (props) => { |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
<div> |
|
|
|
{/* <img src="/assets/images/install/watting.png" alt="" style={{ width: 'calc(100% + 16px)', position: "relative", top: -12, left: -8, }} /> */} |
|
|
|
{/* <iframe frameborder="0" src={`/_api/https://monitor.anxinyun.cn/login`} style={{height: '100%', width: '100%'}} /> */} |
|
|
|
|
|
|
|
<div style={{ |
|
|
|
height: 'calc(100vh - 80px)', width: 'calc(100%)', |
|
|
|
backgroundImage: "url('/assets/images/background/General.png')", |
|
|
|
backgroundSize: 'cover', |
|
|
|
backgroundRepeat: 'no-repeat', |
|
|
|
position: 'relative', |
|
|
|
}}> |
|
|
|
<div style={{ position: 'absolute', top: 'calc(50%)', left: 'calc(10%)', }}> |
|
|
|
<div style={{ |
|
|
|
width: 184, height: 48, fontWeight: 400, color: '#FFFFFF', lineHeight: '48px', backgroundImage: "url('/assets/images/background/B.png')", textAlign: 'center', |
|
|
|
backgroundSize: 'cover', |
|
|
|
backgroundRepeat: 'no-repeat', |
|
|
|
}}> |
|
|
|
<a target='_blank' href={pomsMonitor}> 进入Grafana</a> |
|
|
|
</div> |
|
|
|
<div style={{ width: 679, height: 40, fontSize: 28, fontWeight: 400, color: '#146AD7', lineHeight: '40px', marginTop: 40 }}> |
|
|
|
点击可跳转服务器监控网站Grafana</div> |
|
|
|
</div> |
|
|
|
{/* <iframe frameBorder="0" src={pomsMonitor} style={{height: 'calc(100vh - 80px)', width: 'calc(100%)'}} /> */} |
|
|
|
</div> |
|
|
|
</> |
|
|
@ -30,7 +44,7 @@ function mapStateToProps (state) { |
|
|
|
// actions: global.actions, |
|
|
|
// members: members.data, |
|
|
|
// socket: webSocket.socket |
|
|
|
pomsMonitor:global.pomsMonitor, |
|
|
|
pomsMonitor: global.pomsMonitor, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|