diff --git a/.gitignore b/.gitignore index 744732e..a494092 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,8 @@ # misc .DS_Store *.pem +.idea/ +.playwright-mcp/ # debug npm-debug.log* diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index f212188..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/template.iml b/.idea/template.iml deleted file mode 100644 index 24643cc..0000000 --- a/.idea/template.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/fix-dev-server.bat b/fix-dev-server.bat deleted file mode 100644 index f9730cc..0000000 --- a/fix-dev-server.bat +++ /dev/null @@ -1,41 +0,0 @@ -@echo off -echo Fixing Next.js dev server permission issues... - -echo. -echo Step 1: Killing all Node.js processes... -taskkill /F /IM node.exe 2>nul -if %errorlevel% equ 0 ( - echo ✅ Node.js processes terminated -) else ( - echo ⚠️ No Node.js processes found to terminate -) - -echo. -echo Step 2: Removing .next directory... -if exist .next ( - rmdir /S /Q .next 2>nul - if %errorlevel% equ 0 ( - echo ✅ .next directory removed successfully - ) else ( - echo ❌ Could not remove .next directory - it may be in use - echo Trying alternative approach... - - echo Step 2a: Removing specific locked files... - del .next\trace 2>nul - del .next\server\* /Q 2>nul - del .next\static\* /Q /S 2>nul - ) -) else ( - echo ⚠️ .next directory doesn't exist -) - -echo. -echo Step 3: Clearing npm/pnpm cache... -pnpm store prune -echo ✅ Package cache cleared - -echo. -echo Step 4: Starting development server... -echo This should now work without permission issues... -echo. -pnpm dev \ No newline at end of file diff --git a/src/components/auth/tokens.ts b/src/components/auth/tokens.ts index 608a40f..9f9aabf 100644 --- a/src/components/auth/tokens.ts +++ b/src/components/auth/tokens.ts @@ -3,7 +3,7 @@ import { v4 as uuidv4 } from "uuid"; import { getTwoFactorTokenByEmail } from "@/components/auth/verification/2f-token"; import { db } from "@/lib/db"; import { getPasswordResetTokenByEmail } from "@/components/auth/password/token"; -import { getVerificationTokenByEmail } from "@/components/auth/verification/verificiation-token"; +import { getVerificationTokenByEmail } from "@/components/auth/verification/verification-token"; diff --git a/src/components/auth/verification/action.ts b/src/components/auth/verification/action.ts index f9d4de0..1e9035a 100644 --- a/src/components/auth/verification/action.ts +++ b/src/components/auth/verification/action.ts @@ -1,7 +1,7 @@ "use server"; import { db } from "@/lib/db"; -import { getVerificationTokenByToken } from "./verificiation-token"; +import { getVerificationTokenByToken } from "./verification-token"; import { getUserByEmail } from "../user"; diff --git a/src/components/auth/verification/verificiation-token.ts b/src/components/auth/verification/verification-token.ts similarity index 100% rename from src/components/auth/verification/verificiation-token.ts rename to src/components/auth/verification/verification-token.ts diff --git a/start-dev.ps1 b/start-dev.ps1 deleted file mode 100644 index 57b307f..0000000 --- a/start-dev.ps1 +++ /dev/null @@ -1,38 +0,0 @@ -# PowerShell script to start Next.js dev server without permission issues -Write-Host "🔧 Starting development server..." -ForegroundColor Green - -# Kill any existing Node processes -Write-Host "Terminating existing Node processes..." -ForegroundColor Yellow -Get-Process node -ErrorAction SilentlyContinue | Stop-Process -Force -Start-Sleep -Seconds 2 - -# Remove .next directory -Write-Host "Cleaning build cache..." -ForegroundColor Yellow -if (Test-Path ".next") { - Remove-Item -Path ".next" -Recurse -Force -ErrorAction SilentlyContinue -} - -# Clear npm cache -Write-Host "Clearing package cache..." -ForegroundColor Yellow -& pnpm store prune - -# Start development server -Write-Host "Starting Next.js development server..." -ForegroundColor Green -Write-Host "🌐 Your refactored DATABAYT_I18N_STANDARD_V2.0 application will be available at:" -ForegroundColor Cyan -Write-Host " 📱 English: http://localhost:3000/en" -ForegroundColor White -Write-Host " 🇸🇦 Arabic: http://localhost:3000/ar" -ForegroundColor White -Write-Host "" - -# Try different approaches -try { - & pnpm dev -} catch { - Write-Host "❌ Standard dev command failed. Trying alternative..." -ForegroundColor Red - try { - & npx next dev --port 3003 - } catch { - Write-Host "❌ Alternative dev command failed. Starting production build..." -ForegroundColor Red - & pnpm build - & pnpm start - } -} \ No newline at end of file