✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: remove seo pages
AykutSaraccd78d94f52c2
diff --git a/apps/www/package.json b/apps/www/package.jsonindex 9009844d..88af7959 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -25,7 +25,6 @@"jq-web": "0.6.2","js-yaml": "4.1.1","json-2-csv": "5.5.10",- "json-schema-faker": "0.6.0","json_typegen_wasm": "0.7.0","jsonc-parser": "3.3.1","jsoncrack-react": "workspace:*",diff --git a/apps/www/public/sitemap-0.xml b/apps/www/public/sitemap-0.xmlindex 11b57db5..6de955a1 100644--- a/apps/www/public/sitemap-0.xml+++ b/apps/www/public/sitemap-0.xml@@ -1,37 +1,8 @@<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://jsoncrack.com</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/csv-to-json</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/csv-to-xml</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/csv-to-yaml</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/json-to-csv</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/json-to-xml</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/json-to-yaml</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/xml-to-csv</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/xml-to-json</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/xml-to-yaml</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/yaml-to-csv</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/yaml-to-json</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/converter/yaml-to-xml</loc><changefreq>never</changefreq><priority>0.7</priority></url><url><loc>https://jsoncrack.com/docs</loc><changefreq>never</changefreq><priority>0.7</priority></url><url><loc>https://jsoncrack.com/editor</loc><changefreq>never</changefreq><priority>0.7</priority></url><url><loc>https://jsoncrack.com/legal/privacy</loc><changefreq>never</changefreq><priority>0.7</priority></url><url><loc>https://jsoncrack.com/legal/terms</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/tools/json-schema</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/csv-to-go</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/csv-to-kotlin</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/csv-to-rust</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/csv-to-typescript</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/json-to-go</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/json-to-kotlin</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/json-to-rust</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/json-to-typescript</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/xml-to-go</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/xml-to-kotlin</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/xml-to-rust</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/xml-to-typescript</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/yaml-to-go</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/yaml-to-kotlin</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/yaml-to-rust</loc><changefreq>never</changefreq><priority>0.7</priority></url>-<url><loc>https://jsoncrack.com/type/yaml-to-typescript</loc><changefreq>never</changefreq><priority>0.7</priority></url></urlset>\ No newline at end of filediff --git a/apps/www/src/layout/ConverterLayout/PageLinks.tsx b/apps/www/src/layout/ConverterLayout/PageLinks.tsxdeleted file mode 100644index abb8ca2f..00000000--- a/apps/www/src/layout/ConverterLayout/PageLinks.tsx+++ /dev/null@@ -1,69 +0,0 @@-import React from "react";-import Link from "next/link";-import { Anchor, Button, Flex, List, SimpleGrid, Stack } from "@mantine/core";-import { FaArrowRightLong } from "react-icons/fa6";-import { formats } from "../../enums/file.enum";--const languages = formats.map(format => format.label);--function groupCombinations(array: string[]): Record<string, string[]> {- // Create an object to hold the grouped combinations- const grouped = {};-- // Iterate over each item in the array- array.forEach(from => {- // Filter out the same item for the "to" array- const targets = array.filter(to => to !== from);-- // Add the "from" item as the key and the "to" items as the value array- grouped[from] = targets;- });-- return grouped;-}--const groupedLanguages = groupCombinations(languages);--export const PageLinks = () => {- return (- <Flex justify="space-between" align="center">- <Stack gap="sm" py="md" justify="center">- <Button- component={Link}- prefetch={false}- href="/editor"- radius="md"- size="sm"- color="dark.5"- autoContrast- w="fit-content"- rightSection={<FaArrowRightLong />}- style={{- boxShadow: "rgba(0, 0, 0, 0.12) 0px -3px 0px 0px inset",- border: "none",- }}- >- Open JSON Crack- </Button>- </Stack>- <SimpleGrid cols={4} w="fit-content">- {Object.entries(groupedLanguages).map(([from, tos]) => (- <List key={from} listStyleType="none">- {tos.map(to => (- <List.Item key={to} c="black">- <Anchor- component={Link}- prefetch={false}- c="black"- href={`/converter/${from.toLowerCase()}-to-${to.toLowerCase()}`}- >- {from} to {to}- </Anchor>- </List.Item>- ))}- </List>- ))}- </SimpleGrid>- </Flex>- );-};diff --git a/apps/www/src/layout/ConverterLayout/ToolPage.tsx b/apps/www/src/layout/ConverterLayout/ToolPage.tsxdeleted file mode 100644index bb6e4fc6..00000000--- a/apps/www/src/layout/ConverterLayout/ToolPage.tsx+++ /dev/null@@ -1,118 +0,0 @@-import React, { useEffect, useRef } from "react";-import Head from "next/head";-import { Box, Container, Flex, Paper, Text, Title } from "@mantine/core";-import { Editor } from "@monaco-editor/react";-import { generateNextSeo } from "next-seo/pages";-import { LuCheck, LuCircleX } from "react-icons/lu";-import { SEO } from "../../constants/seo";-import { type FileFormat, formats } from "../../enums/file.enum";-import { contentToJson, jsonToContent } from "../../lib/utils/jsonAdapter";-import Layout from "../PageLayout";-import { PageLinks } from "./PageLinks";-import { editorOptions } from "./options";--interface ToolPageProps {- from: FileFormat;- to: FileFormat;-}--export const ToolPage = ({ from, to }: ToolPageProps) => {- const editorRef = useRef<any>(null);- const [contentHasError, setContentHasError] = React.useState(false);- const [originalContent, setOriginalContent] = React.useState("");- const [convertedContent, setConvertedContent] = React.useState("");- const [scrollPosition, setScrollPosition] = React.useState(0);- const [editorHeight, setEditorHeight] = React.useState(0);-- const fromLabel = formats.find(({ value }) => value === from)?.label;- const toLabel = formats.find(({ value }) => value === to)?.label;-- useEffect(() => {- if (!originalContent.length) return;-- (async () => {- try {- const json = await contentToJson(originalContent, from);- const content = await jsonToContent(JSON.stringify(json), to);- setConvertedContent(content);- setContentHasError(false);- } catch {- setContentHasError(true);- setConvertedContent("");- }- })();- }, [from, originalContent, to]);-- useEffect(() => {- const scrollPositionRatio =- (scrollPosition / editorHeight) * (editorRef.current?.getContentHeight() || 0);-- editorRef.current?.setScrollTop(scrollPositionRatio);- }, [editorHeight, scrollPosition]);-- return (- <Layout>- <Head>- {generateNextSeo({- ...SEO,- title: `${fromLabel} to ${toLabel} | JSON Crack`,- canonical: `https://jsoncrack.com/converter/${from}-to-${to}`,- description: `Convert ${fromLabel} to ${toLabel} using this free online tool. Upload your ${fromLabel} file and get the converted ${fromLabel} file instantly.`,- })}- </Head>- <Container mt="xl" size="lg">- <Title c="black">- {fromLabel} to {toLabel} Converter- </Title>- <PageLinks />- <Flex pt="lg" gap="40">- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Flex justify="space-between" align="center">- <Text c="gray.3">{fromLabel}</Text>- {contentHasError && !!originalContent ? (- <LuCircleX color="red" />- ) : (- <LuCheck color="lightgreen" />- )}- </Flex>- </Box>- <Editor- value={originalContent}- onChange={value => setOriginalContent(value || "")}- language={from}- height={500}- options={editorOptions}- onMount={editor => {- editor.onDidContentSizeChange(() => {- setEditorHeight(editor.getContentHeight());- });-- editor.onDidScrollChange(e => {- setScrollPosition(e.scrollTop);- });- }}- />- </Paper>- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Text c="gray.3">{toLabel}</Text>- </Box>- <Editor- value={convertedContent}- language={to}- height={500}- options={{- ...editorOptions,- readOnly: true,- }}- onMount={editor => {- editorRef.current = editor;- }}- />- </Paper>- </Flex>- </Container>- </Layout>- );-};diff --git a/apps/www/src/layout/ConverterLayout/options.ts b/apps/www/src/layout/ConverterLayout/options.tsdeleted file mode 100644index e8d6b684..00000000--- a/apps/www/src/layout/ConverterLayout/options.ts+++ /dev/null@@ -1,11 +0,0 @@-import type { EditorProps } from "@monaco-editor/react";--export const editorOptions: EditorProps["options"] = {- formatOnPaste: true,- formatOnType: true,- tabSize: 2,- stopRenderingLineAfter: -1,- minimap: { enabled: false },- stickyScroll: { enabled: false },- scrollBeyondLastLine: false,-};diff --git a/apps/www/src/layout/Landing/Section3.tsx b/apps/www/src/layout/Landing/Section3.tsxindex 7ff136f2..2a051764 100644--- a/apps/www/src/layout/Landing/Section3.tsx+++ b/apps/www/src/layout/Landing/Section3.tsx@@ -102,14 +102,14 @@ export const Section3 = () => {</List><Buttoncomponent="a"- href="/converter/json-to-yaml"+ href="/editor"color="#202842"size="lg"radius="md"w="fit-content"mt="sm">- Open Converter+ Open Editor</Button></Stack></Flex>diff --git a/apps/www/src/layout/PageLayout/Navbar.tsx b/apps/www/src/layout/PageLayout/Navbar.tsxindex a29c4e87..e0309e8c 100644--- a/apps/www/src/layout/PageLayout/Navbar.tsx+++ b/apps/www/src/layout/PageLayout/Navbar.tsx@@ -1,8 +1,7 @@import React from "react";import Link from "next/link";-import { Button, Menu, type MenuItemProps, Text, Stack } from "@mantine/core";+import { Button } from "@mantine/core";import styled from "styled-components";-import { LuChevronDown } from "react-icons/lu";import { JSONCrackLogo } from "../JSONCrackBrandLogo";const StyledNavbarWrapper = styled.div`@@ -10,14 +9,6 @@ const StyledNavbarWrapper = styled.div`transition: background 0.2s ease-in-out;`;-const StyledMenuItem = styled(Menu.Item)<MenuItemProps & any>`- color: black;-- &[data-hovered] {- background-color: #f7f7f7;- }-`;-const StyledNavbar = styled.nav`display: flex;justify-content: space-between;@@ -102,55 +93,6 @@ export const Navbar = () => {>Open Source</Button>- <Menu withArrow shadow="sm">- <Menu.Target>- <Button- variant="subtle"- color="black"- visibleFrom="sm"- size="md"- radius="md"- rightSection={<LuChevronDown />}- >- Tools- </Button>- </Menu.Target>- <Menu.Dropdown maw={300} bg="white">- <StyledMenuItem component={Link} prefetch={false} href="/converter/json-to-yaml">- <Stack gap="2">- <Text c="black" size="sm" fw={600}>- Converter- </Text>- <Text size="xs" c="gray.6" lineClamp={2}>- Convert JSON to YAML, CSV to JSON, YAML to XML, and more.- </Text>- </Stack>- </StyledMenuItem>- <StyledMenuItem component={Link} prefetch={false} href="/type/json-to-rust">- <Stack gap="2">- <Text c="black" size="sm" fw={600}>- Generate Types- </Text>- <Text size="xs" c="gray.6" lineClamp={2}>- Generate TypeScript types, Golang structs, Rust, and more.- </Text>- </Stack>- </StyledMenuItem>- <StyledMenuItem component={Link} prefetch={false} href="/tools/json-schema">- <Stack gap="2">- <Text c="black" size="sm" fw={600}>- JSON Schema- </Text>- <Text size="xs" c="gray.6" lineClamp={2}>- Generate JSON schema from JSON data.- </Text>- <Text size="xs" c="gray.6" lineClamp={2}>- Generate JSON data from JSON schema.- </Text>- </Stack>- </StyledMenuItem>- </Menu.Dropdown>- </Menu></Center><Right><Buttondiff --git a/apps/www/src/layout/TypeLayout/PageLinks.tsx b/apps/www/src/layout/TypeLayout/PageLinks.tsxdeleted file mode 100644index b9a3c69a..00000000--- a/apps/www/src/layout/TypeLayout/PageLinks.tsx+++ /dev/null@@ -1,78 +0,0 @@-import React from "react";-import Link from "next/link";-import { Anchor, Button, Flex, List, SimpleGrid, Stack } from "@mantine/core";-import { FaArrowRightLong } from "react-icons/fa6";-import { formats, TypeLanguage, typeOptions } from "../../enums/file.enum";--type MappedCombinations = {- [language: string]: string[]; // Maps each language to an array of programming languages-};--function mapLanguagesToProgramming(- languages: string[],- programmingLanguages: string[]-): MappedCombinations {- const mappedCombinations: MappedCombinations = {};-- // Iterate over each language- languages.forEach(language => {- // Assign the array of programming languages to each language key- mappedCombinations[language] = programmingLanguages;- });-- return mappedCombinations;-}--const filterProgrammingLanguages = [TypeLanguage.TypeScript_Combined, TypeLanguage.JSON_SCHEMA];--const languages = formats.map(format => format.label);--const programmingLanguages = typeOptions- .filter(option => !filterProgrammingLanguages.includes(option.value))- .map(option => option.label);--const groupedLanguages = mapLanguagesToProgramming(languages, programmingLanguages);--export const PageLinks = () => {- return (- <Flex justify="space-between" align="center">- <Stack gap="sm" py="md" justify="center">- <Button- component={Link}- prefetch={false}- href="/editor"- radius="md"- size="sm"- color="dark.5"- autoContrast- w="fit-content"- rightSection={<FaArrowRightLong />}- style={{- boxShadow: "rgba(0, 0, 0, 0.12) 0px -3px 0px 0px inset",- border: "none",- }}- >- Open JSON Crack- </Button>- </Stack>- <SimpleGrid cols={4} w="fit-content">- {Object.entries(groupedLanguages).map(([from, tos]) => (- <List key={from} listStyleType="none">- {tos.map(to => (- <List.Item key={to} c="black">- <Anchor- component={Link}- prefetch={false}- c="black"- href={`/type/${from.toLowerCase()}-to-${to.toLowerCase()}`}- >- {from} to {to}- </Anchor>- </List.Item>- ))}- </List>- ))}- </SimpleGrid>- </Flex>- );-};diff --git a/apps/www/src/layout/TypeLayout/TypegenWrapper.tsx b/apps/www/src/layout/TypeLayout/TypegenWrapper.tsxdeleted file mode 100644index 5d818a3b..00000000--- a/apps/www/src/layout/TypeLayout/TypegenWrapper.tsx+++ /dev/null@@ -1,99 +0,0 @@-import React, { useEffect, useRef } from "react";-import Head from "next/head";-import { Box, Container, Flex, Paper, Title, Text } from "@mantine/core";-import { Editor } from "@monaco-editor/react";-import { generateNextSeo } from "next-seo/pages";-import { LuCheck, LuCircleX } from "react-icons/lu";-import { SEO } from "../../constants/seo";-import { type FileFormat, formats, type TypeLanguage, typeOptions } from "../../enums/file.enum";-import { generateType } from "../../lib/utils/generateType";-import { editorOptions } from "../ConverterLayout/options";-import Layout from "../PageLayout";-import { PageLinks } from "./PageLinks";--interface ConverterPagesProps {- from: FileFormat;- to: TypeLanguage;-}--export const TypegenWrapper = ({ from, to }: ConverterPagesProps) => {- const editorRef = useRef<any>(null);- const [contentHasError, setContentHasError] = React.useState(false);- const [originalContent, setOriginalContent] = React.useState("");- const [convertedContent, setConvertedContent] = React.useState("");-- const fromLabel = formats.find(({ value }) => value === from)?.label;- const toLabel = typeOptions.find(({ value }) => value === to)?.label;-- useEffect(() => {- if (!originalContent.length) return;-- (async () => {- try {- const type = await generateType(originalContent, from, to);- setConvertedContent(type);- setContentHasError(false);- } catch {- setContentHasError(true);- setConvertedContent("");- }- })();- }, [from, originalContent, to]);-- return (- <Layout>- <Head>- {generateNextSeo({- ...SEO,- title: `${fromLabel} to ${toLabel} | JSON Crack`,- canonical: `https://jsoncrack.com/converter/${from}-to-${to}`,- description: `Instantly generate ${toLabel} from ${fromLabel} using this free online tool. Paste your ${fromLabel} and get the generated ${toLabel} instantly.`,- })}- </Head>- <Container mt="xl" size="lg">- <Title c="black">- {fromLabel} to {toLabel} Converter- </Title>- <PageLinks />- <Flex pt="lg" gap="40">- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Flex justify="space-between" align="center">- <Text c="gray.3">{fromLabel}</Text>- {contentHasError && !!originalContent ? (- <LuCircleX color="red" />- ) : (- <LuCheck color="lightgreen" />- )}- </Flex>- </Box>- <Editor- value={originalContent}- onChange={value => setOriginalContent(value || "")}- language={from}- height={500}- options={editorOptions}- />- </Paper>- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Text c="gray.3">{toLabel}</Text>- </Box>- <Editor- value={convertedContent}- language={to}- height={500}- options={{- ...editorOptions,- readOnly: true,- }}- onMount={editor => {- editorRef.current = editor;- }}- />- </Paper>- </Flex>- </Container>- </Layout>- );-};diff --git a/apps/www/src/pages/converter/csv-to-json.tsx b/apps/www/src/pages/converter/csv-to-json.tsxdeleted file mode 100644index 3844c8b1..00000000--- a/apps/www/src/pages/converter/csv-to-json.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.CSV} to={FileFormat.JSON} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/csv-to-xml.tsx b/apps/www/src/pages/converter/csv-to-xml.tsxdeleted file mode 100644index 71757f65..00000000--- a/apps/www/src/pages/converter/csv-to-xml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.CSV} to={FileFormat.XML} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/csv-to-yaml.tsx b/apps/www/src/pages/converter/csv-to-yaml.tsxdeleted file mode 100644index 6b78202b..00000000--- a/apps/www/src/pages/converter/csv-to-yaml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.CSV} to={FileFormat.YAML} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/json-to-csv.tsx b/apps/www/src/pages/converter/json-to-csv.tsxdeleted file mode 100644index bec6acee..00000000--- a/apps/www/src/pages/converter/json-to-csv.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.JSON} to={FileFormat.CSV} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/json-to-xml.tsx b/apps/www/src/pages/converter/json-to-xml.tsxdeleted file mode 100644index 62245e3e..00000000--- a/apps/www/src/pages/converter/json-to-xml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.JSON} to={FileFormat.XML} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/json-to-yaml.tsx b/apps/www/src/pages/converter/json-to-yaml.tsxdeleted file mode 100644index 0f420c2b..00000000--- a/apps/www/src/pages/converter/json-to-yaml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.JSON} to={FileFormat.YAML} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/xml-to-csv.tsx b/apps/www/src/pages/converter/xml-to-csv.tsxdeleted file mode 100644index bf95d794..00000000--- a/apps/www/src/pages/converter/xml-to-csv.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.XML} to={FileFormat.CSV} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/xml-to-json.tsx b/apps/www/src/pages/converter/xml-to-json.tsxdeleted file mode 100644index d3a0206a..00000000--- a/apps/www/src/pages/converter/xml-to-json.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.XML} to={FileFormat.JSON} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/xml-to-yaml.tsx b/apps/www/src/pages/converter/xml-to-yaml.tsxdeleted file mode 100644index b626ce03..00000000--- a/apps/www/src/pages/converter/xml-to-yaml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.XML} to={FileFormat.YAML} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/yaml-to-csv.tsx b/apps/www/src/pages/converter/yaml-to-csv.tsxdeleted file mode 100644index aedf6604..00000000--- a/apps/www/src/pages/converter/yaml-to-csv.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.YAML} to={FileFormat.CSV} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/yaml-to-json.tsx b/apps/www/src/pages/converter/yaml-to-json.tsxdeleted file mode 100644index 6dee1e87..00000000--- a/apps/www/src/pages/converter/yaml-to-json.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.YAML} to={FileFormat.JSON} />;-};--export default Page;diff --git a/apps/www/src/pages/converter/yaml-to-xml.tsx b/apps/www/src/pages/converter/yaml-to-xml.tsxdeleted file mode 100644index ea091e35..00000000--- a/apps/www/src/pages/converter/yaml-to-xml.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat } from "../../enums/file.enum";-import { ToolPage } from "../../layout/ConverterLayout/ToolPage";--const Page = () => {- return <ToolPage from={FileFormat.YAML} to={FileFormat.XML} />;-};--export default Page;diff --git a/apps/www/src/pages/tools/json-schema.tsx b/apps/www/src/pages/tools/json-schema.tsxdeleted file mode 100644index d1ed49c1..00000000--- a/apps/www/src/pages/tools/json-schema.tsx+++ /dev/null@@ -1,121 +0,0 @@-import React from "react";-import Head from "next/head";-import { Box, Button, Container, Flex, Paper, Title, Text } from "@mantine/core";-import { Editor, type OnMount } from "@monaco-editor/react";-import { generate } from "json-schema-faker";-import { generateNextSeo } from "next-seo/pages";-import { LuCheck, LuCircleX } from "react-icons/lu";-import { SEO } from "../../constants/seo";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { editorOptions } from "../../layout/ConverterLayout/options";-import Layout from "../../layout/PageLayout";-import { generateType } from "../../lib/utils/generateType";-import { jsonToContent } from "../../lib/utils/jsonAdapter";--const JSONSchemaTool = () => {- const monacoRef = React.useRef<Parameters<OnMount>[1] | null>(null);- const [jsonError, setJsonError] = React.useState(false);- const [jsonSchemaError, setJsonSchemaError] = React.useState(false);- const [json, setJson] = React.useState("");- const [jsonSchema, setJsonSchema] = React.useState("");-- React.useEffect(() => {- monacoRef.current?.languages.json.jsonDefaults.setDiagnosticsOptions({- validate: true,- allowComments: true,- enableSchemaRequest: true,- ...(jsonSchema && {- schemas: [- {- uri: "",- fileMatch: ["*"],- schema: jsonSchema,- },- ],- }),- });- }, [jsonSchema]);-- const generateJsonSchema = async () => {- const jsonSchema = await generateType(json, FileFormat.JSON, TypeLanguage.JSON_SCHEMA);- setJsonSchema(jsonSchema);- };-- const generateJson = async () => {- const randomJson = await generate(JSON.parse(jsonSchema));- const contents = await jsonToContent(JSON.stringify(randomJson, null, 2), FileFormat.JSON);- setJson(contents);- };-- return (- <Layout>- <Head>- {generateNextSeo({- ...SEO,- title: "JSON Schema Validator & Generator",- description:- "Use our JSON Schema Validator & Generator tool to easily validate and generate JSON schemas, and generate data from JSON schemas. Simply input your JSON data, generate the corresponding schema, and validate your data with ease.",- canonical: "https://jsoncrack.com/tools/json-schema",- })}- </Head>- <Container mt="xl" size="xl">- <Title c="black">JSON Schema Validator & Generator</Title>- <Flex pt="lg" gap="lg">- <Button- onClick={generateJsonSchema}- variant="default"- size="md"- disabled={!json.length || jsonError}- >- Generate JSON Schema- </Button>- <Button- onClick={generateJson}- variant="default"- size="md"- disabled={!jsonSchema.length || jsonSchemaError}- >- Generate JSON- </Button>- </Flex>- <Flex pt="lg" gap="40">- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Flex justify="space-between" align="center">- <Text c="gray.3">JSON</Text>- {jsonError ? <LuCircleX color="red" /> : <LuCheck color="lightgreen" />}- </Flex>- </Box>- <Editor- value={json}- onChange={value => setJson(value || "")}- onValidate={errors => setJsonError(!!errors.length)}- language="json"- height={500}- options={editorOptions}- onMount={(_editor, monaco) => (monacoRef.current = monaco)}- />- </Paper>- <Paper mah="600px" withBorder flex="1" style={{ overflow: "hidden" }}>- <Box p="xs" bg="gray">- <Flex justify="space-between" align="center">- <Text c="gray.3">JSON Schema</Text>- {jsonSchemaError ? <LuCircleX color="red" /> : <LuCheck color="lightgreen" />}- </Flex>- </Box>- <Editor- value={jsonSchema}- onChange={value => setJsonSchema(value || "")}- onValidate={errors => setJsonSchemaError(!!errors.length)}- language="json"- height={500}- options={editorOptions}- />- </Paper>- </Flex>- </Container>- </Layout>- );-};--export default JSONSchemaTool;diff --git a/apps/www/src/pages/type/csv-to-go.tsx b/apps/www/src/pages/type/csv-to-go.tsxdeleted file mode 100644index dd88ac4f..00000000--- a/apps/www/src/pages/type/csv-to-go.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.CSV} to={TypeLanguage.Go} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/csv-to-kotlin.tsx b/apps/www/src/pages/type/csv-to-kotlin.tsxdeleted file mode 100644index 8f1a9f77..00000000--- a/apps/www/src/pages/type/csv-to-kotlin.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.CSV} to={TypeLanguage.Kotlin} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/csv-to-rust.tsx b/apps/www/src/pages/type/csv-to-rust.tsxdeleted file mode 100644index 5d1150a2..00000000--- a/apps/www/src/pages/type/csv-to-rust.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.CSV} to={TypeLanguage.Rust} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/csv-to-typescript.tsx b/apps/www/src/pages/type/csv-to-typescript.tsxdeleted file mode 100644index 9f060c6b..00000000--- a/apps/www/src/pages/type/csv-to-typescript.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.CSV} to={TypeLanguage.TypeScript} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/json-to-go.tsx b/apps/www/src/pages/type/json-to-go.tsxdeleted file mode 100644index aa3bbd07..00000000--- a/apps/www/src/pages/type/json-to-go.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.JSON} to={TypeLanguage.Go} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/json-to-kotlin.tsx b/apps/www/src/pages/type/json-to-kotlin.tsxdeleted file mode 100644index e9525c2c..00000000--- a/apps/www/src/pages/type/json-to-kotlin.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.JSON} to={TypeLanguage.Kotlin} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/json-to-rust.tsx b/apps/www/src/pages/type/json-to-rust.tsxdeleted file mode 100644index c3db01cb..00000000--- a/apps/www/src/pages/type/json-to-rust.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.JSON} to={TypeLanguage.Rust} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/json-to-typescript.tsx b/apps/www/src/pages/type/json-to-typescript.tsxdeleted file mode 100644index 8e99f2b9..00000000--- a/apps/www/src/pages/type/json-to-typescript.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.JSON} to={TypeLanguage.TypeScript} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/xml-to-go.tsx b/apps/www/src/pages/type/xml-to-go.tsxdeleted file mode 100644index a944d69d..00000000--- a/apps/www/src/pages/type/xml-to-go.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.XML} to={TypeLanguage.Go} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/xml-to-kotlin.tsx b/apps/www/src/pages/type/xml-to-kotlin.tsxdeleted file mode 100644index 1556a572..00000000--- a/apps/www/src/pages/type/xml-to-kotlin.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.XML} to={TypeLanguage.Kotlin} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/xml-to-rust.tsx b/apps/www/src/pages/type/xml-to-rust.tsxdeleted file mode 100644index 3c97a002..00000000--- a/apps/www/src/pages/type/xml-to-rust.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.XML} to={TypeLanguage.Rust} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/xml-to-typescript.tsx b/apps/www/src/pages/type/xml-to-typescript.tsxdeleted file mode 100644index 88386e81..00000000--- a/apps/www/src/pages/type/xml-to-typescript.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.XML} to={TypeLanguage.TypeScript} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/yaml-to-go.tsx b/apps/www/src/pages/type/yaml-to-go.tsxdeleted file mode 100644index ea464c75..00000000--- a/apps/www/src/pages/type/yaml-to-go.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.YAML} to={TypeLanguage.Go} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/yaml-to-kotlin.tsx b/apps/www/src/pages/type/yaml-to-kotlin.tsxdeleted file mode 100644index 376be879..00000000--- a/apps/www/src/pages/type/yaml-to-kotlin.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.YAML} to={TypeLanguage.Kotlin} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/yaml-to-rust.tsx b/apps/www/src/pages/type/yaml-to-rust.tsxdeleted file mode 100644index f79ce9c0..00000000--- a/apps/www/src/pages/type/yaml-to-rust.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.YAML} to={TypeLanguage.Rust} />;-};--export default TypePage;diff --git a/apps/www/src/pages/type/yaml-to-typescript.tsx b/apps/www/src/pages/type/yaml-to-typescript.tsxdeleted file mode 100644index c7456d1e..00000000--- a/apps/www/src/pages/type/yaml-to-typescript.tsx+++ /dev/null@@ -1,9 +0,0 @@-import React from "react";-import { FileFormat, TypeLanguage } from "../../enums/file.enum";-import { TypegenWrapper } from "../../layout/TypeLayout/TypegenWrapper";--const TypePage = () => {- return <TypegenWrapper from={FileFormat.YAML} to={TypeLanguage.TypeScript} />;-};--export default TypePage;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 89d98c53..1d688339 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -132,9 +132,6 @@ importers:json-2-csv:specifier: 5.5.10version: 5.5.10- json-schema-faker:- specifier: 0.6.0- version: 0.6.0json_typegen_wasm:specifier: 0.7.0version: 0.7.0@@ -2274,10 +2271,6 @@ packages:resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}- resolution: {integrity: sha512-KfTcb8UEjD4n1VBI1BOoHWOqSADP6KMah5BBKT/GeYxM4LbzOoyDs3T71jbrR3TflUtNiT8zSTpLiFU62iHZFQ==}- hasBin: true-resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}@@ -5273,8 +5266,6 @@ snapshots:- [email protected]: {}-