diff --git a/web/client/assets/images/background/ambari.png b/web/client/assets/images/background/ambari.png new file mode 100644 index 0000000..8afa1f8 Binary files /dev/null and b/web/client/assets/images/background/ambari.png differ diff --git a/web/client/assets/images/background/es.png b/web/client/assets/images/background/es.png new file mode 100644 index 0000000..5b65cbc Binary files /dev/null and b/web/client/assets/images/background/es.png differ diff --git a/web/client/assets/images/background/grafana.png b/web/client/assets/images/background/grafana.png new file mode 100644 index 0000000..0c078ac Binary files /dev/null and b/web/client/assets/images/background/grafana.png differ diff --git a/web/client/assets/images/background/kowl.png b/web/client/assets/images/background/kowl.png new file mode 100644 index 0000000..ce3dfdf Binary files /dev/null and b/web/client/assets/images/background/kowl.png differ diff --git a/web/client/assets/images/background/kubesphere.png b/web/client/assets/images/background/kubesphere.png new file mode 100644 index 0000000..d630e7d Binary files /dev/null and b/web/client/assets/images/background/kubesphere.png differ diff --git a/web/client/assets/images/background/pghero.png b/web/client/assets/images/background/pghero.png new file mode 100644 index 0000000..f891fcb Binary files /dev/null and b/web/client/assets/images/background/pghero.png differ diff --git a/web/client/assets/images/background/tool.png b/web/client/assets/images/background/tool.png new file mode 100644 index 0000000..ad5864c Binary files /dev/null and b/web/client/assets/images/background/tool.png differ diff --git a/web/client/src/layout/actions/global.js b/web/client/src/layout/actions/global.js index 2e51bd2..267111a 100644 --- a/web/client/src/layout/actions/global.js +++ b/web/client/src/layout/actions/global.js @@ -38,10 +38,16 @@ export function initApiRoot () { type: INIT_API_ROOT, payload: { apiRoot: res.root, - iotVcmpWeb:res.iotVcmpWeb, - pomsMonitor:res.pomsMonitor, - dcWeb:res.dcWeb, - qiniu:res.qiniu, + iotVcmpWeb: res.iotVcmpWeb, + pomsMonitor: res.pomsMonitor, + pomsKubesphere: res.pomsKubesphere, + pomsAmbari: res.pomsAmbari, + pomsKowl: res.pomsKowl, + pomsPghero: res.pomsPghero, + pomsEs: res.pomsEs, + pomsNotebook: res.pomsNotebook, + dcWeb: res.dcWeb, + qiniu: res.qiniu, } }) }); @@ -54,7 +60,7 @@ export function pepProject (pepProjectId) { type: PEPPROJECTID, payload: { pepProjectId: pepProjectId, - - } + + } } } \ No newline at end of file diff --git a/web/client/src/layout/reducers/global.js b/web/client/src/layout/reducers/global.js index 6aff8f8..5873b24 100644 --- a/web/client/src/layout/reducers/global.js +++ b/web/client/src/layout/reducers/global.js @@ -1,6 +1,6 @@ 'use strict'; import Immutable from 'immutable'; -import { INIT_LAYOUT, RESIZE, INIT_API_ROOT,PEPPROJECTID } from '../actions/global'; +import { INIT_LAYOUT, RESIZE, INIT_API_ROOT, PEPPROJECTID } from '../actions/global'; function global (state = { title: '', @@ -12,9 +12,15 @@ function global (state = { clientWidth: 1024, apiRoot: '', iotVcmpWeb: '', - pomsMonitor:'', - dcWeb:'', - qiniu:{} + pomsMonitor: '', + pomsKubesphere: '', + pomsAmbari: '', + pomsKowl: '', + pomsPghero: '', + pomsEs: '', + pomsNotebook: '', + dcWeb: '', + qiniu: {} }, action) { const payload = action.payload; switch (action.type) { @@ -35,14 +41,20 @@ function global (state = { return Immutable.fromJS(state).merge({ apiRoot: payload.apiRoot, iotVcmpWeb: payload.iotVcmpWeb, - pomsMonitor:payload.pomsMonitor, - dcWeb:payload.dcWeb, - qiniu:payload.qiniu, + pomsMonitor: payload.pomsMonitor, + pomsKubesphere: payload.pomsKubesphere, + pomsAmbari: payload.pomsAmbari, + pomsKowl: payload.pomsKowl, + pomsPghero: payload.pomsPghero, + pomsEs: payload.pomsEs, + pomsNotebook: payload.pomsNotebook, + dcWeb: payload.dcWeb, + qiniu: payload.qiniu, + }).toJS(); + case PEPPROJECTID: + return Immutable.fromJS(state).merge({ + pepProjectId: payload.pepProjectId, }).toJS(); - case PEPPROJECTID: - return Immutable.fromJS(state).merge({ - pepProjectId: payload.pepProjectId, - }).toJS(); default: return state; } diff --git a/web/client/src/sections/data/containers/notebook.jsx b/web/client/src/sections/data/containers/notebook.jsx index 9b307c1..9aec019 100644 --- a/web/client/src/sections/data/containers/notebook.jsx +++ b/web/client/src/sections/data/containers/notebook.jsx @@ -1,49 +1,70 @@ import React, { useEffect } from 'react'; import { connect } from 'react-redux'; -import { Spin, Card } from '@douyinfe/semi-ui'; -import '../style.less' -const { Meta } = Card; - -const Console = (props) => { - const { dispatch, actions, user, loading, socket } = props - - useEffect(() => { - // ACTION 示例 - // dispatch(actions.example.getMembers(user.orgId)) - }, []) - - // websocket 使用测试 - // useEffect(() => { - // console.log(socket) - // if (socket) { - // socket.on('TEST', function (msg) { - // console.info(msg); - // }); - // return () => { - // socket.off("TEST"); - // } - // } - - // }, [socket]) - - return ( - <> -
- -
- - ) -} +import { Button } from '@douyinfe/semi-ui'; + + + +const Grafana = (props) => { + const { dispatch, actions, user, loading, socket, pomsNotebook, clientHeight } = props + useEffect(() => { + + }, []) + + + return ( +
+
+ +
+
+