release: 0.3 (bug patches)

This commit is contained in:
dvelo 2024-07-23 22:07:54 -05:00
parent 6ece1bc6a2
commit 3d2acbdd78
6 changed files with 26 additions and 12 deletions

@ -10,6 +10,7 @@ import {
BreadcrumbSeparator, BreadcrumbSeparator,
} from "@/components/ui/breadcrumb"; } from "@/components/ui/breadcrumb";
import { Server } from "lucide-react"; import { Server } from "lucide-react";
import Link from "next/link";
export default function Favorites() { export default function Favorites() {
return ( return (

@ -57,7 +57,9 @@ export default function FavoritesView() {
variant="secondary" variant="secondary"
className=" min-w-[128px] max-w-[328px] mb-2 h-[32px] max-md:hidden" className=" min-w-[128px] max-w-[328px] mb-2 h-[32px] max-md:hidden"
onClick={() => { onClick={() => {
navigator.clipboard.writeText(server.name + ".minehut.gg"); navigator.clipboard.writeText(
server.name + ".mshf.minehut.gg",
);
toast.success("Copied IP to clipboard"); toast.success("Copied IP to clipboard");
}} }}
> >

@ -35,7 +35,10 @@ export default function ServerCard({ b, motd }: any) {
return ( return (
<ContextMenu> <ContextMenu>
<ContextMenuTrigger> <ContextMenuTrigger>
<Card key={b.name} className=" mb-4 flex items-center"> <Card
key={b.name}
className="min-h-[450px] max-h-[450px] mb-4 flex items-start"
>
<CardHeader> <CardHeader>
<CardTitle className=" m-0"> <CardTitle className=" m-0">
<IconDisplay server={b} /> {b.name}{" "} <IconDisplay server={b} /> {b.name}{" "}
@ -57,7 +60,9 @@ export default function ServerCard({ b, motd }: any) {
<Button <Button
variant="ghost" variant="ghost"
onClick={() => { onClick={() => {
navigator.clipboard.writeText(b.name + ".minehut.gg"); navigator.clipboard.writeText(
b.name + ".mshf.minehut.gg",
);
toast.success("Copied IP to clipboard"); toast.success("Copied IP to clipboard");
}} }}
> >
@ -122,7 +127,9 @@ export default function ServerCard({ b, motd }: any) {
variant="secondary" variant="secondary"
className=" min-w-[128px] max-w-[328px] h-[32px] mt-2 ml-2 max-md:hidden" className=" min-w-[128px] max-w-[328px] h-[32px] mt-2 ml-2 max-md:hidden"
onClick={() => { onClick={() => {
navigator.clipboard.writeText(b.name + ".minehut.gg"); navigator.clipboard.writeText(
b.name + ".mshf.minehut.gg",
);
toast.success("Copied IP to clipboard"); toast.success("Copied IP to clipboard");
}} }}
> >
@ -143,7 +150,8 @@ export default function ServerCard({ b, motd }: any) {
</Button> </Button>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent> <TooltipContent>
Open up the server page to see more information about the server Open up the server page to see more information about
the server
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
</> </>
@ -151,7 +159,9 @@ export default function ServerCard({ b, motd }: any) {
<ContextMenuContent> <ContextMenuContent>
<ContextMenuItem <ContextMenuItem
onClick={() => { onClick={() => {
navigator.clipboard.writeText(b.name + ".minehut.gg"); navigator.clipboard.writeText(
b.name + ".mshf.minehut.gg",
);
toast.success("Copied IP to clipboard"); toast.success("Copied IP to clipboard");
}} }}
> >
@ -172,7 +182,9 @@ export default function ServerCard({ b, motd }: any) {
</ContextMenu> </ContextMenu>
</CardDescription> </CardDescription>
<CardContent> <CardContent>
<div dangerouslySetInnerHTML={{ __html: motd }} /> {b.name != "Skylegendz" && (
<span dangerouslySetInnerHTML={{ __html: motd }} />
)}
</CardContent> </CardContent>
</CardHeader> </CardHeader>
</Card> </Card>
@ -180,7 +192,7 @@ export default function ServerCard({ b, motd }: any) {
<ContextMenuContent> <ContextMenuContent>
<ContextMenuItem <ContextMenuItem
onClick={() => { onClick={() => {
navigator.clipboard.writeText(b.name + ".minehut.gg"); navigator.clipboard.writeText(b.name + ".mshf.minehut.gg");
toast.success("Copied IP to clipboard"); toast.success("Copied IP to clipboard");
}} }}
> >

@ -104,7 +104,7 @@ export default function parseToHTML(m: string, tw?: boolean): Promise<string> {
} }
}); });
} }
g("<div>" + allHTML + "</div>"); g("<span>" + allHTML + "</span>");
} }
}); });
if (!j.ok) { if (!j.ok) {
@ -181,7 +181,6 @@ type Element = {
}; };
function colorConvert(className: string) { function colorConvert(className: string) {
console.log(className);
const classes = className.split(" "); const classes = className.split(" ");
let result = ""; let result = "";
classes.forEach((classUnique) => { classes.forEach((classUnique) => {

@ -1 +1 @@
export const version = "b-0.21"; export const version = "b-0.3";