- Eliminated redundant components, pages, and layouts related to authentication (`login`, `register`, `password-reset`, etc.), user settings, admin, and demos. - Simplified the frontend structure by removing unused dynamic imports, forms, and test code. - Refactored configurations and metadata imports to exclude references to removed features. - Streamlined the project for future development and improved maintainability by discarding legacy and unused code.
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
/**
|
|
* Password Reset Request Page
|
|
* Users enter their email to receive reset instructions
|
|
*/
|
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
// Code-split PasswordResetRequestForm
|
|
const PasswordResetRequestForm = dynamic(
|
|
/* istanbul ignore next - Next.js dynamic import, tested via component */
|
|
() =>
|
|
import('@/components/auth/PasswordResetRequestForm').then((mod) => ({
|
|
default: mod.PasswordResetRequestForm,
|
|
})),
|
|
{
|
|
loading: () => (
|
|
<div className="space-y-4">
|
|
<div className="animate-pulse h-10 bg-muted rounded" />
|
|
<div className="animate-pulse h-10 bg-primary/20 rounded" />
|
|
</div>
|
|
),
|
|
}
|
|
);
|
|
|
|
export default function PasswordResetPage() {
|
|
return (
|
|
<div className="space-y-6">
|
|
<div className="text-center">
|
|
<h2 className="text-3xl font-bold tracking-tight">Reset your password</h2>
|
|
<p className="mt-2 text-muted-foreground">
|
|
We'll send you an email with instructions to reset your password
|
|
</p>
|
|
</div>
|
|
|
|
<PasswordResetRequestForm showLoginLink />
|
|
</div>
|
|
);
|
|
}
|