From 28157da0d1fa666e11f396a2362500a120cbcd8c Mon Sep 17 00:00:00 2001 From: bpyle02 Date: Sun, 17 Dec 2023 18:22:12 -0500 Subject: [PATCH] version 1.9.1 - backend changes and bug fixes --- components/Card.tsx | 2 +- components/CodeBlock.tsx | 2 -- components/ProjectList.tsx | 6 +++--- components/RichTextComponents.tsx | 15 +++++++++------ package-lock.json | 4 ++-- package.json | 2 +- sanity/schemas/blockContent.ts | 5 ++++- styles/globals.css | 4 ---- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/Card.tsx b/components/Card.tsx index 7215aa9..1938d1a 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -23,7 +23,7 @@ function Card() Github - + Email diff --git a/components/CodeBlock.tsx b/components/CodeBlock.tsx index 9b85bf5..342c024 100644 --- a/components/CodeBlock.tsx +++ b/components/CodeBlock.tsx @@ -4,8 +4,6 @@ import { atomOneDark } from 'react-syntax-highlighter/dist/esm/styles/hljs'; import { FaRegCopy } from "react-icons/fa"; import { FaCheck } from "react-icons/fa"; - - export function CodeBlock(props) { const [copy, setCopy] = useState(false) diff --git a/components/ProjectList.tsx b/components/ProjectList.tsx index cde8019..bb48ead 100644 --- a/components/ProjectList.tsx +++ b/components/ProjectList.tsx @@ -18,11 +18,11 @@ function ProjectList({projects}: Props) {
{project.author.name}
diff --git a/components/RichTextComponents.tsx b/components/RichTextComponents.tsx index f13c76a..d56ea19 100644 --- a/components/RichTextComponents.tsx +++ b/components/RichTextComponents.tsx @@ -21,24 +21,27 @@ export const RichTextComponents = { }, list: { bullet: ({children}: any) => ( -
    {children}
+
    {children}
), number: ({children}: any) => ( -
    {children}
+
    {children}
) }, block: { + normal: ({children}: any) => ( +

{children}

+ ), h1: ({children}: any) => ( -

{children}

+

{children}

), h2: ({children}: any) => ( -

{children}

+

{children}

), h3: ({children}: any) => ( -

{children}

+

{children}

), h4: ({children}: any) => ( -

{children}

+

{children}

), blockquote: ({children}: any) => (
{children}
diff --git a/package-lock.json b/package-lock.json index 71cf275..5af62b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "blog", - "version": "1.8.15", + "version": "1.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "blog", - "version": "1.8.15", + "version": "1.9.0", "dependencies": { "@codemirror/lang-cpp": "^6.0.2", "@heroicons/react": "^2.0.18", diff --git a/package.json b/package.json index e392bc8..e4911c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blog", - "version": "1.9.0", + "version": "1.9.1", "private": true, "scripts": { "dev": "next dev", diff --git a/sanity/schemas/blockContent.ts b/sanity/schemas/blockContent.ts index 2aed226..42e1975 100644 --- a/sanity/schemas/blockContent.ts +++ b/sanity/schemas/blockContent.ts @@ -20,7 +20,10 @@ export default defineType({ {title: 'H4', value: 'h4'}, {title: 'Quote', value: 'blockquote'}, ], - lists: [{title: 'Bullet', value: 'bullet'}], + lists: [ + {title: 'Bullet', value: 'bullet'}, + {title: 'Number', value: 'number'} + ], // Marks let you mark up inline text in the Portable Text Editor marks: { // Decorators usually describe a single property – e.g. a typographic diff --git a/styles/globals.css b/styles/globals.css index 803b641..8f0158b 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -18,8 +18,4 @@ body { background-color: rgb(243 244 246); -} - -svg { - color: white; } \ No newline at end of file