From 2cfa2907ea578c87c41d58d21c4bcb61dddbd4e5 Mon Sep 17 00:00:00 2001 From: RedstoneScratch <31410740+redstone-scratch@users.noreply.github.com> Date: Sat, 5 Nov 2022 09:09:17 -0400 Subject: [PATCH 1/3] Added Ctrl-R to reload & fixed #5 (hopefully) --- src/bookmarks.js | 6 +++--- src/getChangeLogs.js | 2 +- src/tabs.js | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/bookmarks.js b/src/bookmarks.js index dc6293c6..30205c48 100644 --- a/src/bookmarks.js +++ b/src/bookmarks.js @@ -67,10 +67,10 @@ function updateBookmarksVar() { * Stores the bookmarks in localstorage and runs updateBookmarksVar */ function storeBookmarks() { - if (bookmarks.length === 0) bookmarksBar.classList.add("hidden"); - else bookmarksBar.classList.remove("hidden"); + if (bookmarks.length === 0) bookmarksBar.classList.add("hidden"); + //else bookmarksBar.classList.remove("hidden"); window.localStorage.setItem("bookmarks", JSON.stringify(bookmarks)); updateBookmarksVar(); } -addBookmarkToBar('https://co.wukko.me/', 'Upload') \ No newline at end of file +//addBookmarkToBar('https://co.wukko.me/', 'Upload') \ No newline at end of file diff --git a/src/getChangeLogs.js b/src/getChangeLogs.js index f4cbd3dc..8882c40c 100644 --- a/src/getChangeLogs.js +++ b/src/getChangeLogs.js @@ -10,7 +10,7 @@ fetch("../package.json") const desc = document.getElementById('desc'); desc.innerHTML = marked.parse(res.body); }); - }); + }); function getVerDisp() { fetch("../package.json") diff --git a/src/tabs.js b/src/tabs.js index c5cf2245..671475f1 100644 --- a/src/tabs.js +++ b/src/tabs.js @@ -148,4 +148,11 @@ function handleTabShortcuts(e) { removeTab(); e.preventDefault(); } + if (isModifier && e.key === "r") { + document.querySelector('.current').reload(); + e.preventDefault(); + } + if (isModifier && e.key === "u") { + alert('dunno how to open devtools :(') + } }; \ No newline at end of file From e4760682742bcc22271b7e2f7b9f49807916a2e6 Mon Sep 17 00:00:00 2001 From: michaeleldar <66514999+michaeleldar@users.noreply.github.com> Date: Sat, 5 Nov 2022 17:02:21 +0000 Subject: [PATCH 2/3] Fix README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fa15ff4..6565cd80 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ Platinum is a hobby project entirely managed and written by the community. It is 3. Scroll down and click on the file for your specific platform (Windows = `.exe`, Debian Linux distros = `.deb`, etc.) 4. Open the downloaded file then let Platinum install! +## Building from source +Run +``` +git clone https://github.com/redstone-scratch/Platinum && cd Platinum +npm/pnpm install +npm/pnpm run tailwind:once +npm/pnpm run make +``` + +The output is in the out directory. + ## Contributors -This section will update automatically as we get contribut*o*rs. \ No newline at end of file +This section will update automatically as we get contribut*o*rs. From 38062090b4962591978249d7cdf4a2dc7b8d1b04 Mon Sep 17 00:00:00 2001 From: michaeleldar <66514999+michaeleldar@users.noreply.github.com> Date: Sat, 5 Nov 2022 18:27:45 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6565cd80..e15e7917 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ npm/pnpm run make The output is in the out directory. +## About this fork + +This fork is not supposed to replace Platinum, it is more of a testbed for the more stable Platinum releases. + ## Contributors This section will update automatically as we get contribut*o*rs.