From 36158de7a80b54e50ec235294b12e4ab698d4008 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sun, 31 Dec 2023 22:02:03 +0100 Subject: [PATCH 1/6] fix: replace en flag with discords en icon on imgur wikimedia is broken --- components/Header.tsx | 2 +- components/settings.tsx | 2 +- next.config.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/Header.tsx b/components/Header.tsx index 7c6a40d..8d139f5 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -20,7 +20,7 @@ export default function Header() { id: 1, name: "English", avatar: - "https://upload.wikimedia.org/wikipedia/en/thumb/6/6c/Us_flag_large_38_stars.png/1200px-Us_flag_large_38_stars.png", + "https://i.imgur.com/sACh65I.png", }, ]; const [selected, setSelected] = useState(countries[0]); diff --git a/components/settings.tsx b/components/settings.tsx index 7c705d5..fccb61b 100644 --- a/components/settings.tsx +++ b/components/settings.tsx @@ -16,7 +16,7 @@ export default function Settings(): ReactElement { id: 1, name: "English", avatar: - "https://upload.wikimedia.org/wikipedia/en/thumb/6/6c/Us_flag_large_38_stars.png/1200px-Us_flag_large_38_stars.png", + "https://i.imgur.com/sACh65I.png", }, ]; const [selected, setSelected] = useState(countries[0]); diff --git a/next.config.js b/next.config.js index 0b4a53c..4c5830e 100644 --- a/next.config.js +++ b/next.config.js @@ -8,7 +8,6 @@ const nextConfig = { }, images: { domains: [ - "upload.wikimedia.org", "cdn.discordapp.com", "i.imgur.com", "better-default-discord.netlify.app", From 174b6cd614ff7b3e78f3b8c6176f945f6b9ba5db Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sun, 31 Dec 2023 23:07:49 +0100 Subject: [PATCH 2/6] fix: we have pomelo names, you too peter --- pages/_app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index 77b3f4d..241ff1b 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -45,7 +45,7 @@ export default function MyApp({ Component, pageProps }: AppProps) { setLoading(false); }, 1000); console.log( - "%c🚀 Welcome to Discord Package 🚀\nPlease Report bugs to Peter_#4444", + "%c🚀 Welcome to Discord Package 🚀\nPlease Report bugs to @peterhanania", "font-size: 1.5rem; font-weight: bold; color: #fff; background: #000; padding: 0.5rem;" ); console.log( From 6d51ef3fe29c42cc1cc6678c8a4a6e0119d404b4 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sun, 31 Dec 2023 23:08:22 +0100 Subject: [PATCH 3/6] fix: react error wrap removals in proper if (object) remove close button for footer, it breaks if executed --- components/Data.tsx | 5 ++++- components/Upload.tsx | 24 +++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/components/Data.tsx b/components/Data.tsx index c0bdcec..d71bb05 100644 --- a/components/Data.tsx +++ b/components/Data.tsx @@ -11906,7 +11906,10 @@ export default function Data({ data, demo }: any): ReactElement { className="ml-2 p-1 hover:bg-[#2b2d31] hover:opacity-100 opacity-60 rounded-lg group-hover:block hidden w-8" onClick={(e) => { e.preventDefault(); - document.getElementById("popup__1")?.remove(); + const popup = document.getElementById("popup__1"); + if (popup) { + popup.remove(); + } }} > + + + + ); +} +/* +The close button breaks stuff
{ + onClick={(e) => { + e.preventDefault(); const madeBy = document.getElementById("made_by"); if (madeBy) { - madeBy.remove(); + try { + madeBy.remove(); + } + catch(e) + { + console.error(e); + } } }} > @@ -3501,8 +3515,4 @@ export default function Upload(): ReactElement {
- - - - ); -} +*/ \ No newline at end of file From 4978db2eea54936b90686a0a0e3a0302f90c6aee Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sun, 31 Dec 2023 23:16:04 +0100 Subject: [PATCH 4/6] fix: wording (#31) --- components/Data.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Data.tsx b/components/Data.tsx index d71bb05..75da2bd 100644 --- a/components/Data.tsx +++ b/components/Data.tsx @@ -11839,8 +11839,8 @@ export default function Data({ data, demo }: any): ReactElement { key={i} className="lg:inline-flex md:inline-flex lg:text-xl md:text-xl text-sm" > - - {data?.dataFile ? "They " : "You "} send ~ - {data?.statistics[t].day} Average Messages messages + - {data?.dataFile ? "They " : "You "} send + an average of {data?.statistics[t].day} messages per day, {data?.statistics[t].week} messages per week, {data?.statistics[t].month} messages per month, and {data?.statistics[t].year} messages per From 5d9ed69e6aa99753527a8f8416b2899d3d6307d4 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Mon, 1 Jan 2024 00:03:47 +0100 Subject: [PATCH 5/6] fix: more or less lightmode fix.. --- components/Header.tsx | 20 ++++++++++---------- components/settings.tsx | 20 ++++++++++---------- pages/styles/index.css | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+), 20 deletions(-) diff --git a/components/Header.tsx b/components/Header.tsx index 8d139f5..2830ad5 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -527,10 +527,10 @@ export default function Header() {
-
-
+
+

-
+
THEME
{}} checked={theme === "dark"} /> - +
{}} checked={theme === "light"} /> - +

Language @@ -718,23 +718,23 @@ export default function Header() { }} id={"debug"} type="checkbox" - className="w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" + className="w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" />

-
+