From 1166137cb3d5b545ef3c1a8f73b21d4b17748a33 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 17 Apr 2024 11:12:42 -0500 Subject: [PATCH] Minor improvements to activity images, new todo --- README.md | 9 +++++++-- overcomplicatedStatuses.js | 2 +- pageUpdater.js | 3 ++- static/socials/index.html | 4 +++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6020f04..7287e58 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ On the main page, you can find `{PATH_SOCIALS}`. This effectively "embeds" the s For an easy to digest example, look at the socials section on the main page of [Violet's Purgatory](https://violets-purgatory.dev). Afterwards, look at the [*socials page*](https://violets-purgatory.dev/socials). You will notice they're the same, because in the code for the main page, I put {PATH_SOCIALS} which got the page at /socials. # To-do -- [ ] Add more content to the socials page & make it more easily findable on the site +## Socials: +- [ ] Make it more easily findable on the site +- [ ] Add more content - [ ] Pull latest Youtube video & display it - - [x] Display current Discord Activities \ No newline at end of file + - [x] Display current Discord Activities + +## Activities +- [ ] Compress images to reduce space used and network usage (Probably using thumbor to prevent needing MORE packages TwT) \ No newline at end of file diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js index 5c9c7e3..5bd7d91 100644 --- a/overcomplicatedStatuses.js +++ b/overcomplicatedStatuses.js @@ -87,7 +87,7 @@ module.exports = { var fn = cachedImages[get_img_url(activity, size)] var fp = path.join(__dirname, 'static/cached', fn) } else { - return 'imgs/notFound.png' + return '/imgs/notFound.png' } return '/cached/' + fn diff --git a/pageUpdater.js b/pageUpdater.js index 212951d..5bb09b0 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -71,7 +71,8 @@ function converter(html, query) { "UPTIME": uptime, "TOPBAR": `

Socials

`, "DISCORD_USER": username, - "CUSTOM_STATUS": statusText + "CUSTOM_STATUS": statusText, + "LATEST_YOUTUBE": "filler" } var rpTable = Object.keys(replacers) diff --git a/static/socials/index.html b/static/socials/index.html index 7b04265..2cee35b 100644 --- a/static/socials/index.html +++ b/static/socials/index.html @@ -24,7 +24,7 @@

Socials

- +

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

@@ -64,6 +64,8 @@
{ACTIVITIES}
+ + {LASTEST_YOUTUBE}