From 90f5478bed84aaf729ec05d7f6b2b3172392b337 Mon Sep 17 00:00:00 2001 From: nuo <49533950+nuoxoxo@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:38:19 +0200 Subject: [PATCH 1/2] cleanup : aoc input put in in/aoc --- src/includes/Aoc1501.tsx | 2 +- src/includes/Aoc1502.tsx | 2 +- src/includes/Aoc1608.tsx | 2 +- src/includes/Aoc1802.tsx | 2 +- src/includes/Aoc1803.tsx | 2 +- src/includes/Aoc2003.tsx | 2 +- src/includes/Aoc2011.tsx | 2 +- src/includes/Aoc2105.tsx | 2 +- src/includes/Aoc2210.tsx | 2 +- src/includes/Aoc2212.tsx | 2 +- src/includes/Aoc2222.tsx | 2 +- src/includes/Aoc2223.tsx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/includes/Aoc1501.tsx b/src/includes/Aoc1501.tsx index 4ada2fc..4dae13b 100644 --- a/src/includes/Aoc1501.tsx +++ b/src/includes/Aoc1501.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react' import { FetchData, LenNStrsFromLine } from '../helpers/Helpers' const URL:string = - 'https://raw.githubusercontent.com/nuoxoxo/in/main/1501.in' + 'https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1501.in' const santaArray: string[] = ['πŸŽ…πŸ»', 'πŸ§‘πŸ»β€πŸŽ„', '🀢🏻', '🦌', 'πŸ›·', 'πŸŽ„', diff --git a/src/includes/Aoc1502.tsx b/src/includes/Aoc1502.tsx index 30aed2c..cc0cc14 100644 --- a/src/includes/Aoc1502.tsx +++ b/src/includes/Aoc1502.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/1502.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1502.in" var Aoc1501 = () => { const [lines, setLines] = useState( [] ) diff --git a/src/includes/Aoc1608.tsx b/src/includes/Aoc1608.tsx index 79001be..36e1153 100644 --- a/src/includes/Aoc1608.tsx +++ b/src/includes/Aoc1608.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, Deepcopy2DArray } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/1608.in" + "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1608.in" const charSet = ['β—‹', 'ΒΎ', 'β…ž', 'β–‘', 'β–’', 'β–“']//, 'β–ˆ'] const symbol = charSet[Math.floor(Math.random() * charSet.length)] diff --git a/src/includes/Aoc1802.tsx b/src/includes/Aoc1802.tsx index a4fb6e0..4e30cc5 100644 --- a/src/includes/Aoc1802.tsx +++ b/src/includes/Aoc1802.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/1802.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1802.in" const special3 = "🟑" const special2 = "πŸ”΅" diff --git a/src/includes/Aoc1803.tsx b/src/includes/Aoc1803.tsx index e545a5c..c0d48a9 100644 --- a/src/includes/Aoc1803.tsx +++ b/src/includes/Aoc1803.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, /*Deepcopy2DArray*/ } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/1803.in" + "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1803.in" var Aoc1803 = () => { diff --git a/src/includes/Aoc2003.tsx b/src/includes/Aoc2003.tsx index 586ac58..f8aa2d5 100644 --- a/src/includes/Aoc2003.tsx +++ b/src/includes/Aoc2003.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, /*Deepcopy2DArray,*/ } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/2003.in" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2003.in" const symbolArr = ['β–ˆ', '⬀', 'πŸ”΅', '🟑', '🟒', 'πŸŒ•', '🎾', 'β­•', '🈡', '🈢', '🍊', '🦁', '🐯'] const symbol = symbolArr[Math.floor(Math.random() * symbolArr.length)] diff --git a/src/includes/Aoc2011.tsx b/src/includes/Aoc2011.tsx index 034c7a4..d0ba08e 100644 --- a/src/includes/Aoc2011.tsx +++ b/src/includes/Aoc2011.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/2011.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2011.in" var Aoc2011 = () => { const [lines, setLines] = useState([]) diff --git a/src/includes/Aoc2105.tsx b/src/includes/Aoc2105.tsx index f327740..c6e39b6 100644 --- a/src/includes/Aoc2105.tsx +++ b/src/includes/Aoc2105.tsx @@ -6,7 +6,7 @@ import { } from "../helpers/Helpers" const URL: string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/2105.in" + "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2105.in" var Aoc2105 = () => { const [lines, setLines] = useState([]) diff --git a/src/includes/Aoc2210.tsx b/src/includes/Aoc2210.tsx index 5d41d7d..1706c5a 100644 --- a/src/includes/Aoc2210.tsx +++ b/src/includes/Aoc2210.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/2210.in" + "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2210.in" const denseChars:string[] = ['@']//, 'β–“', '✲', '✳', '✴', '✡', '✢', '✷', '✸', '✹', '✺', '✻', '✼', '✽', '✾', '✿', '❀'] diff --git a/src/includes/Aoc2212.tsx b/src/includes/Aoc2212.tsx index eef6fbb..8c7af75 100644 --- a/src/includes/Aoc2212.tsx +++ b/src/includes/Aoc2212.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/2212.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2212.in" const symbolArr = ["β—‹", '✲', '✳', '✡', '✢', '✻', '✼'] const symbol = symbolArr[Math.floor(Math.random() * symbolArr.length)] diff --git a/src/includes/Aoc2222.tsx b/src/includes/Aoc2222.tsx index 4332f90..b0eb0b3 100644 --- a/src/includes/Aoc2222.tsx +++ b/src/includes/Aoc2222.tsx @@ -5,7 +5,7 @@ import { // Deepcopy2DArray, } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/2222.in" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2222.in" const chrs: string[] = ['β—‹', 'β–“', 'β–’', '#']//, 'x', '✲', '✳', '✡', '✢', '✻', '✼'] const chr: string = chrs[Math.floor(Math.random() * chrs.length)] diff --git a/src/includes/Aoc2223.tsx b/src/includes/Aoc2223.tsx index a956d44..8da4eff 100644 --- a/src/includes/Aoc2223.tsx +++ b/src/includes/Aoc2223.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/2223.1" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2223.1" var Aoc2223 = () => { const [lines, setLines] = useState([]) From b4cb1668ac82bb4e5b7ab8e05be9aa509a0d1223 Mon Sep 17 00:00:00 2001 From: nuo <49533950+nuoxoxo@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:39:52 +0200 Subject: [PATCH 2/2] cleanup : aoc input put in in/aoc . bugfix --- src/includes/Aoc1501.tsx | 2 +- src/includes/Aoc1502.tsx | 2 +- src/includes/Aoc1608.tsx | 2 +- src/includes/Aoc1802.tsx | 2 +- src/includes/Aoc1803.tsx | 2 +- src/includes/Aoc2003.tsx | 2 +- src/includes/Aoc2011.tsx | 2 +- src/includes/Aoc2105.tsx | 2 +- src/includes/Aoc2210.tsx | 2 +- src/includes/Aoc2212.tsx | 2 +- src/includes/Aoc2222.tsx | 2 +- src/includes/Aoc2223.tsx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/includes/Aoc1501.tsx b/src/includes/Aoc1501.tsx index 4dae13b..5115b8e 100644 --- a/src/includes/Aoc1501.tsx +++ b/src/includes/Aoc1501.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react' import { FetchData, LenNStrsFromLine } from '../helpers/Helpers' const URL:string = - 'https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1501.in' + 'https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/1501.in' const santaArray: string[] = ['πŸŽ…πŸ»', 'πŸ§‘πŸ»β€πŸŽ„', '🀢🏻', '🦌', 'πŸ›·', 'πŸŽ„', diff --git a/src/includes/Aoc1502.tsx b/src/includes/Aoc1502.tsx index cc0cc14..f5371d0 100644 --- a/src/includes/Aoc1502.tsx +++ b/src/includes/Aoc1502.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1502.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/1502.in" var Aoc1501 = () => { const [lines, setLines] = useState( [] ) diff --git a/src/includes/Aoc1608.tsx b/src/includes/Aoc1608.tsx index 36e1153..69842c1 100644 --- a/src/includes/Aoc1608.tsx +++ b/src/includes/Aoc1608.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, Deepcopy2DArray } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1608.in" + "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/1608.in" const charSet = ['β—‹', 'ΒΎ', 'β…ž', 'β–‘', 'β–’', 'β–“']//, 'β–ˆ'] const symbol = charSet[Math.floor(Math.random() * charSet.length)] diff --git a/src/includes/Aoc1802.tsx b/src/includes/Aoc1802.tsx index 4e30cc5..992d73f 100644 --- a/src/includes/Aoc1802.tsx +++ b/src/includes/Aoc1802.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1802.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/1802.in" const special3 = "🟑" const special2 = "πŸ”΅" diff --git a/src/includes/Aoc1803.tsx b/src/includes/Aoc1803.tsx index c0d48a9..7b6d1d1 100644 --- a/src/includes/Aoc1803.tsx +++ b/src/includes/Aoc1803.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, /*Deepcopy2DArray*/ } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/1803.in" + "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/1803.in" var Aoc1803 = () => { diff --git a/src/includes/Aoc2003.tsx b/src/includes/Aoc2003.tsx index f8aa2d5..493f073 100644 --- a/src/includes/Aoc2003.tsx +++ b/src/includes/Aoc2003.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine, /*Deepcopy2DArray,*/ } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2003.in" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2003.in" const symbolArr = ['β–ˆ', '⬀', 'πŸ”΅', '🟑', '🟒', 'πŸŒ•', '🎾', 'β­•', '🈡', '🈢', '🍊', '🦁', '🐯'] const symbol = symbolArr[Math.floor(Math.random() * symbolArr.length)] diff --git a/src/includes/Aoc2011.tsx b/src/includes/Aoc2011.tsx index d0ba08e..c944703 100644 --- a/src/includes/Aoc2011.tsx +++ b/src/includes/Aoc2011.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2011.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2011.in" var Aoc2011 = () => { const [lines, setLines] = useState([]) diff --git a/src/includes/Aoc2105.tsx b/src/includes/Aoc2105.tsx index c6e39b6..9abd70d 100644 --- a/src/includes/Aoc2105.tsx +++ b/src/includes/Aoc2105.tsx @@ -6,7 +6,7 @@ import { } from "../helpers/Helpers" const URL: string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2105.in" + "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2105.in" var Aoc2105 = () => { const [lines, setLines] = useState([]) diff --git a/src/includes/Aoc2210.tsx b/src/includes/Aoc2210.tsx index 1706c5a..1380d6c 100644 --- a/src/includes/Aoc2210.tsx +++ b/src/includes/Aoc2210.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" const URL:string = - "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2210.in" + "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2210.in" const denseChars:string[] = ['@']//, 'β–“', '✲', '✳', '✴', '✡', '✢', '✷', '✸', '✹', '✺', '✻', '✼', '✽', '✾', '✿', '❀'] diff --git a/src/includes/Aoc2212.tsx b/src/includes/Aoc2212.tsx index 8c7af75..e4a5f37 100644 --- a/src/includes/Aoc2212.tsx +++ b/src/includes/Aoc2212.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2212.in" +const URL:string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2212.in" const symbolArr = ["β—‹", '✲', '✳', '✡', '✢', '✻', '✼'] const symbol = symbolArr[Math.floor(Math.random() * symbolArr.length)] diff --git a/src/includes/Aoc2222.tsx b/src/includes/Aoc2222.tsx index b0eb0b3..03804cb 100644 --- a/src/includes/Aoc2222.tsx +++ b/src/includes/Aoc2222.tsx @@ -5,7 +5,7 @@ import { // Deepcopy2DArray, } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2222.in" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2222.in" const chrs: string[] = ['β—‹', 'β–“', 'β–’', '#']//, 'x', '✲', '✳', '✡', '✢', '✻', '✼'] const chr: string = chrs[Math.floor(Math.random() * chrs.length)] diff --git a/src/includes/Aoc2223.tsx b/src/includes/Aoc2223.tsx index 8da4eff..cc86938 100644 --- a/src/includes/Aoc2223.tsx +++ b/src/includes/Aoc2223.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react" import { FetchData, LenNStrsFromLine } from "../helpers/Helpers" -const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/main/aoc/2223.1" +const URL: string = "https://raw.githubusercontent.com/nuoxoxo/in/aoc/main/2223.1" var Aoc2223 = () => { const [lines, setLines] = useState([])