From 6f85fafa6aebc4c07d60754d4ccc54d53b787ed9 Mon Sep 17 00:00:00 2001 From: Echo Date: Wed, 25 Sep 2024 22:30:18 -0400 Subject: [PATCH 1/2] Prettier formatting --- middleware/Masqr/index.js | 2 +- src/components/FaqCard.astro | 3 +- src/components/SchemaData.astro | 2 +- src/env.d.ts | 1 + src/layouts/Layout.astro | 103 ++++++++++++++++---------------- src/pages/404.astro | 2 +- src/pages/[lang]/settings.astro | 2 +- src/pages/game/[game].astro | 14 ++--- 8 files changed, 62 insertions(+), 67 deletions(-) diff --git a/middleware/Masqr/index.js b/middleware/Masqr/index.js index bba6fb6..fc3a555 100644 --- a/middleware/Masqr/index.js +++ b/middleware/Masqr/index.js @@ -12,7 +12,7 @@ export async function masqrCheck(config, htmlFile) { if (!req.cookies) { // Send an error - res.send("Request failed!") + res.send("Request failed!"); } if (req.cookies.authcheck) { diff --git a/src/components/FaqCard.astro b/src/components/FaqCard.astro index b24710b..998eb7f 100644 --- a/src/components/FaqCard.astro +++ b/src/components/FaqCard.astro @@ -7,7 +7,6 @@ const { large } = Astro.props; const classlist = "faq-card" + (large ? " faq-large" : ""); --- -
@@ -28,4 +27,4 @@ const classlist = "faq-card" + (large ? " faq-large" : ""); .faq-large { grid-column: span 2; } - \ No newline at end of file + diff --git a/src/components/SchemaData.astro b/src/components/SchemaData.astro index f003dda..7718889 100644 --- a/src/components/SchemaData.astro +++ b/src/components/SchemaData.astro @@ -9,4 +9,4 @@ "description": "Alu is a sleek web proxy supporting multiple standards of communication, and wide levels of customization. Similar to other proxies such as Holy Unblocker, Alu allows you to access blocked content while maintaining your privacy.", "keywords": "web proxy, unblocker, alu, alu proxy, privacy, customization, wisp protocol, holy unblocker, titanium network, definitely science, kazwire, radon games, nebula, nebula proxy, censorship, bypass censorship, anura" } - \ No newline at end of file + diff --git a/src/env.d.ts b/src/env.d.ts index 778b5ee..506b8db 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,3 +1,4 @@ +/// /// // ###> astro-i18n/type-generation ### diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 950518f..591af13 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -13,7 +13,8 @@ interface Props { const { title, optionalStylesheets } = Astro.props; -const DESCRIPTION = "Alu is a sleek web proxy supporting multiple standards of communication, and wide levels of customization. Similar to other proxies such as Holy Unblocker, Alu allows you to access blocked content while maintaining your privacy."; +const DESCRIPTION = + "Alu is a sleek web proxy supporting multiple standards of communication, and wide levels of customization. Similar to other proxies such as Holy Unblocker, Alu allows you to access blocked content while maintaining your privacy."; --- @@ -25,8 +26,8 @@ const DESCRIPTION = "Alu is a sleek web proxy supporting multiple standards of c - - + + @@ -59,7 +60,7 @@ const DESCRIPTION = "Alu is a sleek web proxy supporting multiple standards of c import IDBManager from "@components/ts/IDBManager"; instantiateAlu(); - + if (!window.idb) { const db = IDBManager.loadIDB("AluDB", 1); db.onupgradeneeded = () => { @@ -87,67 +88,63 @@ const DESCRIPTION = "Alu is a sleek web proxy supporting multiple standards of c