From 70162cb42fd4e1c65f335d0898cd46d0b44c066b Mon Sep 17 00:00:00 2001 From: plebbitor Date: Fri, 10 Feb 2023 12:57:17 +0100 Subject: [PATCH] added HashRouter, disabled hrefs --- public/post_expand_minus.png | Bin 123 -> 0 bytes src/components/Board.jsx | 22 +++++++++++----------- src/components/Home.jsx | 4 ++-- src/index.js | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 public/post_expand_minus.png diff --git a/public/post_expand_minus.png b/public/post_expand_minus.png deleted file mode 100644 index c499d841747db214bb5b99512ec4ca026175f0b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1SD^+kpz+qY$ZW{!3_UF&^$uA7ARui>Eakt z!I=ERUu;1{G&3`^W6K4$>&EvF&Qf5~l1{w!@BjZ+_Q3Gl87u))ro5bepJA?2TKA6z R{huJ?JYD@<);T3K0RV1sCN}^8 diff --git a/src/components/Board.jsx b/src/components/Board.jsx index c50d3429..efb21980 100644 --- a/src/components/Board.jsx +++ b/src/components/Board.jsx @@ -136,7 +136,7 @@ const Board = ({ setBodyStyle }) => {
[ - Start a New Thread + Start a New Thread ]
@@ -165,7 +165,7 @@ const Board = ({ setBodyStyle }) => { return ( <>
-
+
  @@ -180,22 +180,22 @@ const Board = ({ setBodyStyle }) => { 2 weeks ago   - No. - 00000001 + No. + 00000001     [ - Reply + Reply ] - + -
+
{thread.title ? `>${thread.title}` : null} @@ -222,10 +222,10 @@ const Board = ({ setBodyStyle }) => { 2 weeks ago   - No. - 00000002 + No. + 00000002 - +
{reply.content} diff --git a/src/components/Home.jsx b/src/components/Home.jsx index 841ab616..c97ade4e 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -42,7 +42,7 @@ const Home = () => {
- +
@@ -51,7 +51,7 @@ const Home = () => {
-

Plebchan is a serverless, adminless, decentralized 4chan alternative that uses the plebbit protocol. Users do not need to register an account before participating in the community; anyone can post comments, share image links, and create a board. Search for any board address above, or feel free to click on a popular board below that interests you and jump right in!

+

Plebchan is a serverless, adminless, decentralized 4chan alternative that uses the plebbit protocol. Users do not need to register an account before participating in the community; anyone can post comments, share image links, and create a board. Search for any board address above, or feel free to click on a popular board below that interests you and jump right in!


There are no global rules, each board is completely independent and their owners decide how they should be moderated.

diff --git a/src/index.js b/src/index.js index c146dbe2..d164fe4c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,16 +1,16 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; -import { BrowserRouter } from 'react-router-dom'; import { HelmetProvider } from 'react-helmet-async'; +import { HashRouter } from 'react-router-dom'; const root = ReactDOM.createRoot(document.getElementById('root')); root.render( - + - + ); \ No newline at end of file