@daeryun/dr_components 0.2.57 → 0.2.59

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 (133) hide show
  1. package/dist/asset/images/myCaseManage/arrow_2.webp +0 -0
  2. package/dist/asset/images/myCaseManage/arrow_right.svg +3 -0
  3. package/dist/asset/images/myCaseManage/background.svg +8 -0
  4. package/dist/asset/images/myCaseManage/header_arrow.svg +3 -0
  5. package/dist/asset/images/myCaseManage/home.svg +16 -0
  6. package/dist/asset/images/myCaseManage/home.webp +0 -0
  7. package/dist/asset/images/myCaseManage/icon/case_icon1.svg +4 -0
  8. package/dist/asset/images/myCaseManage/icon/case_icon2.svg +6 -0
  9. package/dist/asset/images/myCaseManage/icon/case_icon3.svg +3 -0
  10. package/dist/asset/images/myCaseManage/icon/case_lookup_linkout.svg +5 -0
  11. package/dist/asset/images/myCaseManage/icon/check_circle.svg +3 -0
  12. package/dist/asset/images/myCaseManage/icon/check_circle2.svg +3 -0
  13. package/dist/asset/images/myCaseManage/icon/client.svg +14 -0
  14. package/dist/asset/images/myCaseManage/icon/daeryun.svg +7 -0
  15. package/dist/asset/images/myCaseManage/icon/download.svg +3 -0
  16. package/dist/asset/images/myCaseManage/icon/jpg.svg +15 -0
  17. package/dist/asset/images/myCaseManage/icon/pdf.svg +9 -0
  18. package/dist/asset/images/myCaseManage/icon/png.svg +25 -0
  19. package/dist/asset/images/myCaseManage/icon/word.svg +11 -0
  20. package/dist/asset/images/myCaseManage/icon/xls.svg +18 -0
  21. package/dist/asset/images/myCaseManage/nav_arr.webp +0 -0
  22. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  23. package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
  24. package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
  25. package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
  26. package/dist/components/Fix/Fix.stories.d.ts +3 -2
  27. package/dist/components/Footer/TopBtn.d.ts +1 -0
  28. package/dist/components/MapSection/Map.d.ts +1 -0
  29. package/dist/components/MapSection/MapSection.d.ts +1 -1
  30. package/dist/components/Mark/Mark.d.ts +1 -0
  31. package/dist/components/SelectBox/SelectBox.d.ts +8 -8
  32. package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
  33. package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
  34. package/dist/components/banner/TopBanner.d.ts +1 -0
  35. package/dist/components/banner/TopBanner.stories.d.ts +1 -0
  36. package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
  37. package/dist/components/common/strength/index.js +2 -2
  38. package/dist/components/common/strength/index.ts +2 -2
  39. package/dist/components/hook/useElementObserve.d.ts +2 -2
  40. package/dist/components/myCaseManage/[id]/_component/ContactInfo.d.ts +3 -0
  41. package/dist/components/myCaseManage/[id]/_component/ContactInfo.jsx +65 -0
  42. package/dist/components/myCaseManage/[id]/_component/ContactInfo.tsx +76 -0
  43. package/dist/components/myCaseManage/[id]/_component/DetailInfo.d.ts +7 -0
  44. package/dist/components/myCaseManage/[id]/_component/DetailInfo.jsx +33 -0
  45. package/dist/components/myCaseManage/[id]/_component/DetailInfo.tsx +50 -0
  46. package/dist/components/myCaseManage/[id]/_component/TimeLine.d.ts +7 -0
  47. package/dist/components/myCaseManage/[id]/_component/TimeLine.jsx +41 -0
  48. package/dist/components/myCaseManage/[id]/_component/TimeLine.tsx +55 -0
  49. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.d.ts +3 -0
  50. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.jsx +90 -0
  51. package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.tsx +143 -0
  52. package/dist/components/myCaseManage/[id]/_component/_document/Document.d.ts +6 -0
  53. package/dist/components/myCaseManage/[id]/_component/_document/Document.jsx +41 -0
  54. package/dist/components/myCaseManage/[id]/_component/_document/Document.tsx +59 -0
  55. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.d.ts +7 -0
  56. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.jsx +55 -0
  57. package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.tsx +72 -0
  58. package/dist/components/myCaseManage/[id]/index.d.ts +3 -0
  59. package/dist/components/myCaseManage/[id]/index.jsx +44 -0
  60. package/dist/components/myCaseManage/[id]/index.tsx +85 -0
  61. package/dist/components/myCaseManage/_actions/action.d.ts +13 -0
  62. package/dist/components/myCaseManage/_actions/action.js +56 -0
  63. package/dist/components/myCaseManage/_actions/action.ts +65 -0
  64. package/dist/components/myCaseManage/_component/CaseContainer.d.ts +3 -0
  65. package/dist/components/myCaseManage/_component/CaseContainer.jsx +99 -0
  66. package/dist/components/myCaseManage/_component/CaseContainer.tsx +177 -0
  67. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.d.ts +8 -0
  68. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +47 -0
  69. package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +76 -0
  70. package/dist/components/myCaseManage/_component/_button/Badge.d.ts +15 -0
  71. package/dist/components/myCaseManage/_component/_button/Badge.jsx +16 -0
  72. package/dist/components/myCaseManage/_component/_button/Badge.tsx +22 -0
  73. package/dist/components/myCaseManage/_component/_button/SubColor1Button.d.ts +7 -0
  74. package/dist/components/myCaseManage/_component/_button/SubColor1Button.jsx +6 -0
  75. package/dist/components/myCaseManage/_component/_button/SubColor1Button.tsx +20 -0
  76. package/dist/components/myCaseManage/_component/_button/SubMenuButton.d.ts +7 -0
  77. package/dist/components/myCaseManage/_component/_button/SubMenuButton.jsx +6 -0
  78. package/dist/components/myCaseManage/_component/_button/SubMenuButton.tsx +12 -0
  79. package/dist/components/myCaseManage/_component/_empty/EmptyTable.d.ts +6 -0
  80. package/dist/components/myCaseManage/_component/_empty/EmptyTable.jsx +53 -0
  81. package/dist/components/myCaseManage/_component/_empty/EmptyTable.tsx +59 -0
  82. package/dist/components/myCaseManage/_component/_layout/CaseLayout.d.ts +7 -0
  83. package/dist/components/myCaseManage/_component/_layout/CaseLayout.jsx +8 -0
  84. package/dist/components/myCaseManage/_component/_layout/CaseLayout.tsx +20 -0
  85. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.d.ts +11 -0
  86. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.jsx +24 -0
  87. package/dist/components/myCaseManage/_component/_layout/CaseWrapper.tsx +36 -0
  88. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.d.ts +5 -0
  89. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.jsx +4 -0
  90. package/dist/components/myCaseManage/_component/_layout/HeaderLayout.tsx +5 -0
  91. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.d.ts +8 -0
  92. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.jsx +24 -0
  93. package/dist/components/myCaseManage/_component/_layout/IntroWrapper.tsx +43 -0
  94. package/dist/components/myCaseManage/_component/_loading/Loading.d.ts +3 -0
  95. package/dist/components/myCaseManage/_component/_loading/Loading.jsx +90 -0
  96. package/dist/components/myCaseManage/_component/_loading/Loading.tsx +94 -0
  97. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.d.ts +10 -0
  98. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.jsx +75 -0
  99. package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.tsx +163 -0
  100. package/dist/components/myCaseManage/_component/_table/CaseTable.d.ts +10 -0
  101. package/dist/components/myCaseManage/_component/_table/CaseTable.jsx +37 -0
  102. package/dist/components/myCaseManage/_component/_table/CaseTable.tsx +62 -0
  103. package/dist/components/myCaseManage/_fetchers/getCase.d.ts +5 -0
  104. package/dist/components/myCaseManage/_fetchers/getCase.js +30 -0
  105. package/dist/components/myCaseManage/_fetchers/getCase.ts +21 -0
  106. package/dist/components/myCaseManage/_fetchers/getCaseList.d.ts +7 -0
  107. package/dist/components/myCaseManage/_fetchers/getCaseList.js +30 -0
  108. package/dist/components/myCaseManage/_fetchers/getCaseList.ts +24 -0
  109. package/dist/components/myCaseManage/_fetchers/getCourtFileList.d.ts +5 -0
  110. package/dist/components/myCaseManage/_fetchers/getCourtFileList.js +30 -0
  111. package/dist/components/myCaseManage/_fetchers/getCourtFileList.ts +21 -0
  112. package/dist/components/myCaseManage/_fetchers/getTimeLine.d.ts +5 -0
  113. package/dist/components/myCaseManage/_fetchers/getTimeLine.js +30 -0
  114. package/dist/components/myCaseManage/_fetchers/getTimeLine.ts +21 -0
  115. package/dist/components/myCaseManage/_lib/catagoryMenuName.d.ts +8 -0
  116. package/dist/components/myCaseManage/_lib/catagoryMenuName.js +8 -0
  117. package/dist/components/myCaseManage/_lib/catagoryMenuName.ts +11 -0
  118. package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.d.ts +15 -0
  119. package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.js +21 -0
  120. package/dist/components/myCaseManage/_type/type.d.ts +64 -0
  121. package/dist/components/myCaseManage/_type/type.js +1 -0
  122. package/dist/components/myCaseManage/_type/type.ts +73 -0
  123. package/dist/components/myCaseManage/index.d.ts +3 -0
  124. package/dist/components/myCaseManage/index.jsx +20 -0
  125. package/dist/components/myCaseManage/index.tsx +30 -0
  126. package/dist/components/page/Choice/Choice.d.ts +1 -1
  127. package/dist/components/page/Strength/Strength.d.ts +1 -0
  128. package/dist/components/page/Strength/StrengthIntro.jsx +1 -1
  129. package/dist/components/page/Strength/StrengthIntro.tsx +1 -1
  130. package/dist/lib/utils.js +4 -4
  131. package/dist/styles/globals.css +548 -2
  132. package/dist/tsconfig.tsbuildinfo +1 -1
  133. package/package.json +93 -91
