mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F OpenNebula/one#5387: Support vultr into fireedge (#1234)
This commit is contained in:
parent
6f5f4caa6a
commit
2b7cb80f75
BIN
src/fireedge/src/client/assets/images/providers/VULTR.png
Normal file
BIN
src/fireedge/src/client/assets/images/providers/VULTR.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/fireedge/src/client/assets/images/providers/VULTR.webp
Normal file
BIN
src/fireedge/src/client/assets/images/providers/VULTR.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
@ -44,7 +44,6 @@ const MainLayout = ({ endpoints, children }) => {
|
||||
} = useAuth()
|
||||
|
||||
useEffect(() => {
|
||||
console.log({ isLoading })
|
||||
if (isLogged && !isLoginInProcess && !isLoading) {
|
||||
getAuthInfo()
|
||||
}
|
||||
|
@ -65,15 +65,25 @@ export const PROVIDERS_TYPES = {
|
||||
name: 'Dummy',
|
||||
color: '#436637'
|
||||
},
|
||||
google: {
|
||||
id: 'google',
|
||||
name: 'Google Cloud',
|
||||
color: '#dc382b'
|
||||
},
|
||||
digitalocean: {
|
||||
id: 'digitalocean',
|
||||
name: 'Digital Ocean',
|
||||
color: '#2381f5'
|
||||
},
|
||||
vultr_virtual: {
|
||||
id: 'vultr_virtual',
|
||||
name: 'Vultr Cloud Compute',
|
||||
color: '#7ea3ca'
|
||||
},
|
||||
vultr_metal: {
|
||||
id: 'vultr_metal',
|
||||
name: 'Vultr Bare Metal',
|
||||
color: '#7ea3ca'
|
||||
},
|
||||
google: {
|
||||
id: 'google',
|
||||
name: 'Google Cloud',
|
||||
color: '#dc382b'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
import PropTypes from 'prop-types'
|
||||
import { PROVIDERS_TYPES, PROVISIONS_TYPES } from 'client/constants'
|
||||
|
||||
const providerTypes = Object.values(PROVIDERS_TYPES).map(({ id }) => id)
|
||||
const provisionTypes = Object.values(PROVISIONS_TYPES).map(({ id }) => id)
|
||||
|
||||
export const UserInput = PropTypes.shape({
|
||||
name: PropTypes.string.isRequired,
|
||||
@ -27,19 +31,9 @@ export const UserInput = PropTypes.shape({
|
||||
])
|
||||
})
|
||||
|
||||
export const ProviderType = PropTypes.oneOf([
|
||||
'aws',
|
||||
'packet',
|
||||
'dummy',
|
||||
'google',
|
||||
'digitalocean'
|
||||
])
|
||||
export const ProviderType = PropTypes.oneOf(providerTypes)
|
||||
|
||||
export const ProvisionType = PropTypes.oneOf([
|
||||
'metal',
|
||||
'virtual',
|
||||
'onprem'
|
||||
])
|
||||
export const ProvisionType = PropTypes.oneOf(provisionTypes)
|
||||
|
||||
export const ProvisionHost = PropTypes.shape({
|
||||
im_mad: PropTypes.string.isRequired,
|
||||
|
@ -12,7 +12,15 @@
|
||||
/* See the License for the specific language governing permissions and */
|
||||
/* limitations under the License. */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
const providers = ['aws', 'packet', 'dummy', 'google', 'digitalocean']
|
||||
const providers = [
|
||||
'aws',
|
||||
'packet',
|
||||
'dummy',
|
||||
'google',
|
||||
'digitalocean',
|
||||
'vultr_virtual',
|
||||
'vultr_metal'
|
||||
]
|
||||
|
||||
const provider = {
|
||||
id: '/Provider',
|
||||
|
Loading…
x
Reference in New Issue
Block a user