diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..8238b63 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: yarn install && yarn run build + command: yarn run dev + + diff --git a/src/components/DevAreaTools/JSONFormatter.jsx b/src/components/DevAreaTools/JSONFormatter.jsx index 5e21031..b48e5df 100644 --- a/src/components/DevAreaTools/JSONFormatter.jsx +++ b/src/components/DevAreaTools/JSONFormatter.jsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { Input, Button, Alert } from 'antd'; -import JSONPretty from 'react-json-pretty'; // You might need to install this library for pretty JSON output -import 'react-json-pretty/themes/monikai.css'; // Optional: import a theme for JSONPretty +import JSONPretty from 'react-json-pretty'; +import 'react-json-pretty/themes/monikai.css'; import { toast } from 'sonner'; const JSONFormatter = () => { @@ -39,29 +39,29 @@ const JSONFormatter = () => { }; return ( -
-

JSON Formatter

+
+

JSON Formatter

setJsonInput(e.target.value)} placeholder="Paste your JSON here" autoSize={{ minRows: 10 }} - className='mb-4 dark:bg-dark dark:text-white' + className="mb-4 dark:bg-dark dark:text-white" /> -
- - -
- {error && } + {error && } {formattedJson && ( -
+
navigator.clipboard.writeText(JSON.stringify(data, null, 2))} />
)} diff --git a/src/components/Error/ErrorCard.jsx b/src/components/Error/ErrorCard.jsx index bf68235..e4e2054 100644 --- a/src/components/Error/ErrorCard.jsx +++ b/src/components/Error/ErrorCard.jsx @@ -1,25 +1,18 @@ import React, { useState } from "react"; -import useColorBorderBox from "../../hooks/useColorBorderBox" -import { - MdOutlineArrowRightAlt, -} from "react-icons/md"; +import useColorBorderBox from "../../hooks/useColorBorderBox"; +import { MdOutlineArrowRightAlt } from "react-icons/md"; import ErrorType from "./ErrorType"; import "./css/style.css"; - import ModalSolutions from "./ModalSolutions"; function ErrorCard({ error }) { - const [readMore, setReadMore] = useState(false); const [isOpenModal, setOpenModal] = useState(false); const [solution, setSolution] = useState(""); - const { borderColor } = useColorBorderBox(error) + const { borderColor } = useColorBorderBox(error); return ( -
+

{error.title}

@@ -45,7 +38,7 @@ function ErrorCard({ error }) {