From 5e20230972dbd591509d99fd0a74790830d0ef1d Mon Sep 17 00:00:00 2001 From: plebbitor Date: Tue, 7 Mar 2023 13:54:14 +0100 Subject: [PATCH] fix invalid href value --- src/components/Board.jsx | 52 +++++++++++++++++++------------------- src/components/Catalog.jsx | 4 +-- src/components/Thread.jsx | 52 +++++++++++++++++++------------------- 3 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/components/Board.jsx b/src/components/Board.jsx index 5a02ae25..77d0c184 100644 --- a/src/components/Board.jsx +++ b/src/components/Board.jsx @@ -320,7 +320,7 @@ const Board = ({ setBodyStyle }) => { ))} [ - Settings + Settings ] [ handleStyleChange({target: {value: "Yotsuba"}} @@ -339,7 +339,7 @@ const Board = ({ setBodyStyle }) => {
- Settings + Settings   handleStyleChange({target: {value: "Yotsuba"}} )}>Home @@ -464,9 +464,9 @@ const Board = ({ setBodyStyle }) => { File:  filename.something (metadata)
- + filename.something - + {thread.title ? ( @@ -518,8 +518,8 @@ const Board = ({ setBodyStyle }) => { {getDate(thread.timestamp)}   - c/ - {thread.cid.slice(0, 8)} + c/ + {thread.cid.slice(0, 8)}   [ @@ -527,10 +527,10 @@ const Board = ({ setBodyStyle }) => { ] - + @@ -608,18 +608,18 @@ const Board = ({ setBodyStyle }) => { {getDate(reply.timestamp)}   - c/ - {reply.cid.slice(0, 8)} + c/ + {reply.cid.slice(0, 8)} - + ▶ {reply.content ? ( reply.content.length > 1000 ?
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content.slice(0, 1000)} (...)

@@ -629,9 +629,9 @@ const Board = ({ setBodyStyle }) => {
:
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content}
) : null} @@ -644,7 +644,7 @@ const Board = ({ setBodyStyle }) => {
- ... + ... {thread.author.displayName ? thread.author.displayName.length > 15 @@ -699,15 +699,15 @@ const Board = ({ setBodyStyle }) => { {getDate(thread.timestamp)}   - c/ - {thread.cid.slice(0, 8)} + c/ + {thread.cid.slice(0, 8)}
- +
58 KB JPG
-
+
{thread.content ? ( thread.content.length > 1500 ? @@ -775,17 +775,17 @@ const Board = ({ setBodyStyle }) => { {getDate(reply.timestamp)}  - c/ - {reply.cid.slice(0, 8)} + c/ + {reply.cid.slice(0, 8)}
{reply.content ? ( reply.content.length > 1000 ?
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content.slice(0, 1000)} (...)

@@ -795,9 +795,9 @@ const Board = ({ setBodyStyle }) => {
:
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content}
) : null} diff --git a/src/components/Catalog.jsx b/src/components/Catalog.jsx index f10062e9..11f4c823 100644 --- a/src/components/Catalog.jsx +++ b/src/components/Catalog.jsx @@ -293,7 +293,7 @@ const Catalog = ({ setBodyStyle }) => { ))} [ - Settings + Settings ] [ handleStyleChange({target: {value: "Yotsuba"}} @@ -312,7 +312,7 @@ const Catalog = ({ setBodyStyle }) => {
- Settings + Settings   handleStyleChange({target: {value: "Yotsuba"}} )}>Home diff --git a/src/components/Thread.jsx b/src/components/Thread.jsx index 2bd74b75..b80b2247 100644 --- a/src/components/Thread.jsx +++ b/src/components/Thread.jsx @@ -220,7 +220,7 @@ const Thread = ({ setBodyStyle }) => { ))} [ - Settings + Settings ] [ handleStyleChange({target: {value: "Yotsuba"}} @@ -239,7 +239,7 @@ const Thread = ({ setBodyStyle }) => {
- Settings + Settings   handleStyleChange({target: {value: "Yotsuba"}} )}>Home @@ -355,7 +355,7 @@ const Thread = ({ setBodyStyle }) => { [ - event.target.style.cursor='pointer'} onTouchStart={handleClickBottom}>Bottom + event.target.style.cursor='pointer'} onTouchStart={handleClickBottom}>Bottom ] {comment ? ( @@ -380,9 +380,9 @@ const Thread = ({ setBodyStyle }) => { File:  filename.something (metadata)
- + filename.something - + {comment.title ? ( @@ -438,13 +438,13 @@ const Thread = ({ setBodyStyle }) => { {getDate(comment.timestamp)}   - c/ - {comment.cid.slice(0, 8)} + c/ + {comment.cid.slice(0, 8)} - + @@ -502,15 +502,15 @@ const Thread = ({ setBodyStyle }) => { {getDate(reply.timestamp)}   - c/ - {reply.cid.slice(0, 8)} + c/ + {reply.cid.slice(0, 8)} - +
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content}
@@ -524,7 +524,7 @@ const Thread = ({ setBodyStyle }) => {
- ... + ... {comment.author.displayName ? comment.author.displayName.length > 15 @@ -578,15 +578,15 @@ const Thread = ({ setBodyStyle }) => { {getDate(comment.timestamp)}   - c/ - {comment.cid.slice(0, 8)} + c/ + {comment.cid.slice(0, 8)}
- +
58 KB JPG
-
+
{comment.content ? ( @@ -644,14 +644,14 @@ const Thread = ({ setBodyStyle }) => { {getDate(reply.timestamp)}  - c/ - {reply.cid.slice(0, 8)} + c/ + {reply.cid.slice(0, 8)}
- + {`c/${reply.parentCid.slice(0, 8)}`}{
} -
+ {reply.content}
@@ -675,12 +675,12 @@ const Thread = ({ setBodyStyle }) => {
[ - event.target.style.cursor='pointer'} onTouchStart={handleClickTop}>Top + event.target.style.cursor='pointer'} onTouchStart={handleClickTop}>Top ] [ - event.target.style.cursor='pointer'}>Post a Reply + event.target.style.cursor='pointer'}>Post a Reply ] {comment.replyCount > 0 ? ( @@ -735,7 +735,7 @@ const Thread = ({ setBodyStyle }) => { - event.target.style.cursor='pointer'} onTouchStart={handleClickTop}>Top + event.target.style.cursor='pointer'} onTouchStart={handleClickTop}>Top