@farmzone/fz-template-react 1.0.2 → 1.0.4

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 (51) hide show
  1. package/package.json +1 -1
  2. package/template/.env.example +5 -5
  3. package/template/package.json +55 -55
  4. package/template/pnpm-lock.yaml +4214 -0
  5. package/template/public/mockServiceWorker.js +349 -349
  6. package/template/src/app/api/api.ts +178 -178
  7. package/template/src/app/api/queries.ts +321 -321
  8. package/template/src/app/api/queryKey.ts +7 -7
  9. package/template/src/app/api/token.ts +7 -7
  10. package/template/src/app/layout/Layout.tsx +33 -33
  11. package/template/src/app/layout/ListContents.tsx +9 -9
  12. package/template/src/app/layout/ListHeader.tsx +41 -41
  13. package/template/src/app/layout/MultiTabNav.tsx +101 -101
  14. package/template/src/app/layout/Sidebar.tsx +33 -33
  15. package/template/src/app/layout/UserInfo.tsx +94 -94
  16. package/template/src/app/layout/menu.ts +4 -1
  17. package/template/src/app/layout/tabSwitchStore.ts +11 -11
  18. package/template/src/app/router/Router.tsx +56 -54
  19. package/template/src/app/store/index.ts +26 -26
  20. package/template/src/index.tsx +21 -21
  21. package/template/src/mocks/browser.ts +17 -17
  22. package/template/src/mocks/handlers.ts +43 -43
  23. package/template/src/mocks/scenarios.ts +57 -57
  24. package/template/src/pages/dashboard/index.tsx +541 -541
  25. package/template/src/pages/error/Error.tsx +29 -29
  26. package/template/src/pages/error/NotFound.tsx +27 -27
  27. package/template/src/pages/login/index.tsx +317 -317
  28. package/template/src/pages/post/PostFormModal.tsx +128 -128
  29. package/template/src/pages/post/detail/index.tsx +548 -548
  30. package/template/src/pages/post/index.tsx +267 -267
  31. package/template/src/pages/sample/SampleFormModal.tsx +77 -77
  32. package/template/src/pages/sample/detail/index.tsx +424 -424
  33. package/template/src/pages/sample/index.tsx +269 -269
  34. package/template/src/pages/sample/modal/index.tsx +253 -0
  35. package/template/src/pages/system/log/index.tsx +173 -173
  36. package/template/src/pages/user/config/columns.tsx +109 -109
  37. package/template/src/pages/user/config/schema.ts +54 -54
  38. package/template/src/pages/user/index.tsx +641 -641
  39. package/template/src/shared/components/CommentInput.tsx +243 -243
  40. package/template/src/shared/config/text.ts +27 -27
  41. package/template/src/shared/utils/format.ts +11 -11
  42. package/template/src/types/auth.ts +10 -10
  43. package/template/src/types/comment.ts +33 -33
  44. package/template/src/types/common.ts +19 -19
  45. package/template/src/types/dashboard.ts +53 -53
  46. package/template/src/types/index.ts +16 -16
  47. package/template/src/types/log.ts +21 -21
  48. package/template/src/types/post.ts +32 -32
  49. package/template/src/types/sample.ts +28 -28
  50. package/template/src/types/user.ts +51 -51
  51. package/template/src/vite-env.d.ts +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farmzone/fz-template-react",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Farmzone React 프로젝트 보일러플레이트 생성 CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
