After Width: | Height: | Size: 165 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 233 KiB |
@ -0,0 +1,52 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
|
|||
|
|||
|
|||
const Ambari = (props) => { |
|||
const { dispatch, actions, pomsAmbari, clientHeight } = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)',margin:"-12px -8px" }}> |
|||
<div style={{ |
|||
height: '100%', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
{/* <iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id={'pomsAmbari'} |
|||
src={pomsAmbari} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> */} |
|||
|
|||
<a target='_blank' href={pomsAmbari} |
|||
style={{ marginRight: 10 }} |
|||
><Button theme='solid' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsAmbari: global.pomsAmbari, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Ambari); |
@ -0,0 +1,55 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { IconReply } from '@douyinfe/semi-icons'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
|
|||
|
|||
|
|||
const Es = (props) => { |
|||
const { dispatch, actions, pomsEs, clientHeight ,history} = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)', margin: "-12px -8px", position: 'relative' }}> |
|||
<div style={{ width: 'calc(100%)', height: 40, padding:'0 10px',display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<Button theme='light' type='secondary' onClick={() => { |
|||
history.push({ pathname: '/facility/other/other1', }) |
|||
}}>返回</Button> |
|||
<a target='_blank' href={pomsEs} |
|||
><Button theme='light' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
<div style={{ |
|||
height: 'calc(100% - 40px)', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
<iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id={'pomsEs'} |
|||
src={pomsEs} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsEs: global.pomsEs, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Es); |
@ -0,0 +1,67 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
|
|||
|
|||
const Grafana = (props) => { |
|||
const { dispatch, actions, user, loading, socket, pomsMonitor, clientHeight,history } = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)', margin: "-12px -8px", position: 'relative' }}> |
|||
<div style={{ width: 'calc(100%)', height: 40, padding:'0 10px',display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<Button theme='light' type='secondary' onClick={() => { |
|||
history.push({ pathname: '/facility/serverInformation/monitor', }) |
|||
}}>返回</Button> |
|||
<a target='_blank' href={pomsMonitor} |
|||
><Button theme='light' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
<div style={{ |
|||
height: 'calc(100% - 40px)', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
<iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id='monitor' |
|||
src={pomsMonitor} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> |
|||
{/* // <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} |
|||
// style={{ width: '100%', height: '100%', display: 'block' }} |
|||
// > 进入Grafana</a> |
|||
// </div> |
|||
// <div style={{ width: 679, height: 40, fontSize: 28, fontWeight: 400, color: '#146AD7', lineHeight: '40px', marginTop: 40 }}> |
|||
// 点击可跳转服务器监控网站Grafana</div> |
|||
// </div> */} |
|||
</div> |
|||
{/* <iframe frameBorder="0" src={pomsMonitor} style={{height: 'calc(100vh - 80px)', width: 'calc(100%)'}} /> */} |
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsMonitor: global.pomsMonitor, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Grafana); |
@ -1,6 +1,12 @@ |
|||
'use strict'; |
|||
|
|||
import Other from './other'; |
|||
import Monitor from './monitor'; |
|||
import Other from './other'; |
|||
import Grafana from './grafana'; |
|||
import Kubesphere from './kubesphere'; |
|||
import Ambari from './ambari'; |
|||
import Es from './es'; |
|||
import Pghero from './pghero'; |
|||
import Kowl from './kowl'; |
|||
import MaintenanceRecords from './maintenanceRecords'; |
|||
export { MaintenanceRecords,Monitor,Other}; |
|||
export { MaintenanceRecords,Monitor, Grafana, Other, Kubesphere, Ambari, Es, Pghero, Kowl }; |
@ -0,0 +1,54 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
import { IconReply } from '@douyinfe/semi-icons'; |
|||
|
|||
const Kowl = (props) => { |
|||
const { dispatch, actions, pomsKowl, clientHeight ,history} = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)',margin:"-12px -8px",position: 'relative', }}> |
|||
<div style={{ width: 'calc(100%)', height: 40, padding:'0 10px',display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<Button theme='light' type='secondary' onClick={() => { |
|||
history.push({ pathname: '/facility/other/other1', }) |
|||
}}>返回</Button> |
|||
<a target='_blank' href={pomsKowl} |
|||
><Button theme='light' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
<div style={{ |
|||
height: 'calc(100% - 40px)', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
<iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id={'pomsKowl'} |
|||
src={pomsKowl} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsKowl: global.pomsKowl, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Kowl); |
@ -0,0 +1,54 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
|
|||
|
|||
const Kubesphere = (props) => { |
|||
const { dispatch, actions, pomsKubesphere, clientHeight,history } = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)',margin:"-12px -8px" }}> |
|||
<div style={{ width: 'calc(100%)', height: 40, padding:'0 10px',display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<Button theme='light' type='secondary' onClick={() => { |
|||
history.push({ pathname: '/facility/serverInformation/monitor', }) |
|||
}}>返回</Button> |
|||
<a target='_blank' href={pomsKubesphere} |
|||
><Button theme='light' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
<div style={{ |
|||
height: 'calc(100% - 40px)', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
<iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id={'pomsKubesphere'} |
|||
src={pomsKubesphere} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsKubesphere: global.pomsKubesphere, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Kubesphere); |
@ -0,0 +1,55 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { IconReply } from '@douyinfe/semi-icons'; |
|||
import { Button } from '@douyinfe/semi-ui'; |
|||
|
|||
|
|||
const Pghero = (props) => { |
|||
const { dispatch, actions, pomsPghero, clientHeight,history } = props |
|||
|
|||
useEffect(() => { |
|||
|
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: clientHeight - 56, width: 'calc(100% + 16px)',margin:"-12px -8px",position: 'relative' }}> |
|||
<div style={{ width: 'calc(100%)', height: 40, padding:'0 10px',display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|||
<Button theme='light' type='secondary' onClick={() => { |
|||
history.push({ pathname: '/facility/other/other1', }) |
|||
}}>返回</Button> |
|||
<a target='_blank' href={pomsPghero} |
|||
><Button theme='light' type='secondary'>进入网页</Button></a> |
|||
</div> |
|||
<div style={{ |
|||
height: 'calc(100% - 40px)', width: '100%', |
|||
// backgroundImage: "url('/assets/images/background/General.png')", |
|||
// backgroundSize: 'cover', |
|||
// backgroundRepeat: 'no-repeat', |
|||
// position: 'relative', |
|||
// top: -12, left: -8, |
|||
}}> |
|||
<iframe |
|||
frameBorder="0" |
|||
allowFullScreen='true' |
|||
id={'pomsPghero'} |
|||
src={pomsPghero} |
|||
width={'100%'} |
|||
height={'100%'} |
|||
// wmode="transparent" |
|||
// style={{ pointerEvents: 'none' }} |
|||
/> |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
pomsPghero: global.pomsPghero, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Pghero); |