fix
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 1m26s

This commit is contained in:
Lee 2024-07-30 21:32:54 +01:00
parent 94b81e0d69
commit d3886e4a39
2 changed files with 2761 additions and 3750 deletions

6344
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

@ -1,13 +1,13 @@
import { Card } from "@/app/components/card"; import { Colors } from "@/app/common/colors";
import { generateEmbed } from "@/app/common/embed"; import { generateEmbed } from "@/app/common/embed";
import { capitalizeFirstLetter } from "@/app/common/string-utils"; import { capitalizeFirstLetter } from "@/app/common/string-utils";
import { cn } from "@/app/common/utils"; import { cn } from "@/app/common/utils";
import { Card } from "@/app/components/card";
import { Title } from "@/app/components/title";
import { CachedEndpointStatus, getMojangEndpointStatus, Status } from "mcutils-library"; import { CachedEndpointStatus, getMojangEndpointStatus, Status } from "mcutils-library";
import { Metadata, Viewport } from "next"; import { Metadata, Viewport } from "next";
import Link from "next/link"; import Link from "next/link";
import { ReactElement } from "react"; import { ReactElement } from "react";
import { Colors } from "@/app/common/colors";
import { Title } from "@/app/components/title";
/** /**
* Force the page to be dynamic, so it will be regenerated on every request * Force the page to be dynamic, so it will be regenerated on every request
@ -89,20 +89,19 @@ export default async function Page(): Promise<ReactElement> {
> >
{endpoints.length == 0 && <p>Unable to fetch endpoint statuses</p>} {endpoints.length == 0 && <p>Unable to fetch endpoint statuses</p>}
{endpoints.length > 0 && {endpoints.length > 0 &&
endpoints.map((endpoint: CachedEndpointStatus) => { endpoints.map((server: CachedEndpointStatus) => {
const { name, hostname, status } = endpoint; const { name, endpoint, status } = server;
const url = `https://${hostname}`;
return ( return (
<div key={name} className="flex flex-row justify-between pt-2"> <div key={name} className="flex flex-row justify-between pt-2">
<div className="flex flex-col leading-[1.5rem]"> <div className="flex flex-col leading-[1.5rem]">
<p className="font-semibold">{name}</p> <p className="font-semibold">{name}</p>
<Link <Link
href={url} href={endpoint}
className="text-sm text-primary hover:opacity-75 transition-all transform-gpu" className="text-sm text-primary hover:opacity-75 transition-all transform-gpu"
target="_blank" target="_blank"
> >
<p>{url}</p> <p>{endpoint}</p>
</Link> </Link>
</div> </div>
<div className={cn("flex items-center font-semibold", getColor(status))}> <div className={cn("flex items-center font-semibold", getColor(status))}>