From c5a2b2563b2d06d9720f6ea416a1e792d7bc83e0 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Fri, 23 Feb 2024 14:55:24 -0600 Subject: [PATCH] Fix body overflow issues and add some forgotten i18n keys. --- index.js | 2 +- src/components/ProxyRegistrar.astro | 2 ++ src/components/SettingsTablist.astro | 4 ++-- src/i18n/en.json | 6 ++++++ src/i18n/jp.json | 5 +++++ src/pages/[lang]/index.astro | 13 ++++++++----- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index bf253f7..5988670 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,7 @@ app.use( extended: true, }) ); -app.use(function(req, res, next) { +app.use(function (req, res, next) { if (req.originalUrl.includes("/games")) { res.header("Cross-Origin-Embedder-Policy", "require-corp"); res.header("Cross-Origin-Opener-Policy", "same-origin"); diff --git a/src/components/ProxyRegistrar.astro b/src/components/ProxyRegistrar.astro index af7571a..3f78713 100644 --- a/src/components/ProxyRegistrar.astro +++ b/src/components/ProxyRegistrar.astro @@ -58,12 +58,14 @@ iframe.style.opacity = 1; topbar.style.opacity = 1; topbar.style.pointerEvents = "auto"; + document.body.style.overflow = "hidden"; closeButton.onclick = () => { iframe.style.opacity = 0; topbar.style.opacity = 0; iframe.style.pointerEvents = "none"; topbar.style.pointerEvents = "none"; + document.body.style.overflow = "auto"; iframe.removeEventListener("load", boundIFrameLoad); setTimeout(() => { diff --git a/src/components/SettingsTablist.astro b/src/components/SettingsTablist.astro index 2e89718..e1eb309 100644 --- a/src/components/SettingsTablist.astro +++ b/src/components/SettingsTablist.astro @@ -491,7 +491,7 @@ const t = useTranslations(lang); } } .setting { - width: 140px + width: 140px; } .marker { position: absolute; @@ -531,4 +531,4 @@ const t = useTranslations(lang); transform: translateY(41%); } } - \ No newline at end of file + diff --git a/src/i18n/en.json b/src/i18n/en.json index 88edbf6..0b5c433 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -17,6 +17,12 @@ "faq.whyIsAluSoSlow": "Why is Alu so slow?", "faq.whyIsAluSoSlow.answer": "This could be for a number of reasons, but it is most likely due to the proxy you are using. If you are far away from where Alu is hosted, it will take longer for the request to be sent and received. If the proxy you are using is congested with traffic, it will also be slower.", + + "faq.contributeToAlu": "How can I contribute to Alu?", + "faq.contributeToAlu.answer.segment1": "Spreading the word of Alu is a great start, but if you really enjoy Alu, and want private links, consider supporting me through Patreon!", + "faq.contributeToAlu.answer.patreonLinkText": "You can support me here!", + "faq.contributeToAlu.answer.segment2": "Thank you for helping to make Alu great!", + "footer.brand": "Alu", "footer.madeWithLove": "Made with ❤️ by wearr", "footer.poweredBy": "Powered by Ultraviolet", diff --git a/src/i18n/jp.json b/src/i18n/jp.json index c156819..5dd1811 100644 --- a/src/i18n/jp.json +++ b/src/i18n/jp.json @@ -18,6 +18,11 @@ "faq.whyIsAluSoSlow": "なぜアルーは遅いのですか?", "faq.whyIsAluSoSlow.answer": "アルーは、プロキシを使用してウェブサイトにアクセスするため、ウェブサイトの読み込みに時間がかかることがあります。また、アルーはまだ開発中のため、パフォーマンスが低いことがあります。", + "faq.contributeToAlu": "アルーの発展にどのように貢献できますか?", + "faq.contributeToAlu.answer.segment1": "アルーの言葉を広めることは素晴らしいスタートですが、Alu が本当に好きで、プライベート リンクが必要な場合は、Patreon を通じて私をサポートすることを検討してください。", + "faq.contributeToAlu.answer.patreonLinkText": "ここで私をサポートできます", + "faq.contributeToAlu.answer.segment2": "アルーを素晴らしいものにするのにご協力いただき、ありがとうございます。", + "footer.brand": "アルー", "footer.madeWithLove": "wearrによる❤️で作られました", "footer.poweredBy": "「ウルトラバイオレット」による駆動", diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index be17956..867acc7 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -43,12 +43,15 @@ export function getStaticPaths() {

{t("faq.whyIsAluSoSlow.answer")}

-

How can I contribute to the development of Alu?

+

{t("faq.contributeToAlu")}

- Spreading the word of Alu is a great start, but if you really enjoy Alu, and want private - links, consider supporting me through Patreon! You can support me - , thank you - for helping to make Alu great! + {t("faq.contributeToAlu.answer.segment1")} + + {t("faq.contributeToAlu.answer.segment2")}