mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
refactor(auth): reorganize into actions/components/schemas
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { CardContent, CardHeader } from "@/components/ui/card";
|
import { CardContent, CardHeader } from "@/components/ui/card";
|
||||||
|
|
||||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||||
import { ForgotPasswordForm } from "@/features/auth/forgot-password-form";
|
import { ForgotPasswordForm } from "@/features/auth/components/forgot-password-form";
|
||||||
import { env } from "@/env.mjs";
|
import { env } from "@/env.mjs";
|
||||||
import { CardAuth } from "@/features/layout/card-auth";
|
import { CardAuth } from "@/features/layout/card-auth";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {CardContent, CardHeader} from "@/components/ui/card";
|
import {CardContent, CardHeader} from "@/components/ui/card";
|
||||||
import {TooltipProvider} from "@/components/ui/tooltip";
|
import {TooltipProvider} from "@/components/ui/tooltip";
|
||||||
import {GuardForm} from "@/features/auth/guard-form";
|
import {GuardForm} from "@/features/auth/components/guard-form";
|
||||||
import {cookies} from "next/headers";
|
import {cookies} from "next/headers";
|
||||||
import {redirect} from "next/navigation";
|
import {redirect} from "next/navigation";
|
||||||
import {CardAuth} from "@/features/layout/card-auth";
|
import {CardAuth} from "@/features/layout/card-auth";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from "react";
|
|||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { currentUser } from "@/lib/auth/current-user";
|
import { currentUser } from "@/lib/auth/current-user";
|
||||||
import { isOnboardingDone } from "@/db/services/setting";
|
import { isOnboardingDone } from "@/db/services/setting";
|
||||||
import { AuthLogoSection } from "@/features/auth/auth-logo-section";
|
import { AuthLogoSection } from "@/features/auth/components/auth-logo-section";
|
||||||
import { env } from "@/env.mjs";
|
import { env } from "@/env.mjs";
|
||||||
import { Heart } from "lucide-react";
|
import { Heart } from "lucide-react";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { LoginForm } from "@/features/auth/login-form";
|
import { LoginForm } from "@/features/auth/components/login-form";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { SUPPORTED_PROVIDERS } from "@/lib/auth/config";
|
import { SUPPORTED_PROVIDERS } from "@/lib/auth/config";
|
||||||
import { SocialAuthButtons } from "@/features/auth/social-buttons";
|
import { SocialAuthButtons } from "@/features/auth/components/social-buttons";
|
||||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||||
import { CardContent, CardHeader } from "@/components/ui/card";
|
import { CardContent, CardHeader } from "@/components/ui/card";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { PageParams } from "@/types/next";
|
import { PageParams } from "@/types/next";
|
||||||
import { RegisterForm } from "@/features/auth/register-form";
|
import { RegisterForm } from "@/features/auth/components/register-form";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { env } from "@/env.mjs";
|
import { env } from "@/env.mjs";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { CardContent, CardHeader } from "@/components/ui/card";
|
import { CardContent, CardHeader } from "@/components/ui/card";
|
||||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||||
import { ResetPasswordForm } from "@/features/auth/reset-password-form";
|
import { ResetPasswordForm } from "@/features/auth/components/reset-password-form";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { auth } from "@/lib/auth/auth";
|
import { auth } from "@/lib/auth/auth";
|
||||||
import { Avatar, AvatarImage, AvatarFallback } from "@radix-ui/react-avatar";
|
import { Avatar, AvatarImage, AvatarFallback } from "@radix-ui/react-avatar";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { PasswordInput } from "@/components/ui/password-input";
|
|||||||
import {
|
import {
|
||||||
LoginSchema,
|
LoginSchema,
|
||||||
type LoginType,
|
type LoginType,
|
||||||
} from "@/features/auth/login-form.schema";
|
} from "@/features/auth/schemas/login-form.schema";
|
||||||
import { ButtonWithLoading } from "@/components/common/button-with-loading";
|
import { ButtonWithLoading } from "@/components/common/button-with-loading";
|
||||||
import { signIn } from "@/lib/auth/auth-client";
|
import { signIn } from "@/lib/auth/auth-client";
|
||||||
|
|
||||||
+1
-1
@@ -14,7 +14,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
RegisterSchema,
|
RegisterSchema,
|
||||||
RegisterType,
|
RegisterType,
|
||||||
} from "@/features/auth/register-form.schema";
|
} from "@/features/auth/schemas/register-form.schema";
|
||||||
import { signUp } from "@/lib/auth/auth-client";
|
import { signUp } from "@/lib/auth/auth-client";
|
||||||
import { useZodForm } from "@/components/ui/form";
|
import { useZodForm } from "@/components/ui/form";
|
||||||
import { CardAuth } from "@/features/layout/card-auth";
|
import { CardAuth } from "@/features/layout/card-auth";
|
||||||
Reference in New Issue
Block a user