Commit 3ad095a4 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

working pre quit grafana for 6G sandbox meeting

parent d323185a
Loading
Loading
Loading
Loading
+30 KiB
Loading image diff...
+10 −5
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import Box from '@mui/material/Box'
import { styled } from '@mui/material/styles'
import Typography from '@mui/material/Typography'
import useMediaQuery from '@mui/material/useMediaQuery'
import AnalyticsTotalEarning from 'src/views/dashboards/analytics/AnalyticsTotalEarning'

const LinkStyled = styled(Link)(({ theme }) => ({
  textDecoration: 'none',
@@ -24,13 +25,17 @@ const FooterContent = () => {
        </LinkStyled>
        {` © ${new Date().getFullYear()}`}
      </Typography>
      {/* Elemento central */}
      <Box sx={{ display: 'flex', alignItems: 'center', marginRight: 8 }}>
        <img src='/images/6g-sandbox.png' alt='logo' width='30' height='30' />
        <Typography sx={{ marginLeft: 2 }}>
          6G Sandbox
        </Typography>
      </Box>
      {hidden ? null : (
        <Box sx={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', '& :not(:last-child)': { mr: 4 } }}>
          <LinkStyled target='_blank' href='https://example.com'>
            Info Link 1
          </LinkStyled>
          <LinkStyled target='_blank' href='https://example.com'>
            Info Link 2
          <LinkStyled target='_blank' href='https://ocf.etsi.org/'>
            OpenCAPIF
          </LinkStyled>
        </Box>
      )}
+0 −5
Original line number Diff line number Diff line
@@ -106,8 +106,6 @@ const AuthProvider = ({ children }) => {
      formData.append('username', params.username)
      formData.append('password', params.password)

      console.log('   authConfig.loginEndpoint: ', authConfig.loginEndpoint)   // /login

      const response = await axiosInstance.post(authConfig.loginEndpoint, formData, {
        headers: {
          "access-control-allow-origin" : "*",
@@ -116,13 +114,10 @@ const AuthProvider = ({ children }) => {
      })

      console.log('LO PASA')
      console.log('   response: ', response)
      console.log('   response.data.access_token: ', response.data.access_token)

      if (params.rememberMe) {
        setAccessToken(response.data.access_token)
        const pruebatoken = getAccessToken()
        console.log('   prueba getaccesstoken: ', pruebatoken)
        setRefreshToken(response.data.refresh_token)
        setUserData({ username: params.username, role: 'admin' })
      }
+18 −6
Original line number Diff line number Diff line
@@ -118,9 +118,15 @@ const Homedash = () => {
                          <ListItem key={invoker.id}>
                            <ListItemText
                              primary={
                                invoker.username ? (
                                  <Typography variant='body2' color='textSecondary'>
                                    {invoker.username}
                                  </Typography>
                                ) : (
                                  <Typography variant='body2' color='textSecondary'>
                                    Unknown user
                                  </Typography>
                                )
                              }
                              sx={{ textAlign: 'center' }}
                            />
@@ -175,9 +181,15 @@ const Homedash = () => {
                          <ListItem key={provider.id}>
                            <ListItemText
                              primary={
                                provider.username ? (
                                  <Typography variant='body2' color='textSecondary'>
                                    {provider.username}
                                  </Typography>
                                ) : (
                                  <Typography variant='body2' color='textSecondary'>
                                    Unknown user
                                  </Typography>
                                )
                              }
                              sx={{ textAlign: 'center' }}
                            />
+7 −3
Original line number Diff line number Diff line
@@ -140,9 +140,13 @@ const Invokers = () => {
                        </TableCell>
                        <TableCell>{invoker.api_invoker_information}</TableCell>
                        <TableCell>
                          {invoker.username ? (
                            <LinkStyled href={`/users/${invoker.username}`}>
                              {invoker.username}
                            </LinkStyled>
                          ) : (
                            'Unknown user'
                          )}
                        </TableCell>
                        <TableCell>
                          <Button
Loading