diff --git a/.cursorrules b/.cursorrules index 1c190cb..9369eec 100644 --- a/.cursorrules +++ b/.cursorrules @@ -85,3 +85,6 @@ + + + diff --git a/.dockerignore b/.dockerignore index c13779c..2ff9482 100644 --- a/.dockerignore +++ b/.dockerignore @@ -25,3 +25,5 @@ CHANGELOG.md *.md !public/**/*.md + + diff --git a/.eslintrc.cjs b/.eslintrc.cjs index bd5ee94..2fe2982 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -28,3 +28,6 @@ module.exports = { + + + diff --git a/.gitignore b/.gitignore index 6c4e823..15e47bd 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,6 @@ workbox-*.js + + + diff --git a/.prettierrc b/.prettierrc index 3709724..a8520fe 100644 --- a/.prettierrc +++ b/.prettierrc @@ -19,3 +19,6 @@ + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index f352ae0..b409fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,3 +58,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 + + + diff --git a/DOCKER.md b/DOCKER.md index ca68229..e00e3a7 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -74,3 +74,5 @@ docker-compose down 2. پورت پیش‌فرض در `docker-compose.yml` روی 3000 تنظیم شده است 3. برای تغییر پورت، فایل `docker-compose.yml` را ویرایش کنید + + diff --git a/FONT_DEBUG_GUIDE.md b/FONT_DEBUG_GUIDE.md index 274de1b..650488d 100644 --- a/FONT_DEBUG_GUIDE.md +++ b/FONT_DEBUG_GUIDE.md @@ -60,3 +60,6 @@ + + + diff --git a/QUICKSTART.md b/QUICKSTART.md index cb06c5d..91ac1ab 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -105,3 +105,6 @@ src/ + + + diff --git a/README.md b/README.md index 3bf196c..3de5340 100644 --- a/README.md +++ b/README.md @@ -207,3 +207,6 @@ MIT + + + diff --git a/nginx.conf b/nginx.conf index 53dd836..4613433 100644 --- a/nginx.conf +++ b/nginx.conf @@ -40,3 +40,5 @@ server { } } + + diff --git a/postcss.config.js b/postcss.config.js index 907c808..7e07dfe 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -15,3 +15,4 @@ export default { + diff --git a/public/PWA_ICONS_README.md b/public/PWA_ICONS_README.md index 7ea71ff..a64cca6 100644 --- a/public/PWA_ICONS_README.md +++ b/public/PWA_ICONS_README.md @@ -25,3 +25,6 @@ + + + diff --git a/public/fonts/FONT_SETUP.md b/public/fonts/FONT_SETUP.md index e0ce279..16c9645 100644 --- a/public/fonts/FONT_SETUP.md +++ b/public/fonts/FONT_SETUP.md @@ -85,3 +85,6 @@ fontFamily: { + + + diff --git a/public/fonts/README.md b/public/fonts/README.md index 19f61a9..966f56d 100644 --- a/public/fonts/README.md +++ b/public/fonts/README.md @@ -26,3 +26,6 @@ + + + diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest index ee28b09..8fa3fdd 100644 --- a/public/manifest.webmanifest +++ b/public/manifest.webmanifest @@ -36,3 +36,6 @@ + + + diff --git a/public/vite.svg b/public/vite.svg index 7d1d508..c111a6c 100644 --- a/public/vite.svg +++ b/public/vite.svg @@ -10,3 +10,6 @@ + + + diff --git a/src/atoms/auth.ts b/src/atoms/auth.ts index 0d73073..c237cdb 100644 --- a/src/atoms/auth.ts +++ b/src/atoms/auth.ts @@ -22,3 +22,6 @@ export const isAuthenticatedAtom = atom((get) => { + + + diff --git a/src/atoms/theme.ts b/src/atoms/theme.ts index 75bdf97..9f7819a 100644 --- a/src/atoms/theme.ts +++ b/src/atoms/theme.ts @@ -9,3 +9,6 @@ export const themeAtom = atom('light'); + + + diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx index dfe9562..e089981 100644 --- a/src/components/ui/avatar.tsx +++ b/src/components/ui/avatar.tsx @@ -53,3 +53,6 @@ export { Avatar, AvatarImage, AvatarFallback }; + + + diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index f058bb1..4b13295 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -57,3 +57,6 @@ export { Button, buttonVariants }; + + + diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx index 3173d26..dea1056 100644 --- a/src/components/ui/card.tsx +++ b/src/components/ui/card.tsx @@ -64,3 +64,6 @@ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } + + + diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index da942bd..b6d9f89 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -32,3 +32,6 @@ export { Input }; + + + diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index 71c3ed9..fbeba11 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -27,3 +27,6 @@ export { Label }; + + + diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsx index 9b7d5c8..3c4dce0 100644 --- a/src/components/ui/toast.tsx +++ b/src/components/ui/toast.tsx @@ -130,3 +130,6 @@ export { + + + diff --git a/src/components/ui/toaster.tsx b/src/components/ui/toaster.tsx index 546f1a1..202acf4 100644 --- a/src/components/ui/toaster.tsx +++ b/src/components/ui/toaster.tsx @@ -40,3 +40,6 @@ export function Toaster() { + + + diff --git a/src/docs/SETUP.md b/src/docs/SETUP.md index 8c1604e..9967aaf 100644 --- a/src/docs/SETUP.md +++ b/src/docs/SETUP.md @@ -124,3 +124,6 @@ npm run build + + + diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index 90b1da1..8318006 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -72,8 +72,7 @@ export function useAuth() { emailRedirectTo: `${window.location.origin}/account` } }); - if (error) throw error; - return { data, error: null }; + return { data, error }; }; const signIn = async (email: string, password: string) => { diff --git a/src/lib/utils.ts b/src/lib/utils.ts index fb4efe3..d1ab64c 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -10,3 +10,6 @@ export * from '../utils/cn'; + + + diff --git a/src/main.tsx b/src/main.tsx index 1d59d81..0197322 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -19,3 +19,6 @@ ReactDOM.createRoot(document.getElementById('root')!).render( + + + diff --git a/src/pages/Auth/Signup/SignupPage.tsx b/src/pages/Auth/Signup/SignupPage.tsx index 5b8c97e..e84ff64 100644 --- a/src/pages/Auth/Signup/SignupPage.tsx +++ b/src/pages/Auth/Signup/SignupPage.tsx @@ -55,12 +55,12 @@ export default function SignupPage() { if (result.error) { let errorMessage = 'خطا در ثبت نام'; - if (result.error.message.includes('User already registered')) { + if ((result.error.message as any).includes('User already registered')) { errorMessage = 'این ایمیل قبلاً ثبت شده است. لطفا وارد شوید.'; - } else if (result.error.message.includes('Password')) { + } else if ((result.error.message as any).includes('Password')) { errorMessage = 'رمز عبور باید حداقل 6 کاراکتر باشد.'; } else { - errorMessage = result.error.message; + errorMessage = (result.error.message as any); } toast({ diff --git a/src/utils/cn.ts b/src/utils/cn.ts index dda564c..9d89a4b 100644 --- a/src/utils/cn.ts +++ b/src/utils/cn.ts @@ -15,3 +15,6 @@ export function cn(...inputs: ClassValue[]) { + + + diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 52acb32..6f48a0a 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -36,3 +36,6 @@ export const TOAST_DURATION = { + + + diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index ab6fddd..67d7e4e 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -19,3 +19,6 @@ interface ImportMeta { + + +