Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
wearrrrr 2024-02-25 18:07:30 -06:00
commit a9eda0a981
10 changed files with 91 additions and 17 deletions

View file

@ -9,6 +9,7 @@ import { build } from "astro";
import chalk from "chalk"; import chalk from "chalk";
import { existsSync } from "fs"; import { existsSync } from "fs";
import dotenv from "dotenv"; import dotenv from "dotenv";
import helmet from "helmet";
dotenv.config(); dotenv.config();
if (!existsSync("./dist")) build(); if (!existsSync("./dist")) build();
@ -47,6 +48,13 @@ app.use(
extended: true, extended: true,
}) })
); );
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");
}
next();
});
app.use("/", express.static("dist/client/")); app.use("/", express.static("dist/client/"));
app.get("/search", async (req, res) => { app.get("/search", async (req, res) => {
try { try {

9
package-lock.json generated
View file

@ -16,6 +16,7 @@
"compression": "^1.7.4", "compression": "^1.7.4",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"express": "^4.18.2", "express": "^4.18.2",
"helmet": "^7.1.0",
"npm": "^10.2.5", "npm": "^10.2.5",
"path": "^0.12.7", "path": "^0.12.7",
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz", "rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
@ -3465,6 +3466,14 @@
"resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-3.3.0.tgz", "resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-3.3.0.tgz",
"integrity": "sha512-5e57etwBpNcDc0b6KCVWEh/Ro063OxPvzVimUdM0/tsYM/T7Hfy3kknIGj78SFTOhNd8AZY41U8mOHoO4LzmIQ==" "integrity": "sha512-5e57etwBpNcDc0b6KCVWEh/Ro063OxPvzVimUdM0/tsYM/T7Hfy3kknIGj78SFTOhNd8AZY41U8mOHoO4LzmIQ=="
}, },
"node_modules/helmet": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/helmet/-/helmet-7.1.0.tgz",
"integrity": "sha512-g+HZqgfbpXdCkme/Cd/mZkV0aV3BZZZSugecH03kl38m/Kmdx8jKjBikpDj2cr+Iynv4KpYEviojNdTJActJAg==",
"engines": {
"node": ">=16.0.0"
}
},
"node_modules/html-escaper": { "node_modules/html-escaper": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",

View file

@ -17,6 +17,7 @@
"compression": "^1.7.4", "compression": "^1.7.4",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"express": "^4.18.2", "express": "^4.18.2",
"helmet": "^7.1.0",
"npm": "^10.2.5", "npm": "^10.2.5",
"path": "^0.12.7", "path": "^0.12.7",
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz", "rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",

@ -1 +1 @@
Subproject commit 11287d0a834c672a55d10164dbfefe9ee1922d3d Subproject commit 8793db1e2fe64cae8936c00bcd4f333f158f6ebd

View file

@ -63,12 +63,14 @@
iframe.style.opacity = 1; iframe.style.opacity = 1;
topbar.style.opacity = 1; topbar.style.opacity = 1;
topbar.style.pointerEvents = "auto"; topbar.style.pointerEvents = "auto";
document.body.style.overflow = "hidden";
closeButton.onclick = () => { closeButton.onclick = () => {
iframe.style.opacity = 0; iframe.style.opacity = 0;
topbar.style.opacity = 0; topbar.style.opacity = 0;
iframe.style.pointerEvents = "none"; iframe.style.pointerEvents = "none";
topbar.style.pointerEvents = "none"; topbar.style.pointerEvents = "none";
document.body.style.overflow = "auto";
iframe.removeEventListener("load", boundIFrameLoad); iframe.removeEventListener("load", boundIFrameLoad);
setTimeout(() => { setTimeout(() => {

View file

@ -385,6 +385,7 @@ const t = useTranslations(lang);
gap: 20px; gap: 20px;
position: relative; position: relative;
z-index: 2; z-index: 2;
flex-wrap: wrap;
} }
.content-setting-header { .content-setting-header {
color: var(--text-color); color: var(--text-color);
@ -460,6 +461,38 @@ const t = useTranslations(lang);
position: relative; position: relative;
gap: 25px; gap: 25px;
} }
@media (max-width: 880px) {
.popup {
flex-direction: column;
min-height: 80%;
max-height: 80%;
}
.tabs {
flex-direction: row;
max-width: 100%;
max-height: 70px;
min-height: 70px;
gap: 0;
align-items: center;
}
label {
width: auto;
margin-left: 0;
}
}
@media (max-width: 500px) {
label {
font-size: 20px;
}
}
@media (max-width: 375px) {
label {
font-size: 18px;
}
}
.setting {
width: 140px;
}
.marker { .marker {
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -484,16 +517,18 @@ const t = useTranslations(lang);
height: calc(50% - 72px); height: calc(50% - 72px);
border-radius: 0 32px 0 0; border-radius: 0 32px 0 0;
} }
#setting-tab-proxy:checked ~ .marker { @media (min-width: 880px) {
transform: translateY(0%); #setting-tab-proxy:checked ~ .marker {
} transform: translateY(0%);
#setting-tab-customization:checked ~ .marker { }
transform: translateY(13.5%); #setting-tab-customization:checked ~ .marker {
} transform: translateY(13.5%);
#setting-tab-cloaking:checked ~ .marker { }
transform: translateY(27%); #setting-tab-cloaking:checked ~ .marker {
} transform: translateY(27%);
#setting-tab-credits:checked ~ .marker { }
transform: translateY(41%); #setting-tab-credits:checked ~ .marker {
transform: translateY(41%);
}
} }
</style> </style>

View file

@ -17,6 +17,12 @@
"faq.whyIsAluSoSlow": "Why is Alu so slow?", "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.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.brand": "Alu",
"footer.madeWithLove": "Made with ❤️ by wearr", "footer.madeWithLove": "Made with ❤️ by wearr",
"footer.poweredBy": "Powered by Ultraviolet", "footer.poweredBy": "Powered by Ultraviolet",

View file

@ -18,6 +18,11 @@
"faq.whyIsAluSoSlow": "なぜアルーは遅いのですか?", "faq.whyIsAluSoSlow": "なぜアルーは遅いのですか?",
"faq.whyIsAluSoSlow.answer": "アルーは、プロキシを使用してウェブサイトにアクセスするため、ウェブサイトの読み込みに時間がかかることがあります。また、アルーはまだ開発中のため、パフォーマンスが低いことがあります。", "faq.whyIsAluSoSlow.answer": "アルーは、プロキシを使用してウェブサイトにアクセスするため、ウェブサイトの読み込みに時間がかかることがあります。また、アルーはまだ開発中のため、パフォーマンスが低いことがあります。",
"faq.contributeToAlu": "アルーの発展にどのように貢献できますか?",
"faq.contributeToAlu.answer.segment1": "アルーの言葉を広めることは素晴らしいスタートですが、Alu が本当に好きで、プライベート リンクが必要な場合は、Patreon を通じて私をサポートすることを検討してください。",
"faq.contributeToAlu.answer.patreonLinkText": "ここで私をサポートできます",
"faq.contributeToAlu.answer.segment2": "アルーを素晴らしいものにするのにご協力いただき、ありがとうございます。",
"footer.brand": "アルー", "footer.brand": "アルー",
"footer.madeWithLove": "wearrによる❤で作られました", "footer.madeWithLove": "wearrによる❤で作られました",
"footer.poweredBy": "「ウルトラバイオレット」による駆動", "footer.poweredBy": "「ウルトラバイオレット」による駆動",

View file

@ -214,6 +214,11 @@
"image": "/games/sort-the-court/logo.jpg", "image": "/games/sort-the-court/logo.jpg",
"slug": "sort-the-court" "slug": "sort-the-court"
}, },
"suika-combination": {
"name": "Suika Combination",
"image": "/games/suika-combination/logo.webp",
"slug": "suika-combination"
},
"superhot": { "superhot": {
"name": "Superhot", "name": "Superhot",
"image": "/games/superhot/logo.png", "image": "/games/superhot/logo.png",

View file

@ -43,12 +43,15 @@ export function getStaticPaths() {
<p>{t("faq.whyIsAluSoSlow.answer")}</p> <p>{t("faq.whyIsAluSoSlow.answer")}</p>
</div> </div>
<div class="faq-card faq-large"> <div class="faq-card faq-large">
<h2>How can I contribute to the development of Alu?</h2> <h2>{t("faq.contributeToAlu")}</h2>
<p> <p>
Spreading the word of Alu is a great start, but if you really enjoy Alu, and want private {t("faq.contributeToAlu.answer.segment1")}
links, consider supporting me through Patreon! You can support me <Link
<Link href="https://www.patreon.com/wearr/membership" newTab content="Here!" />, thank you href="https://www.patreon.com/wearr"
for helping to make Alu great! newTab
content={t("faq.contributeToAlu.answer.patreonLinkText")}
/>
{t("faq.contributeToAlu.answer.segment2")}
</p> </p>
</div> </div>
</div> </div>