diff --git a/src/fireedge/src/public/app.js b/src/fireedge/src/public/app.js
index ecee3936f5..31dd644b60 100644
--- a/src/fireedge/src/public/app.js
+++ b/src/fireedge/src/public/app.js
@@ -13,7 +13,7 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
-import React from 'react';
+import React, { useEffect } from 'react';
import { StaticRouter, BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
@@ -25,7 +25,7 @@ import { TranslateProvider } from 'client/components/HOC';
import Router from 'client/router';
const App = ({ location, context, store }) => {
- React.useEffect(() => {
+ useEffect(() => {
const jssStyles = document.querySelector('#jss-server-side');
if (jssStyles) {
jssStyles.parentElement.removeChild(jssStyles);
diff --git a/src/fireedge/src/public/assets/theme.js b/src/fireedge/src/public/assets/theme.js
index dea919bb62..5eedfe133f 100644
--- a/src/fireedge/src/public/assets/theme.js
+++ b/src/fireedge/src/public/assets/theme.js
@@ -1,10 +1,31 @@
import { createMuiTheme, responsiveFontSizes } from '@material-ui/core';
+const defaultBreakpoints = {
+ xs: 0,
+ sm: 600,
+ md: 960,
+ lg: 1280,
+ xl: 1920,
+ // DEVICES
+ tablet: 640,
+ laptop: 1024,
+ desktop: 1280
+};
+
const theme = createMuiTheme({
typography: {
fontFamily: ['Ubuntu', 'Lato'].join(',')
},
overrides: {
+ MuiDrawer: {
+ paper: {
+ width: 360,
+ overflow: 'hidden',
+ [`@media (max-width: ${defaultBreakpoints.tablet}px)`]: {
+ width: '100%'
+ }
+ }
+ },
MuiFormControl: {
root: {
margin: '.5rem 0'
@@ -47,7 +68,7 @@ const theme = createMuiTheme({
MuiCssBaseline: {
'@global': {
body: {
- height: '100vh'
+ // height: '100vh'
}
// '@font-face': [UbuntuFont]
}
diff --git a/src/fireedge/src/public/components/Footer/index.js b/src/fireedge/src/public/components/Footer/index.js
index 49138f4db1..cc11e4d636 100644
--- a/src/fireedge/src/public/components/Footer/index.js
+++ b/src/fireedge/src/public/components/Footer/index.js
@@ -14,22 +14,24 @@
/* -------------------------------------------------------------------------- */
import React from 'react';
-import { Box, Link, useTheme } from '@material-ui/core';
-import classnames from 'classnames';
+import { Box, Link } from '@material-ui/core';
+import footerStyles from 'client/components/Footer/styles';
import { by } from 'client/constants';
const { text, url } = by;
-const Footer = () => {
- const theme = useTheme();
+const Footer = React.memo(() => {
+ const classes = footerStyles();
return (
-
+
{`❤️ by `}
- {text}
+
+ {text}
+
);
-};
+});
export default Footer;
diff --git a/src/fireedge/src/public/components/Footer/styles.js b/src/fireedge/src/public/components/Footer/styles.js
new file mode 100644
index 0000000000..a616d4e49f
--- /dev/null
+++ b/src/fireedge/src/public/components/Footer/styles.js
@@ -0,0 +1,19 @@
+import { makeStyles } from '@material-ui/core';
+
+export default makeStyles(theme => ({
+ footer: {
+ color: theme.palette.primary.light,
+ position: 'fixed',
+ bottom: 0,
+ left: 'auto',
+ right: 0,
+ width: '100%',
+ zIndex: 1100,
+ backgroundColor: theme.palette.grey[800],
+ textAlign: 'center',
+ padding: 5
+ },
+ link: {
+ color: theme.palette.primary.light
+ }
+}));
diff --git a/src/fireedge/src/public/components/FormControl/InputCode.js b/src/fireedge/src/public/components/FormControl/InputCode.js
index eb964b5298..0a0454d0cb 100644
--- a/src/fireedge/src/public/components/FormControl/InputCode.js
+++ b/src/fireedge/src/public/components/FormControl/InputCode.js
@@ -13,7 +13,7 @@ const InputCode = ({ code, language, ...props }) => {
};
return (
-
+
{
mode="json"
theme="github"
width="100%"
- maxLines={Infinity}
- minLines={50}
+ height="100%"
+ // maxLines={Infinity}
+ minLines={10}
onChange={handleChange}
- name="UNIQUE_ID_OF_DIV"
+ name="form-control-code"
showPrintMargin={false}
editorProps={{ $blockScrolling: true }}
setOptions={{
diff --git a/src/fireedge/src/public/components/FormControl/SubmitButton.js b/src/fireedge/src/public/components/FormControl/SubmitButton.js
index 2ffc0c23e3..7c7635df3b 100644
--- a/src/fireedge/src/public/components/FormControl/SubmitButton.js
+++ b/src/fireedge/src/public/components/FormControl/SubmitButton.js
@@ -1,4 +1,5 @@
import React from 'react';
+import PropTypes from 'prop-types';
import { makeStyles, CircularProgress, Button } from '@material-ui/core';
@@ -12,7 +13,7 @@ const useStyles = makeStyles(theme => ({
}
}));
-export default function ButtonSubmit({ isSubmitting, label, ...rest }) {
+const ButtonSubmit = ({ isSubmitting, label, ...rest }) => {
const classes = useStyles();
return (
@@ -25,7 +26,19 @@ export default function ButtonSubmit({ isSubmitting, label, ...rest }) {
{...rest}
>
{isSubmitting && }
- {!isSubmitting && (label ?? )}
+ {!isSubmitting && }
);
-}
+};
+
+ButtonSubmit.propTypes = {
+ isSubmitting: PropTypes.bool,
+ label: PropTypes.string
+};
+
+ButtonSubmit.defaultProps = {
+ isSubmitting: false,
+ label: CONSTANT.default.Submit
+};
+
+export default ButtonSubmit;
diff --git a/src/fireedge/src/public/components/HOC/InternalLayout.js b/src/fireedge/src/public/components/HOC/InternalLayout.js
index 7f6c0be120..e6042f167e 100644
--- a/src/fireedge/src/public/components/HOC/InternalLayout.js
+++ b/src/fireedge/src/public/components/HOC/InternalLayout.js
@@ -16,16 +16,45 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { Box, Container } from '@material-ui/core';
+import { makeStyles, Box, Container } from '@material-ui/core';
import { Skeleton } from '@material-ui/lab';
import useAuth from 'client/hooks/useAuth';
import useOpenNebula from 'client/hooks/useOpennebula';
import Header from 'client/components/Header';
import Footer from 'client/components/Footer';
-import Sidebar from 'client/components/Sidebar';
+
+const internalStyles = makeStyles(theme => ({
+ root: {
+ display: 'flex',
+ width: '100%'
+ },
+ main: {
+ paddingTop: 64,
+ paddingBottom: 30,
+ height: '100vh',
+ width: '100vw'
+ },
+ scrollable: {
+ paddingTop: theme.spacing(2),
+ paddingBottom: theme.spacing(2),
+ height: '100%',
+ overflow: 'auto',
+ '&::-webkit-scrollbar': {
+ width: 14
+ },
+ '&::-webkit-scrollbar-thumb': {
+ backgroundClip: 'content-box',
+ border: '4px solid transparent',
+ borderRadius: 7,
+ boxShadow: 'inset 0 0 0 10px',
+ color: theme.palette.primary.light
+ }
+ }
+}));
const InternalLayout = ({ children, title }) => {
+ const classes = internalStyles();
const { groups } = useOpenNebula();
const { authUser } = useAuth();
@@ -39,17 +68,15 @@ const InternalLayout = ({ children, title }) => {
) : (
-
+ <>
-
-
- {children}
-
+
+
+ {children}
+
+
-
+ >
);
};
diff --git a/src/fireedge/src/public/components/Header/User.js b/src/fireedge/src/public/components/Header/User.js
index eed5350a41..3ef9399609 100644
--- a/src/fireedge/src/public/components/Header/User.js
+++ b/src/fireedge/src/public/components/Header/User.js
@@ -14,8 +14,7 @@
/* -------------------------------------------------------------------------- */
import React, { useState, useRef, Fragment } from 'react';
-import PropTypes from 'prop-types';
-
+import { useHistory } from 'react-router-dom';
import {
Button,
Popper,
@@ -29,19 +28,22 @@ import {
import AccountCircleIcon from '@material-ui/icons/AccountCircle';
import { Translate } from 'client/components/HOC';
+import { PATH } from 'client/router/endpoints';
import { SignOut } from 'client/constants';
import useAuth from 'client/hooks/useAuth';
-import FilterPoolSelect from './FilterPoolSelect';
+import FilterPoolSelect from 'client/components/Header/FilterPoolSelect';
-const User = () => {
+const User = React.memo(() => {
+ const history = useHistory();
const { logout, authUser, isOneAdmin } = useAuth();
const [open, setOpen] = useState(false);
const anchorRef = useRef(null);
const { current } = anchorRef;
- const handleToggle = () => {
- setOpen(prevOpen => !prevOpen);
- };
+ const handleToggle = () => setOpen(prevOpen => !prevOpen);
+
+ const handleLogout = () => logout();
+ const handleGoToSettings = () => history.push(PATH.SETTINGS);
const handleClose = e => {
if (current && current.contains(e.target)) {
@@ -50,11 +52,6 @@ const User = () => {
setOpen(false);
};
- const handleLogout = evt => {
- evt.preventDefault();
- logout();
- };
-
return (
{
);
-};
-
-User.propTypes = {};
-
-User.defaultProps = {};
+});
export default User;
diff --git a/src/fireedge/src/public/components/Header/Zone.js b/src/fireedge/src/public/components/Header/Zone.js
index c7a7ca5922..43077f7711 100644
--- a/src/fireedge/src/public/components/Header/Zone.js
+++ b/src/fireedge/src/public/components/Header/Zone.js
@@ -13,7 +13,7 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
-import React, { useState, useRef, Fragment } from 'react';
+import React, { useState, useRef } from 'react';
import {
Button,
Popper,
@@ -21,15 +21,11 @@ import {
Paper,
MenuItem,
MenuList,
- ClickAwayListener,
- Divider
+ ClickAwayListener
} from '@material-ui/core';
import LanguageIcon from '@material-ui/icons/Language';
-import { Translate } from 'client/components/HOC';
-import { SignOut, Groups } from 'client/constants';
-
-const Zone = () => {
+const Zone = React.memo(() => {
const [open, setOpen] = useState(false);
const anchorRef = useRef(null);
const { current } = anchorRef;
@@ -46,7 +42,7 @@ const Zone = () => {
};
return (
-
+ <>
+ >
);
-};
-
-Zone.propTypes = {};
-
-Zone.defaultProps = {};
+});
export default Zone;
diff --git a/src/fireedge/src/public/components/Sidebar/SidebarCollapseItem.js b/src/fireedge/src/public/components/Sidebar/SidebarCollapseItem.js
new file mode 100644
index 0000000000..bd4f1f1335
--- /dev/null
+++ b/src/fireedge/src/public/components/Sidebar/SidebarCollapseItem.js
@@ -0,0 +1,52 @@
+import React, { useState } from 'react';
+import PropTypes from 'prop-types';
+
+import { List, Collapse, ListItem, ListItemText } from '@material-ui/core';
+import ExpandLessIcon from '@material-ui/icons/ExpandLess';
+import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
+
+import SidebarLink from 'client/components/Sidebar/SidebarLink';
+
+const SidebarCollapseItem = ({ label, routes }) => {
+ const [expanded, setExpanded] = useState(false);
+
+ const handleExpand = () => setExpanded(!expanded);
+
+ return (
+ <>
+
+
+ {expanded ? : }
+
+ {routes?.map((subItem, index) => (
+
+
+
+
+
+ ))}
+ >
+ );
+};
+
+SidebarCollapseItem.propTypes = {
+ label: PropTypes.string.isRequired,
+ routes: PropTypes.arrayOf(
+ PropTypes.shape({
+ label: PropTypes.string,
+ path: PropTypes.string
+ })
+ )
+};
+
+SidebarCollapseItem.defaultProps = {
+ label: '',
+ routes: []
+};
+
+export default SidebarCollapseItem;
diff --git a/src/fireedge/src/public/components/Sidebar/SidebarLink.js b/src/fireedge/src/public/components/Sidebar/SidebarLink.js
new file mode 100644
index 0000000000..7ceacb61ec
--- /dev/null
+++ b/src/fireedge/src/public/components/Sidebar/SidebarLink.js
@@ -0,0 +1,63 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { useHistory } from 'react-router-dom';
+
+import {
+ withStyles,
+ Badge,
+ Typography,
+ ListItem,
+ ListItemText,
+ useMediaQuery
+} from '@material-ui/core';
+
+import useGeneral from 'client/hooks/useGeneral';
+
+const StyledBadge = withStyles(() => ({
+ badge: {
+ right: -25,
+ top: 13,
+ fontSize: '0.7rem'
+ }
+}))(Badge);
+
+const SidebarLink = ({ label, path, devMode }) => {
+ const history = useHistory();
+ const isDesktop = useMediaQuery(theme => theme.breakpoints.up('sm'));
+ const { openMenu } = useGeneral();
+
+ const handleClick = () => {
+ history.push(path);
+ !isDesktop && openMenu(false);
+ };
+
+ return (
+
+
+ {label}
+
+ ) : (
+ label
+ )
+ }
+ />
+
+ );
+};
+
+SidebarLink.propTypes = {
+ label: PropTypes.string.isRequired,
+ path: PropTypes.string.isRequired,
+ devMode: PropTypes.bool
+};
+
+SidebarLink.defaultProps = {
+ label: '',
+ path: '/',
+ devMode: false
+};
+
+export default SidebarLink;
diff --git a/src/fireedge/src/public/components/Sidebar/index.js b/src/fireedge/src/public/components/Sidebar/index.js
index 437b5c3ffb..f2eeefde20 100644
--- a/src/fireedge/src/public/components/Sidebar/index.js
+++ b/src/fireedge/src/public/components/Sidebar/index.js
@@ -13,61 +13,30 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
-import React, { useState } from 'react';
-import { useHistory } from 'react-router-dom';
+import React from 'react';
-import {
- Grid,
- List,
- Drawer,
- Divider,
- Collapse,
- ListItem,
- ListItemText
-} from '@material-ui/core';
-import ExpandLessIcon from '@material-ui/icons/ExpandLess';
-import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
+import { List, Drawer, Divider, Box } from '@material-ui/core';
-import sidebarStyles from 'client/components/Sidebar/styles';
import useGeneral from 'client/hooks/useGeneral';
import endpoints from 'client/router/endpoints';
-const LinkItem = React.memo(({ label, path }) => {
- const history = useHistory();
+import sidebarStyles from 'client/components/Sidebar/styles';
+import SidebarLink from 'client/components/Sidebar/SidebarLink';
+import SidebarCollapseItem from 'client/components/Sidebar/SidebarCollapseItem';
- return (
- history.push(path)}>
-
-
- );
-});
-
-const CollapseItem = React.memo(({ label, routes }) => {
- const [expanded, setExpanded] = useState(false);
-
- const handleExpand = () => setExpanded(!expanded);
-
- return (
- <>
-
-
- {expanded ? : }
-
- {routes?.map((subItem, index) => (
-
-
-
-
-
- ))}
- >
- );
-});
+const Endpoints = React.memo(() =>
+ endpoints
+ ?.filter(
+ ({ authenticated = true, header = false }) => authenticated && !header
+ )
+ ?.map((endpoint, index) =>
+ endpoint.routes ? (
+
+ ) : (
+
+ )
+ )
+);
const Sidebar = () => {
const classes = sidebarStyles();
@@ -76,29 +45,19 @@ const Sidebar = () => {
return React.useMemo(
() => (
openMenu(false)}>
-
-
-
-
-
-
-
-
- {endpoints
- ?.filter(({ authenticated = true }) => authenticated)
- ?.map((endpoint, index) =>
- endpoint.routes ? (
-
- ) : (
-
- )
- )}
+
+
+
+
+
+
+
-
+
),
[isOpenMenu, openMenu]
diff --git a/src/fireedge/src/public/components/Sidebar/styles.js b/src/fireedge/src/public/components/Sidebar/styles.js
index d464b67d1f..15878e0731 100644
--- a/src/fireedge/src/public/components/Sidebar/styles.js
+++ b/src/fireedge/src/public/components/Sidebar/styles.js
@@ -2,21 +2,38 @@ import { makeStyles } from '@material-ui/core';
export default makeStyles(theme => ({
menu: {
- width: '15rem',
+ overflow: 'auto',
textTransform: 'capitalize',
- color: theme.palette.secondary.dark
+ color: 'transparent',
+ transition: 'color 0.3s',
+ '&:hover': {
+ color: theme.palette.primary.light
+ },
+ '&::-webkit-scrollbar': {
+ width: 14
+ },
+ '&::-webkit-scrollbar-thumb': {
+ backgroundClip: 'content-box',
+ border: '4px solid transparent',
+ borderRadius: 7,
+ boxShadow: 'inset 0 0 0 10px'
+ },
+ '&::-webkit-scrollbar-button': {
+ width: 0,
+ height: 0,
+ display: 'none'
+ },
+ '&::-webkit-scrollbar-corner': {
+ backgroundColor: 'transparent'
+ }
},
- logoWrapper: {
- padding: '1rem 2rem'
+ list: {
+ color: theme.palette.common.black
},
logo: {
+ padding: '1rem 2rem'
+ },
+ img: {
width: '100%'
- },
- nav: {
- paddingtop: 0,
- paddingBottom: 0
- },
- subitem: {
- paddingLeft: theme.spacing(4)
}
}));
diff --git a/src/fireedge/src/public/containers/Dashboard/index.js b/src/fireedge/src/public/containers/Dashboard/index.js
index 1142f69b4a..56983aee50 100644
--- a/src/fireedge/src/public/containers/Dashboard/index.js
+++ b/src/fireedge/src/public/containers/Dashboard/index.js
@@ -15,12 +15,25 @@
import React from 'react';
-import { Box, Typography } from '@material-ui/core';
+import { makeStyles, Box, Typography } from '@material-ui/core';
+
+const dashboardStyles = makeStyles(theme => ({
+ root: {},
+ title: {
+ color: theme.palette.common.black
+ }
+}));
function Dashboard() {
+ const classes = dashboardStyles();
+
return (
-
+
Dashboard
diff --git a/src/fireedge/src/public/containers/Login/FormUser.js b/src/fireedge/src/public/containers/Login/FormUser.js
index c2b184b184..b8d05e93f9 100644
--- a/src/fireedge/src/public/containers/Login/FormUser.js
+++ b/src/fireedge/src/public/containers/Login/FormUser.js
@@ -65,6 +65,7 @@ function FormUser({ classes, onSubmit, error }) {
required
name="pass"
type="password"
+ autoComplete="current-password"
label={Tr(Password)}
variant="outlined"
inputRef={register}
diff --git a/src/fireedge/src/public/containers/Login/styles.js b/src/fireedge/src/public/containers/Login/styles.js
index f233229604..4aa0259d67 100644
--- a/src/fireedge/src/public/containers/Login/styles.js
+++ b/src/fireedge/src/public/containers/Login/styles.js
@@ -10,7 +10,8 @@ export default makeStyles(theme =>
root: {
display: 'flex',
flexDirection: 'column',
- justifyContent: 'center'
+ justifyContent: 'center',
+ height: '100vh'
},
paper: {
overflow: 'hidden',
diff --git a/src/fireedge/src/public/containers/TestApi/ResponseForm.js b/src/fireedge/src/public/containers/TestApi/ResponseForm.js
index 500cdecad8..b2253b43c9 100644
--- a/src/fireedge/src/public/containers/TestApi/ResponseForm.js
+++ b/src/fireedge/src/public/containers/TestApi/ResponseForm.js
@@ -1,12 +1,11 @@
import React from 'react';
-import { object, string, shape, func } from 'prop-types';
+import { string, func, objectOf, object } from 'prop-types';
import { useForm, Controller } from 'react-hook-form';
import {
TextField,
Grid,
Typography,
- Box,
FormControlLabel,
Checkbox
} from '@material-ui/core';
@@ -34,15 +33,19 @@ const ResponseForm = ({
};
return (
-
-
+ <>
+
{name || 'Request'}
-
+ >
);
};
ResponseForm.propTypes = {
- command: shape({
+ command: objectOf({
name: string.isRequired,
httpMethod: string.isRequired,
- schema: object,
- params: object
+ params: object.isRequired
}).isRequired,
- handleChangeResponse: func
+ handleChangeResponse: func.isRequired
};
ResponseForm.defaultProps = {
command: {
name: '',
httpMethod: 'GET',
- schema: {},
params: {}
},
handleChangeResponse: () => undefined
diff --git a/src/fireedge/src/public/containers/TestApi/index.js b/src/fireedge/src/public/containers/TestApi/index.js
index e66eaf5004..dfa0863685 100644
--- a/src/fireedge/src/public/containers/TestApi/index.js
+++ b/src/fireedge/src/public/containers/TestApi/index.js
@@ -16,7 +16,7 @@
import React, { useState, useMemo } from 'react';
import { TextField, Grid, MenuItem } from '@material-ui/core';
import Commands from 'server/utils/constants/commands';
-import { Translate } from 'client/components/HOC';
+import { Translate, Tr } from 'client/components/HOC';
import InputCode from 'client/components/FormControl/InputCode';
import ResponseForm from 'client/containers/TestApi/ResponseForm';
@@ -33,7 +33,7 @@ const TestApi = () => {
fullWidth
select
variant="outlined"
- label={}
+ label={Tr('Select request')}
value={name}
onChange={handleChangeCommand}
>
@@ -62,7 +62,7 @@ const TestApi = () => {
)}
-
+
);
diff --git a/src/fireedge/src/public/router/endpoints.js b/src/fireedge/src/public/router/endpoints.js
index e65066add6..7562e86f69 100644
--- a/src/fireedge/src/public/router/endpoints.js
+++ b/src/fireedge/src/public/router/endpoints.js
@@ -57,11 +57,13 @@ export default [
{
label: 'settings',
path: PATH.SETTINGS,
+ header: true,
component: Settings
},
{
label: 'test api',
path: PATH.TEST_API,
+ devMode: true,
component: TestApi
},
{
diff --git a/src/fireedge/src/public/router/index.js b/src/fireedge/src/public/router/index.js
index 09e59d8396..ca919c1ebe 100644
--- a/src/fireedge/src/public/router/index.js
+++ b/src/fireedge/src/public/router/index.js
@@ -16,48 +16,49 @@
import React from 'react';
import { Route, Switch } from 'react-router-dom';
-import { AuthLayout, GuessLayout } from 'client/components/HOC';
-import InternalLayout from 'client/components/HOC/InternalLayout';
+import { AuthLayout, GuessLayout, InternalLayout } from 'client/components/HOC';
import Error404 from 'client/containers/Error404';
+import Sidebar from 'client/components/Sidebar';
-import endpoints from './endpoints';
+import endpoints from 'client/router/endpoints';
-function Router() {
- const renderRoute = ({
- label = '',
- path = '',
- authenticated = true,
- component: Component
- }) => (
-
- authenticated ? (
-
-
-
-
-
- ) : (
-
+const renderRoute = ({
+ label = '',
+ path = '',
+ authenticated = true,
+ component: Component
+}) => (
+
+ authenticated ? (
+
+
-
- )
- }
- />
- );
+
+
+ ) : (
+
+
+
+ )
+ }
+ />
+);
- return (
+const Router = () => (
+ <>
+
{endpoints?.map(({ routes, ...endpoint }) =>
endpoint.path ? renderRoute(endpoint) : routes?.map(renderRoute)
)}
- );
-}
+ >
+);
export default Router;
export { endpoints };
diff --git a/src/fireedge/src/public/scss/content.scss b/src/fireedge/src/public/scss/content.scss
deleted file mode 100644
index 2c8145b3b1..0000000000
--- a/src/fireedge/src/public/scss/content.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-/* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */
-/* */
-/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
-/* not use this file except in compliance with the License. You may obtain */
-/* a copy of the License at */
-/* */
-/* http://www.apache.org/licenses/LICENSE-2.0 */
-/* */
-/* Unless required by applicable law or agreed to in writing, software */
-/* distributed under the License is distributed on an "AS IS" BASIS, */
-/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
-/* See the License for the specific language governing permissions and */
-/* limitations under the License. */
-/* -------------------------------------------------------------------------- */
-
-.content{
- background-color: $tertiary;
-}
\ No newline at end of file
diff --git a/src/fireedge/src/public/scss/footer.scss b/src/fireedge/src/public/scss/footer.scss
deleted file mode 100644
index 0ad263ae2e..0000000000
--- a/src/fireedge/src/public/scss/footer.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */
-/* */
-/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
-/* not use this file except in compliance with the License. You may obtain */
-/* a copy of the License at */
-/* */
-/* http://www.apache.org/licenses/LICENSE-2.0 */
-/* */
-/* Unless required by applicable law or agreed to in writing, software */
-/* distributed under the License is distributed on an "AS IS" BASIS, */
-/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
-/* See the License for the specific language governing permissions and */
-/* limitations under the License. */
-/* -------------------------------------------------------------------------- */
-
-.footer {
- position: fixed;
- bottom: 0;
- left: auto;
- right: 0;
- width: 100%;
- z-index: 1100;
- background-color: $quaternary;
- text-align: center;
- padding: .5rem;
- a{
- color: $secondary
- }
-}
\ No newline at end of file
diff --git a/src/fireedge/src/public/scss/login.scss b/src/fireedge/src/public/scss/login.scss
deleted file mode 100644
index f51e40fe13..0000000000
--- a/src/fireedge/src/public/scss/login.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */
-/* */
-/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
-/* not use this file except in compliance with the License. You may obtain */
-/* a copy of the License at */
-/* */
-/* http://www.apache.org/licenses/LICENSE-2.0 */
-/* */
-/* Unless required by applicable law or agreed to in writing, software */
-/* distributed under the License is distributed on an "AS IS" BASIS, */
-/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
-/* See the License for the specific language governing permissions and */
-/* limitations under the License. */
-/* -------------------------------------------------------------------------- */
diff --git a/src/fireedge/src/public/scss/main.scss b/src/fireedge/src/public/scss/main.scss
index 17d0c26e0f..1197f4ac7f 100644
--- a/src/fireedge/src/public/scss/main.scss
+++ b/src/fireedge/src/public/scss/main.scss
@@ -13,14 +13,6 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
-$primary: #C7C9C8;
-$secondary: #FFF;
-$tertiary: #FAFAFA;
-$quaternary: #353735;
-
-$font_primary: #353735;
-$font_secondary: red;
-
@font-face {
font-family: 'LatoWeb';
src: url('fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
@@ -32,24 +24,3 @@ $font_secondary: red;
font-weight: normal;
text-rendering: optimizeLegibility;
}
-
-@import "login";
-@import "footer";
-@import "menu";
-@import "content";
-
-html, body{
- font-family: 'LatoWeb';
- background-color: $secondary;
- color: $font_primary;
- min-height: 100vh;
- margin: 0px;
- display: flex;
- width: 100%;
- flex-wrap: wrap;
-}
-#root{
- flex-grow: 1;
- display: flex;
- flex-wrap: wrap;
-}
\ No newline at end of file
diff --git a/src/fireedge/src/public/scss/menu.scss b/src/fireedge/src/public/scss/menu.scss
deleted file mode 100644
index 3b1ded76b9..0000000000
--- a/src/fireedge/src/public/scss/menu.scss
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */
-/* */
-/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
-/* not use this file except in compliance with the License. You may obtain */
-/* a copy of the License at */
-/* */
-/* http://www.apache.org/licenses/LICENSE-2.0 */
-/* */
-/* Unless required by applicable law or agreed to in writing, software */
-/* distributed under the License is distributed on an "AS IS" BASIS, */
-/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
-/* See the License for the specific language governing permissions and */
-/* limitations under the License. */
-/* -------------------------------------------------------------------------- */
-
-.menu{
- color: $secondary;
- width: 15rem;
-
- .link{
- text-transform: capitalize;
- color: $font_primary;
- }
- .logo-wrapper{
- padding: 1rem 2rem;
- }
- .logo{
- width: 100%;
- }
- .internalNav{
- padding-top: 0px;
- padding-bottom: 0px;
- }
-}
\ No newline at end of file