@farmzone/fz-template-react 1.0.3 → 1.0.5

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/README.md +46 -50
  2. package/package.json +1 -1
  3. package/template/.env.example +5 -5
  4. package/template/package.json +55 -55
  5. package/template/pnpm-lock.yaml +4214 -4214
  6. package/template/public/mockServiceWorker.js +349 -349
  7. package/template/src/app/api/api.ts +178 -178
  8. package/template/src/app/api/queries.ts +326 -321
  9. package/template/src/app/api/queryKey.ts +7 -7
  10. package/template/src/app/api/token.ts +7 -7
  11. package/template/src/app/layout/Layout.tsx +33 -33
  12. package/template/src/app/layout/ListContents.tsx +9 -9
  13. package/template/src/app/layout/ListHeader.tsx +41 -41
  14. package/template/src/app/layout/MultiTabNav.tsx +101 -101
  15. package/template/src/app/layout/Sidebar.tsx +33 -33
  16. package/template/src/app/layout/UserInfo.tsx +94 -94
  17. package/template/src/app/layout/tabSwitchStore.ts +11 -11
  18. package/template/src/app/router/Router.tsx +56 -56
  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 +266 -267
  31. package/template/src/pages/sample/SampleFormModal.tsx +115 -77
  32. package/template/src/pages/sample/detail/index.tsx +400 -424
  33. package/template/src/pages/sample/index.tsx +278 -269
  34. package/template/src/pages/sample/modal/index.tsx +300 -253
  35. package/template/src/pages/system/log/index.tsx +173 -173
  36. package/template/src/pages/user/config/columns.tsx +102 -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 +29 -28
  50. package/template/src/types/user.ts +51 -51
  51. package/template/src/vite-env.d.ts +10 -10
@@ -1,29 +1,29 @@
1
- import { TriangleAlert } from "lucide-react";
2
- import { Button } from "@farmzone/fz-react-ui";
3
-
4
- export default function ErrorPage() {
5
- const handleRetry = () => {
6
- window.location.href = "/";
7
- };
8
-
9
- return (
10
- <div className="min-h-screen flex items-center justify-center">
11
- <div className="flex flex-col items-center w-125 pb-6 shadow-lg rounded-lg bg-gray-50">
12
- <div className="flex flex-col mt-14 mb-10 items-center gap-3">
13
- <TriangleAlert size={60} strokeWidth={1.2} />
14
- <p className="text-2xl font-bold">정상적인 접근이 아닙니다.</p>
15
- <div className="flex flex-col gap-3">
16
- <p className="text-lg text-gray-500">
17
- 화면 출력 중 에러가 발생하였습니다. 관리자에게 문의 주세요.
18
- </p>
19
- </div>
20
- </div>
21
- <div className="flex gap-3 w-full px-6">
22
- <Button variant="save" className="w-full py-2.5 font-semibold" onClick={handleRetry}>
23
- 다시 시도하기
24
- </Button>
25
- </div>
26
- </div>
27
- </div>
28
- );
29
- }
1
+ import { TriangleAlert } from "lucide-react";
2
+ import { Button } from "@farmzone/fz-react-ui";
3
+
4
+ export default function ErrorPage() {
5
+ const handleRetry = () => {
6
+ window.location.href = "/";
7
+ };
8
+
9
+ return (
10
+ <div className="min-h-screen flex items-center justify-center">
11
+ <div className="flex flex-col items-center w-125 pb-6 shadow-lg rounded-lg bg-gray-50">
12
+ <div className="flex flex-col mt-14 mb-10 items-center gap-3">
13
+ <TriangleAlert size={60} strokeWidth={1.2} />
14
+ <p className="text-2xl font-bold">정상적인 접근이 아닙니다.</p>
15
+ <div className="flex flex-col gap-3">
16
+ <p className="text-lg text-gray-500">
17
+ 화면 출력 중 에러가 발생하였습니다. 관리자에게 문의 주세요.
18
+ </p>
19
+ </div>
20
+ </div>
21
+ <div className="flex gap-3 w-full px-6">
22
+ <Button variant="save" className="w-full py-2.5 font-semibold" onClick={handleRetry}>
23
+ 다시 시도하기
24
+ </Button>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ );
29
+ }
@@ -1,27 +1,27 @@
1
- import { TriangleAlert } from "lucide-react";
2
- import { Button } from "@farmzone/fz-react-ui";
3
-
4
- export default function NotFoundPage() {
5
- const handleGoHome = () => {
6
- window.location.href = "/";
7
- };
8
-
9
- return (
10
- <div className="min-h-screen flex items-center justify-center">
11
- <div className="flex flex-col items-center w-125 pb-6 shadow-lg rounded-lg bg-gray-50">
12
- <div className="flex flex-col mt-14 mb-10 items-center gap-3">
13
- <TriangleAlert size={60} strokeWidth={1.2} />
14
- <p className="text-2xl font-bold">정상적인 접근이 아닙니다.</p>
15
- <div className="flex flex-col gap-3">
16
- <p className="text-lg text-gray-500">입력하신 주소가 잘못되었거나 접근 권한이 없습니다.</p>
17
- </div>
18
- </div>
19
- <div className="flex gap-3 w-full px-6">
20
- <Button variant="save" className="w-full py-2.5 font-semibold" onClick={handleGoHome}>
21
- 홈으로 이동
22
- </Button>
23
- </div>
24
- </div>
25
- </div>
26
- );
27
- }
1
+ import { TriangleAlert } from "lucide-react";
2
+ import { Button } from "@farmzone/fz-react-ui";
3
+
4
+ export default function NotFoundPage() {
5
+ const handleGoHome = () => {
6
+ window.location.href = "/";
7
+ };
8
+
9
+ return (
10
+ <div className="min-h-screen flex items-center justify-center">
11
+ <div className="flex flex-col items-center w-125 pb-6 shadow-lg rounded-lg bg-gray-50">
12
+ <div className="flex flex-col mt-14 mb-10 items-center gap-3">
13
+ <TriangleAlert size={60} strokeWidth={1.2} />
14
+ <p className="text-2xl font-bold">정상적인 접근이 아닙니다.</p>
15
+ <div className="flex flex-col gap-3">
16
+ <p className="text-lg text-gray-500">입력하신 주소가 잘못되었거나 접근 권한이 없습니다.</p>
17
+ </div>
18
+ </div>
19
+ <div className="flex gap-3 w-full px-6">
20
+ <Button variant="save" className="w-full py-2.5 font-semibold" onClick={handleGoHome}>
21
+ 홈으로 이동
22
+ </Button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ );
27
+ }