refactor: use yup custom validator

This commit is contained in:
ReaJason
2025-05-28 01:22:54 +08:00
parent 55e2b2f5a6
commit df6125c046
8 changed files with 176 additions and 72 deletions
+7 -7
View File
@@ -20,7 +20,7 @@
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^19.1.5",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^4.4.1",
"@vitejs/plugin-react": "^4.5.0",
"rimraf": "^6.0.1",
"tailwindcss": "^4.1.7",
"typescript": "^5.8.3",
@@ -56,13 +56,13 @@
"@radix-ui/react-toggle-group": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.7",
"@tailwindcss/vite": "^4.1.7",
"@tanstack/react-query": "^5.76.1",
"@tanstack/react-query": "^5.77.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"i18next": "^25.2.0",
"i18next": "^25.2.1",
"input-otp": "^1.4.2",
"lucide-react": "^0.511.0",
"react": "^19.1.0",
@@ -70,10 +70,10 @@
"react-day-picker": "9.7.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.56.4",
"react-i18next": "^15.5.1",
"react-i18next": "^15.5.2",
"react-resizable-panels": "^3.0.2",
"react-router": "^7.6.0",
"react-router-dom": "^7.6.0",
"react-router": "^7.6.1",
"react-router-dom": "^7.6.1",
"react-syntax-highlighter": "^15.6.1",
"recharts": "^2.15.3",
"sonner": "^2.0.3",
@@ -81,7 +81,7 @@
"tailwind-scrollbar": "^4.0.2",
"tailwindcss-animate": "^1.0.7",
"vaul": "^1.1.2",
"zod": "^3.25.20"
"yup": "^1.6.1"
},
"trustedDependencies": ["@biomejs/biome"]
}