From dfabc98e29e2214957063aac249e900cb8dff517 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 3 Sep 2024 09:29:20 -0500 Subject: [PATCH 01/14] New quote, remove /ref from old quotes --- constants.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/constants.json b/constants.json index 80b4cbc..3336934 100644 --- a/constants.json +++ b/constants.json @@ -27,15 +27,14 @@ "Can you even call this highlighting anymore it does like 300 other things now", "If you dont convert your HTML to JSON and then back to HTML did you even really make a Server-Side renderer???", "I finally know what SSR means. Yeah that. I made one of those (I think).", - "The optimization update coming out in January 2068!", + "The optimization update: coming out in January 2068!", "Now with... bleh... JQuery...", "Louis do NOT make a server side renderer. Worst mistake of my life.", "Univerter Supremacy", - "Violet's Limbo update soon... I swear...", "Univerter update: Coming. someday. some year. :)", - "I love this font, but emoticons have never looked worse... :( IT'S 2015!!! /ref", - "I'm throwin SNOWBALLS atcha... /ref" + "IT'S 2015!!!", + "I'm throwin SNOWBALLS atcha...", + "Can't believe we got Javascript on Violet's Purgatory before GTA6" ], "titles": [ "World's Worst Developer" From eb9797ca5020f83d756989ce05b17313a88c4161 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sat, 7 Sep 2024 11:54:09 -0500 Subject: [PATCH 02/14] More quotes --- constants.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/constants.json b/constants.json index 3336934..dbed65b 100644 --- a/constants.json +++ b/constants.json @@ -32,9 +32,13 @@ "Louis do NOT make a server side renderer. Worst mistake of my life.", "Univerter Supremacy", "Univerter update: Coming. someday. some year. :)", - "IT'S 2015!!!", - "I'm throwin SNOWBALLS atcha...", - "Can't believe we got Javascript on Violet's Purgatory before GTA6" + "IT'S 2015!!!", + "Can't believe we got Javascript on Violet's Purgatory before GTA6", + "Vocal percussion on a whole nother level, coming from my mind", + "Rock and stone!", + "ENOUGH about the mushrooms! We all know it's a mushroom! We get it!", + "Yes, yes, we're rich. Time to get a move on, I got management breathing down my neck here!", + "STOP IT! NOW!" ], "titles": [ "World's Worst Developer" From 5616d813e0d45467042da753b80ab6f6f48d1e31 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 10 Sep 2024 00:18:13 -0500 Subject: [PATCH 03/14] Remove highlighting from main blog page --- static/blog/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/blog/index.html b/static/blog/index.html index 8f2ee88..1a1ef18 100644 --- a/static/blog/index.html +++ b/static/blog/index.html @@ -25,7 +25,7 @@

Blog

Welcome to my blog! Where I go on nonsensical rants about uninteresting and unimportant topics. The blog just went through a MAJOR rewrite, so expect bugs!

-
+

{BLOG_POSTS}
From b76b32aa51168f737e6c263737dee693253de53e Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 10 Sep 2024 00:29:03 -0500 Subject: [PATCH 04/14] Add blog to the topbar --- pageUpdater.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pageUpdater.js b/pageUpdater.js index 9bfbbc6..81f39af 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -265,7 +265,8 @@ function converter(html, dynamic = true) {

Home Socials Stats - Nerd FAQ

+ Nerd FAQ + Blog
`, "CUSTOM_STATUS": () => { if (api.lanyard.custom_status) { From 6f2b40d75aba070b291ee6449cb0ff001b515de0 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 10 Sep 2024 00:34:20 -0500 Subject: [PATCH 05/14] Remove parenthesis highlighting --- pageUpdater.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index 81f39af..b4e35d3 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -162,14 +162,14 @@ function highlighter(json, full = true, linkParent = false) { var startContent = element.content.substring(spanStart - 1, termIndex) var endContent = element.content.substring(termIndex + termKey.length, spanEnd) - if (startContent.includes("(") && !endContent.includes(")")) { - spanEnd = element.content.indexOf(")", spanStart) + 1 - endContent = element.content.substring(termIndex + termKey.length, spanEnd) - } - else if (endContent.includes(")") && !startContent.includes("(")) { - spanStart = element.content.substring(0, spanStart).lastIndexOf("(") - startContent = element.content.substring(spanStart - 1, termIndex) - } + // if (startContent.includes("(") && !endContent.includes(")")) { + // spanEnd = element.content.indexOf(")", spanStart) + 1 + // endContent = element.content.substring(termIndex + termKey.length, spanEnd) + // } + // else if (endContent.includes(")") && !startContent.includes("(")) { + // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") + // startContent = element.content.substring(spanStart - 1, termIndex) + // } var style = termProps.style || "" var classes = termProps.classes || "" From c6b2f651711a4ab376a88f547a880f6190a71f97 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 11 Sep 2024 15:08:42 -0500 Subject: [PATCH 06/14] Highlight rewrite --- pageUpdater.js | 217 ++++++++++++++++++++++++++++++------------------- 1 file changed, 133 insertions(+), 84 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index b4e35d3..dc01fa8 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -111,117 +111,166 @@ function highlighter(json, full = true, linkParent = false) { if (element.tagName == "code") { valid = false } - + if (valid) { element.children = highlighter(element.children, full, linkParent || element.tagName == "a") } } } else if (element.type == "text") { - var index = 0 for (let i = 0; i < highlightedWords.length; i++) { var dict = highlightedWords[i] for (let x = 0; x < dict.words.length; x++) { - index += 1 var term = dict.words[x]; + var termWordCount = term.split(" ").length var termProps = dict - var reg = term + var reg = new RegExp(`(${term})`, "g") if (termProps.caseInsensitive) { reg = new RegExp(`(${term})`, "gi") } - element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE") - element.content = element.content.replaceAll(reg, "{TERM" + index + "}") - element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`) - } - } - if (full) { - var index = 0 - for (let i = 0; i < highlightedWords.length; i++) { - var dict = highlightedWords[i] - for (let x = 0; x < dict.words.length; x++) { - index += 1 - var termKey = "{TERM" + index + "}" - var termProps = dict - while (element.content.includes(termKey)) { - var termIndex = element.content.indexOf(termKey) + var style = termProps.style || "" + var classes = termProps.classes || "" + var link = termProps.link || "" - var spanEnd = element.content.indexOf(" ", termIndex) + if (termProps.color) { + style += `color: ${termProps.color};` + } - if (spanEnd == -1) { - spanEnd = element.content.length - } + if (termProps.italicized) { + style += "font-style: italic;" + } - var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 + if (termProps.outline) { + var width = 2 + // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` + style += `-webkit-text-stroke: 1px ${termProps.outline};` + // ^ Not in use because it looks bad :3 + } - // if (highTable[index] == "ULTRAKILL") { - // console.log(startContent, " ---- ", endContent) - // } + if (termProps.bold) { + classes += "bold" + } - var startContent = element.content.substring(spanStart - 1, termIndex) - var endContent = element.content.substring(termIndex + termKey.length, spanEnd) + if (style.length > 2) { + style = `style="${style}"` + } - // if (startContent.includes("(") && !endContent.includes(")")) { - // spanEnd = element.content.indexOf(")", spanStart) + 1 - // endContent = element.content.substring(termIndex + termKey.length, spanEnd) - // } - // else if (endContent.includes(")") && !startContent.includes("(")) { - // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") - // startContent = element.content.substring(spanStart - 1, termIndex) - // } + if (classes.length > 2) { + classes = `class="${classes}"` + } - var style = termProps.style || "" - var classes = termProps.classes || "" - var link = termProps.link || "" - if (termProps.color) { - style += `color: ${termProps.color};` - } + var splitContent = element.content.split(" ") + for (let y = 0; y < splitContent.length; y++) { + var word = splitContent[y] - if (termProps.italicized) { - style += "font-style: italic;" - } + if (reg.test(word)) { - if (termProps.outline) { - var width = 2 - // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` - style += `-webkit-text-stroke: 1px ${termProps.outline};` - // ^ Not in use because it looks bad :30 - } - - if (termProps.bold) { - classes += "bold" - } - - if (style.length > 2) { - style = `style="${style}"` - } - - if (classes.length > 2) { - classes = `class="${classes}"` - } - - var stuff = (startContent + dict.words[x] + endContent).trim() - - if (!stuff.includes("span")) { - var replacement = `${stuff}` - - if (link && !linkParent) { - replacement = `${replacement}` - // console.log(replacement) - } - element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd) + if (link && !linkParent) { + splitContent[y] = `${splitContent[y]}` } else { - - element.content = element.content.replace(termKey, dict.words[x]) + splitContent[y] = `${splitContent[y]}` } } } - } - // element.content = element.content.replaceAll(termKey, replacement) + element.content = splitContent.join(" ") + + + // element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE") + // element.content = element.content.replaceAll(reg, "{TERM" + index + "}") + // element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`) + } } + + // if (full) { + // var index = 0 + // for (let i = 0; i < highlightedWords.length; i++) { + // var dict = highlightedWords[i] + // for (let x = 0; x < dict.words.length; x++) { + // index += 1 + // var termKey = "{TERM" + index + "}" + // var termProps = dict + // while (element.content.includes(termKey)) { + // var termIndex = element.content.indexOf(termKey) + + // var spanEnd = element.content.indexOf(" ", termIndex) + + // if (spanEnd == -1) { + // spanEnd = element.content.length + // } + + // var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 + + // // if (highTable[index] == "ULTRAKILL") { + // // console.log(startContent, " ---- ", endContent) + // // } + + // var startContent = element.content.substring(spanStart - 1, termIndex) + // var endContent = element.content.substring(termIndex + termKey.length, spanEnd) + + // // if (startContent.includes("(") && !endContent.includes(")")) { + // // spanEnd = element.content.indexOf(")", spanStart) + 1 + // // endContent = element.content.substring(termIndex + termKey.length, spanEnd) + // // } + // // else if (endContent.includes(")") && !startContent.includes("(")) { + // // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") + // // startContent = element.content.substring(spanStart - 1, termIndex) + // // } + + // var style = termProps.style || "" + // var classes = termProps.classes || "" + // var link = termProps.link || "" + + // if (termProps.color) { + // style += `color: ${termProps.color};` + // } + + // if (termProps.italicized) { + // style += "font-style: italic;" + // } + + // if (termProps.outline) { + // var width = 2 + // // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` + // style += `-webkit-text-stroke: 1px ${termProps.outline};` + // // ^ Not in use because it looks bad :30 + // } + + // if (termProps.bold) { + // classes += "bold" + // } + + // if (style.length > 2) { + // style = `style="${style}"` + // } + + // if (classes.length > 2) { + // classes = `class="${classes}"` + // } + + // var stuff = (startContent + dict.words[x] + endContent).trim() + + // if (!stuff.includes("span")) { + // var replacement = `${stuff}` + + // if (link && !linkParent) { + // replacement = `${replacement}` + // // console.log(replacement) + // } + // element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd) + // } else { + + // element.content = element.content.replace(termKey, dict.words[x]) + // } + // } + // } + // } + + // // element.content = element.content.replaceAll(termKey, replacement) + // } } } @@ -231,7 +280,7 @@ function highlighter(json, full = true, linkParent = false) { function converter(html, dynamic = true) { var startTime = Date.now() var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/config.json'))) - + var staticReplacers = { "ALL_HIGHLIGHTS": () => { var addedHTML = "" @@ -311,7 +360,7 @@ function converter(html, dynamic = true) { var siteName = sitesTable[x] var siteData = sites[siteName] html += `${siteName}: ${siteData.name}` - + } html += "" } @@ -323,8 +372,8 @@ function converter(html, dynamic = true) { for (var i in api.blogPosts) { var post = api.blogPosts[i] if (!post.hidden) { - addedHTML += - `
+ addedHTML += + `

${post.title}

${post.desc}

@@ -438,7 +487,7 @@ module.exports = { } res.send(data) - } + } else { next() } From f4e63d6a5fc70cd1f3c7ec408209bb134b0d224e Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 11 Sep 2024 15:41:57 -0500 Subject: [PATCH 07/14] Fix links kinda --- pageUpdater.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index dc01fa8..d7a99d5 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -167,11 +167,10 @@ function highlighter(json, full = true, linkParent = false) { var word = splitContent[y] if (reg.test(word)) { + splitContent[y] = `${splitContent[y]}` if (link && !linkParent) { splitContent[y] = `
${splitContent[y]}` - } else { - splitContent[y] = `${splitContent[y]}` } } } From 05ff2f0fa6191ccb11225e493ceb2d5d912ba4cb Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 13 Sep 2024 10:42:24 -0500 Subject: [PATCH 08/14] revert f4e63d6a5fc70cd1f3c7ec408209bb134b0d224e revert Fix links kinda --- pageUpdater.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pageUpdater.js b/pageUpdater.js index d7a99d5..dc01fa8 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -167,10 +167,11 @@ function highlighter(json, full = true, linkParent = false) { var word = splitContent[y] if (reg.test(word)) { - splitContent[y] = `${splitContent[y]}` if (link && !linkParent) { splitContent[y] = `${splitContent[y]}` + } else { + splitContent[y] = `${splitContent[y]}` } } } From 684a45811a19f8430c60f0ecbcaca6f4ef451022 Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 13 Sep 2024 10:42:32 -0500 Subject: [PATCH 09/14] revert c6b2f651711a4ab376a88f547a880f6190a71f97 revert Highlight rewrite --- pageUpdater.js | 209 +++++++++++++++++++------------------------------ 1 file changed, 80 insertions(+), 129 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index dc01fa8..b4e35d3 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -111,166 +111,117 @@ function highlighter(json, full = true, linkParent = false) { if (element.tagName == "code") { valid = false } - + if (valid) { element.children = highlighter(element.children, full, linkParent || element.tagName == "a") } } } else if (element.type == "text") { + var index = 0 for (let i = 0; i < highlightedWords.length; i++) { var dict = highlightedWords[i] for (let x = 0; x < dict.words.length; x++) { + index += 1 var term = dict.words[x]; - var termWordCount = term.split(" ").length var termProps = dict - var reg = new RegExp(`(${term})`, "g") + var reg = term if (termProps.caseInsensitive) { reg = new RegExp(`(${term})`, "gi") } - - var style = termProps.style || "" - var classes = termProps.classes || "" - var link = termProps.link || "" - - if (termProps.color) { - style += `color: ${termProps.color};` - } - - if (termProps.italicized) { - style += "font-style: italic;" - } - - if (termProps.outline) { - var width = 2 - // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` - style += `-webkit-text-stroke: 1px ${termProps.outline};` - // ^ Not in use because it looks bad :3 - } - - if (termProps.bold) { - classes += "bold" - } - - if (style.length > 2) { - style = `style="${style}"` - } - - if (classes.length > 2) { - classes = `class="${classes}"` - } - - - var splitContent = element.content.split(" ") - for (let y = 0; y < splitContent.length; y++) { - var word = splitContent[y] - - if (reg.test(word)) { - - if (link && !linkParent) { - splitContent[y] = `${splitContent[y]}` - } else { - splitContent[y] = `${splitContent[y]}` - } - } - } - - element.content = splitContent.join(" ") - - - // element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE") - // element.content = element.content.replaceAll(reg, "{TERM" + index + "}") - // element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`) + element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE") + element.content = element.content.replaceAll(reg, "{TERM" + index + "}") + element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`) } } - // if (full) { - // var index = 0 - // for (let i = 0; i < highlightedWords.length; i++) { - // var dict = highlightedWords[i] - // for (let x = 0; x < dict.words.length; x++) { - // index += 1 - // var termKey = "{TERM" + index + "}" - // var termProps = dict - // while (element.content.includes(termKey)) { - // var termIndex = element.content.indexOf(termKey) + if (full) { + var index = 0 + for (let i = 0; i < highlightedWords.length; i++) { + var dict = highlightedWords[i] + for (let x = 0; x < dict.words.length; x++) { + index += 1 + var termKey = "{TERM" + index + "}" + var termProps = dict + while (element.content.includes(termKey)) { + var termIndex = element.content.indexOf(termKey) - // var spanEnd = element.content.indexOf(" ", termIndex) + var spanEnd = element.content.indexOf(" ", termIndex) - // if (spanEnd == -1) { - // spanEnd = element.content.length - // } + if (spanEnd == -1) { + spanEnd = element.content.length + } - // var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 + var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 - // // if (highTable[index] == "ULTRAKILL") { - // // console.log(startContent, " ---- ", endContent) - // // } + // if (highTable[index] == "ULTRAKILL") { + // console.log(startContent, " ---- ", endContent) + // } - // var startContent = element.content.substring(spanStart - 1, termIndex) - // var endContent = element.content.substring(termIndex + termKey.length, spanEnd) + var startContent = element.content.substring(spanStart - 1, termIndex) + var endContent = element.content.substring(termIndex + termKey.length, spanEnd) - // // if (startContent.includes("(") && !endContent.includes(")")) { - // // spanEnd = element.content.indexOf(")", spanStart) + 1 - // // endContent = element.content.substring(termIndex + termKey.length, spanEnd) - // // } - // // else if (endContent.includes(")") && !startContent.includes("(")) { - // // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") - // // startContent = element.content.substring(spanStart - 1, termIndex) - // // } + // if (startContent.includes("(") && !endContent.includes(")")) { + // spanEnd = element.content.indexOf(")", spanStart) + 1 + // endContent = element.content.substring(termIndex + termKey.length, spanEnd) + // } + // else if (endContent.includes(")") && !startContent.includes("(")) { + // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") + // startContent = element.content.substring(spanStart - 1, termIndex) + // } - // var style = termProps.style || "" - // var classes = termProps.classes || "" - // var link = termProps.link || "" + var style = termProps.style || "" + var classes = termProps.classes || "" + var link = termProps.link || "" - // if (termProps.color) { - // style += `color: ${termProps.color};` - // } + if (termProps.color) { + style += `color: ${termProps.color};` + } - // if (termProps.italicized) { - // style += "font-style: italic;" - // } + if (termProps.italicized) { + style += "font-style: italic;" + } - // if (termProps.outline) { - // var width = 2 - // // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` - // style += `-webkit-text-stroke: 1px ${termProps.outline};` - // // ^ Not in use because it looks bad :30 - // } + if (termProps.outline) { + var width = 2 + // style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` + style += `-webkit-text-stroke: 1px ${termProps.outline};` + // ^ Not in use because it looks bad :30 + } - // if (termProps.bold) { - // classes += "bold" - // } + if (termProps.bold) { + classes += "bold" + } - // if (style.length > 2) { - // style = `style="${style}"` - // } + if (style.length > 2) { + style = `style="${style}"` + } - // if (classes.length > 2) { - // classes = `class="${classes}"` - // } + if (classes.length > 2) { + classes = `class="${classes}"` + } - // var stuff = (startContent + dict.words[x] + endContent).trim() + var stuff = (startContent + dict.words[x] + endContent).trim() - // if (!stuff.includes("span")) { - // var replacement = `${stuff}` + if (!stuff.includes("span")) { + var replacement = `${stuff}` - // if (link && !linkParent) { - // replacement = `${replacement}` - // // console.log(replacement) - // } - // element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd) - // } else { + if (link && !linkParent) { + replacement = `${replacement}` + // console.log(replacement) + } + element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd) + } else { - // element.content = element.content.replace(termKey, dict.words[x]) - // } - // } - // } - // } + element.content = element.content.replace(termKey, dict.words[x]) + } + } + } + } - // // element.content = element.content.replaceAll(termKey, replacement) - // } + // element.content = element.content.replaceAll(termKey, replacement) + } } } @@ -280,7 +231,7 @@ function highlighter(json, full = true, linkParent = false) { function converter(html, dynamic = true) { var startTime = Date.now() var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/config.json'))) - + var staticReplacers = { "ALL_HIGHLIGHTS": () => { var addedHTML = "" @@ -360,7 +311,7 @@ function converter(html, dynamic = true) { var siteName = sitesTable[x] var siteData = sites[siteName] html += `${siteName}: ${siteData.name}` - + } html += "
" } @@ -372,8 +323,8 @@ function converter(html, dynamic = true) { for (var i in api.blogPosts) { var post = api.blogPosts[i] if (!post.hidden) { - addedHTML += - `
+ addedHTML += + `

${post.title}

${post.desc}

@@ -487,7 +438,7 @@ module.exports = { } res.send(data) - } + } else { next() } From 636e38ebadf8b0369fb77c8929a7301d90f95528 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 15 Sep 2024 02:43:17 -0500 Subject: [PATCH 10/14] More quotes --- constants.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/constants.json b/constants.json index dbed65b..7da7084 100644 --- a/constants.json +++ b/constants.json @@ -38,7 +38,13 @@ "Rock and stone!", "ENOUGH about the mushrooms! We all know it's a mushroom! We get it!", "Yes, yes, we're rich. Time to get a move on, I got management breathing down my neck here!", - "STOP IT! NOW!" + "STOP IT! NOW!", + "Five. Hundred. Cigarettes.", + "If I describe this website's server code to a employer they'd be impressed, but then if I showed it to them I'd be put on a blacklist", + "I am placing blocks and shit cuz im in fucking Minecraft!!", + "I hope you know every time I add a new quote I have a stroke testing it because I have to gamble", + "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!" ], "titles": [ "World's Worst Developer" From 1c7cb0ca13a4614cd51adc0f8bc54c7e65bb9ee8 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 15 Sep 2024 13:58:20 -0500 Subject: [PATCH 11/14] Remove FAQ --- static/index.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/index.html b/static/index.html index 05a68c4..9622bb5 100644 --- a/static/index.html +++ b/static/index.html @@ -86,9 +86,6 @@

Socials

{PATH_SOCIALS}
-


FAQ

-
See the full FAQ here! - {PATH_FAQ} {SELECTED_VIDEO} From 09ca01e056e3eb9a64f39f6de225f6fbd2f82032 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 17:41:06 -0500 Subject: [PATCH 12/14] Limit activity time --- static/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/main.js b/static/main.js index dce14ef..d8fa56a 100644 --- a/static/main.js +++ b/static/main.js @@ -131,7 +131,7 @@ function spinLoop() { function secondLoop() { $(".durationBarFormatter").each((_, item) => { item = $(item) - item.text(`${timeFormatter((Date.now() - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`) + item.text(`${timeFormatter((Math.min(Date.now(), item.attr("data-end")) - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`) }) $(".timeEstimate").each((_, item) => { From 75741c60867a5e0939634341bbdc5566fe32a61f Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 17:42:55 -0500 Subject: [PATCH 13/14] New quote expressing my frustrations --- constants.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constants.json b/constants.json index 7da7084..759ba7b 100644 --- a/constants.json +++ b/constants.json @@ -44,7 +44,8 @@ "I am placing blocks and shit cuz im in fucking Minecraft!!", "I hope you know every time I add a new quote I have a stroke testing it because I have to gamble", "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!" + "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..." ], "titles": [ "World's Worst Developer" From 36e771a57cc062975eab0dfb6a68de6201cc846d Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 19 Sep 2024 17:47:41 -0500 Subject: [PATCH 14/14] Make arch case sensitive, update unclear quote --- constants.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/constants.json b/constants.json index 759ba7b..bb0943d 100644 --- a/constants.json +++ b/constants.json @@ -42,7 +42,7 @@ "Five. Hundred. Cigarettes.", "If I describe this website's server code to a employer they'd be impressed, but then if I showed it to them I'd be put on a blacklist", "I am placing blocks and shit cuz im in fucking Minecraft!!", - "I hope you know every time I add a new quote I have a stroke testing it because I have to gamble", + "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..." @@ -370,8 +370,7 @@ "words": [ "Arch" ], - "color": "rgb(0, 255, 255)", - "caseInsensitive": true + "color": "rgb(0, 255, 255)" }, { "words": [