- # API 서버 호스트 (예: http://localhost:8080)
2
- VITE_APP_API_HOST=http://localhost:8080
3
-
4
- # API 버전 (예: v1)
5
- VITE_APP_API_VERSION=v1
1
+ # API 서버 호스트 (예: http://localhost:8080)
2
+ VITE_APP_API_HOST=http://localhost:8080
3
+
4
+ # API 버전 (예: v1)
5
+ VITE_APP_API_VERSION=v1
@@ -1,55 +1,55 @@
1
- {
2
- "name": "__PROJECT_NAME__",
3
- "private": true,
4
- "version": "1.0.2",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite --host 0.0.0.0 --port 5000",
8
- "build": "tsc -b && vite build",
9
- "lint": "eslint .",
10
- "preview": "vite preview"
11
- },
12
- "dependencies": {
13
- "@farmzone/fz-react-ui": "^0.0.6",
14
- "@hookform/resolvers": "^5.2.2",
15
- "@tanstack/react-query": "^5.90.0",
16
- "axios": "^1.13.0",
17
- "dayjs": "^1.11.21",
18
- "es-toolkit": "^1.47.0",
19
- "js-cookie": "^3.0.8",
20
- "lucide-react": "^1.16.0",
21
- "react": "^19.0.0",
22
- "react-daum-postcode": "^4.0.0",
23
- "react-dom": "^19.0.0",
24
- "react-hook-form": "^7.68.0",
25
- "react-router": "^7.11.0",
26
- "uuid": "^14.0.0",
27
- "zod": "^3.25.0",
28
- "zustand": "^5.0.14"
29
- },
30
- "devDependencies": {
31
- "@eslint/js": "^9.0.0",
32
- "@tailwindcss/vite": "^4.1.0",
33
- "@types/js-cookie": "^3.0.6",
34
- "@types/node": "^22.0.0",
35
- "@types/react": "^19.0.0",
36
- "@types/react-dom": "^19.0.0",
37
- "@types/uuid": "^11.0.0",
38
- "@vitejs/plugin-react": "^5.1.0",
39
- "eslint": "^9.0.0",
40
- "eslint-plugin-react-hooks": "^5.0.0",
41
- "eslint-plugin-react-refresh": "^0.4.0",
42
- "globals": "^16.0.0",
43
- "msw": "^2.14.6",
44
- "tailwindcss": "^4.0.0",
45
- "tw-animate-css": "^1.0.0",
46
- "typescript": "~5.9.0",
47
- "typescript-eslint": "^8.0.0",
48
- "vite": "^7.0.0"
49
- },
50
- "msw": {
51
- "workerDirectory": [
52
- "public"
53
- ]
54
- }
55
- }
1
+ {
2
+ "name": "__PROJECT_NAME__",
3
+ "private": true,
4
+ "version": "1.0.4",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite --host 0.0.0.0 --port 5000",
8
+ "build": "tsc -b && vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@farmzone/fz-react-ui": "^0.0.6",
14
+ "@hookform/resolvers": "^5.2.2",
15
+ "@tanstack/react-query": "^5.90.0",
16
+ "axios": "^1.13.0",
17
+ "dayjs": "^1.11.21",
18
+ "es-toolkit": "^1.47.0",
19
+ "js-cookie": "^3.0.8",
20
+ "lucide-react": "^1.16.0",
21
+ "react": "^19.0.0",
22
+ "react-daum-postcode": "^4.0.0",
23
+ "react-dom": "^19.0.0",
24
+ "react-hook-form": "^7.68.0",
25
+ "react-router": "^7.11.0",
26
+ "uuid": "^14.0.0",
27
+ "zod": "^3.25.0",
28
+ "zustand": "^5.0.14"
29
+ },
30
+ "devDependencies": {
31
+ "@eslint/js": "^9.0.0",
32
+ "@tailwindcss/vite": "^4.1.0",
33
+ "@types/js-cookie": "^3.0.6",
34
+ "@types/node": "^22.0.0",
35
+ "@types/react": "^19.0.0",
36
+ "@types/react-dom": "^19.0.0",
37
+ "@types/uuid": "^11.0.0",
38
+ "@vitejs/plugin-react": "^5.1.0",
39
+ "eslint": "^9.0.0",
40
+ "eslint-plugin-react-hooks": "^5.0.0",
41
+ "eslint-plugin-react-refresh": "^0.4.0",
42
+ "globals": "^16.0.0",
43
+ "msw": "^2.14.6",
44
+ "tailwindcss": "^4.0.0",
45
+ "tw-animate-css": "^1.0.0",
46
+ "typescript": "~5.9.0",
47
+ "typescript-eslint": "^8.0.0",
48
+ "vite": "^7.0.0"
49
+ },
50
+ "msw": {
51
+ "workerDirectory": [
52
+ "public"
53
+ ]
54
+ }
55
+ }