@farmzone/fz-template-react 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +102 -102
  2. package/bin/create.js +108 -108
  3. package/package.json +24 -24
  4. package/template/.env.example +5 -5
  5. package/template/.prettierrc +9 -9
  6. package/template/eslint.config.js +26 -26
  7. package/template/index.css +32 -32
  8. package/template/index.html +19 -19
  9. package/template/package.json +54 -54
  10. package/template/pnpm-lock.yaml +4214 -4214
  11. package/template/public/mockServiceWorker.js +349 -349
  12. package/template/src/app/App.tsx +26 -26
  13. package/template/src/app/api/api.ts +178 -178
  14. package/template/src/app/api/queries.ts +335 -335
  15. package/template/src/app/api/queryKey.ts +7 -7
  16. package/template/src/app/api/token.ts +8 -7
  17. package/template/src/app/layout/Layout.tsx +33 -33
  18. package/template/src/app/layout/ListContents.tsx +9 -9
  19. package/template/src/app/layout/ListHeader.tsx +41 -41
  20. package/template/src/app/layout/MultiTabNav.tsx +106 -101
  21. package/template/src/app/layout/Sidebar.tsx +33 -33
  22. package/template/src/app/layout/UserInfo.tsx +95 -94
  23. package/template/src/app/layout/menu.ts +79 -55
  24. package/template/src/app/layout/tabSwitchStore.ts +11 -11
  25. package/template/src/app/router/Router.tsx +56 -56
  26. package/template/src/app/store/index.ts +26 -26
  27. package/template/src/index.tsx +21 -21
  28. package/template/src/mocks/browser.ts +17 -17
  29. package/template/src/mocks/handlers.ts +43 -43
  30. package/template/src/mocks/scenarios.ts +57 -57
  31. package/template/src/pages/dashboard/index.tsx +541 -541
  32. package/template/src/pages/error/Error.tsx +29 -29
  33. package/template/src/pages/error/NotFound.tsx +27 -27
  34. package/template/src/pages/login/index.tsx +317 -317
  35. package/template/src/pages/post/PostFormModal.tsx +128 -128
  36. package/template/src/pages/post/detail/index.tsx +545 -545
  37. package/template/src/pages/post/index.tsx +266 -266
  38. package/template/src/pages/sample/SampleFormModal.tsx +188 -188
  39. package/template/src/pages/sample/detail/index.tsx +551 -517
  40. package/template/src/pages/sample/index.tsx +298 -298
  41. package/template/src/pages/sample/modal/index.tsx +308 -308
  42. package/template/src/pages/system/log/index.tsx +173 -173
  43. package/template/src/pages/user/config/columns.tsx +102 -102
  44. package/template/src/pages/user/config/schema.ts +54 -54
  45. package/template/src/pages/user/index.tsx +704 -650
  46. package/template/src/shared/components/CommentInput.tsx +243 -243
  47. package/template/src/shared/components/FilePreviewCard.tsx +71 -71
  48. package/template/src/shared/config/text.ts +27 -27
  49. package/template/src/shared/config/type.ts +40 -40
  50. package/template/src/shared/utils/format.ts +11 -11
  51. package/template/src/types/auth.ts +10 -10
  52. package/template/src/types/comment.ts +33 -33
  53. package/template/src/types/common.ts +19 -19
  54. package/template/src/types/dashboard.ts +53 -53
  55. package/template/src/types/index.ts +16 -16
  56. package/template/src/types/log.ts +21 -21
  57. package/template/src/types/post.ts +32 -32
  58. package/template/src/types/sample.ts +33 -33
  59. package/template/src/types/user.ts +51 -51
  60. package/template/src/vite-env.d.ts +10 -10
  61. package/template/tsconfig.app.json +32 -32
  62. package/template/tsconfig.json +7 -7
  63. package/template/tsconfig.node.json +26 -26
  64. package/template/vite.config.ts +13 -13
