@daeryun/dr_components 0.2.97 → 0.2.99
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/components/banner/TopBanner.jsx +11 -14
- package/dist/components/banner/TopBanner.tsx +12 -15
- package/dist/components/page/index.d.ts +0 -4
- package/dist/components/page/index.js +0 -4
- package/dist/components/page/index.ts +0 -4
- package/dist/styles/globals.css +115 -2077
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/components/page/MyCase/MyCase.stories.d.ts +0 -6
- package/dist/components/page/MyCase/MyCase.stories.jsx +0 -17
- package/dist/components/page/MyCase/MyCase.stories.tsx +0 -25
- package/dist/components/page/MyCase/MyCaseApp.d.ts +0 -2
- package/dist/components/page/MyCase/MyCaseApp.jsx +0 -19
- package/dist/components/page/MyCase/MyCaseApp.tsx +0 -32
- package/dist/components/page/MyCase/MyCasePage.d.ts +0 -3
- package/dist/components/page/MyCase/MyCasePage.jsx +0 -20
- package/dist/components/page/MyCase/MyCasePage.tsx +0 -32
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +0 -17
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +0 -25
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +0 -66
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +0 -159
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +0 -65
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +0 -157
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +0 -2
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +0 -79
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +0 -102
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +0 -44
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +0 -46
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +0 -72
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +0 -11
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +0 -80
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +0 -188
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +0 -35
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +0 -59
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +0 -76
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +0 -107
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +0 -150
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +0 -25
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +0 -55
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +0 -26
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +0 -39
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +0 -4
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +0 -24
- package/dist/components/page/MyCase/_actions/action.d.ts +0 -35
- package/dist/components/page/MyCase/_actions/action.js +0 -145
- package/dist/components/page/MyCase/_actions/action.ts +0 -165
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +0 -117
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +0 -255
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +0 -106
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +0 -244
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +0 -77
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +0 -8
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +0 -77
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +0 -14
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +0 -16
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +0 -22
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +0 -33
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +0 -31
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +0 -6
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +0 -75
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +0 -85
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +0 -11
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +0 -12
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +0 -25
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +0 -41
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +0 -5
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +0 -80
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +0 -31
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +0 -81
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +0 -2
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +0 -89
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +0 -92
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +0 -82
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +0 -137
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +0 -81
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +0 -135
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +0 -65
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +0 -79
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +0 -63
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +0 -94
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +0 -28
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +0 -5
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +0 -35
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +0 -43
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +0 -28
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +0 -6
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +0 -31
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +0 -22
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCase.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCase.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +0 -21
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +0 -11
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.d.ts +0 -7
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.ts +0 -11
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +0 -15
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +0 -21
- package/dist/components/page/MyCase/_type/type.d.ts +0 -73
- package/dist/components/page/MyCase/_type/type.js +0 -1
- package/dist/components/page/MyCase/_type/type.ts +0 -81
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
13
|
-
import Swiper from 'swiper';
|
|
14
|
-
import { FreeMode, Scrollbar } from 'swiper/modules';
|
|
15
|
-
import { twMerge } from 'tailwind-merge';
|
|
16
|
-
const CaseTabSwiper = (_a) => {
|
|
17
|
-
var { children, id, containerClassName = '', scrollClassName = '' } = _a,
|
|
18
|
-
// handleOnSubTap,
|
|
19
|
-
// subTapState,
|
|
20
|
-
others = __rest(_a, ["children", "id", "containerClassName", "scrollClassName"]);
|
|
21
|
-
const swiper = useRef(null);
|
|
22
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (document.querySelector(`#${id}`)) {
|
|
25
|
-
swiper.current = new Swiper(`#${id}`, {
|
|
26
|
-
modules: [FreeMode, Scrollbar],
|
|
27
|
-
slidesPerView: 'auto',
|
|
28
|
-
spaceBetween: 16,
|
|
29
|
-
freeMode: true,
|
|
30
|
-
navigation: { prevEl: `#${id}-prev`, nextEl: `#${id}-next` },
|
|
31
|
-
loop: false,
|
|
32
|
-
scrollbar: {
|
|
33
|
-
el: `#${id}-scrollbar`,
|
|
34
|
-
draggable: true,
|
|
35
|
-
dragSize: 100
|
|
36
|
-
// draggableMinDistance: 100
|
|
37
|
-
},
|
|
38
|
-
on: {
|
|
39
|
-
slideChange: () => {
|
|
40
|
-
if (swiper.current) {
|
|
41
|
-
setActiveIndex(swiper.current.realIndex);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
if (swiper.current) {
|
|
47
|
-
swiper.current.slideTo(activeIndex, 0); // 0ms -> 즉시 이동
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return () => {
|
|
51
|
-
if (swiper.current) {
|
|
52
|
-
swiper.current.destroy();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}, [id, children]);
|
|
56
|
-
return (<div className="relative">
|
|
57
|
-
<div id={id} className={'swiper relative ' + containerClassName} {...others}>
|
|
58
|
-
<span className={'swiper-wrapper '}>{children}</span>
|
|
59
|
-
|
|
60
|
-
{/* 스크롤바 추가 */}
|
|
61
|
-
</div>
|
|
62
|
-
<div id={`${id}-scrollbar`} className={twMerge('swiper-scrollbar !bottom-auto !left-[0px] !right-auto !top-[50px] !z-[50] ml-[20px] !hidden !w-[calc(100%-40px)] 2sm:ml-[40px] 2sm:!w-[calc(100%-80px)]', scrollClassName)}/>
|
|
63
|
-
</div>);
|
|
64
|
-
};
|
|
65
|
-
export default CaseTabSwiper;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import Swiper from 'swiper';
|
|
3
|
-
import { FreeMode, Scrollbar } from 'swiper/modules';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
|
|
6
|
-
interface MobileSwiperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
id: string; // 스타일 추가
|
|
9
|
-
containerClassName?: string;
|
|
10
|
-
scrollClassName?: string;
|
|
11
|
-
// handleOnSubTap: (subTap: string) => void;
|
|
12
|
-
// subTapState: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const CaseTabSwiper: React.FC<MobileSwiperProps> = ({
|
|
16
|
-
children,
|
|
17
|
-
id,
|
|
18
|
-
containerClassName = '',
|
|
19
|
-
scrollClassName = '',
|
|
20
|
-
// handleOnSubTap,
|
|
21
|
-
// subTapState,
|
|
22
|
-
...others
|
|
23
|
-
}) => {
|
|
24
|
-
const swiper = useRef<Swiper | null>(null);
|
|
25
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
26
|
-
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
if (document.querySelector(`#${id}`)) {
|
|
29
|
-
swiper.current = new Swiper(`#${id}`, {
|
|
30
|
-
modules: [FreeMode, Scrollbar],
|
|
31
|
-
slidesPerView: 'auto',
|
|
32
|
-
spaceBetween: 16,
|
|
33
|
-
freeMode: true,
|
|
34
|
-
navigation: { prevEl: `#${id}-prev`, nextEl: `#${id}-next` },
|
|
35
|
-
loop: false,
|
|
36
|
-
scrollbar: {
|
|
37
|
-
el: `#${id}-scrollbar`,
|
|
38
|
-
draggable: true,
|
|
39
|
-
dragSize: 100
|
|
40
|
-
// draggableMinDistance: 100
|
|
41
|
-
},
|
|
42
|
-
on: {
|
|
43
|
-
slideChange: () => {
|
|
44
|
-
if (swiper.current) {
|
|
45
|
-
setActiveIndex(swiper.current.realIndex);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
if (swiper.current) {
|
|
51
|
-
swiper.current.slideTo(activeIndex, 0); // 0ms -> 즉시 이동
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return () => {
|
|
55
|
-
if (swiper.current) {
|
|
56
|
-
swiper.current.destroy();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}, [id, children]);
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<div className="relative">
|
|
63
|
-
<div id={id} className={'swiper relative ' + containerClassName} {...others}>
|
|
64
|
-
<span className={'swiper-wrapper '}>{children}</span>
|
|
65
|
-
|
|
66
|
-
{/* 스크롤바 추가 */}
|
|
67
|
-
</div>
|
|
68
|
-
<div
|
|
69
|
-
id={`${id}-scrollbar`}
|
|
70
|
-
className={twMerge(
|
|
71
|
-
'swiper-scrollbar !bottom-auto !left-[0px] !right-auto !top-[50px] !z-[50] ml-[20px] !hidden !w-[calc(100%-40px)] 2sm:ml-[40px] 2sm:!w-[calc(100%-80px)]',
|
|
72
|
-
scrollClassName
|
|
73
|
-
)}
|
|
74
|
-
/>
|
|
75
|
-
</div>
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export default CaseTabSwiper;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Case } from '../../_type/type';
|
|
2
|
-
declare const CaseTable: ({ list, totalLength, pageSize, pageNumber, onChange }: {
|
|
3
|
-
list: Case[];
|
|
4
|
-
totalLength: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
pageNumber: number;
|
|
7
|
-
onChange: (pageNum: number) => void;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
export default CaseTable;
|
|
@@ -1,63 +0,0 @@
|
|
|
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;
|
|
@@ -1,94 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Case } from '../../_type/type';
|
|
2
|
-
declare const CaseTableMo: ({ list, totalLength, pageSize, pageNumber, onChange }: {
|
|
3
|
-
list: Case[];
|
|
4
|
-
totalLength: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
pageNumber: number;
|
|
7
|
-
onChange: (pageNum: number) => void;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
export default CaseTableMo;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,35 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Case } from '../../_type/type';
|
|
2
|
-
declare const CaseTableMoPage: ({ list, totalLength, pageSize, pageNumber, onChange }: {
|
|
3
|
-
list: Case[];
|
|
4
|
-
totalLength: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
pageNumber: number;
|
|
7
|
-
onChange: (pageNum: number) => void;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
export default CaseTableMoPage;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,31 +0,0 @@
|
|
|
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 = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id, content }) {
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,30 +0,0 @@
|
|
|
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 = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id }) {
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|