From 0abbaa8470407fd1296c4e213a8cad5fe7d1e01f Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 18:20:15 -0500 Subject: [PATCH 1/7] No more backup lanyard to keep info up to date --- constants.json | 82 ++------------------------------------- pageUpdater.js | 15 ++++--- static/socials/index.html | 4 +- 3 files changed, 14 insertions(+), 87 deletions(-) diff --git a/constants.json b/constants.json index bb0943d..934e185 100644 --- a/constants.json +++ b/constants.json @@ -45,7 +45,9 @@ "I hope you know every time I add a new quote I have a stroke making sure it shows up right because I have to gamble continously to get it to show up", "Fun fact: The opening animation was the first thing I made in this rewrite. It has been 99% unchanged.", "The background during the opening animation looks very wrong on Chromium, but its fine on Firefox... oops!", - "Getting donations? As a minor? I'll keep dreaming..." + "Getting donations? As a minor? I'll keep dreaming...", + "I should add a chance for there to not be a quote here just to screw with people", + "" ], "titles": [ "World's Worst Developer" @@ -56,84 +58,6 @@ "https://unusual-back-production.up.railway.app/", "https://axiomatic-hair-production.up.railway.app/" ], - "fallbackLanyard": { - "kv": {}, - "spotify": null, - "discord_user": { - "id": "534132311781015564", - "username": "bingus_violet", - "avatar": "f3fe0d6a1dd2fe301f437e02333e602d", - "discriminator": "0", - "bot": false, - "clan": null, - "global_name": "Violet", - "avatar_decoration_data": null, - "display_name": "Violet", - "public_flags": 0 - }, - "activities": [], - "discord_status": "offline", - "active_on_discord_web": false, - "active_on_discord_desktop": false, - "active_on_discord_mobile": false, - "listening_to_spotify": false, - "socials": { - "Social Media": { - "Fedi": { - "name": "bingus_violet@floofy.city", - "url": "https://floofy.city/@bingus_violet" - }, - "YouTube": { - "name": "Violet's Fiasco", - "url": "https://www.youtube.com/channel/UChcrBJNJLZucy3TPyGyAY2g" - }, - "Liberapay": { - "name": "bingus_violet", - "url": "https://en.liberapay.com/bingus_violet/" - } - }, - "Messaging": { - "Matrix": { - "name": "@bingus_violet:matrix.violets-purgatory.dev", - "url": "https://matrix.to/#/@bingus_violet:matrix.violets-purgatory.dev" - }, - "Discord": { - "name": "bingus_violet" - }, - "Revolt": { - "name": "BingusViolet#5573" - } - }, - "Coding": { - "Forgejo": { - "name": "bingus_violet@git.violets-purgatory.dev", - "url": "https://git.violets-purgatory.dev/bingus_violet/" - }, - "Codeberg": { - "name": "bingus_violet", - "url": "https://codeberg.org/Bingus_violet" - }, - "Docker": { - "name": "bingusviolet", - "url": "https://hub.docker.com/u/bingusviolet" - }, - "Github": { - "name": "violets-puragtory", - "url": "https://github.com/violets-puragtory" - } - }, - "Games": { - "Steam": { - "name": "Violet", - "url": "https://steamcommunity.com/id/violet-The-Thigh-high-obtainer/" - }, - "Roblox": { - "name": "@bingus_violet", - "url": "https://www.roblox.com/users/28347789/profile" - } - } - } - }, "highlightedWords": [ { "words": [ diff --git a/pageUpdater.js b/pageUpdater.js index b4e35d3..02da4f6 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -256,8 +256,10 @@ function converter(html, dynamic = true) { "COMMIT_COUNT": commitCount, "QUOTE_COUNT": quotes.length, "DISCORD_STATUS": () => { - return `${constants.discStatuses[api.lanyard.discord_status].text}` + + if (api.lanyard) { + return `${constants.discStatuses[api.lanyard.discord_status].text}` + ``; + } return ""; }, @@ -269,7 +271,7 @@ function converter(html, dynamic = true) { Blog `, "CUSTOM_STATUS": () => { - if (api.lanyard.custom_status) { + if (api.lanyard && api.lanyard.custom_status) { var status = api.lanyard.custom_status var addedHTML = "

" if (status.emoji) { @@ -287,7 +289,7 @@ function converter(html, dynamic = true) { return "" }, "SELECTED_VIDEO": () => { - if (api.lanyard.video) { + if (api.lanyard && api.lanyard.video) { return `


Random video!

I would call it random daily video but its not at all daily...


` @@ -298,9 +300,9 @@ function converter(html, dynamic = true) { "WEATHER_TEXT": "", "ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")), "SOCIALS": () => { - if (api.lanyard.socials) { + if (api.lanyard && api.lanyard.socials) { var socials = api.lanyard.socials - var html = "" + var html = `
` var socialsTable = Object.keys(socials) for (var i = 0; i < socialsTable.length; i++) { var category = socialsTable[i] @@ -315,6 +317,9 @@ function converter(html, dynamic = true) { } html += "
" } + html += "" + } else { + html = "

Failed to load?!

Uh oh

" } return html }, diff --git a/static/socials/index.html b/static/socials/index.html index e138111..41c34eb 100644 --- a/static/socials/index.html +++ b/static/socials/index.html @@ -33,9 +33,7 @@

Here's most of the sites you can find me on-
if you needed that for some reason?

-
- {SOCIALS} -
+ {SOCIALS}
From 3bf362d0985ae20664b69e87bdb8687a47683355 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 18:56:13 -0500 Subject: [PATCH 2/7] Fix that quote --- constants.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constants.json b/constants.json index 934e185..605060e 100644 --- a/constants.json +++ b/constants.json @@ -45,7 +45,7 @@ "I hope you know every time I add a new quote I have a stroke making sure it shows up right because I have to gamble continously to get it to show up", "Fun fact: The opening animation was the first thing I made in this rewrite. It has been 99% unchanged.", "The background during the opening animation looks very wrong on Chromium, but its fine on Firefox... oops!", - "Getting donations? As a minor? I'll keep dreaming...", + "Donation software working? As a minor? I'll keep dreaming...", "I should add a chance for there to not be a quote here just to screw with people", "" ], From ca5e37ab72785c6aa8769dca718b0dfbe1282bc9 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 18:57:10 -0500 Subject: [PATCH 3/7] Random Code cleanup --- static/index.html | 3 --- static/socials/index.html | 4 +--- static/stats/index.html | 4 +--- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/static/index.html b/static/index.html index 9622bb5..c4be63c 100644 --- a/static/index.html +++ b/static/index.html @@ -40,13 +40,10 @@

They/Them

Developer

-

{DISCORD_STATUS}

-
- diff --git a/static/socials/index.html b/static/socials/index.html index 41c34eb..5aac04d 100644 --- a/static/socials/index.html +++ b/static/socials/index.html @@ -25,9 +25,7 @@ {WEATHER_MODIFIER} {TOPBAR} - +

Socials


diff --git a/static/stats/index.html b/static/stats/index.html index 1e14a68..84340f5 100644 --- a/static/stats/index.html +++ b/static/stats/index.html @@ -31,9 +31,7 @@

Welcome to the stats page! This page is now "deprecated"... sorta.
Feel free to read more about it at the bottom of the page.

-

-
Stats -

+


Stats


  • Page generation time: {LOAD_TIME}
  • From 6ec2481f6c93586f2d958da08c45cf19c6318b99 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 19:43:41 -0500 Subject: [PATCH 4/7] Can scroll faster during start anim --- static/root.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/root.css b/static/root.css index ef29373..62a62d5 100644 --- a/static/root.css +++ b/static/root.css @@ -138,7 +138,7 @@ img:not(.project-inner > div > img):not(.activity>img) { overflow-x: hidden; } - 100% { + 30% { overflow-y: hidden; overflow-x: hidden; } From 6911ac00788d2b957e7521bcc21ca8d3f978aeaa Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 22 Sep 2024 13:49:33 -0500 Subject: [PATCH 5/7] More space for number --- static/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index 7c2c6bf..f9f2702 100644 --- a/static/style.css +++ b/static/style.css @@ -269,7 +269,7 @@ li { .lengthBar { background-color: rgb(50, 40, 60); display: block; - width: calc(100% - 100px); + width: calc(100% - 120px); margin: auto; height: 12px; padding: 0; @@ -343,5 +343,5 @@ b, b > *, .activityTitle, .activityTitle > *, .bold { .durationBarFormatter { float: right; - width: 90px; + width: 120px; } \ No newline at end of file From 2c4d35c433c11026c57d69fd9ac4299814dc72cf Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 22 Sep 2024 13:51:30 -0500 Subject: [PATCH 6/7] Fix formatting a little --- static/style.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index f9f2702..1ab2e23 100644 --- a/static/style.css +++ b/static/style.css @@ -269,7 +269,7 @@ li { .lengthBar { background-color: rgb(50, 40, 60); display: block; - width: calc(100% - 120px); + width: calc(100% - 110px); margin: auto; height: 12px; padding: 0; @@ -343,5 +343,4 @@ b, b > *, .activityTitle, .activityTitle > *, .bold { .durationBarFormatter { float: right; - width: 120px; } \ No newline at end of file From 6f41d151de389a41f4f5506c7037d86e4982294a Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 26 Sep 2024 12:56:35 -0500 Subject: [PATCH 7/7] Fix chromium based browsers having a stroke --- static/root.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/root.css b/static/root.css index 62a62d5..99f508b 100644 --- a/static/root.css +++ b/static/root.css @@ -96,12 +96,12 @@ img:not(.project-inner > div > img):not(.activity>img) { 0% { transform: translateY(calc(50vh - 6rem)) scale(1.5); opacity: 0; - height: 4rem; + /* height: 4rem; */ } 50% { opacity: 1; - height: 4rem; + /* height: 4rem; */ transform: translateY(calc(50vh - 6rem)) scale(1.25); }