Remove all obsolete authentication, settings, admin, and demo-related components and pages

- 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.
This commit is contained in:
Felipe Cardoso
2025-11-18 12:41:57 +01:00
parent a73d3c7d3e
commit d1b47006f4
56 changed files with 259 additions and 208 deletions

View File

@@ -5,8 +5,8 @@
'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Link } from '@/lib/i18n/routing';
import { usePathname } from '@/lib/i18n/routing';
import { cn } from '@/lib/utils';
import {
LayoutDashboard,

View File

@@ -5,8 +5,8 @@
'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Link } from '@/lib/i18n/routing';
import { usePathname } from '@/lib/i18n/routing';
import { ChevronRight } from 'lucide-react';
interface BreadcrumbItem {

View File

@@ -6,7 +6,8 @@
'use client';
import { useState, useCallback } from 'react';
import { useSearchParams, useRouter } from 'next/navigation';
import { useSearchParams } from 'next/navigation';
import { useRouter } from '@/lib/i18n/routing';
import { Plus } from 'lucide-react';
import { Button } from '@/components/ui/button';
import {

View File

@@ -6,7 +6,8 @@
'use client';
import { useState, useCallback } from 'react';
import { useSearchParams, useRouter } from 'next/navigation';
import { useSearchParams } from 'next/navigation';
import { useRouter } from '@/lib/i18n/routing';
import { UserPlus } from 'lucide-react';
import { Button } from '@/components/ui/button';
import {

View File

@@ -6,7 +6,8 @@
'use client';
import { useState, useCallback } from 'react';
import { useSearchParams, useRouter } from 'next/navigation';
import { useSearchParams } from 'next/navigation';
import { useRouter } from '@/lib/i18n/routing';
import { Plus } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { useAuth } from '@/lib/auth/AuthContext';

View File

@@ -7,7 +7,7 @@
'use client';
import { useEffect, useState } from 'react';
import { useRouter, usePathname } from 'next/navigation';
import { useRouter, usePathname } from '@/lib/i18n/routing';
import { useAuth } from '@/lib/auth/AuthContext';
import { useMe } from '@/lib/api/hooks/useAuth';
import { AuthLoadingSkeleton } from '@/components/layout';

View File

@@ -7,7 +7,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

View File

@@ -7,7 +7,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

View File

@@ -7,7 +7,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

View File

@@ -7,7 +7,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

View File

@@ -8,7 +8,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { ChevronRight, Home } from 'lucide-react';
import { cn } from '@/lib/utils';

View File

@@ -8,8 +8,8 @@
'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Link } from '@/lib/i18n/routing';
import { usePathname } from '@/lib/i18n/routing';
import {
Code2,
Palette,

View File

@@ -9,7 +9,7 @@ import { useEffect, useState, useRef } from 'react';
import { motion } from 'framer-motion';
import { Terminal, Play } from 'lucide-react';
import { Button } from '@/components/ui/button';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
const commands = [
{ text: '# Clone the repository', delay: 0 },

View File

@@ -5,7 +5,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { motion } from 'framer-motion';
import { Github, Star, Play, ArrowRight } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -6,7 +6,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { Copy, Check } from 'lucide-react';
import {
Dialog,

View File

@@ -5,7 +5,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { motion } from 'framer-motion';
import { Play, Layers, ShieldCheck, UserCircle } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -5,7 +5,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { motion } from 'framer-motion';
import { ArrowRight, LucideIcon } from 'lucide-react';

View File

@@ -6,7 +6,7 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { Menu, X, Github, Star } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Sheet, SheetContent, SheetTrigger } from '@/components/ui/sheet';

View File

@@ -5,7 +5,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
import { motion } from 'framer-motion';
import { ArrowRight, Github, Play } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -5,7 +5,7 @@
'use client';
import Link from 'next/link';
import { Link } from '@/lib/i18n/routing';
export function Footer() {
const currentYear = new Date().getFullYear();

View File

@@ -6,8 +6,8 @@
'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Link } from '@/lib/i18n/routing';
import { usePathname } from '@/lib/i18n/routing';
import { useAuth } from '@/lib/auth/AuthContext';
import { useLogout } from '@/lib/api/hooks/useAuth';
import {