From 00ed3fe3b476d7c96024f6ae89513fc01da000e0 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Fri, 26 Jul 2024 23:12:13 -0500 Subject: [PATCH 1/3] Credit french translator, fix up dracula theme slightly, and mitigate a bug causing addThemeToDropdown to get called repeatedly. --- public/marketplace/dracula-theme/theme.css | 2 +- .../SettingsContent/CreditsTab.astro | 3 +++ .../SettingsContent/CustomizationTab.astro | 4 +-- src/components/SettingsContent/ProxyTab.astro | 10 +++---- src/components/ThemeLoader.astro | 26 +++++-------------- src/layouts/Layout.astro | 10 +++++++ src/pages/[lang]/settings.astro | 20 +++++--------- 7 files changed, 35 insertions(+), 40 deletions(-) diff --git a/public/marketplace/dracula-theme/theme.css b/public/marketplace/dracula-theme/theme.css index ed195d3..621993e 100644 --- a/public/marketplace/dracula-theme/theme.css +++ b/public/marketplace/dracula-theme/theme.css @@ -5,5 +5,5 @@ --accent-color-brighter: #2d2f3c; --text-color: #f8f8f2; --text-color-accent: #dddddd; - --dropdown-background-color: #6272a4; + --dropdown-background-color: #343b52; } \ No newline at end of file diff --git a/src/components/SettingsContent/CreditsTab.astro b/src/components/SettingsContent/CreditsTab.astro index 37c6418..9918914 100644 --- a/src/components/SettingsContent/CreditsTab.astro +++ b/src/components/SettingsContent/CreditsTab.astro @@ -21,6 +21,9 @@ const t = i18n.inferLangUseTranslations(Astro.url);

Rosé Pine Theme - Rosé Pine

+

+ French Translations - notboeing747 +

diff --git a/src/components/SettingsContent/CustomizationTab.astro b/src/components/SettingsContent/CustomizationTab.astro index 6a16c23..89a674f 100644 --- a/src/components/SettingsContent/CustomizationTab.astro +++ b/src/components/SettingsContent/CustomizationTab.astro @@ -19,11 +19,11 @@ const languageList = [
- +
- +
diff --git a/src/components/SettingsContent/ProxyTab.astro b/src/components/SettingsContent/ProxyTab.astro index 8bf4ad0..21f4ba2 100644 --- a/src/components/SettingsContent/ProxyTab.astro +++ b/src/components/SettingsContent/ProxyTab.astro @@ -38,19 +38,19 @@ const wispURLList = [
- +
- +
- +
- +
@@ -58,7 +58,7 @@ const wispURLList = [
- +
diff --git a/src/components/ThemeLoader.astro b/src/components/ThemeLoader.astro index eaf97d1..8eb17f9 100644 --- a/src/components/ThemeLoader.astro +++ b/src/components/ThemeLoader.astro @@ -1,14 +1,5 @@ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4ad0a2f..8d43bfe 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -55,6 +55,16 @@ const { title, optionalPreloads } = Astro.props; gtag("config", "G-P1JX4G9KSF"); + {title} diff --git a/src/pages/[lang]/settings.astro b/src/pages/[lang]/settings.astro index 9486355..f58fdd1 100644 --- a/src/pages/[lang]/settings.astro +++ b/src/pages/[lang]/settings.astro @@ -55,13 +55,6 @@ export function getStaticPaths() {
-