Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
marekzelinka committed Dec 6, 2024
1 parent f003126 commit eac61cc
Show file tree
Hide file tree
Showing 32 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion app/components/forms.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export type ListOfErrors = Array<string | null | undefined> | null | undefined;

Expand Down
2 changes: 1 addition & 1 deletion app/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export function Logo({ className }: { className?: string }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Avatar = forwardRef<
ElementRef<typeof AvatarPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type ComponentPropsWithoutRef,
type ReactNode,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Breadcrumb = forwardRef<
HTMLElement,
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Slot } from "@radix-ui/react-slot";
import { forwardRef, type ButtonHTMLAttributes } from "react";
import { cva, cx, type VariantProps } from "~/utils/misc";
import { cva, cx, type VariantProps } from "~/lib/utils";

export const buttonVariants = cva({
base: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Slot } from "@radix-ui/react-slot";
import { forwardRef, type HTMLAttributes } from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
type ElementRef,
type HTMLAttributes,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const DropdownMenu = DropdownMenuPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { forwardRef, type ComponentProps } from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Input = forwardRef<HTMLInputElement, ComponentProps<"input">>(
({ className, ...props }, ref) => {
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cva, cx, type VariantProps } from "~/utils/misc";
import { cva, cx, type VariantProps } from "~/lib/utils";

export const labelVariants = cva({
base: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/scroll-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const ScrollArea = forwardRef<
ElementRef<typeof ScrollAreaPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Separator = forwardRef<
ElementRef<typeof SeparatorPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { forwardRef, type ComponentProps } from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const Textarea = forwardRef<
HTMLTextAreaElement,
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cva, cx, type VariantProps } from "~/utils/misc";
import { cva, cx, type VariantProps } from "~/lib/utils";

export const toggleVariants = cva({
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type ComponentPropsWithoutRef,
type ElementRef,
} from "react";
import { cx } from "~/utils/misc";
import { cx } from "~/lib/utils";

export const TooltipProvider = TooltipPrimitive.Provider;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
import type { Route } from "./+types/root";
import stylesheet from "./app.css?url";
import { TooltipProvider } from "./components/ui/tooltip";
import { getUser } from "./utils/auth.server";
import { getUser } from "./lib/auth.server";

export const links: Route.LinksFunction = () => [
{ rel: "stylesheet", href: stylesheet },
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_auth.join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
} from "~/components/ui/card";
import { Input } from "~/components/ui/input";
import { Label } from "~/components/ui/label";
import { createUser, createUserSession } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { composeSafeRedirectUrl } from "~/utils/misc";
import { createUser, createUserSession } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import { composeSafeRedirectUrl } from "~/lib/utils";
import type { Route } from "./+types/_auth.join";

const CreateAccountSchema = z.object({
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_auth.login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
} from "~/components/ui/card";
import { Input } from "~/components/ui/input";
import { Label } from "~/components/ui/label";
import { createUserSession, verifyLogin } from "~/utils/auth.server";
import { composeSafeRedirectUrl } from "~/utils/misc";
import { createUserSession, verifyLogin } from "~/lib/auth.server";
import { composeSafeRedirectUrl } from "~/lib/utils";
import type { Route } from "./+types/_auth.login";

const LoginSchema = z.object({
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_auth.logout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from "react-router";
import { logout } from "~/utils/auth.server";
import { logout } from "~/lib/auth.server";
import type { Route } from "./+types/_auth.logout";

export async function loader() {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_auth.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Outlet, redirect } from "react-router";
import { getUserId } from "~/utils/auth.server";
import { getUserId } from "~/lib/auth.server";
import type { Route } from "./+types/_auth";

export async function loader({ request }: Route.LoaderArgs) {
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_dashboard.contacts.$contactId._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { data, Form, Link } from "react-router";
import { EmptyState } from "~/components/empty-state";
import { Button } from "~/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import type { Route } from "./+types/_dashboard.contacts.$contactId._index";

export async function loader({ request, params }: Route.LoaderArgs) {
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_dashboard.contacts.$contactId.notes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from "~/components/ui/dropdown-menu";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { useClipboard } from "~/utils/misc";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import { useClipboard } from "~/lib/utils";
import type { Route } from "./+types/_dashboard.contacts.$contactId.notes";

type LoaderData = Route.ComponentProps["loaderData"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
} from "~/components/ui/breadcrumb";
import { Button } from "~/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import type { Route } from "./+types/_dashboard.contacts.$contactId.notes_.$noteId.edit";

export async function loader({ params }: Route.LoaderArgs) {
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_dashboard.contacts.$contactId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import {
import { Button } from "~/components/ui/button";
import { Separator } from "~/components/ui/separator";
import { Toggle } from "~/components/ui/toggle";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { cx } from "~/utils/misc";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import { cx } from "~/lib/utils";
import type { Route } from "./+types/_dashboard.contacts.$contactId";

export const meta: Route.MetaFunction = ({ data, error }) => {
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_dashboard.contacts.$contactId_.edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { Input } from "~/components/ui/input";
import { Label } from "~/components/ui/label";
import { Separator } from "~/components/ui/separator";
import { Textarea } from "~/components/ui/textarea";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import type { Route } from "./+types/_dashboard.contacts.$contactId_.edit";

const EditContactSchema = z.object({
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_dashboard.contacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import { LoadingOverlay } from "~/components/loading-overlay";
import { Button } from "~/components/ui/button";
import { Input } from "~/components/ui/input";
import { ScrollArea } from "~/components/ui/scroll-area";
import { requireUserId } from "~/utils/auth.server";
import { db } from "~/utils/db.server";
import { cx } from "~/utils/misc";
import { requireUserId } from "~/lib/auth.server";
import { db } from "~/lib/db.server";
import { cx } from "~/lib/utils";
import type { Route } from "./+types/_dashboard.contacts";

export const meta: Route.MetaFunction = () => {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link } from "react-router";
import { Logo } from "~/components/logo";
import { buttonVariants } from "~/components/ui/button";
import { useOptionalUser } from "~/utils/user";
import { useOptionalUser } from "~/lib/user";
import type { Route } from "./+types/_index";

export const meta: Route.MetaFunction = () => {
Expand Down
4 changes: 2 additions & 2 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "app/tailwind.css",
"css": "app/app.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
Expand All @@ -14,7 +14,7 @@
"components": "~/components",
"utils": "~/lib/utils",
"ui": "~/components/ui",
"lib": "~/utils",
"lib": "~/lib",
"hooks": "~/hooks"
}
}

0 comments on commit eac61cc

Please sign in to comment.