From afd3d2eea3706f5a98db6ad079f97dfd681f052f Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 9 Feb 2025 20:53:14 -0600 Subject: [PATCH] refactor: lint --- apps/dokploy/components/dashboard/search-command.tsx | 2 +- apps/dokploy/components/layouts/user-nav.tsx | 2 +- apps/dokploy/lib/auth.ts | 2 +- apps/dokploy/pages/index.tsx | 4 ++-- packages/server/auth-schema.ts | 4 ++-- packages/server/src/lib/auth.ts | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/dokploy/components/dashboard/search-command.tsx b/apps/dokploy/components/dashboard/search-command.tsx index f52fd14f..952bbe5c 100644 --- a/apps/dokploy/components/dashboard/search-command.tsx +++ b/apps/dokploy/components/dashboard/search-command.tsx @@ -18,6 +18,7 @@ import { CommandList, CommandSeparator, } from "@/components/ui/command"; +import { authClient } from "@/lib/auth"; import { type Services, extractServices, @@ -28,7 +29,6 @@ import { BookIcon, CircuitBoard, GlobeIcon } from "lucide-react"; import { useRouter } from "next/router"; import React from "react"; import { StatusTooltip } from "../shared/status-tooltip"; -import { authClient } from "@/lib/auth"; type Project = Awaited>; diff --git a/apps/dokploy/components/layouts/user-nav.tsx b/apps/dokploy/components/layouts/user-nav.tsx index d2ad153b..18d459f0 100644 --- a/apps/dokploy/components/layouts/user-nav.tsx +++ b/apps/dokploy/components/layouts/user-nav.tsx @@ -15,6 +15,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; +import { authClient } from "@/lib/auth"; import { Languages } from "@/lib/languages"; import { api } from "@/utils/api"; import useLocale from "@/utils/hooks/use-locale"; @@ -24,7 +25,6 @@ import { useRouter } from "next/router"; import { useEffect, useRef, useState } from "react"; import { ModeToggle } from "../ui/modeToggle"; import { SidebarMenuButton } from "../ui/sidebar"; -import { authClient } from "@/lib/auth"; const AUTO_CHECK_UPDATES_INTERVAL_MINUTES = 7; diff --git a/apps/dokploy/lib/auth.ts b/apps/dokploy/lib/auth.ts index d050b360..a5b19370 100644 --- a/apps/dokploy/lib/auth.ts +++ b/apps/dokploy/lib/auth.ts @@ -1,5 +1,5 @@ -import { createAuthClient } from "better-auth/react"; import { organizationClient } from "better-auth/client/plugins"; +import { createAuthClient } from "better-auth/react"; export const authClient = createAuthClient({ baseURL: "http://localhost:3000", // the base url of your auth server diff --git a/apps/dokploy/pages/index.tsx b/apps/dokploy/pages/index.tsx index 7877e65c..e5cc0500 100644 --- a/apps/dokploy/pages/index.tsx +++ b/apps/dokploy/pages/index.tsx @@ -16,10 +16,10 @@ import { Input } from "@/components/ui/input"; import { authClient } from "@/lib/auth"; import { cn } from "@/lib/utils"; import { api } from "@/utils/api"; -import { auth, IS_CLOUD, isAdminPresent } from "@dokploy/server"; +import { IS_CLOUD, auth, isAdminPresent } from "@dokploy/server"; import { validateRequest } from "@dokploy/server/lib/auth"; import { zodResolver } from "@hookform/resolvers/zod"; -import { getSessionCookie, Session } from "better-auth"; +import { Session, getSessionCookie } from "better-auth"; import { betterFetch } from "better-auth/react"; import type { GetServerSidePropsContext } from "next"; import Link from "next/link"; diff --git a/packages/server/auth-schema.ts b/packages/server/auth-schema.ts index 0bd91141..10e9965b 100644 --- a/packages/server/auth-schema.ts +++ b/packages/server/auth-schema.ts @@ -1,9 +1,9 @@ import { + boolean, + integer, pgTable, text, - integer, timestamp, - boolean, } from "drizzle-orm/pg-core"; export const user = pgTable("user", { diff --git a/packages/server/src/lib/auth.ts b/packages/server/src/lib/auth.ts index 082176b2..8a3e1781 100644 --- a/packages/server/src/lib/auth.ts +++ b/packages/server/src/lib/auth.ts @@ -1,10 +1,10 @@ +import type { IncomingMessage } from "node:http"; import { betterAuth } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; import { admin, createAuthMiddleware, organization } from "better-auth/plugins"; +import { eq } from "drizzle-orm"; import { db } from "../db"; import * as schema from "../db/schema"; -import type { IncomingMessage } from "node:http"; -import { eq } from "drizzle-orm"; export const auth = betterAuth({ database: drizzleAdapter(db, { provider: "pg",