From b0b20b68c0eab1ee5fbdb0aae2f51592392b607c Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:04:02 -0600 Subject: [PATCH 01/18] Create splash.json splash text json --- public/splash.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 public/splash.json diff --git a/public/splash.json b/public/splash.json new file mode 100644 index 0000000..a349c4f --- /dev/null +++ b/public/splash.json @@ -0,0 +1,11 @@ +[ + { + "sp": "testt22" + }, + { + "sp": "more splash text" + }, + { + "sp": "ts" + } +] From e0328a642835c97d8bd819126e114b6431a136eb Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:28:01 -0600 Subject: [PATCH 02/18] Update page.tsx im autism --- src/app/page.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/page.tsx b/src/app/page.tsx index 3a154fb..1a24e53 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,7 +10,19 @@ import store from 'store2' export default function Home() { const router = useRouter() const [shortcuts, setShortcuts] = useState([]) + const [splashText, setSplashText] = useState('') + useEffect(() => { + // Fetch splash text from JSON file + fetch('/splash.json') + .then(response => response.json()) + .then(data => { + const randomIndex = Math.floor(Math.random() * data.length); + setSplashText(data[randomIndex].sp); + }) + .catch(error => console.error('Error fetching splash text:', error)); + + // Fetch shortcuts from local storage store.set('shortcuts', [], false) const data: Item[] = store('shortcuts') setShortcuts(data) @@ -36,6 +48,7 @@ export default function Home() { +

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 410aec5b44f9dac2ee33b048b7e0c028007e4a35 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:29:41 -0600 Subject: [PATCH 03/18] Update page.tsx f]h --- src/app/page.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1a24e53..feedec0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,8 +13,8 @@ export default function Home() { const [splashText, setSplashText] = useState('') useEffect(() => { - // Fetch splash text from JSON file - fetch('/splash.json') + + fetch('/public/splash.json') .then(response => response.json()) .then(data => { const randomIndex = Math.floor(Math.random() * data.length); @@ -22,7 +22,6 @@ export default function Home() { }) .catch(error => console.error('Error fetching splash text:', error)); - // Fetch shortcuts from local storage store.set('shortcuts', [], false) const data: Item[] = store('shortcuts') setShortcuts(data) From 582bf12145f035c31f0fc669de9350734398b340 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:34:05 -0600 Subject: [PATCH 04/18] Update splash.json fixing the shit --- public/splash.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/splash.json b/public/splash.json index a349c4f..5e3aca2 100644 --- a/public/splash.json +++ b/public/splash.json @@ -3,7 +3,7 @@ "sp": "testt22" }, { - "sp": "more splash text" + "sp": "https://discord.gg/qsXnhSPtAK" }, { "sp": "ts" From 30754acfc5f6d22462b21c3be4b7a0ee112d560a Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:38:28 -0600 Subject: [PATCH 05/18] Update page.tsx troubleshooting --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index feedec0..aff3800 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,7 +14,7 @@ export default function Home() { useEffect(() => { - fetch('/public/splash.json') + fetch('/splash.json') .then(response => response.json()) .then(data => { const randomIndex = Math.floor(Math.random() * data.length); From cfb97354c153304c3a541873424a919ad69479d3 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:49:23 -0600 Subject: [PATCH 06/18] Update page.tsx styled the splash text using inline styling cuz im fucking lazy --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index aff3800..79c4ea7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From ac19ea583810b916f2d2d2b6836615085c0d1254 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:50:11 -0600 Subject: [PATCH 07/18] Update splash.json added a template for splash text so owski can do it cuz im lazy as fuck --- public/splash.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/public/splash.json b/public/splash.json index 5e3aca2..a38ac9d 100644 --- a/public/splash.json +++ b/public/splash.json @@ -5,6 +5,30 @@ { "sp": "https://discord.gg/qsXnhSPtAK" }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, + { + "sp": "ts" + }, { "sp": "ts" } From dc4fa3f43517bd93d64e1ac42880eb5a97af0271 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:53:09 -0600 Subject: [PATCH 08/18] Update page.tsx fixed --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 79c4ea7..d1e3c1a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -18,7 +18,7 @@ export default function Home() { .then(response => response.json()) .then(data => { const randomIndex = Math.floor(Math.random() * data.length); - setSplashText(data[randomIndex].sp); + setSplashText(data[randomIndex].splash); }) .catch(error => console.error('Error fetching splash text:', error)); From 53dfe6fe8bda501628e2d17f289ff60e4ee1124a Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:53:46 -0600 Subject: [PATCH 09/18] Update splash.json fixed --- public/splash.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/public/splash.json b/public/splash.json index a38ac9d..7a2e3b3 100644 --- a/public/splash.json +++ b/public/splash.json @@ -1,35 +1,35 @@ [ { - "sp": "testt22" + "splash": "testt22" }, { - "sp": "https://discord.gg/qsXnhSPtAK" + "splash": "https://discord.gg/qsXnhSPtAK" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" }, { - "sp": "ts" + "splash": "ts" } ] From 38d7af04a371f13917420bf9ec18ec08cb52dcda Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:54:58 -0600 Subject: [PATCH 10/18] Update page.tsx margin top smaller --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d1e3c1a..0bbb497 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 35d9eb0a339db3f4e481c019e7d97dfb3ac06eb7 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:59:59 -0600 Subject: [PATCH 11/18] Update page.tsx margin top cahnge --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 0bbb497..8ad82da 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 6fd382edc4c1f156f672027b4d94c4f0f88acce6 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:04:28 -0600 Subject: [PATCH 12/18] Update page.tsx marign --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8ad82da..43d2f22 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 75b43240aade6cd3489b9274ad19cac5f5d81370 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:05:08 -0600 Subject: [PATCH 13/18] Update splash.json placeholder --- public/splash.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public/splash.json b/public/splash.json index 7a2e3b3..b7717d3 100644 --- a/public/splash.json +++ b/public/splash.json @@ -6,30 +6,30 @@ "splash": "https://discord.gg/qsXnhSPtAK" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" }, { - "splash": "ts" + "splash": "--placeholder--" } ] From 530743a8635b90647c1e8feac5d090965a18c4df Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:19:40 -0600 Subject: [PATCH 14/18] Update page.tsx style --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 43d2f22..b27b86c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From f4ca404faff1b4116d46ee400fcbd2bf38eb41e4 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:23:35 -0600 Subject: [PATCH 15/18] Update page.tsx im very contriversal about this --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index b27b86c..1b57e52 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 7637c1b011bfff76a602eebfd2640631dd650690 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:27:23 -0600 Subject: [PATCH 16/18] Update page.tsx h --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1b57e52..d1e3c1a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 81bca5b6590cd3c2ac58094e3f60caea10ac47ce Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 23:42:28 -0600 Subject: [PATCH 17/18] Update page.tsx autism --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d1e3c1a..75e4916 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => { From 8a323e63d1e6ebab95f6de3db4f19fd56a56f668 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Sat, 18 May 2024 20:28:25 -0600 Subject: [PATCH 18/18] Update page.tsx autismaxxing --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 75e4916..e8387da 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function Home() {
-

{splashText}

+

{splashText}

{shortcuts.length > 0 && (
{shortcuts.map((shortcut: Item) => {