style: standardize import ordering, type imports, and formatting in source files
Sort imports alphabetically, convert value imports to type-only where appropriate, normalize indentation to tabs, and sort exports alphabetically across UI components, pages, and lib modules.
This commit is contained in:
1 parent
cbae9fa1c9
commit
a0a7e021a8
33 files changed
+173
-156
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { headers } from "next/headers";
|
||||
import { NextResponse } from "next/server";
|
||||
import { auth } from "@/auth";
|
||||
import { headers } from "next/headers";
|
||||
import { openRouterClient } from "@/lib/openrouter-client";
|
||||
|
||||
export async function POST(request: Request) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { auth } from "@/auth";
|
||||
import { toNextJsHandler } from "better-auth/next-js";
|
||||
import { auth } from "@/auth";
|
||||
|
||||
export const { GET, POST } = toNextJsHandler(auth);
|
||||
@@ -1,10 +1,10 @@
|
||||
"use client";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import Link from "next/link";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import { Suspense } from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
|
||||
function Search() {
|
||||
const searchParams = useSearchParams();
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import { signIn, useSession } from "@/lib/auth-client";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
@@ -9,10 +12,7 @@ import {
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { signIn, useSession } from "@/lib/auth-client";
|
||||
|
||||
export default function SignInPage() {
|
||||
const { data: session, isPending } = useSession();
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import { signOut, useSession } from "@/lib/auth-client";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
@@ -9,9 +11,7 @@ import {
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
import { signOut, useSession } from "@/lib/auth-client";
|
||||
|
||||
export default function SignOutPage() {
|
||||
const { data: session, isPending } = useSession();
|
||||
|
||||
+111
-96
@@ -4,99 +4,114 @@
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
:root {
|
||||
--background: oklch(0.9232 0.0026 48.7171);
|
||||
--foreground: oklch(0.2795 0.0368 260.0310);
|
||||
--card: oklch(0.9699 0.0013 106.4238);
|
||||
--card-foreground: oklch(0.2795 0.0368 260.0310);
|
||||
--popover: oklch(0.9699 0.0013 106.4238);
|
||||
--popover-foreground: oklch(0.2795 0.0368 260.0310);
|
||||
--primary: oklch(0.5854 0.2041 277.1173);
|
||||
--primary-foreground: oklch(1.0000 0 0);
|
||||
--secondary: oklch(0.8687 0.0043 56.3660);
|
||||
--secondary-foreground: oklch(0.4461 0.0263 256.8018);
|
||||
--muted: oklch(0.9232 0.0026 48.7171);
|
||||
--muted-foreground: oklch(0.5510 0.0234 264.3637);
|
||||
--accent: oklch(0.9376 0.0260 321.9388);
|
||||
--accent-foreground: oklch(0.3729 0.0306 259.7328);
|
||||
--destructive: oklch(0.6368 0.2078 25.3313);
|
||||
--destructive-foreground: oklch(1.0000 0 0);
|
||||
--border: oklch(0.8687 0.0043 56.3660);
|
||||
--input: oklch(0.8687 0.0043 56.3660);
|
||||
--ring: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-1: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-2: oklch(0.5106 0.2301 276.9656);
|
||||
--chart-3: oklch(0.4568 0.2146 277.0229);
|
||||
--chart-4: oklch(0.3984 0.1773 277.3662);
|
||||
--chart-5: oklch(0.3588 0.1354 278.6973);
|
||||
--sidebar: oklch(0.8687 0.0043 56.3660);
|
||||
--sidebar-foreground: oklch(0.2795 0.0368 260.0310);
|
||||
--sidebar-primary: oklch(0.5854 0.2041 277.1173);
|
||||
--sidebar-primary-foreground: oklch(1.0000 0 0);
|
||||
--sidebar-accent: oklch(0.9376 0.0260 321.9388);
|
||||
--sidebar-accent-foreground: oklch(0.3729 0.0306 259.7328);
|
||||
--sidebar-border: oklch(0.8687 0.0043 56.3660);
|
||||
--sidebar-ring: oklch(0.5854 0.2041 277.1173);
|
||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
||||
--font-serif: Lora, serif;
|
||||
--font-mono: Roboto Mono, monospace;
|
||||
--radius: 1.25rem;
|
||||
--shadow-2xs: 2px 2px 10px 4px hsl(240 4% 60% / 0.09);
|
||||
--shadow-xs: 2px 2px 10px 4px hsl(240 4% 60% / 0.09);
|
||||
--shadow-sm: 2px 2px 10px 4px hsl(240 4% 60% / 0.18), 2px 1px 2px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow: 2px 2px 10px 4px hsl(240 4% 60% / 0.18), 2px 1px 2px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-md: 2px 2px 10px 4px hsl(240 4% 60% / 0.18), 2px 2px 4px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-lg: 2px 2px 10px 4px hsl(240 4% 60% / 0.18), 2px 4px 6px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-xl: 2px 2px 10px 4px hsl(240 4% 60% / 0.18), 2px 8px 10px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-2xl: 2px 2px 10px 4px hsl(240 4% 60% / 0.45);
|
||||
--tracking-normal: 0em;
|
||||
--spacing: 0.25rem;
|
||||
--background: oklch(0.9232 0.0026 48.7171);
|
||||
--foreground: oklch(0.2795 0.0368 260.031);
|
||||
--card: oklch(0.9699 0.0013 106.4238);
|
||||
--card-foreground: oklch(0.2795 0.0368 260.031);
|
||||
--popover: oklch(0.9699 0.0013 106.4238);
|
||||
--popover-foreground: oklch(0.2795 0.0368 260.031);
|
||||
--primary: oklch(0.5854 0.2041 277.1173);
|
||||
--primary-foreground: oklch(1 0 0);
|
||||
--secondary: oklch(0.8687 0.0043 56.366);
|
||||
--secondary-foreground: oklch(0.4461 0.0263 256.8018);
|
||||
--muted: oklch(0.9232 0.0026 48.7171);
|
||||
--muted-foreground: oklch(0.551 0.0234 264.3637);
|
||||
--accent: oklch(0.9376 0.026 321.9388);
|
||||
--accent-foreground: oklch(0.3729 0.0306 259.7328);
|
||||
--destructive: oklch(0.6368 0.2078 25.3313);
|
||||
--destructive-foreground: oklch(1 0 0);
|
||||
--border: oklch(0.8687 0.0043 56.366);
|
||||
--input: oklch(0.8687 0.0043 56.366);
|
||||
--ring: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-1: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-2: oklch(0.5106 0.2301 276.9656);
|
||||
--chart-3: oklch(0.4568 0.2146 277.0229);
|
||||
--chart-4: oklch(0.3984 0.1773 277.3662);
|
||||
--chart-5: oklch(0.3588 0.1354 278.6973);
|
||||
--sidebar: oklch(0.8687 0.0043 56.366);
|
||||
--sidebar-foreground: oklch(0.2795 0.0368 260.031);
|
||||
--sidebar-primary: oklch(0.5854 0.2041 277.1173);
|
||||
--sidebar-primary-foreground: oklch(1 0 0);
|
||||
--sidebar-accent: oklch(0.9376 0.026 321.9388);
|
||||
--sidebar-accent-foreground: oklch(0.3729 0.0306 259.7328);
|
||||
--sidebar-border: oklch(0.8687 0.0043 56.366);
|
||||
--sidebar-ring: oklch(0.5854 0.2041 277.1173);
|
||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
||||
--font-serif: Lora, serif;
|
||||
--font-mono: Roboto Mono, monospace;
|
||||
--radius: 1.25rem;
|
||||
--shadow-2xs: 2px 2px 10px 4px hsl(240 4% 60% / 0.09);
|
||||
--shadow-xs: 2px 2px 10px 4px hsl(240 4% 60% / 0.09);
|
||||
--shadow-sm:
|
||||
2px 2px 10px 4px hsl(240 4% 60% / 0.18),
|
||||
2px 1px 2px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow:
|
||||
2px 2px 10px 4px hsl(240 4% 60% / 0.18),
|
||||
2px 1px 2px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-md:
|
||||
2px 2px 10px 4px hsl(240 4% 60% / 0.18),
|
||||
2px 2px 4px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-lg:
|
||||
2px 2px 10px 4px hsl(240 4% 60% / 0.18),
|
||||
2px 4px 6px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-xl:
|
||||
2px 2px 10px 4px hsl(240 4% 60% / 0.18),
|
||||
2px 8px 10px 3px hsl(240 4% 60% / 0.18);
|
||||
--shadow-2xl: 2px 2px 10px 4px hsl(240 4% 60% / 0.45);
|
||||
--tracking-normal: 0em;
|
||||
--spacing: 0.25rem;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.2244 0.0074 67.4370);
|
||||
--foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--card: oklch(0.2801 0.0080 59.3379);
|
||||
--card-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--popover: oklch(0.2801 0.0080 59.3379);
|
||||
--popover-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--primary: oklch(0.5994 0.1568 47.5224);
|
||||
--primary-foreground: oklch(0.2244 0.0074 67.4370);
|
||||
--secondary: oklch(0.3359 0.0077 59.4197);
|
||||
--secondary-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--muted: oklch(0.2801 0.0080 59.3379);
|
||||
--muted-foreground: oklch(0.7137 0.0192 261.3246);
|
||||
--accent: oklch(0.3896 0.0074 59.4734);
|
||||
--accent-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--destructive: oklch(0.6368 0.2078 25.3313);
|
||||
--destructive-foreground: oklch(0.2244 0.0074 67.4370);
|
||||
--border: oklch(0.3359 0.0077 59.4197);
|
||||
--input: oklch(0.3359 0.0077 59.4197);
|
||||
--ring: oklch(0.6801 0.1583 276.9349);
|
||||
--chart-1: oklch(0.6801 0.1583 276.9349);
|
||||
--chart-2: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-3: oklch(0.5106 0.2301 276.9656);
|
||||
--chart-4: oklch(0.4568 0.2146 277.0229);
|
||||
--chart-5: oklch(0.3984 0.1773 277.3662);
|
||||
--sidebar: oklch(0.3359 0.0077 59.4197);
|
||||
--sidebar-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--sidebar-primary: oklch(0.6801 0.1583 276.9349);
|
||||
--sidebar-primary-foreground: oklch(0.2244 0.0074 67.4370);
|
||||
--sidebar-accent: oklch(0.3896 0.0074 59.4734);
|
||||
--sidebar-accent-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--sidebar-border: oklch(0.3359 0.0077 59.4197);
|
||||
--sidebar-ring: oklch(0.6801 0.1583 276.9349);
|
||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
||||
--font-serif: Lora, serif;
|
||||
--font-mono: Roboto Mono, monospace;
|
||||
--radius: 1.25rem;
|
||||
--shadow-2xs: 2px 2px 10px 4px hsl(0 0% 0% / 0.09);
|
||||
--shadow-xs: 2px 2px 10px 4px hsl(0 0% 0% / 0.09);
|
||||
--shadow-sm: 2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 1px 2px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow: 2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 1px 2px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-md: 2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 2px 4px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-lg: 2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 4px 6px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-xl: 2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 8px 10px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-2xl: 2px 2px 10px 4px hsl(0 0% 0% / 0.45);
|
||||
--background: oklch(0.2244 0.0074 67.437);
|
||||
--foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--card: oklch(0.2801 0.008 59.3379);
|
||||
--card-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--popover: oklch(0.2801 0.008 59.3379);
|
||||
--popover-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--primary: oklch(0.5994 0.1568 47.5224);
|
||||
--primary-foreground: oklch(0.2244 0.0074 67.437);
|
||||
--secondary: oklch(0.3359 0.0077 59.4197);
|
||||
--secondary-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--muted: oklch(0.2801 0.008 59.3379);
|
||||
--muted-foreground: oklch(0.7137 0.0192 261.3246);
|
||||
--accent: oklch(0.3896 0.0074 59.4734);
|
||||
--accent-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--destructive: oklch(0.6368 0.2078 25.3313);
|
||||
--destructive-foreground: oklch(0.2244 0.0074 67.437);
|
||||
--border: oklch(0.3359 0.0077 59.4197);
|
||||
--input: oklch(0.3359 0.0077 59.4197);
|
||||
--ring: oklch(0.6801 0.1583 276.9349);
|
||||
--chart-1: oklch(0.6801 0.1583 276.9349);
|
||||
--chart-2: oklch(0.5854 0.2041 277.1173);
|
||||
--chart-3: oklch(0.5106 0.2301 276.9656);
|
||||
--chart-4: oklch(0.4568 0.2146 277.0229);
|
||||
--chart-5: oklch(0.3984 0.1773 277.3662);
|
||||
--sidebar: oklch(0.3359 0.0077 59.4197);
|
||||
--sidebar-foreground: oklch(0.9288 0.0126 255.5078);
|
||||
--sidebar-primary: oklch(0.6801 0.1583 276.9349);
|
||||
--sidebar-primary-foreground: oklch(0.2244 0.0074 67.437);
|
||||
--sidebar-accent: oklch(0.3896 0.0074 59.4734);
|
||||
--sidebar-accent-foreground: oklch(0.8717 0.0093 258.3382);
|
||||
--sidebar-border: oklch(0.3359 0.0077 59.4197);
|
||||
--sidebar-ring: oklch(0.6801 0.1583 276.9349);
|
||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
||||
--font-serif: Lora, serif;
|
||||
--font-mono: Roboto Mono, monospace;
|
||||
--radius: 1.25rem;
|
||||
--shadow-2xs: 2px 2px 10px 4px hsl(0 0% 0% / 0.09);
|
||||
--shadow-xs: 2px 2px 10px 4px hsl(0 0% 0% / 0.09);
|
||||
--shadow-sm:
|
||||
2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 1px 2px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow:
|
||||
2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 1px 2px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-md:
|
||||
2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 2px 4px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-lg:
|
||||
2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 4px 6px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-xl:
|
||||
2px 2px 10px 4px hsl(0 0% 0% / 0.18), 2px 8px 10px 3px hsl(0 0% 0% / 0.18);
|
||||
--shadow-2xl: 2px 2px 10px 4px hsl(0 0% 0% / 0.45);
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
@@ -153,10 +168,10 @@
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,11 +1,11 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Magra } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Link from "next/link";
|
||||
import { ThemeProvider } from "next-themes";
|
||||
import { ModeToggle } from "@/components/mode-toggle";
|
||||
import SignIn from "@/components/sign-in";
|
||||
import { Toaster } from "@/components/ui/sonner";
|
||||
import Link from "next/link";
|
||||
|
||||
const geist = Geist({
|
||||
subsets: ["latin", "cyrillic"],
|
||||
|
||||
Reference in new issue
Block a user