Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: update monaco editor version

AykutSarac450c9e9130b5
diff --git a/src/components/MonacoEditor/index.tsx b/src/components/MonacoEditor/index.tsx
index 96788efc..9bd00a2b 100644
--- a/src/components/MonacoEditor/index.tsx
+++ b/src/components/MonacoEditor/index.tsx
@@ -7,7 +7,7 @@ import useStored from "src/store/useStored";
loader.config({
paths: {
- vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.34.0/min/vs",
+ vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.39.0/min/vs",
},
});
diff --git a/src/containers/Editor/LiveEditor/Tools.tsx b/src/containers/Editor/LiveEditor/Tools.tsx
index 7f62b1de..4384bc59 100644
--- a/src/containers/Editor/LiveEditor/Tools.tsx
+++ b/src/containers/Editor/LiveEditor/Tools.tsx
@@ -162,21 +162,20 @@ export const Tools: React.FC<{ isWidget?: boolean }> = ({ isWidget = false }) =>
return (
<StyledTools>
{isWidget && (
- <StyledToolElement
- as="a"
- title="JSON Crack"
- href={logoURL}
- target={isIframe() ? "_blank" : "_parent"}
- >
+ <StyledToolElement title="JSON Crack">
<Flex gap="xs" align="center" justify="center">
- <JSONCrackLogo fontSize="1.2em" />
+ <JSONCrackLogo
+ fontSize="1.2em"
+ href={logoURL}
+ target={isIframe() ? "_blank" : "_parent"}
+ />
</Flex>
</StyledToolElement>
)}
{!isWidget && (
<MediaQuery smallerThan="xs" styles={{ display: "none" }}>
<Group spacing="xs" position="left" w="100%" noWrap>
- <StyledToolElement as="a" title="JSON Crack" href="https://jsoncrack.com">
+ <StyledToolElement title="JSON Crack">
<Flex gap="xs" align="center" justify="center">
<JSONCrackLogo fontSize="1.2em" />
</Flex>
diff --git a/src/layout/JsonCrackLogo/index.tsx b/src/layout/JsonCrackLogo/index.tsx
index c47c085d..69230712 100644
--- a/src/layout/JsonCrackLogo/index.tsx
+++ b/src/layout/JsonCrackLogo/index.tsx
@@ -1,12 +1,13 @@
import React from "react";
import Link from "next/link";
import styled from "styled-components";
+import { monaSans } from "src/constants/customFonts";
const StyledTitle = styled.div<{ fontSize: string }>`
font-weight: 900;
margin: 0;
color: ${({ theme }) => theme.INTERACTIVE_HOVER};
- font-family: var(--mona-sans);
+ font-family: ${monaSans.style.fontFamily};
font-size: ${({ fontSize }) => fontSize};
white-space: nowrap;
`;
@@ -19,9 +20,13 @@ const StyledGradientText = styled.span`
-webkit-text-fill-color: transparent;
`;
-export const JSONCrackLogo: React.FC<{ fontSize?: string }> = ({ fontSize = "1.2rem" }) => {
+interface LogoProps extends React.ComponentPropsWithoutRef<"a"> {
+ fontSize?: string;
+}
+
+export const JSONCrackLogo: React.FC<LogoProps> = ({ fontSize = "1.2rem", ...props }) => {
return (
- <Link href="/" prefetch={false}>
+ <Link href="/" prefetch={false} {...props}>
<StyledTitle fontSize={fontSize}>
<StyledGradientText>JSON</StyledGradientText> CRACK
</StyledTitle>