@@ -0,0 +1,163 @@
1
+ import Pagination from 'rc-pagination';
2
+ import 'rc-pagination/assets/index.css';
3
+ import localeInfo from '../../_lib/pagination/locale/ko_KR';
4
+ import Image from 'next/image';
5
+ import React, { useCallback, useEffect, useState } from 'react';
6
+ import { useRouter } from 'next/router';
7
+ import Link from 'next/link';
8
+
9
+ const PaginationComponent = (props: {
10
+ onChange: (pageNum: number) => void;
11
+ current: number;
12
+ total: number;
13
+ pageSize: number;
14
+ marginY?: number;
15
+ }) => {
16
+ const { onChange, current, total, pageSize, marginY } = props;
17
+
18
+ // useEffect(() => {
19
+ // const prevElement = document.querySelector('.rc-pagination-prev')
20
+ // if (prevElement) {
21
+ // prevElement.setAttribute('rel', 'prev')
22
+ // }
23
+ //
24
+ // const nextElement = document.querySelector('.rc-pagination-next')
25
+ // if (nextElement) {
26
+ // nextElement.setAttribute('rel', 'next')
27
+ // }
28
+ // }, [current, total, pageSize, localeInfo])
29
+
30
+ useEffect(() => {
31
+ const rcPageCon = document.querySelectorAll('.rc-pagination-item');
32
+ rcPageCon.forEach(i => {
33
+ i.removeAttribute('tabindex');
34
+ });
35
+ });
36
+
37
+ const router = useRouter();
38
+ const [query, setQuery] = useState({});
39
+ useEffect(() => {
40
+ const filteredQuery = {
41
+ ...Object.fromEntries(
42
+ Object.entries(router.query).filter(
43
+ ([key, value]) => !(key === 'search' && value === '') && !(key === 'page')
44
+ )
45
+ )
46
+ };
47
+ setQuery(filteredQuery);
48
+ }, [router.asPath]);
49
+
50
+ //페이징 렌더링
51
+ const itemRender = useCallback(
52
+ (page: number, type: string, element: React.ReactNode) => {
53
+ if (type === 'page') {
54
+ if (router.pathname === '/blog') {
55
+ return (
56
+ <span className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''} `}>
57
+ {page}
58
+ </span>
59
+ );
60
+ }
61
+ return (
62
+ <Link
63
+ href={{
64
+ pathname: router.pathname,
65
+ query: { page, ...query }
66
+ }}
67
+ className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''}`}
68
+ aria-label={current === page ? `${page} 페이지, 현재 페이지 입니다.` : `${page} 페이지로 이동`}
69
+ style={{ color: current === page ? 'inherit' : 'initial' }} // 폰트 색상 고정
70
+ >
71
+ {page}
72
+ </Link>
73
+ );
74
+ } else if (type === 'prev') {
75
+ if (current === 1) {
76
+ return (
77
+ <Image
78
+ src={'/images/pagination/arrow_l_off.webp'}
79
+ width={26}
80
+ height={26}
81
+ alt={''}
82
+ className={'max-sm:scale-[0.8]'}
83
+ />
84
+ );
85
+ }
86
+ } else if (type === 'next') {
87
+ if (current === 1) {
88
+ return (
89
+ <Image
90
+ src={'/images/pagination/arrow_r_on.webp'}
91
+ width={26}
92
+ height={26}
93
+ alt={''}
94
+ className={'max-sm:scale-[0.8]'}
95
+ />
96
+ );
97
+ } else if (current >= total / pageSize) {
98
+ return (
99
+ <Image
100
+ src={'/images/pagination/arrow_r_off.webp'}
101
+ width={26}
102
+ height={26}
103
+ alt={''}
104
+ className={'max-sm:scale-[0.8]'}
105
+ />
106
+ );
107
+ }
108
+ }
109
+ return element;
110
+ },
111
+ [current, query]
112
+ );
113
+
114
+ // @ts-ignore
115
+ return (
116
+ <div
117
+ className={'flex items-center justify-center'}
118
+ style={{
119
+ marginBlock: (marginY ? marginY : 100) + 'px'
120
+ }}
121
+ >
122
+ <Pagination
123
+ onChange={onChange}
124
+ current={current}
125
+ total={total}
126
+ pageSize={pageSize}
127
+ locale={localeInfo}
128
+ prevIcon={
129
+ <Image
130
+ src={'/images/pagination/arrow_l_on.webp'}
131
+ width={26}
132
+ height={26}
133
+ alt={''}
134
+ className={'max-sm:scale-[0.8]'}
135
+ />
136
+ }
137
+ nextIcon={
138
+ <Image
139
+ src={'/images/pagination/arrow_r_on.webp'}
140
+ width={26}
141
+ height={26}
142
+ alt={''}
143
+ className={'max-sm:scale-[0.8]'}
144
+ />
145
+ }
146
+ jumpPrevIcon={
147
+ <span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
148
+ ㆍㆍㆍ
149
+ </span>
150
+ }
151
+ jumpNextIcon={
152
+ <span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
153
+ ㆍㆍㆍ
154
+ </span>
155
+ }
156
+ className={'pagination-data'}
157
+ itemRender={itemRender}
158
+ />
159
+ </div>
160
+ );
161
+ };
162
+
163
+ export default PaginationComponent;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Case } from '../../_type/type';
3
+ declare const CaseTable: ({ list, totalLength, pageSize, pageNumber, onChange }: {
4
+ list: Case[];
5
+ totalLength: number;
6
+ pageSize: number;
7
+ pageNumber: number;
8
+ onChange: (pageNum: number) => void;
9
+ }) => import("react").JSX.Element;
10
+ export default CaseTable;
@@ -0,0 +1,37 @@
1
+ import Image from 'next/image';
2
+ import Link from 'next/link';
3
+ import { useRouter } from 'next/router';
4
+ import Badge from '../_button/Badge';
5
+ import PaginationComponent from '../_pagination/PaginationComponent';
6
+ const CaseTable = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
7
+ const router = useRouter();
8
+ return (<>
9
+ <div className="w-full lg:px-[60px]">
10
+ <div className="border-grayScale5 flex flex-row border-y-[1px] border-solid ">
11
+ <div className="lg:body_medium1 text-left lg:w-[19.43%] lg:py-[28px]">사건 시작일</div>
12
+ <div className="lg:body_medium1 text-left lg:w-[21.43%] lg:py-[28px]">사건번호</div>
13
+ <div className="lg:body_medium1 text-left lg:w-[27.71%] lg:py-[28px]">사건명</div>
14
+ <div className="lg:body_medium1 text-left lg:w-[31.43%] lg:py-[28px]">진행상황</div>
15
+ </div>
16
+ </div>
17
+ {list.map((item, key) => {
18
+ return (<Link key={key} href={`/mycase/${item.idx}`} className={'border-grayScale5 hover:bg-grayScale7 group relative flex cursor-pointer flex-row border-b-[1px] border-solid '}>
19
+ <div className="lg:body_medium2 text-left lg:ml-[60px] lg:w-[19.43%] lg:py-[33px]">없음</div>
20
+ <div className="lg:body_medium2 text-left lg:w-[21.43%] lg:py-[33px]">{item.case_number}</div>
21
+ <div className="lg:body_medium2 text-left lg:w-[27.71%] lg:py-[33px]">{item.title}</div>
22
+ <div className="lg:body_medium2 flex flex-row gap-[20px] text-left lg:mr-[60px] lg:w-[31.43%] lg:py-[33px]">
23
+ <Badge title={item.state}/>
24
+ {item.is_deferred && <Badge title="보류"/>}
25
+ </div>
26
+ <div className="absolute right-[60px] top-[36px]">
27
+ <div className="flex flex-row items-center gap-[12px] transition-all duration-300 group-hover:gap-[32px]">
28
+ <p className="lg:body_small2">사건상세</p>
29
+ <Image src="/images/mycase/arrow_right.svg" alt="arrow_right" width={10} height={16}/>
30
+ </div>
31
+ </div>
32
+ </Link>);
33
+ })}
34
+ <PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
35
+ </>);
36
+ };
37
+ export default CaseTable;
@@ -0,0 +1,62 @@
1
+ import Image from 'next/image';
2
+ import Link from 'next/link';
3
+ import { useRouter } from 'next/router';
4
+ import { Case } from '../../_type/type';
5
+ import Badge from '../_button/Badge';
6
+ import PaginationComponent from '../_pagination/PaginationComponent';
7
+ const CaseTable = ({
8
+ list,
9
+ totalLength,
10
+ pageSize,
11
+ pageNumber,
12
+ onChange
13
+ }: {
14
+ list: Case[];
15
+ totalLength: number;
16
+ pageSize: number;
17
+ pageNumber: number;
18
+ onChange: (pageNum: number) => void;
19
+ }) => {
20
+ const router = useRouter();
21
+
22
+ return (
23
+ <>
24
+ <div className="w-full lg:px-[60px]">
25
+ <div className="border-grayScale5 flex flex-row border-y-[1px] border-solid ">
26
+ <div className="lg:body_medium1 text-left lg:w-[19.43%] lg:py-[28px]">사건 시작일</div>
27
+ <div className="lg:body_medium1 text-left lg:w-[21.43%] lg:py-[28px]">사건번호</div>
28
+ <div className="lg:body_medium1 text-left lg:w-[27.71%] lg:py-[28px]">사건명</div>
29
+ <div className="lg:body_medium1 text-left lg:w-[31.43%] lg:py-[28px]">진행상황</div>
30
+ </div>
31
+ </div>
32
+ {list.map((item, key) => {
33
+ return (
34
+ <Link
35
+ key={key}
36
+ href={`/mycase/${item.idx}`}
37
+ className={
38
+ 'border-grayScale5 hover:bg-grayScale7 group relative flex cursor-pointer flex-row border-b-[1px] border-solid '
39
+ }
40
+ >
41
+ <div className="lg:body_medium2 text-left lg:ml-[60px] lg:w-[19.43%] lg:py-[33px]">없음</div>
42
+ <div className="lg:body_medium2 text-left lg:w-[21.43%] lg:py-[33px]">{item.case_number}</div>
43
+ <div className="lg:body_medium2 text-left lg:w-[27.71%] lg:py-[33px]">{item.title}</div>
44
+ <div className="lg:body_medium2 flex flex-row gap-[20px] text-left lg:mr-[60px] lg:w-[31.43%] lg:py-[33px]">
45
+ <Badge title={item.state} />
46
+ {item.is_deferred && <Badge title="보류" />}
47
+ </div>
48
+ <div className="absolute right-[60px] top-[36px]">
49
+ <div className="flex flex-row items-center gap-[12px] transition-all duration-300 group-hover:gap-[32px]">
50
+ <p className="lg:body_small2">사건상세</p>
51
+ <Image src="/images/mycase/arrow_right.svg" alt="arrow_right" width={10} height={16} />
52
+ </div>
53
+ </div>
54
+ </Link>
55
+ );
56
+ })}
57
+ <PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
58
+ </>
59
+ );
60
+ };
61
+
62
+ export default CaseTable;
@@ -0,0 +1,5 @@
1
+ declare const getCase: ({ jwt, id }: {
2
+ jwt: string;
3
+ id: string;
4
+ }) => Promise<any>;
5
+ export default getCase;
@@ -0,0 +1,30 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const getCase = ({ jwt, id }) => __awaiter(void 0, void 0, void 0, function* () {
11
+ try {
12
+ const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/info`, {
13
+ method: 'GET',
14
+ headers: {
15
+ // 'Content-Type': 'application/json',
16
+ Authorization: `${jwt}`
17
+ }
18
+ });
19
+ if (!response.ok) {
20
+ throw new Error('Network response was not ok');
21
+ }
22
+ const data = yield response.json();
23
+ return data;
24
+ }
25
+ catch (error) {
26
+ console.error('Failed to fetch case:', error);
27
+ throw error;
28
+ }
29
+ });
30
+ export default getCase;
@@ -0,0 +1,21 @@
1
+ const getCase = async ({ jwt, id }: { jwt: string; id: string }) => {
2
+ try {
3
+ const response = await fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/info`, {
4
+ method: 'GET',
5
+ headers: {
6
+ // 'Content-Type': 'application/json',
7
+ Authorization: `${jwt}`
8
+ }
9
+ });
10
+ if (!response.ok) {
11
+ throw new Error('Network response was not ok');
12
+ }
13
+ const data = await response.json();
14
+ return data;
15
+ } catch (error) {
16
+ console.error('Failed to fetch case:', error);
17
+ throw error;
18
+ }
19
+ };
20
+
21
+ export default getCase;
@@ -0,0 +1,7 @@
1
+ declare const getCaseList: ({ jwt, size, state, page }: {
2
+ jwt: string;
3
+ size: number;
4
+ state: string;
5
+ page: number;
6
+ }) => Promise<any>;
7
+ export default getCaseList;
@@ -0,0 +1,30 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const getCaseList = ({ jwt, size, state, page }) => __awaiter(void 0, void 0, void 0, function* () {
11
+ try {
12
+ const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case?size=${size}&state=${state}&page=${page}`, {
13
+ method: 'GET',
14
+ headers: {
15
+ // 'Content-Type': 'application/json',
16
+ Authorization: `${jwt}`
17
+ }
18
+ });
19
+ if (!response.ok) {
20
+ throw new Error('Network response was not ok');
21
+ }
22
+ const data = yield response.json();
23
+ return data;
24
+ }
25
+ catch (error) {
26
+ console.error('Failed to fetch case:', error);
27
+ throw error;
28
+ }
29
+ });
30
+ export default getCaseList;
@@ -0,0 +1,24 @@
1
+ const getCaseList = async ({ jwt, size, state, page }: { jwt: string; size: number; state: string; page: number }) => {
2
+ try {
3
+ const response = await fetch(
4
+ `https://aegis.daeryunlaw.com/api/app/case?size=${size}&state=${state}&page=${page}`,
5
+ {
6
+ method: 'GET',
7
+ headers: {
8
+ // 'Content-Type': 'application/json',
9
+ Authorization: `${jwt}`
10
+ }
11
+ }
12
+ );
13
+ if (!response.ok) {
14
+ throw new Error('Network response was not ok');
15
+ }
16
+ const data = await response.json();
17
+ return data;
18
+ } catch (error) {
19
+ console.error('Failed to fetch case:', error);
20
+ throw error;
21
+ }
22
+ };
23
+
24
+ export default getCaseList;
@@ -0,0 +1,5 @@
1
+ declare const getCourtFileList: ({ jwt, id }: {
2
+ jwt: string;
3
+ id: string;
4
+ }) => Promise<any>;
5
+ export default getCourtFileList;
@@ -0,0 +1,30 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const getCourtFileList = ({ jwt, id }) => __awaiter(void 0, void 0, void 0, function* () {
11
+ try {
12
+ const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/docs`, {
13
+ method: 'GET',
14
+ headers: {
15
+ // 'Content-Type': 'application/json',
16
+ Authorization: `${jwt}`
17
+ }
18
+ });
19
+ if (!response.ok) {
20
+ throw new Error('Network response was not ok');
21
+ }
22
+ const data = yield response.json();
23
+ return data;
24
+ }
25
+ catch (error) {
26
+ console.error('Failed to fetch case:', error);
27
+ throw error;
28
+ }
29
+ });
30
+ export default getCourtFileList;
@@ -0,0 +1,21 @@
1
+ const getCourtFileList = async ({ jwt, id }: { jwt: string; id: string }) => {
2
+ try {
3
+ const response = await fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/docs`, {
4
+ method: 'GET',
5
+ headers: {
6
+ // 'Content-Type': 'application/json',
7
+ Authorization: `${jwt}`
8
+ }
9
+ });
10
+ if (!response.ok) {
11
+ throw new Error('Network response was not ok');
12
+ }
13
+ const data = await response.json();
14
+ return data;
15
+ } catch (error) {
16
+ console.error('Failed to fetch case:', error);
17
+ throw error;
18
+ }
19
+ };
20
+
21
+ export default getCourtFileList;
@@ -0,0 +1,5 @@
1
+ declare const getTimeLine: ({ jwt, id }: {
2
+ jwt: string;
3
+ id: string;
4
+ }) => Promise<any>;
5
+ export default getTimeLine;
@@ -0,0 +1,30 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const getTimeLine = ({ jwt, id }) => __awaiter(void 0, void 0, void 0, function* () {
11
+ try {
12
+ const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/progress`, {
13
+ method: 'GET',
14
+ headers: {
15
+ // 'Content-Type': 'application/json',
16
+ Authorization: `${jwt}`
17
+ }
18
+ });
19
+ if (!response.ok) {
20
+ throw new Error('Network response was not ok');
21
+ }
22
+ const data = yield response.json();
23
+ return data;
24
+ }
25
+ catch (error) {
26
+ console.error('Failed to fetch case:', error);
27
+ throw error;
28
+ }
29
+ });
30
+ export default getTimeLine;
@@ -0,0 +1,21 @@
1
+ const getTimeLine = async ({ jwt, id }: { jwt: string; id: string }) => {
2
+ try {
3
+ const response = await fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/progress`, {
4
+ method: 'GET',
5
+ headers: {
6
+ // 'Content-Type': 'application/json',
7
+ Authorization: `${jwt}`
8
+ }
9
+ });
10
+ if (!response.ok) {
11
+ throw new Error('Network response was not ok');
12
+ }
13
+ const data = await response.json();
14
+ return data;
15
+ } catch (error) {
16
+ console.error('Failed to fetch case:', error);
17
+ throw error;
18
+ }
19
+ };
20
+
21
+ export default getTimeLine;
@@ -0,0 +1,8 @@
1
+ export declare function catagoryMenuName({ url, t }: {
2
+ url: string;
3
+ t: any;
4
+ }): {
5
+ title: string;
6
+ subTitle: string;
7
+ address: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ export function catagoryMenuName({ url, t }) {
2
+ if (url.includes('/mycase')) {
3
+ return { title: t('나의사건현황'), subTitle: t('나의사건현황'), address: 'mycase' };
4
+ }
5
+ else {
6
+ return { title: '', subTitle: '', address: '/' };
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ export function catagoryMenuName({ url, t }: { url: string; t: any }): {
2
+ title: string;
3
+ subTitle: string;
4
+ address: string;
5
+ } {
6
+ if (url.includes('/mycase')) {
7
+ return { title: t('나의사건현황'), subTitle: t('나의사건현황'), address: 'mycase' };
8
+ } else {
9
+ return { title: '', subTitle: '', address: '/' };
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ export const __esModule: boolean;
2
+ export default _default;
3
+ declare namespace _default {
4
+ let items_per_page: string;
5
+ let jump_to: string;
6
+ let jump_to_confirm: string;
7
+ let page: string;
8
+ let prev_page: string;
9
+ let next_page: string;
10
+ let prev_5: string;
11
+ let next_5: string;
12
+ let prev_3: string;
13
+ let next_3: string;
14
+ let page_size: string;
15
+ }
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', {
3
+ value: true
4
+ });
5
+ exports.default = void 0;
6
+ let _default = {
7
+ // Options.jsx
8
+ items_per_page: '/ 쪽',
9
+ jump_to: '이동하기',
10
+ jump_to_confirm: '확인하다',
11
+ page: '페이지',
12
+ // Pagination.jsx
13
+ prev_page: '이전 페이지',
14
+ next_page: '다음 페이지',
15
+ prev_5: '이전 5 페이지',
16
+ next_5: '다음 5 페이지',
17
+ prev_3: '이전 3 페이지',
18
+ next_3: '다음 3 페이지',
19
+ page_size: '페이지 크기'
20
+ };
21
+ exports.default = _default;
@@ -0,0 +1,64 @@
1
+ import { buttonStyle } from '../_component/_button/Badge';
2
+ export interface Case {
3
+ idx: number;
4
+ case_number: string;
5
+ title: string;
6
+ lawyer: string;
7
+ state: keyof typeof buttonStyle;
8
+ is_deferred: boolean;
9
+ }
10
+ export interface DetailList {
11
+ case_number: string;
12
+ agency_name: string;
13
+ title: string;
14
+ state: string;
15
+ start_date: string;
16
+ end_date: string;
17
+ lawyer: string;
18
+ my_info: string;
19
+ }
20
+ export type FetchType<T> = {
21
+ data: T;
22
+ result: boolean;
23
+ list: T[];
24
+ };
25
+ export interface TimeLineType {
26
+ idx: number;
27
+ state: string;
28
+ title: string;
29
+ content: string;
30
+ is_deferred: boolean;
31
+ progress_time: string;
32
+ created_at: string;
33
+ creator_id: string;
34
+ creator: string;
35
+ is_highest_court: boolean;
36
+ }
37
+ export interface FileList {
38
+ name: string;
39
+ path: string;
40
+ size: string;
41
+ created_at: string;
42
+ }
43
+ export type Payment = {
44
+ title: string;
45
+ created_at: string;
46
+ amount: number;
47
+ method: string;
48
+ };
49
+ export type PaymentList = {
50
+ payment_status: 'partial' | 'complete';
51
+ deposit_amount: number;
52
+ remaining_amount: number;
53
+ payments: Payment[];
54
+ };
55
+ export type Answer = {
56
+ timestamp: string;
57
+ content: string;
58
+ };
59
+ export type Question = {
60
+ idx: string;
61
+ timestamp: string;
62
+ content: string;
63
+ answer?: Answer;
64
+ };
@@ -0,0 +1 @@
1
+ export {};