mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
cb31b4a295
commit
fc0e108a9f
3 files changed
+378
-394
No files matched your search
Generated
+368
-383
File diff suppressed because it is too large.
Load diff
@@ -69,7 +69,6 @@
|
||||
"@material-ui/core": "4.12.3",
|
||||
"@material-ui/lab": "4.0.0-alpha.60",
|
||||
"@reduxjs/toolkit": "1.5.1",
|
||||
"ace-builds": "1.4.12",
|
||||
"atob": "2.1.2",
|
||||
"axios": "0.21.1",
|
||||
"babel-eslint": "10.1.0",
|
||||
@@ -90,8 +89,8 @@
|
||||
"fs-extra": "9.0.1",
|
||||
"fuse.js": "6.4.1",
|
||||
"helmet": "4.1.1",
|
||||
"http": "0.0.1-security",
|
||||
"http-proxy-middleware": "1.0.5",
|
||||
"http": "0.0.1-security",
|
||||
"https": "1.0.0",
|
||||
"iconoir-react": "1.1.0",
|
||||
"immutable": "4.0.0-rc.12",
|
||||
@@ -109,25 +108,25 @@
|
||||
"process": "0.11.10",
|
||||
"prop-types": "15.7.2",
|
||||
"qrcode": "1.4.4",
|
||||
"react": "17.0.2",
|
||||
"react-ace": "9.2.1",
|
||||
"react-dom": "17.0.2",
|
||||
"react-flatpickr": "3.10.7",
|
||||
"react-flow-renderer": "9.6.0",
|
||||
"react-hook-form": "6.12.0",
|
||||
"react-json-pretty": "2.2.0",
|
||||
"react-minimal-pie-chart": "8.2.0",
|
||||
"react-opennebula-ace": "1.0.1",
|
||||
"react-redux": "7.2.4",
|
||||
"react-router": "5.2.0",
|
||||
"react-router-dom": "5.2.0",
|
||||
"react-router": "5.2.0",
|
||||
"react-table": "7.7.0",
|
||||
"react-transition-group": "4.4.1",
|
||||
"react-virtual": "2.7.1",
|
||||
"redux": "4.1.0",
|
||||
"react": "17.0.2",
|
||||
"redux-thunk": "2.3.0",
|
||||
"redux": "4.1.0",
|
||||
"rimraf": "3.0.2",
|
||||
"socket.io": "4.1.2",
|
||||
"socket.io-client": "4.1.2",
|
||||
"socket.io": "4.1.2",
|
||||
"speakeasy": "2.0.0",
|
||||
"sprintf-js": "1.1.2",
|
||||
"style-loader": "3.2.1",
|
||||
@@ -137,9 +136,9 @@
|
||||
"upcast": "4.0.0",
|
||||
"url": "0.11.0",
|
||||
"uuid": "8.3.1",
|
||||
"webpack": "5.41.0",
|
||||
"webpack-cli": "4.7.2",
|
||||
"webpack-node-externals": "2.5.2",
|
||||
"webpack": "5.41.0",
|
||||
"window-or-global": "1.0.1",
|
||||
"winston": "3.3.3",
|
||||
"worker-loader": "3.0.8",
|
||||
|
||||
@@ -18,15 +18,15 @@ import { useEffect, useState } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import loadable from '@loadable/component'
|
||||
|
||||
const Ace = loadable.lib(() => import('react-ace'), { ssr: false })
|
||||
const Ace = loadable.lib(() => import('react-opennebula-ace'), { ssr: false })
|
||||
|
||||
const WrapperToLoadMode = ({ children, mode }) => {
|
||||
const [loading, setLoading] = useState(true)
|
||||
|
||||
useEffect(() => {
|
||||
const load = async () => {
|
||||
await import(`ace-builds/src-noconflict/mode-${mode}`)
|
||||
await import('ace-builds/src-noconflict/theme-github')
|
||||
await import(`react-opennebula-ace/src-noconflict/mode-${mode}`)
|
||||
await import('react-opennebula-ace/src-noconflict/theme-github')
|
||||
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user