Format code for the 4th time
This commit is contained in:
parent
82f4bd1c63
commit
8c895090c8
8 changed files with 126 additions and 118 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
version: '3'
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nebula:
|
nebula:
|
||||||
|
|
|
||||||
14
index.html
14
index.html
|
|
@ -13,14 +13,17 @@
|
||||||
<script>
|
<script>
|
||||||
if ("serviceWorker" in navigator) {
|
if ("serviceWorker" in navigator) {
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
navigator.serviceWorker.register("/sw.js", {
|
navigator.serviceWorker
|
||||||
|
.register("/sw.js", {
|
||||||
scope: "/~/"
|
scope: "/~/"
|
||||||
}).then(() => {
|
})
|
||||||
|
.then(() => {
|
||||||
console.log("Service Worker Registered");
|
console.log("Service Worker Registered");
|
||||||
try {
|
try {
|
||||||
window.setTransport();
|
window.setTransport();
|
||||||
} catch {}
|
} catch {}
|
||||||
}).catch((err) => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
console.error("Service Worker Failed to Register", err);
|
console.error("Service Worker Failed to Register", err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -39,7 +42,10 @@
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
try {
|
try {
|
||||||
if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) {
|
if (
|
||||||
|
!localStorage["auth"] &&
|
||||||
|
new URL(document.all.rcheck.href).password
|
||||||
|
) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
localStorage["auth"] = 1;
|
localStorage["auth"] = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const CloakPreset = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onClick={cloak}
|
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
|
<img
|
||||||
src={props.faviconUrl === "none" ? "/logo.png" : props.faviconUrl}
|
src={props.faviconUrl === "none" ? "/logo.png" : props.faviconUrl}
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,13 @@ export function NotFound() {
|
||||||
<div className="flex h-full flex-col items-center justify-center text-center">
|
<div className="flex h-full flex-col items-center justify-center text-center">
|
||||||
<img src="/404.png" className="h-72"></img>
|
<img src="/404.png" className="h-72"></img>
|
||||||
<div className="flex flex-col items-center p-6">
|
<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>
|
<span className="font-roboto text-3xl text-text-color">404</span>
|
||||||
</div>
|
</div>
|
||||||
<Link href="/">
|
<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")}
|
{t("404.return")}
|
||||||
</button>
|
</button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue