From bd02e08b6adc8c6caa6618226a4fc6c261d0395a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Wed, 31 May 2023 09:37:17 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=E2=9C=8F=20remove=20commented=20code=20blo?= =?UTF-8?q?ck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Article.jsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/Article.jsx b/src/components/Article.jsx index 681c053..f932e65 100644 --- a/src/components/Article.jsx +++ b/src/components/Article.jsx @@ -23,14 +23,6 @@ const Article = ({ markdown }) => { h4: ({ ...props }) => , p: ({ ...props }) => , a: ({ ...props }) => , - // code: ({ ...props }) => }} /> From 63910655b1e75c3b1df15241ffeed6acf2713d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Wed, 31 May 2023 09:40:15 +0200 Subject: [PATCH 2/5] =?UTF-8?q?=E2=9C=8F=20remove=20separate=20about=20pag?= =?UTF-8?q?e,=20link=20about=20to=20github?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 7 ------- src/components/NavBar.jsx | 4 +++- src/pages/about.md | 21 --------------------- 3 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 src/pages/about.md diff --git a/src/App.jsx b/src/App.jsx index b108307..5acd24c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,17 +6,11 @@ import { useState } from 'react' const App = () => { - const [about, setAbout] = useState("") const [tutorial, setTutorial] = useState("") const [changelog, setChangelog] = useState("") const [gallery, setGallery] = useState("") const [methods, setMethods] = useState(null) - import("./pages/about.md").then(res => { - fetch(res.default) - .then(res => res.text()) - .then(text => setAbout(text)) - }) import("./pages/tutorial.md").then(res => { fetch(res.default) .then(res => res.text()) @@ -40,7 +34,6 @@ const App = () => { }> } /> - } /> } /> } /> } /> diff --git a/src/components/NavBar.jsx b/src/components/NavBar.jsx index 07de10c..eeda6a8 100644 --- a/src/components/NavBar.jsx +++ b/src/components/NavBar.jsx @@ -29,7 +29,9 @@ const NavBar = ({ methods }) => { color="gray.600" > - + About diff --git a/src/pages/about.md b/src/pages/about.md deleted file mode 100644 index 8973b4e..0000000 --- a/src/pages/about.md +++ /dev/null @@ -1,21 +0,0 @@ -# About - -The P5.cljs web editor is inspired by the [P5 web -editor](https://editor.p5js.org/). It allows you to write p5.js in -[ClojureScript](https://clojurescript.org/)! - -### Sharing -Every sketch is compiled right here in your browser and encoded in the URL. -This makes your sketches _instantly shareable_. Simply copy the URL and share -your sketches! - -### Open Source -The editor is open sourced and the repo can be found -[here](https://github.com/somecho/p5-cljs-web-editor). Contributors are -welcome! - -### Disclaimer -The p5.cljs web editor is a personal project created by [Somē -Cho](https://somecho.github.io) and is not affiliated with -[p5.js](https://p5js.org/) or the [Processing -Foundation](https://processing.org/). From bda362803c6ba25f4a7ec6e980c46b48d6aac357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Wed, 31 May 2023 09:41:35 +0200 Subject: [PATCH 3/5] =?UTF-8?q?=E2=9C=8F=20move=20tutorial.md=20to=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 2 +- src/pages/tutorial.md => tutorial.md | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/pages/tutorial.md => tutorial.md (100%) diff --git a/src/App.jsx b/src/App.jsx index 5acd24c..dbd714b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -11,7 +11,7 @@ const App = () => { const [gallery, setGallery] = useState("") const [methods, setMethods] = useState(null) - import("./pages/tutorial.md").then(res => { + import("../tutorial.md").then(res => { fetch(res.default) .then(res => res.text()) .then(text => setTutorial(text)) diff --git a/src/pages/tutorial.md b/tutorial.md similarity index 100% rename from src/pages/tutorial.md rename to tutorial.md From 53ac2d3243e9714248bc9767424680845cb61d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Wed, 31 May 2023 09:42:06 +0200 Subject: [PATCH 4/5] bump 0.13.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21947b4..0694d18 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "p5-cljs-web-editor", "private": true, - "version": "0.13.0", + "version": "0.13.1", "type": "module", "scripts": { "dev": "vite", From 976bec7331e21aff8216840d76a4ac54598bf9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Wed, 31 May 2023 09:42:51 +0200 Subject: [PATCH 5/5] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c4e3de..7524aaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.13.1 +- the about page now points to the github page +- move tutorial.md to root of repo + ## 0.13.0 - The gallery / examples can now be view in the UI via the Gallery in the navigation