Format code for the 4th time

This commit is contained in:
MotorTruck1221 2024-03-21 00:31:47 -06:00
parent 82f4bd1c63
commit 8c895090c8
No known key found for this signature in database
GPG key ID: 06901A625432AC21
8 changed files with 126 additions and 118 deletions

View file

@ -1,4 +1,4 @@
version: '3'
version: "3"
services:
nebula:

View file

@ -13,14 +13,17 @@
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js", {
navigator.serviceWorker
.register("/sw.js", {
scope: "/~/"
}).then(() => {
})
.then(() => {
console.log("Service Worker Registered");
try {
window.setTransport();
} catch {}
}).catch((err) => {
})
.catch((err) => {
console.error("Service Worker Failed to Register", err);
});
});
@ -39,7 +42,10 @@
</script>
<script>
try {
if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) {
if (
!localStorage["auth"] &&
new URL(document.all.rcheck.href).password
) {
window.location.reload();
localStorage["auth"] = 1;
}

View file

@ -17,7 +17,7 @@ const CloakPreset = (props: Props) => {
return (
<div
onClick={cloak}
className="flex cursor-pointer rounded-full w-16 h-16 border border-input-border-color bg-lighter"
className="flex h-16 w-16 cursor-pointer rounded-full border border-input-border-color bg-lighter"
>
<img
src={props.faviconUrl === "none" ? "/logo.png" : props.faviconUrl}

View file

@ -16,11 +16,13 @@ export function NotFound() {
<div className="flex h-full flex-col items-center justify-center text-center">
<img src="/404.png" className="h-72"></img>
<div className="flex flex-col items-center p-6">
<p className="font-roboto text-4xl text-text-color font-bold">{t("404.text")}</p>
<p className="font-roboto text-4xl font-bold text-text-color">
{t("404.text")}
</p>
<span className="font-roboto text-3xl text-text-color">404</span>
</div>
<Link href="/">
<button className="font-roboto h-14 w-44 rounded-2xl text-text-color border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none">
<button className="font-roboto h-14 w-44 rounded-2xl border border-input-border-color bg-input p-2 text-center text-xl text-text-color placeholder:text-input-text focus:outline-none">
{t("404.return")}
</button>
</Link>