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 { Metadata } from "next";
|
||||
import { generateEmbed } from "@/common/embed";
|
||||
import { generateEmbed } from "@/app/common/embed";
|
||||
|
||||
type DocumentationPageParams = {
|
||||
params: {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { Card } from "@/app/components/card";
|
||||
import { generateEmbed } from "@/common/embed";
|
||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
||||
import { cn } from "@/common/utils";
|
||||
import { generateEmbed } from "@/app/common/embed";
|
||||
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
import { CachedEndpointStatus, getMojangEndpointStatus, Status } from "mcutils-library";
|
||||
import { Metadata, Viewport } from "next";
|
||||
import Link from "next/link";
|
||||
import { ReactElement } from "react";
|
||||
import { Colors } from "@/common/colors";
|
||||
import { Colors } from "@/app/common/colors";
|
||||
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 { PlayerView } from "@/app/components/player/player-view";
|
||||
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
||||
import { Colors } from "@/common/colors";
|
||||
import { generateEmbed } from "@/common/embed";
|
||||
import { isValidPlayer } from "@/common/player";
|
||||
import { Colors } from "@/app/common/colors";
|
||||
import { generateEmbed } from "@/app/common/embed";
|
||||
import { isValidPlayer } from "@/app/common/player";
|
||||
import config from "@root/config.json";
|
||||
import { CachedPlayer, getPlayer, McUtilsAPIError } from "mcutils-library";
|
||||
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 { ServerView } from "@/app/components/server/server-view";
|
||||
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
||||
import { Colors } from "@/common/colors";
|
||||
import { generateEmbed } from "@/common/embed";
|
||||
import { formatNumber } from "@/common/number-utils";
|
||||
import { isValidServer } from "@/common/server";
|
||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
||||
import { Colors } from "@/app/common/colors";
|
||||
import { generateEmbed } from "@/app/common/embed";
|
||||
import { formatNumber } from "@/app/common/number-utils";
|
||||
import { isValidServer } from "@/app/common/server";
|
||||
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||
import config from "@root/config.json";
|
||||
import {
|
||||
CachedBedrockMinecraftServer,
|
||||
|
@ -1,5 +1,5 @@
|
||||
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 { type ClassValue } from "clsx";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useToast } from "@/common/use-toast";
|
||||
import { useToast } from "@/app/common/use-toast";
|
||||
import copy from "clipboard-copy";
|
||||
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 { ReactElement } from "react";
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { MDXRemote } from "remote-mdx/rsc";
|
||||
import { CodeHighlighter } from "@/app/components/code-highlighter";
|
||||
import { Separator } from "@/app/components/ui/separator";
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
import Link from "next/link";
|
||||
import { ReactElement } from "react";
|
||||
|
||||
/**
|
||||
* 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 || {}) }} />;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import Logo from "./logo";
|
||||
import { ToggleThemeButton } from "./theme-toggle-button";
|
||||
import { GithubStar } from "@/app/components/github-star";
|
||||
import { Card } from "@/app/components/card";
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
type Page = {
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useToast } from "@/common/use-toast";
|
||||
import { useToast } from "@/app/common/use-toast";
|
||||
import { getPlayer } from "mcutils-library";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { ReactElement, useState } from "react";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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 Link from "next/link";
|
||||
import { ReactElement } from "react";
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
||||
import { useToast } from "@/common/use-toast";
|
||||
import { capitalizeFirstLetter } from "@/app/common/string-utils";
|
||||
import { useToast } from "@/app/common/use-toast";
|
||||
import { getServer, ServerPlatform } from "mcutils-library";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { ReactElement, useState } from "react";
|
||||
|
@ -4,7 +4,7 @@ import { ReactElement } from "react";
|
||||
import { CodeDialog } from "../code-dialog";
|
||||
import { Button } from "../ui/button";
|
||||
import config from "@root/config.json";
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
import { minecraft } from "@/app/font/fonts";
|
||||
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 * as React from "react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
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",
|
||||
|
@ -1,6 +1,6 @@
|
||||
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) => (
|
||||
<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 { Check, ChevronRight, Circle } from "lucide-react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const ContextMenu = ContextMenuPrimitive.Root;
|
||||
|
||||
|
@ -4,7 +4,7 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
|
||||
import { X } from "lucide-react";
|
||||
import * as React from "react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const Dialog = DialogPrimitive.Root;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as React from "react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
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 { 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");
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
import * as React from "react";
|
||||
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const Popover = PopoverPrimitive.Root;
|
||||
|
||||
|
@ -4,7 +4,7 @@ import * as React from "react";
|
||||
import * as SelectPrimitive from "@radix-ui/react-select";
|
||||
import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const Select = SelectPrimitive.Root;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
import * as React from "react";
|
||||
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const Separator = React.forwardRef<
|
||||
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";
|
||||
|
||||
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 { X } from "lucide-react";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const ToastProvider = ToastPrimitives.Provider;
|
||||
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
ToastTitle,
|
||||
ToastViewport,
|
||||
} from "@/app/components/ui/toast";
|
||||
import { useToast } from "@/common/use-toast";
|
||||
import { useToast } from "@/app/common/use-toast";
|
||||
|
||||
export function Toaster() {
|
||||
const { toasts } = useToast();
|
||||
|
@ -3,7 +3,7 @@
|
||||
import * as React from "react";
|
||||
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
||||
|
||||
import { cn } from "@/common/utils";
|
||||
import { cn } from "@/app/common/utils";
|
||||
|
||||
const TooltipProvider = TooltipPrimitive.Provider;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user