mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 16:05:00 -05:00
release: 0.3 (bug patches)
This commit is contained in:
parent
6ece1bc6a2
commit
3d2acbdd78
@ -10,6 +10,7 @@ import {
|
||||
BreadcrumbSeparator,
|
||||
} from "@/components/ui/breadcrumb";
|
||||
import { Server } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function Favorites() {
|
||||
return (
|
||||
|
||||
@ -57,7 +57,9 @@ export default function FavoritesView() {
|
||||
variant="secondary"
|
||||
className=" min-w-[128px] max-w-[328px] mb-2 h-[32px] max-md:hidden"
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(server.name + ".minehut.gg");
|
||||
navigator.clipboard.writeText(
|
||||
server.name + ".mshf.minehut.gg",
|
||||
);
|
||||
toast.success("Copied IP to clipboard");
|
||||
}}
|
||||
>
|
||||
|
||||
@ -35,7 +35,10 @@ export default function ServerCard({ b, motd }: any) {
|
||||
return (
|
||||
<ContextMenu>
|
||||
<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>
|
||||
<CardTitle className=" m-0">
|
||||
<IconDisplay server={b} /> {b.name}{" "}
|
||||
@ -57,7 +60,9 @@ export default function ServerCard({ b, motd }: any) {
|
||||
<Button
|
||||
variant="ghost"
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(b.name + ".minehut.gg");
|
||||
navigator.clipboard.writeText(
|
||||
b.name + ".mshf.minehut.gg",
|
||||
);
|
||||
toast.success("Copied IP to clipboard");
|
||||
}}
|
||||
>
|
||||
@ -122,7 +127,9 @@ export default function ServerCard({ b, motd }: any) {
|
||||
variant="secondary"
|
||||
className=" min-w-[128px] max-w-[328px] h-[32px] mt-2 ml-2 max-md:hidden"
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(b.name + ".minehut.gg");
|
||||
navigator.clipboard.writeText(
|
||||
b.name + ".mshf.minehut.gg",
|
||||
);
|
||||
toast.success("Copied IP to clipboard");
|
||||
}}
|
||||
>
|
||||
@ -143,7 +150,8 @@ export default function ServerCard({ b, motd }: any) {
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<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>
|
||||
</Tooltip>
|
||||
</>
|
||||
@ -151,7 +159,9 @@ export default function ServerCard({ b, motd }: any) {
|
||||
<ContextMenuContent>
|
||||
<ContextMenuItem
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(b.name + ".minehut.gg");
|
||||
navigator.clipboard.writeText(
|
||||
b.name + ".mshf.minehut.gg",
|
||||
);
|
||||
toast.success("Copied IP to clipboard");
|
||||
}}
|
||||
>
|
||||
@ -172,7 +182,9 @@ export default function ServerCard({ b, motd }: any) {
|
||||
</ContextMenu>
|
||||
</CardDescription>
|
||||
<CardContent>
|
||||
<div dangerouslySetInnerHTML={{ __html: motd }} />
|
||||
{b.name != "Skylegendz" && (
|
||||
<span dangerouslySetInnerHTML={{ __html: motd }} />
|
||||
)}
|
||||
</CardContent>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
@ -180,7 +192,7 @@ export default function ServerCard({ b, motd }: any) {
|
||||
<ContextMenuContent>
|
||||
<ContextMenuItem
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(b.name + ".minehut.gg");
|
||||
navigator.clipboard.writeText(b.name + ".mshf.minehut.gg");
|
||||
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) {
|
||||
@ -181,7 +181,6 @@ type Element = {
|
||||
};
|
||||
|
||||
function colorConvert(className: string) {
|
||||
console.log(className);
|
||||
const classes = className.split(" ");
|
||||
let result = "";
|
||||
classes.forEach((classUnique) => {
|
||||
|
||||
@ -1 +1 @@
|
||||
export const version = "b-0.21";
|
||||
export const version = "b-0.3";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user