From c140edf16e16fb799c70f4dd4305ff2021394461 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 17 Apr 2024 11:21:02 -0500 Subject: [PATCH] Minor formatting, less quotes --- config.json | 6 ------ pageUpdater.js | 5 ++++- static/index.html | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/config.json b/config.json index 6c21a90..128843c 100644 --- a/config.json +++ b/config.json @@ -23,10 +23,7 @@ }, "quotes": [ "Remember the 14th commandment: Thou shalt always clean thy plate and not waste anything, whether thy stomach is full, or not.", - "Remember son, dying is gay!", - "Your friendly neighborhood queer", "I hate javascript!!!", - "Don't fuck with this senator!", "Happy 400 commits!", "Play Cave Story!", "Cave Story+ Sucks!", @@ -35,10 +32,7 @@ "IMAGE CACHING!!! THE IMAGE CACHING IS REAL!!!!", "Is sharing your IP reallyy that bad?", "The worst git user to exist", - "no idea how branches work", - "Their ass is NOT listening", "These birds are Pissing me off... I'm the original        Starwalker", - "Married to my beloved Asahi <3", "Fun fact: Did you know the Socials section is considered its own page?" ], "titles": [ diff --git a/pageUpdater.js b/pageUpdater.js index 5bb09b0..43e250e 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -170,7 +170,10 @@ async function updateCommits() { var codebergResponse = await (await fetch(`https://codeberg.org/Bingus_Violet/Violets-Purgatory/src/branch/${process.env.BRANCH || "origin"}`)).text() var commits = codebergResponse.substring(0, codebergResponse.indexOf("Commits")) commits = commits.substring(commits.lastIndexOf("") + 3, commits.lastIndexOf("")) - commitCount = commits + commitCount = commits.toString() + if (process.env.BRANCH == "dev") { + commitCount += " | Beta site!" + } } updateCommits() diff --git a/static/index.html b/static/index.html index 57d53cd..fd104f8 100644 --- a/static/index.html +++ b/static/index.html @@ -24,7 +24,6 @@ {WEATHER_MODIFIER}

Welcome to Violet's PurgatoryCommit {COMMIT_COUNT}

-

{RANDOM_QUOTE}


{Violet}

@@ -36,7 +35,7 @@

They/Them

Developer

-

Dating Asahi <3

+

{DISCORD_STATUS}

@@ -57,6 +56,7 @@ {CUSTOM_STATUS}
+

{RANDOM_QUOTE}

Make sure to check out this project on Codeberg!