diff --git a/dashboard/src/App.tsx b/dashboard/src/App.tsx
index 1c71c94..1f62166 100644
--- a/dashboard/src/App.tsx
+++ b/dashboard/src/App.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { Fragment } from "react"
+import { Fragment } from 'react';
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
import { BrowserRouter } from 'react-router-dom';
import { createClient, Provider } from 'urql';
@@ -19,15 +19,13 @@ const queryClient = createClient({
requestPolicy: 'network-only',
});
-
-
const theme = extendTheme({
styles: {
global: {
'html, body, #root': {
fontFamily: 'Avenir, Helvetica, Arial, sans-serif',
height: '100%',
- outline: "none"
+ outline: 'none',
},
},
},
@@ -41,15 +39,15 @@ const theme = extendTheme({
export default function App() {
return (
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
);
}
diff --git a/dashboard/src/components/EnvComponents/OAuthConfig.tsx b/dashboard/src/components/EnvComponents/OAuthConfig.tsx
index b06d595..a235e09 100644
--- a/dashboard/src/components/EnvComponents/OAuthConfig.tsx
+++ b/dashboard/src/components/EnvComponents/OAuthConfig.tsx
@@ -1,191 +1,191 @@
-import React from "react";
-import InputField from "../InputField";
+import React from 'react';
+import InputField from '../InputField';
import {
- Flex,
- Stack,
- Center,
- Text,
- Box,
- Divider,
- useMediaQuery,
-} from "@chakra-ui/react";
-import { FaGoogle, FaGithub, FaFacebookF } from "react-icons/fa";
-import { TextInputType, HiddenInputType } from "../../constants";
+ Flex,
+ Stack,
+ Center,
+ Text,
+ Box,
+ Divider,
+ useMediaQuery,
+} from '@chakra-ui/react';
+import { FaGoogle, FaGithub, FaFacebookF } from 'react-icons/fa';
+import { TextInputType, HiddenInputType } from '../../constants';
const OAuthConfig = ({
- envVariables,
- setVariables,
- fieldVisibility,
- setFieldVisibility,
+ envVariables,
+ setVariables,
+ fieldVisibility,
+ setFieldVisibility,
}: any) => {
- const [isNotSmallerScreen] = useMediaQuery("(min-width:667px)");
- return (
-
-
-
- Your instance information
-
-
-
-
- Client ID
+ const [isNotSmallerScreen] = useMediaQuery('(min-width:667px)');
+ return (
+
+
+
+ Your instance information
+
+
+
+
+ Client ID
+
+
+ {}}
+ inputType={TextInputType.CLIENT_ID}
+ placeholder="Client ID"
+ readOnly={true}
+ />
+
-
- {}}
- inputType={TextInputType.CLIENT_ID}
- placeholder="Client ID"
- readOnly={true}
- />
-
-
-
-
- Client Secret
+
+
+ Client Secret
+
+
+
+
-
-
-
-
-
-
- {/* ################ SOCIAL MEDIA LOGIN ################ */}
-
- Social Media Logins
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
+
+
+
+ Social Media Logins
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
};
-export default OAuthConfig;
\ No newline at end of file
+export default OAuthConfig;
diff --git a/dashboard/src/components/EnvComponents/SocialMediaLogin.tsx b/dashboard/src/components/EnvComponents/SocialMediaLogin.tsx
deleted file mode 100644
index bfc0101..0000000
--- a/dashboard/src/components/EnvComponents/SocialMediaLogin.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import React from "react";
-import { Flex, Stack, Text } from "@chakra-ui/react";
-import InputField from "../InputField";
-import { SwitchInputType } from "../../constants";
-
-const UICustomization = ({ variables, setVariables }: any) => {
- return (
-
- {" "}
-
- Disable Features
-
-
-
-
- Disable Login Page:
-
-
-
-
-
-
-
- Disable Email Verification:
-
-
-
-
-
-
-
- Disable Magic Login Link:
-
-
-
-
-
-
-
- Disable Basic Authentication:
-
-
-
-
-
-
-
- Disable Sign Up:
-
-
-
-
-
-
-
- );
-};
-
-export default UICustomization;
\ No newline at end of file
diff --git a/dashboard/src/components/EnvComponents/UICustomization.tsx b/dashboard/src/components/EnvComponents/UICustomization.tsx
index 38df534..756c739 100644
--- a/dashboard/src/components/EnvComponents/UICustomization.tsx
+++ b/dashboard/src/components/EnvComponents/UICustomization.tsx
@@ -1,80 +1,79 @@
-import React from "react";
-import { Flex, Stack, Text, useMediaQuery } from "@chakra-ui/react";
-import InputField from "../InputField";
-import { SwitchInputType } from "../../constants";
+import React from 'react';
+import { Flex, Stack, Text } from '@chakra-ui/react';
+import InputField from '../InputField';
+import { SwitchInputType } from '../../constants';
const UICustomization = ({ variables, setVariables }: any) => {
- const [isNotSmallerScreen] = useMediaQuery("(min-width:600px)");
- return (
-
- {" "}
-
- Disable Features
-
-
-
-
- Disable Login Page:
-
-
-
-
-
-
-
- Disable Email Verification:
-
-
-
-
-
-
-
- Disable Magic Login Link:
-
-
-
-
-
-
-
- Disable Basic Authentication:
-
-
-
-
-
-
-
- Disable Sign Up:
-
-
-
-
-
-
-
- );
+ return (
+
+ {' '}
+
+ Disable Features
+
+
+
+
+ Disable Login Page:
+
+
+
+
+
+
+
+ Disable Email Verification:
+
+
+
+
+
+
+
+ Disable Magic Login Link:
+
+
+
+
+
+
+
+ Disable Basic Authentication:
+
+
+
+
+
+
+
+ Disable Sign Up:
+
+
+
+
+
+
+
+ );
};
-export default UICustomization;
\ No newline at end of file
+export default UICustomization;
diff --git a/dashboard/src/components/Menu.tsx b/dashboard/src/components/Menu.tsx
index c099b96..819c665 100644
--- a/dashboard/src/components/Menu.tsx
+++ b/dashboard/src/components/Menu.tsx
@@ -21,10 +21,16 @@ import {
AccordionButton,
AccordionPanel,
AccordionItem,
- AccordionIcon,
useMediaQuery,
} from '@chakra-ui/react';
-import { FiUser, FiCode, FiSettings, FiMenu, FiUsers, FiChevronDown } from 'react-icons/fi';
+import {
+ FiUser,
+ FiCode,
+ FiSettings,
+ FiMenu,
+ FiUsers,
+ FiChevronDown,
+} from 'react-icons/fi';
import { BiCustomize } from 'react-icons/bi';
import { AiOutlineKey } from 'react-icons/ai';
import { SiOpenaccess, SiJsonwebtokens } from 'react-icons/si';
@@ -117,20 +123,30 @@ export const Sidebar = ({ onClose, ...rest }: SidebarProps) => {
const [isNotSmallerScreen] = useMediaQuery('(min-width:600px)');
return (
-
-
-
-
-
+
+
+
+
+
AUTHORIZER
@@ -139,12 +155,12 @@ export const Sidebar = ({ onClose, ...rest }: SidebarProps) => {
-
+
{LinkItems.map((link) =>
link?.subRoutes ? (
-
-
+
+
{
{link.subRoutes?.map((sublink) => (
-
+
{' '}
-
-
+
+
{sublink.name}
{' '}
@@ -179,7 +203,7 @@ export const Sidebar = ({ onClose, ...rest }: SidebarProps) => {
) : (
{' '}
-
+
{
)
)}
{
{data?.meta?.version && (
-
+
{' '}
-
+
Current Version: {data.meta.version}
@@ -224,12 +255,12 @@ interface NavItemProps extends FlexProps {
export const NavItem = ({ icon, children, ...rest }: NavItemProps) => {
return (
{
>
{icon && (
{
{
}
/>