@@ -1,54 +1,54 @@
1
- {
2
- "name": "__PROJECT_NAME__",
3
- "version": "1.0.6",
4
- "type": "module",
5
- "scripts": {
6
- "dev": "vite --host 0.0.0.0 --port 5000",
7
- "build": "tsc -b && vite build",
8
- "lint": "eslint .",
9
- "preview": "vite preview"
10
- },
11
- "dependencies": {
12
- "@farmzone/fz-react-ui": "^0.0.8",
13
- "@hookform/resolvers": "^5.2.2",
14
- "@tanstack/react-query": "^5.90.0",
15
- "axios": "^1.13.0",
16
- "dayjs": "^1.11.21",
17
- "es-toolkit": "^1.47.0",
18
- "js-cookie": "^3.0.8",
19
- "lucide-react": "^1.16.0",
20
- "react": "^19.0.0",
21
- "react-daum-postcode": "^4.0.0",
22
- "react-dom": "^19.0.0",
23
- "react-hook-form": "^7.68.0",
24
- "react-router": "^7.11.0",
25
- "uuid": "^14.0.0",
26
- "zod": "^3.25.0",
27
- "zustand": "^5.0.14"
28
- },
29
- "devDependencies": {
30
- "@eslint/js": "^9.0.0",
31
- "@tailwindcss/vite": "^4.1.0",
32
- "@types/js-cookie": "^3.0.6",
33
- "@types/node": "^22.0.0",
34
- "@types/react": "^19.0.0",
35
- "@types/react-dom": "^19.0.0",
36
- "@types/uuid": "^11.0.0",
37
- "@vitejs/plugin-react": "^5.1.0",
38
- "eslint": "^9.0.0",
39
- "eslint-plugin-react-hooks": "^5.0.0",
40
- "eslint-plugin-react-refresh": "^0.4.0",
41
- "globals": "^16.0.0",
42
- "msw": "^2.14.6",
43
- "tailwindcss": "^4.0.0",
44
- "tw-animate-css": "^1.0.0",
45
- "typescript": "~5.9.0",
46
- "typescript-eslint": "^8.0.0",
47
- "vite": "^7.0.0"
48
- },
49
- "msw": {
50
- "workerDirectory": [
51
- "public"
52
- ]
53
- }
54
- }
1
+ {
2
+ "name": "__PROJECT_NAME__",
3
+ "version": "1.0.7",
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "vite --host 0.0.0.0 --port 5000",
7
+ "build": "tsc -b && vite build",
8
+ "lint": "eslint .",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "@farmzone/fz-react-ui": "^0.0.11",
13
+ "@hookform/resolvers": "^5.2.2",
14
+ "@tanstack/react-query": "^5.90.0",
15
+ "axios": "^1.13.0",
16
+ "dayjs": "^1.11.21",
17
+ "es-toolkit": "^1.47.0",
18
+ "js-cookie": "^3.0.8",
19
+ "lucide-react": "^1.16.0",
20
+ "react": "^19.0.0",
21
+ "react-daum-postcode": "^4.0.0",
22
+ "react-dom": "^19.0.0",
23
+ "react-hook-form": "^7.68.0",
24
+ "react-router": "^7.11.0",
25
+ "uuid": "^14.0.0",
26
+ "zod": "^3.25.0",
27
+ "zustand": "^5.0.14"
28
+ },
29
+ "devDependencies": {
30
+ "@eslint/js": "^9.0.0",
31
+ "@tailwindcss/vite": "^4.1.0",
32
+ "@types/js-cookie": "^3.0.6",
33
+ "@types/node": "^22.0.0",
34
+ "@types/react": "^19.0.0",
35
+ "@types/react-dom": "^19.0.0",
36
+ "@types/uuid": "^11.0.0",
37
+ "@vitejs/plugin-react": "^5.1.0",
38
+ "eslint": "^9.0.0",
39
+ "eslint-plugin-react-hooks": "^5.0.0",
40
+ "eslint-plugin-react-refresh": "^0.4.0",
41
+ "globals": "^16.0.0",
42
+ "msw": "^2.14.6",
43
+ "tailwindcss": "^4.0.0",
44
+ "tw-animate-css": "^1.0.0",
45
+ "typescript": "~5.9.0",
46
+ "typescript-eslint": "^8.0.0",
47
+ "vite": "^7.0.0"
48
+ },
49
+ "msw": {
50
+ "workerDirectory": [
51
+ "public"
52
+ ]
53
+ }
54
+ }