├── .env.local.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc.json ├── README.md ├── bun.lockb ├── components.json ├── drizzle.config.ts ├── drizzle ├── 0000_freezing_smasher.sql ├── 0001_nebulous_robbie_robertson.sql ├── 0002_parallel_blackheart.sql └── meta │ ├── 0000_snapshot.json │ ├── 0001_snapshot.json │ ├── 0002_snapshot.json │ └── _journal.json ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public ├── bg.jpg ├── car_sale.json ├── car_sale.png ├── coming_soon.json ├── coming_soon.png ├── flash_sale.json ├── flash_sale.png ├── logo.svg ├── next.svg ├── travel.json ├── travel.png └── vercel.svg ├── src ├── app │ ├── (auth) │ │ ├── layout.tsx │ │ ├── sign-in │ │ │ └── page.tsx │ │ └── sign-up │ │ │ └── page.tsx │ ├── (dashboard) │ │ ├── banner.tsx │ │ ├── layout.tsx │ │ ├── logo.tsx │ │ ├── navbar.tsx │ │ ├── page.tsx │ │ ├── projects-section.tsx │ │ ├── sidebar-item.tsx │ │ ├── sidebar-routes.tsx │ │ ├── sidebar.tsx │ │ ├── template-card.tsx │ │ └── templates-section.tsx │ ├── api │ │ ├── [[...route]] │ │ │ ├── ai.ts │ │ │ ├── images.ts │ │ │ ├── projects.ts │ │ │ ├── route.ts │ │ │ ├── subscriptions.ts │ │ │ └── users.ts │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ └── uploadthing │ │ │ ├── core.ts │ │ │ └── route.ts │ ├── editor │ │ └── [projectId] │ │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ └── layout.tsx ├── auth.config.ts ├── auth.ts ├── components │ ├── hint.tsx │ ├── modals.tsx │ ├── providers.tsx │ ├── query-provider.tsx │ └── ui │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── scroll-area.tsx │ │ ├── separator.tsx │ │ ├── slider.tsx │ │ ├── sonner.tsx │ │ ├── table.tsx │ │ ├── textarea.tsx │ │ └── tooltip.tsx ├── db │ ├── drizzle.ts │ └── schema.ts ├── features │ ├── ai │ │ └── api │ │ │ ├── use-generate-image.ts │ │ │ └── use-remove-bg.ts │ ├── auth │ │ ├── components │ │ │ ├── sign-in-card.tsx │ │ │ ├── sign-up-card.tsx │ │ │ └── user-button.tsx │ │ ├── hooks │ │ │ └── use-sign-up.ts │ │ └── utils.ts │ ├── editor │ │ ├── components │ │ │ ├── ai-sidebar.tsx │ │ │ ├── color-picker.tsx │ │ │ ├── draw-sidebar.tsx │ │ │ ├── editor.tsx │ │ │ ├── fill-color-sidebar.tsx │ │ │ ├── filter-sidebar.tsx │ │ │ ├── font-sidebar.tsx │ │ │ ├── font-size-input.tsx │ │ │ ├── footer.tsx │ │ │ ├── image-sidebar.tsx │ │ │ ├── logo.tsx │ │ │ ├── navbar.tsx │ │ │ ├── opacity-sidebar.tsx │ │ │ ├── remove-bg-sidebar.tsx │ │ │ ├── settings-sidebar.tsx │ │ │ ├── shape-sidebar.tsx │ │ │ ├── shape-tool.tsx │ │ │ ├── sidebar-item.tsx │ │ │ ├── sidebar.tsx │ │ │ ├── stroke-color-sidebar.tsx │ │ │ ├── stroke-width-sidebar.tsx │ │ │ ├── template-sidebar.tsx │ │ │ ├── text-sidebar.tsx │ │ │ ├── tool-sidebar-close.tsx │ │ │ ├── tool-sidebar-header.tsx │ │ │ └── toolbar.tsx │ │ ├── hooks │ │ │ ├── use-auto-resize.ts │ │ │ ├── use-canvas-events.ts │ │ │ ├── use-clipboard.ts │ │ │ ├── use-editor.ts │ │ │ ├── use-history.ts │ │ │ ├── use-hotkeys.ts │ │ │ ├── use-load-state.ts │ │ │ └── use-window-events.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── images │ │ └── api │ │ │ └── use-get-images.ts │ ├── projects │ │ └── api │ │ │ ├── use-create-project.ts │ │ │ ├── use-delete-project.ts │ │ │ ├── use-duplicate-project.ts │ │ │ ├── use-get-project.ts │ │ │ ├── use-get-projects.ts │ │ │ ├── use-get-templates.ts │ │ │ └── use-update-project.ts │ └── subscriptions │ │ ├── api │ │ ├── use-billing.ts │ │ ├── use-checkout.ts │ │ └── use-get-subscription.ts │ │ ├── components │ │ ├── fail-modal.tsx │ │ ├── subscription-alert.tsx │ │ ├── subscription-modal.tsx │ │ └── success-modal.tsx │ │ ├── hooks │ │ └── use-paywall.ts │ │ ├── lib.ts │ │ └── store │ │ ├── use-fail-modal.ts │ │ ├── use-subscription-modal.ts │ │ └── use-success-modal.ts ├── hooks │ └── use-confirm.tsx ├── lib │ ├── hono.ts │ ├── replicate.ts │ ├── stripe.ts │ ├── unsplash.ts │ ├── uploadthing.ts │ └── utils.ts └── middleware.ts ├── tailwind.config.ts └── tsconfig.json /.env.local.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_APP_URL= -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/bun.lockb -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/components.json -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /drizzle/0000_freezing_smasher.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/0000_freezing_smasher.sql -------------------------------------------------------------------------------- /drizzle/0001_nebulous_robbie_robertson.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "user" ADD COLUMN "password" text; -------------------------------------------------------------------------------- /drizzle/0002_parallel_blackheart.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/0002_parallel_blackheart.sql -------------------------------------------------------------------------------- /drizzle/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/meta/0000_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/0001_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/meta/0001_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/0002_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/meta/0002_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/drizzle/meta/_journal.json -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/bg.jpg -------------------------------------------------------------------------------- /public/car_sale.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/car_sale.json -------------------------------------------------------------------------------- /public/car_sale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/car_sale.png -------------------------------------------------------------------------------- /public/coming_soon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/coming_soon.json -------------------------------------------------------------------------------- /public/coming_soon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/coming_soon.png -------------------------------------------------------------------------------- /public/flash_sale.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/flash_sale.json -------------------------------------------------------------------------------- /public/flash_sale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/flash_sale.png -------------------------------------------------------------------------------- /public/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/logo.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/travel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/travel.json -------------------------------------------------------------------------------- /public/travel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/travel.png -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/(auth)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(auth)/layout.tsx -------------------------------------------------------------------------------- /src/app/(auth)/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(auth)/sign-in/page.tsx -------------------------------------------------------------------------------- /src/app/(auth)/sign-up/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(auth)/sign-up/page.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/banner.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/layout.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/logo.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/navbar.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/page.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/projects-section.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/projects-section.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/sidebar-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/sidebar-item.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/sidebar-routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/sidebar-routes.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/sidebar.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/template-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/template-card.tsx -------------------------------------------------------------------------------- /src/app/(dashboard)/templates-section.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/(dashboard)/templates-section.tsx -------------------------------------------------------------------------------- /src/app/api/[[...route]]/ai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/ai.ts -------------------------------------------------------------------------------- /src/app/api/[[...route]]/images.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/images.ts -------------------------------------------------------------------------------- /src/app/api/[[...route]]/projects.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/projects.ts -------------------------------------------------------------------------------- /src/app/api/[[...route]]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/route.ts -------------------------------------------------------------------------------- /src/app/api/[[...route]]/subscriptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/subscriptions.ts -------------------------------------------------------------------------------- /src/app/api/[[...route]]/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/[[...route]]/users.ts -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/uploadthing/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/uploadthing/core.ts -------------------------------------------------------------------------------- /src/app/api/uploadthing/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/api/uploadthing/route.ts -------------------------------------------------------------------------------- /src/app/editor/[projectId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/editor/[projectId]/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/auth.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/auth.config.ts -------------------------------------------------------------------------------- /src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/auth.ts -------------------------------------------------------------------------------- /src/components/hint.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/hint.tsx -------------------------------------------------------------------------------- /src/components/modals.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/modals.tsx -------------------------------------------------------------------------------- /src/components/providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/providers.tsx -------------------------------------------------------------------------------- /src/components/query-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/query-provider.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/slider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/slider.tsx -------------------------------------------------------------------------------- /src/components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/sonner.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/db/drizzle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/db/drizzle.ts -------------------------------------------------------------------------------- /src/db/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/db/schema.ts -------------------------------------------------------------------------------- /src/features/ai/api/use-generate-image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/ai/api/use-generate-image.ts -------------------------------------------------------------------------------- /src/features/ai/api/use-remove-bg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/ai/api/use-remove-bg.ts -------------------------------------------------------------------------------- /src/features/auth/components/sign-in-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/auth/components/sign-in-card.tsx -------------------------------------------------------------------------------- /src/features/auth/components/sign-up-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/auth/components/sign-up-card.tsx -------------------------------------------------------------------------------- /src/features/auth/components/user-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/auth/components/user-button.tsx -------------------------------------------------------------------------------- /src/features/auth/hooks/use-sign-up.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/auth/hooks/use-sign-up.ts -------------------------------------------------------------------------------- /src/features/auth/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/auth/utils.ts -------------------------------------------------------------------------------- /src/features/editor/components/ai-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/ai-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/color-picker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/color-picker.tsx -------------------------------------------------------------------------------- /src/features/editor/components/draw-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/draw-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/editor.tsx -------------------------------------------------------------------------------- /src/features/editor/components/fill-color-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/fill-color-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/filter-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/filter-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/font-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/font-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/font-size-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/font-size-input.tsx -------------------------------------------------------------------------------- /src/features/editor/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/footer.tsx -------------------------------------------------------------------------------- /src/features/editor/components/image-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/image-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/logo.tsx -------------------------------------------------------------------------------- /src/features/editor/components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/navbar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/opacity-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/opacity-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/remove-bg-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/remove-bg-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/settings-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/settings-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/shape-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/shape-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/shape-tool.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/shape-tool.tsx -------------------------------------------------------------------------------- /src/features/editor/components/sidebar-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/sidebar-item.tsx -------------------------------------------------------------------------------- /src/features/editor/components/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/stroke-color-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/stroke-color-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/stroke-width-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/stroke-width-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/template-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/template-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/text-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/text-sidebar.tsx -------------------------------------------------------------------------------- /src/features/editor/components/tool-sidebar-close.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/tool-sidebar-close.tsx -------------------------------------------------------------------------------- /src/features/editor/components/tool-sidebar-header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/tool-sidebar-header.tsx -------------------------------------------------------------------------------- /src/features/editor/components/toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/components/toolbar.tsx -------------------------------------------------------------------------------- /src/features/editor/hooks/use-auto-resize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-auto-resize.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-canvas-events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-canvas-events.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-clipboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-clipboard.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-editor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-editor.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-history.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-hotkeys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-hotkeys.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-load-state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-load-state.ts -------------------------------------------------------------------------------- /src/features/editor/hooks/use-window-events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/hooks/use-window-events.ts -------------------------------------------------------------------------------- /src/features/editor/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/types.ts -------------------------------------------------------------------------------- /src/features/editor/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/editor/utils.ts -------------------------------------------------------------------------------- /src/features/images/api/use-get-images.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/images/api/use-get-images.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-create-project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-create-project.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-delete-project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-delete-project.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-duplicate-project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-duplicate-project.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-get-project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-get-project.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-get-projects.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-get-projects.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-get-templates.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-get-templates.ts -------------------------------------------------------------------------------- /src/features/projects/api/use-update-project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/projects/api/use-update-project.ts -------------------------------------------------------------------------------- /src/features/subscriptions/api/use-billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/api/use-billing.ts -------------------------------------------------------------------------------- /src/features/subscriptions/api/use-checkout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/api/use-checkout.ts -------------------------------------------------------------------------------- /src/features/subscriptions/api/use-get-subscription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/api/use-get-subscription.ts -------------------------------------------------------------------------------- /src/features/subscriptions/components/fail-modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/components/fail-modal.tsx -------------------------------------------------------------------------------- /src/features/subscriptions/components/subscription-alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/components/subscription-alert.tsx -------------------------------------------------------------------------------- /src/features/subscriptions/components/subscription-modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/components/subscription-modal.tsx -------------------------------------------------------------------------------- /src/features/subscriptions/components/success-modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/components/success-modal.tsx -------------------------------------------------------------------------------- /src/features/subscriptions/hooks/use-paywall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/hooks/use-paywall.ts -------------------------------------------------------------------------------- /src/features/subscriptions/lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/lib.ts -------------------------------------------------------------------------------- /src/features/subscriptions/store/use-fail-modal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/store/use-fail-modal.ts -------------------------------------------------------------------------------- /src/features/subscriptions/store/use-subscription-modal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/store/use-subscription-modal.ts -------------------------------------------------------------------------------- /src/features/subscriptions/store/use-success-modal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/features/subscriptions/store/use-success-modal.ts -------------------------------------------------------------------------------- /src/hooks/use-confirm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/hooks/use-confirm.tsx -------------------------------------------------------------------------------- /src/lib/hono.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/hono.ts -------------------------------------------------------------------------------- /src/lib/replicate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/replicate.ts -------------------------------------------------------------------------------- /src/lib/stripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/stripe.ts -------------------------------------------------------------------------------- /src/lib/unsplash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/unsplash.ts -------------------------------------------------------------------------------- /src/lib/uploadthing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/uploadthing.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- 1 | export { auth as middleware } from "@/auth"; 2 | -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MichaelFrieze/cnvai-nextjs/HEAD/tsconfig.json --------------------------------------------------------------------------------