@daeryun/dr_components 0.2.73 → 0.2.74
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.
- package/dist/asset/images/myCase/arrow_2.webp +0 -0
- package/dist/asset/images/myCase/arrow_b.webp +0 -0
- package/dist/asset/images/myCase/arrow_b_w.webp +0 -0
- package/dist/asset/images/myCase/arrow_right.webp +0 -0
- package/dist/asset/images/myCase/background.svg +8 -0
- package/dist/asset/images/myCase/background.webp +0 -0
- package/dist/asset/images/myCase/background_mo.webp +0 -0
- package/dist/asset/images/myCase/background_tb.webp +0 -0
- package/dist/asset/images/myCase/home.svg +16 -0
- package/dist/asset/images/myCase/home.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon1.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon2.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon3.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon4.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon5.webp +0 -0
- package/dist/asset/images/myCase/icon/case_lookup_linkout.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle2.webp +0 -0
- package/dist/asset/images/myCase/icon/client.webp +0 -0
- package/dist/asset/images/myCase/icon/close.webp +0 -0
- package/dist/asset/images/myCase/icon/daeryun.webp +0 -0
- package/dist/asset/images/myCase/icon/docs.webp +0 -0
- package/dist/asset/images/myCase/icon/download.webp +0 -0
- package/dist/asset/images/myCase/icon/hwp.webp +0 -0
- package/dist/asset/images/myCase/icon/ink_pen.webp +0 -0
- package/dist/asset/images/myCase/icon/jpg.webp +0 -0
- package/dist/asset/images/myCase/icon/modal_icon.webp +0 -0
- package/dist/asset/images/myCase/icon/pdf.webp +0 -0
- package/dist/asset/images/myCase/icon/png.webp +0 -0
- package/dist/asset/images/myCase/icon/unknown.webp +0 -0
- package/dist/asset/images/myCase/icon/word.webp +0 -0
- package/dist/asset/images/myCase/icon/xls.webp +0 -0
- package/dist/asset/images/myCase/nav_arr.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_on.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_on.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
- package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
- package/dist/components/Fix/Fix.stories.d.ts +3 -2
- package/dist/components/Footer/TopBtn.d.ts +1 -0
- package/dist/components/MapSection/Map.d.ts +1 -0
- package/dist/components/MapSection/MapSection.d.ts +1 -1
- package/dist/components/Mark/Mark.d.ts +1 -0
- package/dist/components/SelectBox/SelectBox.d.ts +8 -8
- package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
- package/dist/components/banner/TopBanner.d.ts +1 -0
- package/dist/components/banner/TopBanner.stories.d.ts +1 -0
- package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
- package/dist/components/page/Choice/Choice.d.ts +1 -1
- package/dist/components/page/MyCase/MyCase.stories.d.ts +6 -0
- package/dist/components/page/MyCase/MyCase.stories.jsx +17 -0
- package/dist/components/page/MyCase/MyCase.stories.tsx +25 -0
- package/dist/components/page/MyCase/MyCaseApp.d.ts +3 -0
- package/dist/components/page/MyCase/MyCaseApp.jsx +23 -0
- package/dist/components/page/MyCase/MyCaseApp.tsx +30 -0
- package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
- package/dist/components/page/MyCase/MyCasePage.jsx +23 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +34 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +17 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +25 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +68 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +159 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +68 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +159 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +79 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +102 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +72 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +12 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +188 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +35 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +76 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +25 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +55 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
- package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
- package/dist/components/page/MyCase/_actions/action.js +145 -0
- package/dist/components/page/MyCase/_actions/action.ts +165 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +3 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +110 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +247 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +3 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +119 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +256 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +77 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +77 -0
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +15 -0
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +85 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +5 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +31 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +3 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +82 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +137 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +81 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +135 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +63 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +94 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +6 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +35 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +43 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +28 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/page/MyCase/_type/type.d.ts +73 -0
- package/dist/components/page/MyCase/_type/type.js +1 -0
- package/dist/components/page/MyCase/_type/type.ts +81 -0
- package/dist/components/page/Strength/Strength.d.ts +1 -0
- package/dist/components/page/index.d.ts +4 -0
- package/dist/components/page/index.js +4 -0
- package/dist/components/page/index.ts +4 -0
- package/dist/lib/utils.js +4 -4
- package/dist/styles/globals.css +2087 -130
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import Badge from '../_button/Badge';
|
|
4
|
+
import PaginationComponent from '../_pagination/PaginationComponentApp';
|
|
5
|
+
import dayjs from 'dayjs';
|
|
6
|
+
import arrowRight from '../../../../../asset/images/myCase/arrow_right.webp';
|
|
7
|
+
const CaseTable = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
|
|
8
|
+
return (<div className="max-sm-top:hidden">
|
|
9
|
+
<div className="sm-top:px-[50px] w-full lg:px-[60px]">
|
|
10
|
+
<div className="border-grayScale5 flex flex-row border-y-[1px] border-solid ">
|
|
11
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-[22.47%] sm-top:py-[24px] lg-mid:w-[17.43%] flex-shrink-0 text-left md2:w-[112px] lg:w-[15.93%] lg:py-[28px] lg:text-[22px] lg2:w-[19.43%] 3xl:text-[]">
|
|
12
|
+
사건 시작일
|
|
13
|
+
</div>
|
|
14
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-[24.82%] sm-top:py-[24px] lg-mid:w-[17.43%] flex-shrink-0 text-left md2:w-[128px] lg:w-[15.93%] lg:py-[28px] lg:text-[22px] lg2:w-[18.43%] xl:w-[19.43%] xxl:w-[21.43%]">
|
|
15
|
+
사건번호
|
|
16
|
+
</div>
|
|
17
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 lg:[17%] sm-top:w-[16.47%] sm-top:py-[24px] lg-mid:w-[18%] flex-shrink-0 text-left max-md2:hidden md2:w-[112px] lg:py-[28px] lg:text-[22px] lg2:w-[20%] xl:w-[21%] xxl:w-[23%] 6xl:w-[27.71%]">
|
|
18
|
+
사건명
|
|
19
|
+
</div>
|
|
20
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-full sm-top:py-[24px] lg-mid:w-[46.14%] text-left lg:w-[49.14%] lg:py-[28px] lg:text-[22px] lg2:w-[42.14%] xl:w-[40.14%] xxl:w-[36.14%] 6xl:w-[31.43%]">
|
|
21
|
+
진행상황
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
{list.map((item, key) => {
|
|
26
|
+
return (<Link key={key} href={`/mycase/${item.idx}`} className={'hover:bg-grayScale7 group relative cursor-pointer overflow-hidden bg-red-500 '}>
|
|
27
|
+
<div className=" group-hover:bg-grayScale7 sm-top:px-[50px] relative flex flex-row items-center bg-transparent lg:px-[60px] ">
|
|
28
|
+
<div className=" sm-top:body_medium2_tb sm-top:w-[22.47%] sm-top:py-[31px] lg-mid:w-[17.43%] flex-shrink-0 bg-transparent text-left md2:w-[112px] lg:w-[15.93%] lg:py-[33px] lg2:w-[19.43%] ">
|
|
29
|
+
<p className=" lg:body_medium2 line-clamp-1 lg:text-[20px] 3xl:text-[24px]">
|
|
30
|
+
{(item === null || item === void 0 ? void 0 : item.accept_date) ? dayjs(item === null || item === void 0 ? void 0 : item.accept_date).format('YYYY.MM.DD') : ''}
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
<div className="sm-top:body_medium2_tb sm-top:w-[24.82%] sm-top:py-[24px] lg-mid:w-[17.43%] line-clamp-1 flex-shrink-0 bg-transparent text-left md2:w-[128px] lg:w-[15.93%] lg:py-[33px] lg2:w-[18.43%] xl:w-[19.43%] xxl:w-[21.43%]">
|
|
34
|
+
<p className="lg:body_medium2 line-clamp-1 pr-[10px] lg:text-[20px] 3xl:text-[24px] ">
|
|
35
|
+
{item.case_number}
|
|
36
|
+
</p>
|
|
37
|
+
</div>
|
|
38
|
+
<div className="sm-top:body_medium2_tb sm-top:w-[16.47%] sm-top:py-[24px] lg-mid:w-[18%] line-clamp-1 flex-shrink-0 bg-transparent text-left max-md2:hidden md2:w-[112px] lg:w-[17%] lg:py-[33px] lg2:w-[20%] xl:w-[23%] 6xl:w-[27.71%]">
|
|
39
|
+
<p className=" lg:body_medium2 line-clamp-1 lg:text-[20px] 3xl:text-[24px]">
|
|
40
|
+
{item.title}
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
<div className="sm-top:body_medium2_tb sm-top:w-full sm-top:py-[24px] lg-mid:w-[48.14%] line-clamp-1 flex gap-[10px] bg-transparent text-left lg:w-[49.14%] lg:py-[33px] lg2:w-[42.14%] xl:w-[40.14%] xxl:w-[36.14%] 6xl:w-[31.43%]">
|
|
44
|
+
<Badge title={item.state}/>
|
|
45
|
+
{item.is_deferred && <Badge title="보류"/>}
|
|
46
|
+
</div>
|
|
47
|
+
<div className="sm-top:top-[32px] absolute right-[50px] lg:right-[60px] lg:top-[40px]">
|
|
48
|
+
<div className="group flex flex-row items-center justify-center gap-[12px] lg:transition-all lg:duration-300 lg:group-hover:gap-[32px] ">
|
|
49
|
+
<p className="sm-top:body_small2_tb lg:body_small2 group-hover:underline max-md2:hidden lg:text-[20px] ">
|
|
50
|
+
사건상세
|
|
51
|
+
</p>
|
|
52
|
+
<Image src={arrowRight} alt="arrow_right" width={10} height={16} className="sm-top:h-[13.33px] sm-top:w-[8px] lg:h-[16px] lg:w-[10px]"/>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div className="bg-grayScale5 z-[25] mx-[50px] h-[1px] w-[calc(100%-100px)] lg:mx-[60px] lg:w-[calc(100%-120px)]"></div>
|
|
58
|
+
</Link>);
|
|
59
|
+
})}
|
|
60
|
+
<PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
|
|
61
|
+
</div>);
|
|
62
|
+
};
|
|
63
|
+
export default CaseTable;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import { Case } from '../../_type/type';
|
|
4
|
+
import Badge from '../_button/Badge';
|
|
5
|
+
import PaginationComponent from '../_pagination/PaginationComponentApp';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import arrowRight from '../../../../../asset/images/myCase/arrow_right.webp';
|
|
8
|
+
|
|
9
|
+
const CaseTable = ({
|
|
10
|
+
list,
|
|
11
|
+
totalLength,
|
|
12
|
+
pageSize,
|
|
13
|
+
pageNumber,
|
|
14
|
+
onChange
|
|
15
|
+
}: {
|
|
16
|
+
list: Case[];
|
|
17
|
+
totalLength: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
pageNumber: number;
|
|
20
|
+
onChange: (pageNum: number) => void;
|
|
21
|
+
}) => {
|
|
22
|
+
return (
|
|
23
|
+
<div className="max-sm-top:hidden">
|
|
24
|
+
<div className="sm-top:px-[50px] w-full lg:px-[60px]">
|
|
25
|
+
<div className="border-grayScale5 flex flex-row border-y-[1px] border-solid ">
|
|
26
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-[22.47%] sm-top:py-[24px] lg-mid:w-[17.43%] flex-shrink-0 text-left md2:w-[112px] lg:w-[15.93%] lg:py-[28px] lg:text-[22px] lg2:w-[19.43%] 3xl:text-[]">
|
|
27
|
+
사건 시작일
|
|
28
|
+
</div>
|
|
29
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-[24.82%] sm-top:py-[24px] lg-mid:w-[17.43%] flex-shrink-0 text-left md2:w-[128px] lg:w-[15.93%] lg:py-[28px] lg:text-[22px] lg2:w-[18.43%] xl:w-[19.43%] xxl:w-[21.43%]">
|
|
30
|
+
사건번호
|
|
31
|
+
</div>
|
|
32
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 lg:[17%] sm-top:w-[16.47%] sm-top:py-[24px] lg-mid:w-[18%] flex-shrink-0 text-left max-md2:hidden md2:w-[112px] lg:py-[28px] lg:text-[22px] lg2:w-[20%] xl:w-[21%] xxl:w-[23%] 6xl:w-[27.71%]">
|
|
33
|
+
사건명
|
|
34
|
+
</div>
|
|
35
|
+
<div className="sm-top:body_medium1_tb lg:body_medium1 sm-top:w-full sm-top:py-[24px] lg-mid:w-[46.14%] text-left lg:w-[49.14%] lg:py-[28px] lg:text-[22px] lg2:w-[42.14%] xl:w-[40.14%] xxl:w-[36.14%] 6xl:w-[31.43%]">
|
|
36
|
+
진행상황
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
{list.map((item, key) => {
|
|
41
|
+
return (
|
|
42
|
+
<Link
|
|
43
|
+
key={key}
|
|
44
|
+
href={`/mycase/${item.idx}`}
|
|
45
|
+
className={
|
|
46
|
+
'hover:bg-grayScale7 group relative cursor-pointer overflow-hidden bg-red-500 '
|
|
47
|
+
}
|
|
48
|
+
>
|
|
49
|
+
<div className=" group-hover:bg-grayScale7 sm-top:px-[50px] relative flex flex-row items-center bg-transparent lg:px-[60px] ">
|
|
50
|
+
<div className=" sm-top:body_medium2_tb sm-top:w-[22.47%] sm-top:py-[31px] lg-mid:w-[17.43%] flex-shrink-0 bg-transparent text-left md2:w-[112px] lg:w-[15.93%] lg:py-[33px] lg2:w-[19.43%] ">
|
|
51
|
+
<p className=" lg:body_medium2 line-clamp-1 lg:text-[20px] 3xl:text-[24px]">
|
|
52
|
+
{item?.accept_date ? dayjs(item?.accept_date).format('YYYY.MM.DD') : ''}
|
|
53
|
+
</p>
|
|
54
|
+
</div>
|
|
55
|
+
<div className="sm-top:body_medium2_tb sm-top:w-[24.82%] sm-top:py-[24px] lg-mid:w-[17.43%] line-clamp-1 flex-shrink-0 bg-transparent text-left md2:w-[128px] lg:w-[15.93%] lg:py-[33px] lg2:w-[18.43%] xl:w-[19.43%] xxl:w-[21.43%]">
|
|
56
|
+
<p className="lg:body_medium2 line-clamp-1 pr-[10px] lg:text-[20px] 3xl:text-[24px] ">
|
|
57
|
+
{item.case_number}
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
<div className="sm-top:body_medium2_tb sm-top:w-[16.47%] sm-top:py-[24px] lg-mid:w-[18%] line-clamp-1 flex-shrink-0 bg-transparent text-left max-md2:hidden md2:w-[112px] lg:w-[17%] lg:py-[33px] lg2:w-[20%] xl:w-[23%] 6xl:w-[27.71%]">
|
|
61
|
+
<p className=" lg:body_medium2 line-clamp-1 lg:text-[20px] 3xl:text-[24px]">
|
|
62
|
+
{item.title}
|
|
63
|
+
</p>
|
|
64
|
+
</div>
|
|
65
|
+
<div className="sm-top:body_medium2_tb sm-top:w-full sm-top:py-[24px] lg-mid:w-[48.14%] line-clamp-1 flex gap-[10px] bg-transparent text-left lg:w-[49.14%] lg:py-[33px] lg2:w-[42.14%] xl:w-[40.14%] xxl:w-[36.14%] 6xl:w-[31.43%]">
|
|
66
|
+
<Badge title={item.state} />
|
|
67
|
+
{item.is_deferred && <Badge title="보류" />}
|
|
68
|
+
</div>
|
|
69
|
+
<div className="sm-top:top-[32px] absolute right-[50px] lg:right-[60px] lg:top-[40px]">
|
|
70
|
+
<div className="group flex flex-row items-center justify-center gap-[12px] lg:transition-all lg:duration-300 lg:group-hover:gap-[32px] ">
|
|
71
|
+
<p className="sm-top:body_small2_tb lg:body_small2 group-hover:underline max-md2:hidden lg:text-[20px] ">
|
|
72
|
+
사건상세
|
|
73
|
+
</p>
|
|
74
|
+
<Image
|
|
75
|
+
src={arrowRight}
|
|
76
|
+
alt="arrow_right"
|
|
77
|
+
width={10}
|
|
78
|
+
height={16}
|
|
79
|
+
className="sm-top:h-[13.33px] sm-top:w-[8px] lg:h-[16px] lg:w-[10px]"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div className="bg-grayScale5 z-[25] mx-[50px] h-[1px] w-[calc(100%-100px)] lg:mx-[60px] lg:w-[calc(100%-120px)]"></div>
|
|
86
|
+
</Link>
|
|
87
|
+
);
|
|
88
|
+
})}
|
|
89
|
+
<PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default CaseTable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Case } from '../../_type/type';
|
|
3
|
+
declare const CaseTableMo: ({ 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 CaseTableMo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import PaginationComponent from '../_pagination/PaginationComponentApp';
|
|
2
|
+
import CaseTableMoBox from './CaseTableMoBox';
|
|
3
|
+
const CaseTableMo = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
|
|
4
|
+
return (<div className="sm-top:hidden mt-[22px] flex flex-col gap-[16px] px-[20px] 2sm:px-[40px] ">
|
|
5
|
+
{list === null || list === void 0 ? void 0 : list.map((item, key) => {
|
|
6
|
+
return <CaseTableMoBox key={key} item={item}/>;
|
|
7
|
+
})}
|
|
8
|
+
<PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
|
|
9
|
+
</div>);
|
|
10
|
+
};
|
|
11
|
+
export default CaseTableMo;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Case } from '../../_type/type';
|
|
2
|
+
import PaginationComponent from '../_pagination/PaginationComponentApp';
|
|
3
|
+
import CaseTableMoBox from './CaseTableMoBox';
|
|
4
|
+
|
|
5
|
+
const CaseTableMo = ({
|
|
6
|
+
list,
|
|
7
|
+
totalLength,
|
|
8
|
+
pageSize,
|
|
9
|
+
pageNumber,
|
|
10
|
+
onChange
|
|
11
|
+
}: {
|
|
12
|
+
list: Case[];
|
|
13
|
+
totalLength: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
pageNumber: number;
|
|
16
|
+
onChange: (pageNum: number) => void;
|
|
17
|
+
}) => {
|
|
18
|
+
return (
|
|
19
|
+
<div className="sm-top:hidden mt-[22px] flex flex-col gap-[16px] px-[20px] 2sm:px-[40px] ">
|
|
20
|
+
{list?.map((item, key) => {
|
|
21
|
+
return <CaseTableMoBox key={key} item={item} />;
|
|
22
|
+
})}
|
|
23
|
+
<PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default CaseTableMo;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Badge from '../_button/Badge';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import arrowRight from '../../../../../asset/images/myCase/arrow_right.webp';
|
|
6
|
+
const CaseTableMoBox = ({ item }) => {
|
|
7
|
+
return (<Link href={`/mycase/${item.idx}`} className="border-grayScale5 h-[182px] w-full cursor-pointer rounded-[12px] border-[1px] border-solid p-[20px]">
|
|
8
|
+
<div className="flex flex-row items-center justify-between">
|
|
9
|
+
<div className="flex flex-row items-center gap-[8px]">
|
|
10
|
+
<Badge title={item === null || item === void 0 ? void 0 : item.state}/>
|
|
11
|
+
{item.is_deferred && <Badge title="보류"/>}
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div className=" flex flex-row items-center gap-[8px] text-black">
|
|
15
|
+
<p className="text-[14px] leading-[20px] tracking-[-0.56px]">사건 상세</p>
|
|
16
|
+
<Image src={arrowRight} alt="arrow_right" width={8} height={13.5} className="h-[13.5px] w-[8px]"/>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div className="mt-[16px] flex flex-row items-center justify-between">
|
|
20
|
+
<p className="body_medium2_mo">사건 시작일</p>
|
|
21
|
+
<p className="body_medium2_mo">
|
|
22
|
+
{(item === null || item === void 0 ? void 0 : item.accept_date) ? dayjs(item === null || item === void 0 ? void 0 : item.accept_date).format('YYYY.MM.DD') : '-'}
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
<div className="mt-[12px] flex flex-row items-center justify-between">
|
|
26
|
+
<p className="body_medium2_mo">사건번호</p>
|
|
27
|
+
<p className="body_medium1_mo">{item === null || item === void 0 ? void 0 : item.case_number}</p>
|
|
28
|
+
</div>
|
|
29
|
+
<div className="mt-[12px] flex flex-row items-center justify-between">
|
|
30
|
+
<p className="body_medium2_mo">사건명</p>
|
|
31
|
+
<p className="body_medium1_mo">{item === null || item === void 0 ? void 0 : item.title}</p>
|
|
32
|
+
</div>
|
|
33
|
+
</Link>);
|
|
34
|
+
};
|
|
35
|
+
export default CaseTableMoBox;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import { Case } from '../../_type/type';
|
|
3
|
+
import Badge from '../_button/Badge';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import arrowRight from '../../../../../asset/images/myCase/arrow_right.webp';
|
|
7
|
+
|
|
8
|
+
const CaseTableMoBox = ({ item }: { item: Case }) => {
|
|
9
|
+
return (
|
|
10
|
+
<Link
|
|
11
|
+
href={`/mycase/${item.idx}`}
|
|
12
|
+
className="border-grayScale5 h-[182px] w-full cursor-pointer rounded-[12px] border-[1px] border-solid p-[20px]"
|
|
13
|
+
>
|
|
14
|
+
<div className="flex flex-row items-center justify-between">
|
|
15
|
+
<div className="flex flex-row items-center gap-[8px]">
|
|
16
|
+
<Badge title={item?.state} />
|
|
17
|
+
{item.is_deferred && <Badge title="보류" />}
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div className=" flex flex-row items-center gap-[8px] text-black">
|
|
21
|
+
<p className="text-[14px] leading-[20px] tracking-[-0.56px]">사건 상세</p>
|
|
22
|
+
<Image src={arrowRight} alt="arrow_right" width={8} height={13.5} className="h-[13.5px] w-[8px]" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div className="mt-[16px] flex flex-row items-center justify-between">
|
|
26
|
+
<p className="body_medium2_mo">사건 시작일</p>
|
|
27
|
+
<p className="body_medium2_mo">
|
|
28
|
+
{item?.accept_date ? dayjs(item?.accept_date).format('YYYY.MM.DD') : '-'}
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
<div className="mt-[12px] flex flex-row items-center justify-between">
|
|
32
|
+
<p className="body_medium2_mo">사건번호</p>
|
|
33
|
+
<p className="body_medium1_mo">{item?.case_number}</p>
|
|
34
|
+
</div>
|
|
35
|
+
<div className="mt-[12px] flex flex-row items-center justify-between">
|
|
36
|
+
<p className="body_medium2_mo">사건명</p>
|
|
37
|
+
<p className="body_medium1_mo">{item?.title}</p>
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default CaseTableMoBox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Case } from '../../_type/type';
|
|
3
|
+
declare const CaseTableMoPage: ({ 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 CaseTableMoPage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import PaginationComponentPage from '../_pagination/PaginationComponentPage';
|
|
2
|
+
import CaseTableMoBox from './CaseTableMoBox';
|
|
3
|
+
const CaseTableMoPage = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
|
|
4
|
+
return (<div className="sm-top:hidden mt-[22px] flex flex-col gap-[16px] px-[20px] 2sm:px-[40px] ">
|
|
5
|
+
{list === null || list === void 0 ? void 0 : list.map((item, key) => {
|
|
6
|
+
return <CaseTableMoBox key={key} item={item}/>;
|
|
7
|
+
})}
|
|
8
|
+
<PaginationComponentPage pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
|
|
9
|
+
</div>);
|
|
10
|
+
};
|
|
11
|
+
export default CaseTableMoPage;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Case } from '../../_type/type';
|
|
2
|
+
import PaginationComponentPage from '../_pagination/PaginationComponentPage';
|
|
3
|
+
import CaseTableMoBox from './CaseTableMoBox';
|
|
4
|
+
|
|
5
|
+
const CaseTableMoPage = ({
|
|
6
|
+
list,
|
|
7
|
+
totalLength,
|
|
8
|
+
pageSize,
|
|
9
|
+
pageNumber,
|
|
10
|
+
onChange
|
|
11
|
+
}: {
|
|
12
|
+
list: Case[];
|
|
13
|
+
totalLength: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
pageNumber: number;
|
|
16
|
+
onChange: (pageNum: number) => void;
|
|
17
|
+
}) => {
|
|
18
|
+
return (
|
|
19
|
+
<div className="sm-top:hidden mt-[22px] flex flex-col gap-[16px] px-[20px] 2sm:px-[40px] ">
|
|
20
|
+
{list?.map((item, key) => {
|
|
21
|
+
return <CaseTableMoBox key={key} item={item} />;
|
|
22
|
+
})}
|
|
23
|
+
<PaginationComponentPage pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber} />
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default CaseTableMoPage;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 addMyCaseQuestion = ({ jwt, id, content }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
try {
|
|
12
|
+
const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/inquiry`, {
|
|
13
|
+
method: 'POST',
|
|
14
|
+
headers: {
|
|
15
|
+
'Content-Type': 'application/json',
|
|
16
|
+
Authorization: `${jwt}`
|
|
17
|
+
},
|
|
18
|
+
body: JSON.stringify({ content })
|
|
19
|
+
});
|
|
20
|
+
if (!response.ok) {
|
|
21
|
+
throw new Error('Network response was not ok');
|
|
22
|
+
}
|
|
23
|
+
const data = yield response.json();
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
console.error('Failed to fetch case:', error);
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export default addMyCaseQuestion;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const addMyCaseQuestion = async ({ jwt, id, content }: { jwt: string; id: string; content: string }) => {
|
|
2
|
+
try {
|
|
3
|
+
const response = await fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/inquiry`, {
|
|
4
|
+
method: 'POST',
|
|
5
|
+
headers: {
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
Authorization: `${jwt}`
|
|
8
|
+
},
|
|
9
|
+
body: JSON.stringify({ content })
|
|
10
|
+
});
|
|
11
|
+
if (!response.ok) {
|
|
12
|
+
throw new Error('Network response was not ok');
|
|
13
|
+
}
|
|
14
|
+
const data = await response.json();
|
|
15
|
+
return data;
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error('Failed to fetch case:', error);
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default addMyCaseQuestion;
|
|
@@ -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,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,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/court`, {
|
|
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/court`, {
|
|
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,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 getMyCaseQuestion = ({ jwt, id, page, size }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
try {
|
|
12
|
+
const response = yield fetch(`https://aegis.daeryunlaw.com/api/app/case/${id}/inquiry?page=${page}&size=${size}`, {
|
|
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 getMyCaseQuestion;
|