From e768d9181f5324fb3c43757a2b5cf8f97bed3bce Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Thu, 15 Feb 2024 20:49:19 -0500 Subject: [PATCH] Formated Files --- .github/dependabot.yml | 2 +- .github/workflows/build-lint.yml | 29 - actions/copy-card/index.ts | 30 +- actions/copy-card/schema.ts | 2 +- actions/copy-card/types.ts | 8 +- actions/copy-list/index.ts | 26 +- actions/copy-list/schema.ts | 4 +- actions/copy-list/types.ts | 10 +- actions/create-board/index.ts | 32 +- actions/create-board/schema.ts | 24 +- actions/create-board/types.ts | 8 +- actions/create-card/index.ts | 26 +- actions/create-card/schema.ts | 18 +- actions/create-card/types.ts | 8 +- actions/create-list/index.ts | 26 +- actions/create-list/schema.ts | 18 +- actions/create-list/types.ts | 12 +- actions/delete-board/index.ts | 28 +- actions/delete-board/schema.ts | 4 +- actions/delete-board/types.ts | 10 +- actions/delete-card/index.ts | 22 +- actions/delete-card/schema.ts | 2 +- actions/delete-card/types.ts | 8 +- actions/delete-list/index.ts | 22 +- actions/delete-list/schema.ts | 4 +- actions/delete-list/types.ts | 10 +- actions/stripe-redirect/index.ts | 40 +- actions/stripe-redirect/schema.ts | 2 +- actions/stripe-redirect/types.ts | 6 +- actions/update-board/index.ts | 24 +- actions/update-board/schema.ts | 18 +- actions/update-board/types.ts | 10 +- actions/update-card-order/index.ts | 18 +- actions/update-card-order/schema.ts | 2 +- actions/update-card-order/types.ts | 12 +- actions/update-card/index.ts | 22 +- actions/update-card/schema.ts | 14 +- actions/update-card/types.ts | 10 +- actions/update-list-order/index.ts | 18 +- actions/update-list-order/schema.ts | 2 +- actions/update-list-order/types.ts | 12 +- actions/update-list/index.ts | 22 +- actions/update-list/schema.ts | 18 +- actions/update-list/types.ts | 10 +- app/(marketing)/_components/footer.tsx | 14 +- app/(marketing)/_components/navbar.tsx | 20 +- app/(marketing)/layout.tsx | 8 +- app/(marketing)/page.tsx | 38 +- app/(platform)/(clerk)/layout.tsx | 12 +- .../select-org/[[...select-org]]/page.tsx | 6 +- .../(clerk)/sign-in/[[...signin]]/page.tsx | 2 +- .../(clerk)/sign-up/[[...sign-up]]/page.tsx | 2 +- .../(dashboard)/_components/Navbar.tsx | 50 +- .../_components/mobile-sidebar.tsx | 28 +- .../(dashboard)/_components/nav-item.tsx | 64 +- .../(dashboard)/_components/sidebar.tsx | 50 +- .../[boardId]/_components/board-navbar.tsx | 10 +- .../[boardId]/_components/board-options.tsx | 32 +- .../_components/board-title-form.tsx | 32 +- .../board/[boardId]/_components/card-form.tsx | 60 +- .../board/[boardId]/_components/card-item.tsx | 12 +- .../[boardId]/_components/list-container.tsx | 34 +- .../board/[boardId]/_components/list-form.tsx | 56 +- .../[boardId]/_components/list-header.tsx | 50 +- .../board/[boardId]/_components/list-item.tsx | 28 +- .../[boardId]/_components/list-options.tsx | 68 +- .../[boardId]/_components/list-wrapper.tsx | 2 +- .../(dashboard)/board/[boardId]/layout.tsx | 20 +- .../(dashboard)/board/[boardId]/page.tsx | 18 +- app/(platform)/(dashboard)/layout.tsx | 4 +- .../_components/board-list.tsx | 72 +- .../[organizationId]/_components/info.tsx | 44 +- .../_components/org-control.tsx | 8 +- .../activity/_components/activity-list.tsx | 30 +- .../[organizationId]/activity/page.tsx | 14 +- .../_components/subscription-button.tsx | 16 +- .../[organizationId]/billing/page.tsx | 14 +- .../organization/[organizationId]/layout.tsx | 8 +- .../organization/[organizationId]/page.tsx | 16 +- .../[organizationId]/settings/page.tsx | 14 +- .../(dashboard)/organization/layout.tsx | 8 +- app/(platform)/layout.tsx | 8 +- app/api/cards/[cardId]/logs/route.ts | 12 +- app/api/cards/[cardId]/route.ts | 8 +- app/api/webhook/route.ts | 18 +- app/layout.tsx | 16 +- components.json | 2 +- components/activity-item.tsx | 22 +- components/form/form-errors.tsx | 10 +- components/form/form-input.tsx | 26 +- components/form/form-picker.tsx | 54 +- components/form/form-popover.tsx | 64 +- components/form/form-submit.tsx | 28 +- components/form/form-textarea.tsx | 24 +- components/hint.tsx | 8 +- components/logo.tsx | 15 +- components/modals/card-modal/actions.tsx | 50 +- components/modals/card-modal/activity.tsx | 30 +- components/modals/card-modal/description.tsx | 82 +- components/modals/card-modal/header.tsx | 52 +- components/modals/card-modal/index.tsx | 32 +- components/modals/pro-modal.tsx | 42 +- components/providers/modal-provider.tsx | 12 +- components/providers/query-provider.tsx | 20 +- components/ui/accordion.tsx | 38 +- components/ui/avatar.tsx | 28 +- components/ui/button.tsx | 46 +- components/ui/dialog.tsx | 32 +- components/ui/input.tsx | 14 +- components/ui/label.tsx | 20 +- components/ui/popover.tsx | 24 +- components/ui/separator.tsx | 20 +- components/ui/sheet.tsx | 78 +- components/ui/skeleton.tsx | 8 +- components/ui/textarea.tsx | 14 +- components/ui/tooltip.tsx | 22 +- config/site.ts | 6 +- constants/boards.ts | 2 +- constants/images.ts | 906 +++++++++--------- hooks/use-action.ts | 4 +- hooks/use-card-modal.ts | 2 +- hooks/use-mobile-sidebar.ts | 2 +- hooks/use-pro-modal.ts | 2 +- lib/create-audit-log.ts | 12 +- lib/create-safe-action.ts | 2 +- lib/db.ts | 4 +- lib/fetcher.ts | 2 +- lib/generate-log-message.ts | 2 +- lib/org-limit.ts | 12 +- lib/stripe.ts | 4 +- lib/subscription.ts | 4 +- lib/unsplash.ts | 4 +- lib/utils.ts | 8 +- middleware.ts | 14 +- next.config.js | 10 +- postcss.config.js | 2 +- tailwind.config.ts | 78 +- types.ts | 2 +- 138 files changed, 1829 insertions(+), 1851 deletions(-) delete mode 100644 .github/workflows/build-lint.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4637ae1..3e07546 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,4 +14,4 @@ updates: assignees: - 'ahmadk953' reviewers: - - 'ahmadk953' \ No newline at end of file + - 'ahmadk953' diff --git a/.github/workflows/build-lint.yml b/.github/workflows/build-lint.yml deleted file mode 100644 index cd53145..0000000 --- a/.github/workflows/build-lint.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build and Lint - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [21.x] - - steps: - - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: yarn - - - name: Build - run: | - npm install - npm run build - - - name: Lint - run: | - npm run lint \ No newline at end of file diff --git a/actions/copy-card/index.ts b/actions/copy-card/index.ts index e6c040d..eda7fe3 100644 --- a/actions/copy-card/index.ts +++ b/actions/copy-card/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { CopyCard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { CopyCard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { id, boardId } = data; let card; @@ -31,11 +31,11 @@ const handler = async (data: InputType): Promise => { }, }); - if (!cardToCopy) return { error: "Card not found" }; + if (!cardToCopy) return { error: 'Card not found' }; const lastCard = await db.card.findFirst({ where: { listId: cardToCopy.listId }, - orderBy: { order: "desc" }, + orderBy: { order: 'desc' }, select: { order: true }, }); @@ -47,8 +47,8 @@ const handler = async (data: InputType): Promise => { description: cardToCopy.description, order: newOrder, listId: cardToCopy.listId, - } - }) + }, + }); await createAuditLog({ entityTitle: card.title, @@ -58,7 +58,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to copy card", + error: 'Failed to copy card', }; } diff --git a/actions/copy-card/schema.ts b/actions/copy-card/schema.ts index 61d5b63..9c52292 100644 --- a/actions/copy-card/schema.ts +++ b/actions/copy-card/schema.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from 'zod'; export const CopyCard = z.object({ id: z.string(), diff --git a/actions/copy-card/types.ts b/actions/copy-card/types.ts index 37711d8..65a8373 100644 --- a/actions/copy-card/types.ts +++ b/actions/copy-card/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Card } from "@prisma/client"; +import { z } from 'zod'; +import { Card } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { CopyCard } from "./schema"; +import { CopyCard } from './schema'; export type InputType = z.infer; export type ReturnType = ActionState; diff --git a/actions/copy-list/index.ts b/actions/copy-list/index.ts index a6045e3..fc31b22 100644 --- a/actions/copy-list/index.ts +++ b/actions/copy-list/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { CopyList } from "./schema"; +import { InputType, ReturnType } from './types'; +import { CopyList } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { id, boardId } = data; let list; @@ -33,11 +33,11 @@ const handler = async (data: InputType): Promise => { }, }); - if (!listToCopy) return { error: "List not found" }; + if (!listToCopy) return { error: 'List not found' }; const lastList = await db.list.findFirst({ where: { boardId }, - orderBy: { order: "desc" }, + orderBy: { order: 'desc' }, select: { order: true }, }); @@ -71,7 +71,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to copy list", + error: 'Failed to copy list', }; } diff --git a/actions/copy-list/schema.ts b/actions/copy-list/schema.ts index 497d6a0..686f490 100644 --- a/actions/copy-list/schema.ts +++ b/actions/copy-list/schema.ts @@ -1,6 +1,6 @@ -import { z } from "zod"; +import { z } from 'zod'; export const CopyList = z.object({ id: z.string(), boardId: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/copy-list/types.ts b/actions/copy-list/types.ts index 7ad51e8..909af2a 100644 --- a/actions/copy-list/types.ts +++ b/actions/copy-list/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { List } from "@prisma/client"; +import { z } from 'zod'; +import { List } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { CopyList } from "./schema"; +import { CopyList } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/actions/create-board/index.ts b/actions/create-board/index.ts index b6df208..5869828 100644 --- a/actions/create-board/index.ts +++ b/actions/create-board/index.ts @@ -1,24 +1,24 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; -import { db } from "@/lib/db"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { CreateBoard } from "./schema"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; -import { incrementAvailableCount, hasAvailableCount } from "@/lib/org-limit"; -import { checkSubscription } from "@/lib/subscription"; +import { InputType, ReturnType } from './types'; +import { CreateBoard } from './schema'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; +import { incrementAvailableCount, hasAvailableCount } from '@/lib/org-limit'; +import { checkSubscription } from '@/lib/subscription'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); if (!userId || !orgId) { return { - error: "Unauthorized", + error: 'Unauthorized', }; } @@ -28,14 +28,14 @@ const handler = async (data: InputType): Promise => { if (!canCreate && !isPro) { return { error: - "You have reached your limit of free boards. Please upgrade to create more.", + 'You have reached your limit of free boards. Please upgrade to create more.', }; } const { title, image } = data; const [imageId, imageThumbUrl, imageFullUrl, imageLinkHTML, imageUserName] = - image.split("|"); + image.split('|'); if ( !imageId || @@ -45,7 +45,7 @@ const handler = async (data: InputType): Promise => { !imageLinkHTML ) { return { - error: "Missing fields. Failed to create board.", + error: 'Missing fields. Failed to create board.', }; } @@ -76,7 +76,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to create board", + error: 'Failed to create board', }; } diff --git a/actions/create-board/schema.ts b/actions/create-board/schema.ts index 0ac1aea..71a095f 100644 --- a/actions/create-board/schema.ts +++ b/actions/create-board/schema.ts @@ -1,14 +1,16 @@ -import { z } from "zod"; +import { z } from 'zod'; export const CreateBoard = z.object({ - title: z.string({ - required_error: "Title is required", - invalid_type_error: "Title must be a string", - }).min(3, { - message: "Title must be at least 3 characters", - }), + title: z + .string({ + required_error: 'Title is required', + invalid_type_error: 'Title must be a string', + }) + .min(3, { + message: 'Title must be at least 3 characters', + }), image: z.string({ - required_error: "Image is required", - invalid_type_error: "Image must be a string", - }) -}); \ No newline at end of file + required_error: 'Image is required', + invalid_type_error: 'Image must be a string', + }), +}); diff --git a/actions/create-board/types.ts b/actions/create-board/types.ts index 03d9ef4..dca4443 100644 --- a/actions/create-board/types.ts +++ b/actions/create-board/types.ts @@ -1,8 +1,8 @@ -import { z } from "zod"; -import { Board } from "@prisma/client"; +import { z } from 'zod'; +import { Board } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; -import { CreateBoard } from "./schema"; +import { ActionState } from '@/lib/create-safe-action'; +import { CreateBoard } from './schema'; export type InputType = z.infer; export type ReturnType = ActionState; diff --git a/actions/create-card/index.ts b/actions/create-card/index.ts index 8f08e29..cf21132 100644 --- a/actions/create-card/index.ts +++ b/actions/create-card/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { CreateCard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { CreateCard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { title, boardId, listId } = data; let card; @@ -29,11 +29,11 @@ const handler = async (data: InputType): Promise => { }, }); - if (!list) return { error: "List not found" }; + if (!list) return { error: 'List not found' }; const lastCard = await db.card.findFirst({ where: { listId }, - orderBy: { order: "desc" }, + orderBy: { order: 'desc' }, select: { order: true }, }); @@ -55,7 +55,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to create card", + error: 'Failed to create card', }; } diff --git a/actions/create-card/schema.ts b/actions/create-card/schema.ts index 3b6d60b..a91f187 100644 --- a/actions/create-card/schema.ts +++ b/actions/create-card/schema.ts @@ -1,12 +1,14 @@ -import { z } from "zod"; +import { z } from 'zod'; export const CreateCard = z.object({ - title: z.string({ - required_error: "Card title is required", - invalid_type_error: "Card title must be a string", - }).min(2, { - message: "Card title must be at least 2 characters", - }), + title: z + .string({ + required_error: 'Card title is required', + invalid_type_error: 'Card title must be a string', + }) + .min(2, { + message: 'Card title must be at least 2 characters', + }), boardId: z.string(), listId: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/create-card/types.ts b/actions/create-card/types.ts index 5df7e72..c54bbbb 100644 --- a/actions/create-card/types.ts +++ b/actions/create-card/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Card } from "@prisma/client"; +import { z } from 'zod'; +import { Card } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { CreateCard } from "./schema"; +import { CreateCard } from './schema'; export type InputType = z.infer; export type ReturnType = ActionState; diff --git a/actions/create-list/index.ts b/actions/create-list/index.ts index d021a35..7c45c17 100644 --- a/actions/create-list/index.ts +++ b/actions/create-list/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { CreateList } from "./schema"; +import { InputType, ReturnType } from './types'; +import { CreateList } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { title, boardId } = data; let list; @@ -27,11 +27,11 @@ const handler = async (data: InputType): Promise => { }, }); - if (!board) return { error: "Board not found" }; + if (!board) return { error: 'Board not found' }; const lastList = await db.list.findFirst({ where: { boardId: boardId }, - orderBy: { order: "desc" }, + orderBy: { order: 'desc' }, select: { order: true }, }); @@ -53,7 +53,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to create list", + error: 'Failed to create list', }; } diff --git a/actions/create-list/schema.ts b/actions/create-list/schema.ts index b16f986..72c59f4 100644 --- a/actions/create-list/schema.ts +++ b/actions/create-list/schema.ts @@ -1,11 +1,13 @@ -import { z } from "zod"; +import { z } from 'zod'; export const CreateList = z.object({ - title: z.string({ - required_error: "List title is required", - invalid_type_error: "List title must be a string", - }).min(2, { - message: "List title must be at least 2 characters", - }), + title: z + .string({ + required_error: 'List title is required', + invalid_type_error: 'List title must be a string', + }) + .min(2, { + message: 'List title must be at least 2 characters', + }), boardId: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/create-list/types.ts b/actions/create-list/types.ts index cfbe040..56eaeac 100644 --- a/actions/create-list/types.ts +++ b/actions/create-list/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { List } from "@prisma/client"; +import { z } from 'zod'; +import { List } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { CreateList } from "./schema"; +import { CreateList } from './schema'; -export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type InputType = z.infer; +export type ReturnType = ActionState; diff --git a/actions/delete-board/index.ts b/actions/delete-board/index.ts index 80020cd..0daee49 100644 --- a/actions/delete-board/index.ts +++ b/actions/delete-board/index.ts @@ -1,23 +1,23 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { redirect } from "next/navigation"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { redirect } from 'next/navigation'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; -import { decreaseAvailableCount } from "@/lib/org-limit"; -import { checkSubscription } from "@/lib/subscription"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; +import { decreaseAvailableCount } from '@/lib/org-limit'; +import { checkSubscription } from '@/lib/subscription'; -import { InputType, ReturnType } from "./types"; -import { DeleteBoard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { DeleteBoard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const isPro = await checkSubscription(); @@ -44,7 +44,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to delete board", + error: 'Failed to delete board', }; } diff --git a/actions/delete-board/schema.ts b/actions/delete-board/schema.ts index 4224b1f..e269c00 100644 --- a/actions/delete-board/schema.ts +++ b/actions/delete-board/schema.ts @@ -1,5 +1,5 @@ -import { z } from "zod"; +import { z } from 'zod'; export const DeleteBoard = z.object({ id: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/delete-board/types.ts b/actions/delete-board/types.ts index b980ff3..ff5e18f 100644 --- a/actions/delete-board/types.ts +++ b/actions/delete-board/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Board } from "@prisma/client"; +import { z } from 'zod'; +import { Board } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { DeleteBoard } from "./schema"; +import { DeleteBoard } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/actions/delete-card/index.ts b/actions/delete-card/index.ts index 7b5dab2..4326b13 100644 --- a/actions/delete-card/index.ts +++ b/actions/delete-card/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { DeleteCard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { DeleteCard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { id, boardId } = data; let card; @@ -39,7 +39,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to delete card", + error: 'Failed to delete card', }; } diff --git a/actions/delete-card/schema.ts b/actions/delete-card/schema.ts index 6eed7e4..08b307c 100644 --- a/actions/delete-card/schema.ts +++ b/actions/delete-card/schema.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from 'zod'; export const DeleteCard = z.object({ id: z.string(), diff --git a/actions/delete-card/types.ts b/actions/delete-card/types.ts index e405f83..c9af465 100644 --- a/actions/delete-card/types.ts +++ b/actions/delete-card/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Card } from "@prisma/client"; +import { z } from 'zod'; +import { Card } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { DeleteCard } from "./schema"; +import { DeleteCard } from './schema'; export type InputType = z.infer; export type ReturnType = ActionState; diff --git a/actions/delete-list/index.ts b/actions/delete-list/index.ts index 973216e..1f46796 100644 --- a/actions/delete-list/index.ts +++ b/actions/delete-list/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { DeleteList } from "./schema"; +import { InputType, ReturnType } from './types'; +import { DeleteList } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { id, boardId } = data; let list; @@ -38,7 +38,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to delete list", + error: 'Failed to delete list', }; } diff --git a/actions/delete-list/schema.ts b/actions/delete-list/schema.ts index 48abbb1..2c51c71 100644 --- a/actions/delete-list/schema.ts +++ b/actions/delete-list/schema.ts @@ -1,6 +1,6 @@ -import { z } from "zod"; +import { z } from 'zod'; export const DeleteList = z.object({ id: z.string(), boardId: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/delete-list/types.ts b/actions/delete-list/types.ts index 6d40a6b..b2519a6 100644 --- a/actions/delete-list/types.ts +++ b/actions/delete-list/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { List } from "@prisma/client"; +import { z } from 'zod'; +import { List } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { DeleteList } from "./schema"; +import { DeleteList } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/actions/stripe-redirect/index.ts b/actions/stripe-redirect/index.ts index ac6dcd9..668eb70 100644 --- a/actions/stripe-redirect/index.ts +++ b/actions/stripe-redirect/index.ts @@ -1,25 +1,25 @@ -"use server"; +'use server'; -import { auth, currentUser } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; +import { auth, currentUser } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; -import { db } from "@/lib/db"; -import { createSafeAction } from "@/lib/create-safe-action"; -import { absoluteUrl } from "@/lib/utils"; -import { stripe } from "@/lib/stripe"; +import { db } from '@/lib/db'; +import { createSafeAction } from '@/lib/create-safe-action'; +import { absoluteUrl } from '@/lib/utils'; +import { stripe } from '@/lib/stripe'; -import { InputType, ReturnType } from "./types"; -import { StripeRedirect } from "./schema"; +import { InputType, ReturnType } from './types'; +import { StripeRedirect } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); const user = await currentUser(); - if (!userId || !orgId || !user) return { error: "Unauthorized" }; + if (!userId || !orgId || !user) return { error: 'Unauthorized' }; const settingsUrl = absoluteUrl(`/organization/${orgId}`); - let url = ""; + let url = ''; try { const orgSubscription = await db.orgSubscription.findUnique({ @@ -37,20 +37,20 @@ const handler = async (data: InputType): Promise => { const stripeSession = await stripe.checkout.sessions.create({ success_url: settingsUrl, cancel_url: settingsUrl, - payment_method_types: ["card", "paypal"], - mode: "subscription", - billing_address_collection: "auto", + payment_method_types: ['card', 'paypal'], + mode: 'subscription', + billing_address_collection: 'auto', customer_email: user.emailAddresses[0].emailAddress, line_items: [ { price_data: { - currency: "usd", + currency: 'usd', product_data: { - name: "Tasko Pro", - description: "Unlimited boards for your organization", + name: 'Tasko Pro', + description: 'Unlimited boards for your organization', }, unit_amount: 2000, - recurring: { interval: "month" }, + recurring: { interval: 'month' }, }, quantity: 1, }, @@ -60,11 +60,11 @@ const handler = async (data: InputType): Promise => { }, }); - url = stripeSession.url ?? ""; + url = stripeSession.url ?? ''; } } catch (error) { return { - error: "Something went wrong", + error: 'Something went wrong', }; } diff --git a/actions/stripe-redirect/schema.ts b/actions/stripe-redirect/schema.ts index 0e8549d..eb68395 100644 --- a/actions/stripe-redirect/schema.ts +++ b/actions/stripe-redirect/schema.ts @@ -1,3 +1,3 @@ -import { z } from "zod"; +import { z } from 'zod'; export const StripeRedirect = z.object({}); diff --git a/actions/stripe-redirect/types.ts b/actions/stripe-redirect/types.ts index 3752693..8d76199 100644 --- a/actions/stripe-redirect/types.ts +++ b/actions/stripe-redirect/types.ts @@ -1,8 +1,8 @@ -import { z } from "zod"; +import { z } from 'zod'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { StripeRedirect } from "./schema"; +import { StripeRedirect } from './schema'; export type InputType = z.infer; export type ReturnType = ActionState; diff --git a/actions/update-board/index.ts b/actions/update-board/index.ts index 9d48c4c..78df7e2 100644 --- a/actions/update-board/index.ts +++ b/actions/update-board/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { UpdateBoard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { UpdateBoard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { title, id } = data; let board; @@ -38,7 +38,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to update board", + error: 'Failed to update board', }; } @@ -46,4 +46,4 @@ const handler = async (data: InputType): Promise => { return { data: board }; }; -export const updateBoard = createSafeAction(UpdateBoard, handler); \ No newline at end of file +export const updateBoard = createSafeAction(UpdateBoard, handler); diff --git a/actions/update-board/schema.ts b/actions/update-board/schema.ts index 731bf90..ca8d5e9 100644 --- a/actions/update-board/schema.ts +++ b/actions/update-board/schema.ts @@ -1,11 +1,13 @@ -import { z } from "zod"; +import { z } from 'zod'; export const UpdateBoard = z.object({ - title: z.string({ - required_error: "Title is required", - invalid_type_error: "Title must be a string", - }).min(3, { - message: "Title must be at least 3 characters", - }), + title: z + .string({ + required_error: 'Title is required', + invalid_type_error: 'Title must be a string', + }) + .min(3, { + message: 'Title must be at least 3 characters', + }), id: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/update-board/types.ts b/actions/update-board/types.ts index e8e23b2..88c5fbe 100644 --- a/actions/update-board/types.ts +++ b/actions/update-board/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Board } from "@prisma/client"; +import { z } from 'zod'; +import { Board } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { UpdateBoard } from "./schema"; +import { UpdateBoard } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/actions/update-card-order/index.ts b/actions/update-card-order/index.ts index 323afaf..d2c9735 100644 --- a/actions/update-card-order/index.ts +++ b/actions/update-card-order/index.ts @@ -1,18 +1,18 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; -import { db } from "@/lib/db"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { UpdateCardOrder } from "./schema"; +import { InputType, ReturnType } from './types'; +import { UpdateCardOrder } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { items, boardId } = data; let updatedCards; @@ -38,7 +38,7 @@ const handler = async (data: InputType): Promise => { updatedCards = await db.$transaction(transaction); } catch (error) { return { - error: "Failed to reorder list", + error: 'Failed to reorder list', }; } diff --git a/actions/update-card-order/schema.ts b/actions/update-card-order/schema.ts index fba6d89..1377361 100644 --- a/actions/update-card-order/schema.ts +++ b/actions/update-card-order/schema.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from 'zod'; export const UpdateCardOrder = z.object({ items: z.array( diff --git a/actions/update-card-order/types.ts b/actions/update-card-order/types.ts index d10877d..0dedc0d 100644 --- a/actions/update-card-order/types.ts +++ b/actions/update-card-order/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Card } from "@prisma/client"; +import { z } from 'zod'; +import { Card } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { UpdateCardOrder } from "./schema"; +import { UpdateCardOrder } from './schema'; -export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type InputType = z.infer; +export type ReturnType = ActionState; diff --git a/actions/update-card/index.ts b/actions/update-card/index.ts index 270fced..2c9d393 100644 --- a/actions/update-card/index.ts +++ b/actions/update-card/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { UpdateCard } from "./schema"; +import { InputType, ReturnType } from './types'; +import { UpdateCard } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { id, boardId, ...values } = data; let card; @@ -42,7 +42,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to update card", + error: 'Failed to update card', }; } diff --git a/actions/update-card/schema.ts b/actions/update-card/schema.ts index d4282b3..b17aa92 100644 --- a/actions/update-card/schema.ts +++ b/actions/update-card/schema.ts @@ -1,25 +1,25 @@ -import { z } from "zod"; +import { z } from 'zod'; export const UpdateCard = z.object({ boardId: z.string(), description: z.optional( z .string({ - invalid_type_error: "Description must be a string", - required_error: "Description is required", + invalid_type_error: 'Description must be a string', + required_error: 'Description is required', }) .min(3, { - message: "Description must be at least 3 characters", + message: 'Description must be at least 3 characters', }) ), title: z.optional( z .string({ - required_error: "Title is required", - invalid_type_error: "Title must be a string", + required_error: 'Title is required', + invalid_type_error: 'Title must be a string', }) .min(3, { - message: "Title must be at least 3 characters", + message: 'Title must be at least 3 characters', }) ), id: z.string(), diff --git a/actions/update-card/types.ts b/actions/update-card/types.ts index f15794c..a9d563e 100644 --- a/actions/update-card/types.ts +++ b/actions/update-card/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { Card } from "@prisma/client"; +import { z } from 'zod'; +import { Card } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { UpdateCard } from "./schema"; +import { UpdateCard } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/actions/update-list-order/index.ts b/actions/update-list-order/index.ts index 6254340..da16cff 100644 --- a/actions/update-list-order/index.ts +++ b/actions/update-list-order/index.ts @@ -1,18 +1,18 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; -import { db } from "@/lib/db"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { UpdateListOrder } from "./schema"; +import { InputType, ReturnType } from './types'; +import { UpdateListOrder } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { items, boardId } = data; let lists; @@ -35,7 +35,7 @@ const handler = async (data: InputType): Promise => { lists = await db.$transaction(transaction); } catch (error) { return { - error: "Failed to reorder list", + error: 'Failed to reorder list', }; } diff --git a/actions/update-list-order/schema.ts b/actions/update-list-order/schema.ts index be2e5ca..003aeca 100644 --- a/actions/update-list-order/schema.ts +++ b/actions/update-list-order/schema.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from 'zod'; export const UpdateListOrder = z.object({ items: z.array( diff --git a/actions/update-list-order/types.ts b/actions/update-list-order/types.ts index 6743566..79cff50 100644 --- a/actions/update-list-order/types.ts +++ b/actions/update-list-order/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { List } from "@prisma/client"; +import { z } from 'zod'; +import { List } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { UpdateListOrder } from "./schema"; +import { UpdateListOrder } from './schema'; -export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type InputType = z.infer; +export type ReturnType = ActionState; diff --git a/actions/update-list/index.ts b/actions/update-list/index.ts index 06da37c..b620873 100644 --- a/actions/update-list/index.ts +++ b/actions/update-list/index.ts @@ -1,20 +1,20 @@ -"use server"; +'use server'; -import { auth } from "@clerk/nextjs"; -import { revalidatePath } from "next/cache"; -import { ACTION, ENTITY_TYPE } from "@prisma/client"; +import { auth } from '@clerk/nextjs'; +import { revalidatePath } from 'next/cache'; +import { ACTION, ENTITY_TYPE } from '@prisma/client'; -import { db } from "@/lib/db"; -import { createAuditLog } from "@/lib/create-audit-log"; -import { createSafeAction } from "@/lib/create-safe-action"; +import { db } from '@/lib/db'; +import { createAuditLog } from '@/lib/create-audit-log'; +import { createSafeAction } from '@/lib/create-safe-action'; -import { InputType, ReturnType } from "./types"; -import { UpdateList } from "./schema"; +import { InputType, ReturnType } from './types'; +import { UpdateList } from './schema'; const handler = async (data: InputType): Promise => { const { userId, orgId } = auth(); - if (!userId || !orgId) return { error: "Unauthorized" }; + if (!userId || !orgId) return { error: 'Unauthorized' }; const { title, id, boardId } = data; let list; @@ -41,7 +41,7 @@ const handler = async (data: InputType): Promise => { }); } catch (error) { return { - error: "Failed to update list", + error: 'Failed to update list', }; } diff --git a/actions/update-list/schema.ts b/actions/update-list/schema.ts index 6724fa2..40d27d8 100644 --- a/actions/update-list/schema.ts +++ b/actions/update-list/schema.ts @@ -1,12 +1,14 @@ -import { z } from "zod"; +import { z } from 'zod'; export const UpdateList = z.object({ - title: z.string({ - required_error: "Title is required", - invalid_type_error: "Title must be a string", - }).min(2, { - message: "Title must be at least 2 characters", - }), + title: z + .string({ + required_error: 'Title is required', + invalid_type_error: 'Title must be a string', + }) + .min(2, { + message: 'Title must be at least 2 characters', + }), id: z.string(), boardId: z.string(), -}) \ No newline at end of file +}); diff --git a/actions/update-list/types.ts b/actions/update-list/types.ts index fed4d6e..5d3071a 100644 --- a/actions/update-list/types.ts +++ b/actions/update-list/types.ts @@ -1,9 +1,9 @@ -import { z } from "zod"; -import { List } from "@prisma/client"; +import { z } from 'zod'; +import { List } from '@prisma/client'; -import { ActionState } from "@/lib/create-safe-action"; +import { ActionState } from '@/lib/create-safe-action'; -import { UpdateList } from "./schema"; +import { UpdateList } from './schema'; export type InputType = z.infer; -export type ReturnType = ActionState; \ No newline at end of file +export type ReturnType = ActionState; diff --git a/app/(marketing)/_components/footer.tsx b/app/(marketing)/_components/footer.tsx index 4b0b53a..cce83b3 100644 --- a/app/(marketing)/_components/footer.tsx +++ b/app/(marketing)/_components/footer.tsx @@ -1,16 +1,16 @@ -import { Logo } from "@/components/logo"; -import { Button } from "@/components/ui/button"; +import { Logo } from '@/components/logo'; +import { Button } from '@/components/ui/button'; export const Footer = () => { return ( -
-
+
+
-
- -
diff --git a/app/(marketing)/_components/navbar.tsx b/app/(marketing)/_components/navbar.tsx index 0ae9724..7d135cb 100644 --- a/app/(marketing)/_components/navbar.tsx +++ b/app/(marketing)/_components/navbar.tsx @@ -1,18 +1,18 @@ -import { Logo } from "@/components/logo"; -import { Button } from "@/components/ui/button"; -import Link from "next/link"; +import { Logo } from '@/components/logo'; +import { Button } from '@/components/ui/button'; +import Link from 'next/link'; export const Navbar = () => { return ( -
-
+
+
-
- -
diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index 6dbe428..71fc1ae 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -1,11 +1,11 @@ -import { Footer } from "./_components/footer"; -import { Navbar } from "./_components/navbar"; +import { Footer } from './_components/footer'; +import { Navbar } from './_components/navbar'; const MarketingLayout = ({ children }: { children: React.ReactNode }) => { return ( -
+
-
{children}
+
{children}
); diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx index 7b73068..7f64c24 100644 --- a/app/(marketing)/page.tsx +++ b/app/(marketing)/page.tsx @@ -1,42 +1,42 @@ -import { Medal } from "lucide-react"; -import localFont from "next/font/local"; -import { Poppins } from "next/font/google"; -import Link from "next/link"; +import { Medal } from 'lucide-react'; +import localFont from 'next/font/local'; +import { Poppins } from 'next/font/google'; +import Link from 'next/link'; -import { cn } from "@/lib/utils"; -import { Button } from "@/components/ui/button"; -import Image from "next/image"; +import { cn } from '@/lib/utils'; +import { Button } from '@/components/ui/button'; +import Image from 'next/image'; -const headingFont = localFont({ src: "../../public/fonts/font.woff2" }); +const headingFont = localFont({ src: '../../public/fonts/font.woff2' }); const textFont = Poppins({ - subsets: ["latin"], - weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], + subsets: ['latin'], + weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'], }); const MarketingPage = () => { return ( -
+
-
- +
+ No 1 task management app
-

+

Tasko helps teams move

-
+
Work forward
@@ -44,8 +44,8 @@ const MarketingPage = () => { high rises to the home office, the way your team works is unique - accomplish it all with Tasko.
-
); diff --git a/app/(platform)/(clerk)/layout.tsx b/app/(platform)/(clerk)/layout.tsx index 9a14330..f61124f 100644 --- a/app/(platform)/(clerk)/layout.tsx +++ b/app/(platform)/(clerk)/layout.tsx @@ -1,9 +1,7 @@ const ClerkLayout = ({ children }: { children: React.ReactNode }) => { - return ( -
- {children} -
- ) -} + return ( +
{children}
+ ); +}; -export default ClerkLayout; \ No newline at end of file +export default ClerkLayout; diff --git a/app/(platform)/(clerk)/select-org/[[...select-org]]/page.tsx b/app/(platform)/(clerk)/select-org/[[...select-org]]/page.tsx index cdc397c..6ae97c3 100644 --- a/app/(platform)/(clerk)/select-org/[[...select-org]]/page.tsx +++ b/app/(platform)/(clerk)/select-org/[[...select-org]]/page.tsx @@ -1,11 +1,11 @@ -import { OrganizationList } from "@clerk/nextjs"; +import { OrganizationList } from '@clerk/nextjs'; export default function CreateOrganizationPage() { return ( ); } diff --git a/app/(platform)/(clerk)/sign-in/[[...signin]]/page.tsx b/app/(platform)/(clerk)/sign-in/[[...signin]]/page.tsx index 2cc13d4..9fe2bb4 100644 --- a/app/(platform)/(clerk)/sign-in/[[...signin]]/page.tsx +++ b/app/(platform)/(clerk)/sign-in/[[...signin]]/page.tsx @@ -1,4 +1,4 @@ -import { SignIn } from "@clerk/nextjs"; +import { SignIn } from '@clerk/nextjs'; export default function Page() { return ; diff --git a/app/(platform)/(clerk)/sign-up/[[...sign-up]]/page.tsx b/app/(platform)/(clerk)/sign-up/[[...sign-up]]/page.tsx index 2743945..0d02dd1 100644 --- a/app/(platform)/(clerk)/sign-up/[[...sign-up]]/page.tsx +++ b/app/(platform)/(clerk)/sign-up/[[...sign-up]]/page.tsx @@ -1,4 +1,4 @@ -import { SignUp } from "@clerk/nextjs"; +import { SignUp } from '@clerk/nextjs'; export default function Page() { return ; diff --git a/app/(platform)/(dashboard)/_components/Navbar.tsx b/app/(platform)/(dashboard)/_components/Navbar.tsx index dd67533..0794b1c 100644 --- a/app/(platform)/(dashboard)/_components/Navbar.tsx +++ b/app/(platform)/(dashboard)/_components/Navbar.tsx @@ -1,57 +1,57 @@ -import { Plus } from "lucide-react"; -import { OrganizationSwitcher, UserButton } from "@clerk/nextjs"; +import { Plus } from 'lucide-react'; +import { OrganizationSwitcher, UserButton } from '@clerk/nextjs'; -import { Logo } from "@/components/logo"; -import { Button } from "@/components/ui/button"; -import { FormPopover } from "@/components/form/form-popover"; +import { Logo } from '@/components/logo'; +import { Button } from '@/components/ui/button'; +import { FormPopover } from '@/components/form/form-popover'; -import { MobileSidebar } from "./mobile-sidebar"; +import { MobileSidebar } from './mobile-sidebar'; export const Navbar = () => { return ( -