chore: migrate to biomejs

This commit is contained in:
BennyKok
2024-01-20 20:09:28 +08:00
parent c98a16a2dd
commit e400966117
20 changed files with 63 additions and 150 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ export function DeploymentDisplay({
<a
href="https://github.com/BennyKok/comfyui-deploy-next-example/blob/main/src/lib/comfy-deploy.ts"
className="text-blue-500 hover:underline"
target="_blank"
target="_blank" rel="noreferrer"
>
here
</a>
+1 -1
View File
@@ -223,7 +223,7 @@ export const columns: ColumnDef<Machine>[] = [
href={machine.endpoint.replace(
"comfyui-api",
"comfyui-app"
)}
)} rel="noreferrer"
>
Open ComfyUI
</a>
+1 -1
View File
@@ -98,7 +98,7 @@ export function Navbar() {
variant="outline"
className="rounded-full aspect-square p-2"
>
<a target="_blank" href="https://github.com/BennyKok/comfyui-deploy">
<a target="_blank" href="https://github.com/BennyKok/comfyui-deploy" rel="noreferrer">
<Github />
</a>
</Button>
+1 -1
View File
@@ -1,4 +1,3 @@
import { LiveStatus } from "./LiveStatus";
import { RunInputs } from "@/components/RunInputs";
import { RunOutputs } from "@/components/RunOutputs";
import { Badge } from "@/components/ui/badge";
@@ -14,6 +13,7 @@ import { TableCell, TableRow } from "@/components/ui/table";
import { getDuration, getRelativeTime } from "@/lib/getRelativeTime";
import { type findAllRuns } from "@/server/findAllRuns";
import { Suspense } from "react";
import { LiveStatus } from "./LiveStatus";
export async function RunDisplay({
run,
+1 -1
View File
@@ -1,6 +1,5 @@
"use client";
import { useServerActionData } from "./useServerActionData";
import { ButtonAction } from "@/components/ButtonActionLoader";
import { UpdateModal } from "@/components/InsertModal";
import { LoadingPageWrapper } from "@/components/LoadingWrapper";
@@ -15,6 +14,7 @@ import { ExternalLink } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { useServerActionData } from "./useServerActionData";
export function SharePageSettings({
deployment_id,
+1 -1
View File
@@ -598,7 +598,7 @@ export function ViewWorkflowDetailsButton({
<a
href={group.url}
target="_blank"
className="hover:underline"
className="hover:underline" rel="noreferrer"
>
{key}
<ExternalLink
+1 -1
View File
@@ -69,7 +69,7 @@ const FeedbackThanks = forwardRef<React.ElementRef<'div'>>(
)
export function Feedback() {
let [submitted, setSubmitted] = useState(false)
const [submitted, setSubmitted] = useState(false)
function onSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault()
+1 -1
View File
@@ -8,7 +8,7 @@ export function Prose<T extends React.ElementType = 'div'>({
as?: T
className?: string
}) {
let Component = as ?? 'div'
const Component = as ?? 'div'
return (
<Component
+3 -3
View File
@@ -22,9 +22,9 @@ function MoonIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
}
export function ThemeToggle() {
let { resolvedTheme, setTheme } = useTheme()
let otherTheme = resolvedTheme === 'dark' ? 'light' : 'dark'
let [mounted, setMounted] = useState(false)
const { resolvedTheme, setTheme } = useTheme()
const otherTheme = resolvedTheme === 'dark' ? 'light' : 'dark'
const [mounted, setMounted] = useState(false)
useEffect(() => {
setMounted(true)