move common dir
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m9s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m9s
This commit is contained in:
parent
6356be7ac3
commit
18a782243e
@ -1,7 +1,7 @@
|
|||||||
import { getDocumentation } from "@/common/documentation";
|
import { getDocumentation } from "@/app/common/documentation";
|
||||||
import { CustomMDX } from "@/app/components/mx-components";
|
import { CustomMDX } from "@/app/components/mx-components";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { generateEmbed } from "@/common/embed";
|
import { generateEmbed } from "@/app/common/embed";
|
||||||
|
|
||||||
type DocumentationPageParams = {
|
type DocumentationPageParams = {
|
||||||
params: {
|
params: {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { Card } from "@/app/components/card";
|
import { Card } from "@/app/components/card";
|
||||||
import { generateEmbed } from "@/common/embed";
|
import { generateEmbed } from "@/app/common/embed";
|
||||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
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 "@/common/colors";
|
import { Colors } from "@/app/common/colors";
|
||||||
import { Title } from "@/app/components/title";
|
import { Title } from "@/app/components/title";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,9 +4,9 @@ import { ErrorCard } from "@/app/components/error-card";
|
|||||||
import { LookupPlayer } from "@/app/components/player/lookup-player";
|
import { LookupPlayer } from "@/app/components/player/lookup-player";
|
||||||
import { PlayerView } from "@/app/components/player/player-view";
|
import { PlayerView } from "@/app/components/player/player-view";
|
||||||
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
||||||
import { Colors } from "@/common/colors";
|
import { Colors } from "@/app/common/colors";
|
||||||
import { generateEmbed } from "@/common/embed";
|
import { generateEmbed } from "@/app/common/embed";
|
||||||
import { isValidPlayer } from "@/common/player";
|
import { isValidPlayer } from "@/app/common/player";
|
||||||
import config from "@root/config.json";
|
import config from "@root/config.json";
|
||||||
import { CachedPlayer, getPlayer, McUtilsAPIError } from "mcutils-library";
|
import { CachedPlayer, getPlayer, McUtilsAPIError } from "mcutils-library";
|
||||||
import { Metadata, Viewport } from "next";
|
import { Metadata, Viewport } from "next";
|
||||||
|
@ -3,11 +3,11 @@ import { ErrorCard } from "@/app/components/error-card";
|
|||||||
import { LookupServer } from "@/app/components/server/lookup-server";
|
import { LookupServer } from "@/app/components/server/lookup-server";
|
||||||
import { ServerView } from "@/app/components/server/server-view";
|
import { ServerView } from "@/app/components/server/server-view";
|
||||||
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
||||||
import { Colors } from "@/common/colors";
|
import { Colors } from "@/app/common/colors";
|
||||||
import { generateEmbed } from "@/common/embed";
|
import { generateEmbed } from "@/app/common/embed";
|
||||||
import { formatNumber } from "@/common/number-utils";
|
import { formatNumber } from "@/app/common/number-utils";
|
||||||
import { isValidServer } from "@/common/server";
|
import { isValidServer } from "@/app/common/server";
|
||||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||||
import config from "@root/config.json";
|
import config from "@root/config.json";
|
||||||
import {
|
import {
|
||||||
CachedBedrockMinecraftServer,
|
CachedBedrockMinecraftServer,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Card as ShadcnCard, CardContent } from "@/app/components/ui/card";
|
import { Card as ShadcnCard, CardContent } from "@/app/components/ui/card";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
import { type ClassValue } from "clsx";
|
import { type ClassValue } from "clsx";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useToast } from "@/common/use-toast";
|
import { useToast } from "@/app/common/use-toast";
|
||||||
import copy from "clipboard-copy";
|
import copy from "clipboard-copy";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import { MDXRemote } from "remote-mdx/rsc";
|
import { MDXRemote } from "remote-mdx/rsc";
|
||||||
import { CodeHighlighter } from "@/app/components/code-highlighter";
|
import { CodeHighlighter } from "@/app/components/code-highlighter";
|
||||||
import { Separator } from "@/app/components/ui/separator";
|
import { Separator } from "@/app/components/ui/separator";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import { ReactElement } from "react";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a heading component.
|
* Create a heading component.
|
||||||
@ -50,6 +51,6 @@ const components = {
|
|||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export function CustomMDX(props: any) {
|
export function CustomMDX(props: any): ReactElement {
|
||||||
return <MDXRemote {...props} components={{ ...components, ...(props.components || {}) }} />;
|
return <MDXRemote {...props} components={{ ...components, ...(props.components || {}) }} />;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import Logo from "./logo";
|
|||||||
import { ToggleThemeButton } from "./theme-toggle-button";
|
import { ToggleThemeButton } from "./theme-toggle-button";
|
||||||
import { GithubStar } from "@/app/components/github-star";
|
import { GithubStar } from "@/app/components/github-star";
|
||||||
import { Card } from "@/app/components/card";
|
import { Card } from "@/app/components/card";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
type Page = {
|
type Page = {
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useToast } from "@/common/use-toast";
|
import { useToast } from "@/app/common/use-toast";
|
||||||
import { getPlayer } from "mcutils-library";
|
import { getPlayer } from "mcutils-library";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { ReactElement, useState } from "react";
|
import { ReactElement, useState } from "react";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @next/next/no-img-element */
|
/* eslint-disable @next/next/no-img-element */
|
||||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||||
import { SkinPart } from "mcutils-library";
|
import { SkinPart } from "mcutils-library";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||||
import { useToast } from "@/common/use-toast";
|
import { useToast } from "@/app/common/use-toast";
|
||||||
import { getServer, ServerPlatform } from "mcutils-library";
|
import { getServer, ServerPlatform } from "mcutils-library";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { ReactElement, useState } from "react";
|
import { ReactElement, useState } from "react";
|
||||||
|
@ -4,7 +4,7 @@ import { ReactElement } from "react";
|
|||||||
import { CodeDialog } from "../code-dialog";
|
import { CodeDialog } from "../code-dialog";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import config from "@root/config.json";
|
import config from "@root/config.json";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
import { minecraft } from "@/app/font/fonts";
|
import { minecraft } from "@/app/font/fonts";
|
||||||
import { CacheInformation } from "@/app/components/cache-information";
|
import { CacheInformation } from "@/app/components/cache-information";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|||||||
import { cva, type VariantProps } from "class-variance-authority";
|
import { cva, type VariantProps } from "class-variance-authority";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const buttonVariants = cva(
|
const buttonVariants = cva(
|
||||||
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
|
const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
|
||||||
<div ref={ref} className={cn("rounded-lg border bg-card text-card-foreground shadow-sm", className)} {...props} />
|
<div ref={ref} className={cn("rounded-lg border bg-card text-card-foreground shadow-sm", className)} {...props} />
|
||||||
|
@ -4,7 +4,7 @@ import * as React from "react";
|
|||||||
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
||||||
import { Check, ChevronRight, Circle } from "lucide-react";
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const ContextMenu = ContextMenuPrimitive.Root;
|
const ContextMenu = ContextMenuPrimitive.Root;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const Dialog = DialogPrimitive.Root;
|
const Dialog = DialogPrimitive.Root;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import * as React from "react";
|
|||||||
import * as LabelPrimitive from "@radix-ui/react-label";
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
||||||
import { cva, type VariantProps } from "class-variance-authority";
|
import { cva, type VariantProps } from "class-variance-authority";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const Popover = PopoverPrimitive.Root;
|
const Popover = PopoverPrimitive.Root;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import * as React from "react";
|
|||||||
import * as SelectPrimitive from "@radix-ui/react-select";
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
||||||
import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const Select = SelectPrimitive.Root;
|
const Select = SelectPrimitive.Root;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const Separator = React.forwardRef<
|
const Separator = React.forwardRef<
|
||||||
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
|
const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
|
||||||
|
@ -5,7 +5,7 @@ import * as ToastPrimitives from "@radix-ui/react-toast";
|
|||||||
import { cva, type VariantProps } from "class-variance-authority";
|
import { cva, type VariantProps } from "class-variance-authority";
|
||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const ToastProvider = ToastPrimitives.Provider;
|
const ToastProvider = ToastPrimitives.Provider;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
ToastTitle,
|
ToastTitle,
|
||||||
ToastViewport,
|
ToastViewport,
|
||||||
} from "@/app/components/ui/toast";
|
} from "@/app/components/ui/toast";
|
||||||
import { useToast } from "@/common/use-toast";
|
import { useToast } from "@/app/common/use-toast";
|
||||||
|
|
||||||
export function Toaster() {
|
export function Toaster() {
|
||||||
const { toasts } = useToast();
|
const { toasts } = useToast();
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
||||||
|
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/app/common/utils";
|
||||||
|
|
||||||
const TooltipProvider = TooltipPrimitive.Provider;
|
const TooltipProvider = TooltipPrimitive.Provider;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user