Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Sep 8, 2024
1 parent cde4118 commit 54915f8
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/components/ui/alert-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from "react";
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
import * as React from "react";

import { cn } from "~/lib/utils";
import { buttonVariants } from "~/components/ui/button";
import { cn } from "~/lib/utils";

const AlertDialog = AlertDialogPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/label.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cva, type VariantProps } from "class-variance-authority";
import * as React from "react";

import { cn } from "~/lib/utils";

Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/radio-group.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import { Circle } from "lucide-react";
import * as React from "react";

import { cn } from "~/lib/utils";

Expand Down
2 changes: 1 addition & 1 deletion app/firebase/converter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
Timestamp,
type DocumentData,
type QueryDocumentSnapshot,
type SnapshotOptions,
Timestamp,
} from "firebase/firestore";
import _ from "lodash";
import type { ZodSchema } from "zod";
Expand Down
1 change: 1 addition & 0 deletions app/firebase/subscription.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { collection, onSnapshot, query } from "firebase/firestore";
import type { SWRSubscription } from "swr/subscription";
import { type ZodSchema } from "zod";

import { converter } from "./converter";
import { db } from "./firestore";

Expand Down
2 changes: 1 addition & 1 deletion app/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ClassValue, clsx } from "clsx";
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
Expand Down
1 change: 1 addition & 0 deletions app/models/order.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect, test } from "vitest";

import { ItemWithId } from "./item";
import { OrderEntity } from "./order";

Expand Down
1 change: 1 addition & 0 deletions app/models/order.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { z } from "zod";

import { Item, itemSchema } from "./item";

export const orderSchema = z.object({
Expand Down
2 changes: 2 additions & 0 deletions app/repositories/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import {
getDocs,
setDoc,
} from "firebase/firestore";

import { converter } from "~/firebase/converter";
import { db } from "~/firebase/firestore";
import { hasId } from "~/lib/typeguard";
import { itemSchema } from "~/models/item";

import { ItemRepository } from "./type";

export const itemRepository: ItemRepository = {
Expand Down
2 changes: 2 additions & 0 deletions app/repositories/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import {
getDocs,
setDoc,
} from "firebase/firestore";

import { converter } from "~/firebase/converter";
import { db } from "~/firebase/firestore";
import { hasId } from "~/lib/typeguard";
import { Order, orderSchema, OrderWithId } from "~/models/order";

import { OrderRepository } from "./type";

export const orderRepository: OrderRepository = {
Expand Down
1 change: 1 addition & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Scripts,
ScrollRestoration,
} from "@remix-run/react";

import "./tailwind.css";

export function Layout({ children }: { children: React.ReactNode }) {
Expand Down
1 change: 1 addition & 0 deletions app/routes/_header._index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { MetaFunction } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { collection, getDocs } from "firebase/firestore";

import { Button } from "~/components/ui/button";
import { converter } from "~/firebase/converter";
import { db } from "~/firebase/firestore";
Expand Down
1 change: 1 addition & 0 deletions app/routes/_header.serve.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { MetaFunction } from "@remix-run/node";
import { typedjson, useTypedLoaderData } from "remix-typedjson";

import { Button } from "~/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card";
import { orderRepository } from "~/repositories/order";
Expand Down
1 change: 1 addition & 0 deletions app/routes/_header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Outlet } from "@remix-run/react";

import { OnlineStatus } from "~/components/online-status";

export default function BaseHeader() {
Expand Down
1 change: 1 addition & 0 deletions app/routes/casher.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AlertDialogCancel } from "@radix-ui/react-alert-dialog";
import { useState } from "react";

import {
AlertDialog,
AlertDialogAction,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/items/action.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type ClientActionFunction } from "@remix-run/react";
import { deleteItem } from "./actions/deleteItem";

import { addItem } from "./actions/addItem";
import { deleteItem } from "./actions/deleteItem";

export const action: ClientActionFunction = async (args) => {
const { request } = args;
Expand Down
2 changes: 1 addition & 1 deletion app/routes/items/actions/addItem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseWithZod } from "@conform-to/zod";
import { type ClientActionFunction, json } from "@remix-run/react";
import { json, type ClientActionFunction } from "@remix-run/react";

import { itemSchema } from "~/models/item";
import { itemRepository } from "~/repositories/item";
Expand Down
1 change: 1 addition & 0 deletions app/routes/items/actions/deleteItem.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { parseWithZod } from "@conform-to/zod";
import { json, type ClientActionFunction } from "@remix-run/react";
import { z } from "zod";

import { itemRepository } from "~/repositories/item";

export const deleteItem: ClientActionFunction = async ({ request }) => {
Expand Down
1 change: 1 addition & 0 deletions app/routes/items/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { collectionSub } from "~/firebase/subscription";
import { itemSchema, itemtypes } from "~/models/item";

import type { action as clientAction } from "./action";

export { action as clientAction } from "./action";

export const meta: MetaFunction = () => {
Expand Down
1 change: 1 addition & 0 deletions app/routes/orders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
MetaFunction,
} from "@remix-run/react";
import { typedjson, useTypedLoaderData } from "remix-typedjson";

import { Button } from "~/components/ui/button";
import { Input } from "~/components/ui/input";
import { Order } from "~/models/order";
Expand Down

0 comments on commit 54915f8

Please sign in to comment.