From 831dafd4513084c758d3b70587a9b7fecce2c100 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 18 Mar 2022 13:30:08 +0100 Subject: fix(web/ui): Do not use next/image This change removes the use of next/image from the project. Although it is recommended by the Next.js project to use this component, it is not compatible currently with static export. --- .../src/components/topologies/sidebar/rack/MachineComponent.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js') diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js index 921622d6..8897f2d0 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js @@ -1,14 +1,13 @@ import PropTypes from 'prop-types' import React from 'react' -import Image from 'next/image' import { Flex, Label } from '@patternfly/react-core' import { Machine } from '../../../../shapes' const UnitIcon = ({ id, type }) => ( - {'Machine -- cgit v1.2.3 From 68d9003f8d8d2adcba43cad6366eca5365110e48 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 5 Apr 2022 21:15:57 +0200 Subject: feat(web/ui): Add support for unauthenticated user access This change updates the web UI and API to support unauthenticated user access. Such functionality is helpful when there is just a single user that wants to try OpenDC. --- .../src/components/topologies/sidebar/rack/MachineComponent.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js') diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js index 8897f2d0..18c3db3c 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js @@ -5,12 +5,7 @@ import { Machine } from '../../../../shapes' const UnitIcon = ({ id, type }) => ( // eslint-disable-next-line @next/next/no-img-element - {'Machine + {'Machine ) UnitIcon.propTypes = { -- cgit v1.2.3