@daeryun/dr_components 0.2.99 → 0.3.0
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 +14 -11
- package/dist/components/banner/TopBanner.tsx +15 -12
- package/dist/components/myCase/MyCase.d.ts +5 -0
- package/dist/components/myCase/MyCase.jsx +27 -0
- package/dist/components/myCase/MyCase.tsx +48 -0
- 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 +2 -0
- package/dist/components/page/MyCase/MyCaseApp.jsx +19 -0
- package/dist/components/page/MyCase/MyCaseApp.tsx +32 -0
- package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
- package/dist/components/page/MyCase/MyCasePage.jsx +21 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +32 -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 +66 -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 +65 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +157 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +2 -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 +6 -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 +6 -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 +11 -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 +6 -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 +6 -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 +7 -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 +7 -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 +7 -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 +7 -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 +2 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +117 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +255 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +2 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +106 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +244 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +7 -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 +14 -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 +7 -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 +7 -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 +6 -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 +7 -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 +4 -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/IntroAppWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +80 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +31 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +2 -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 +9 -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 +9 -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 +5 -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 +9 -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/catagoryMenuNameApp.d.ts +7 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.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/index.d.ts +4 -0
- package/dist/components/page/index.js +4 -0
- package/dist/components/page/index.ts +4 -0
- package/dist/styles/globals.css +2080 -118
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ import 'swiper/css';
|
|
|
14
14
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
15
15
|
import { Autoplay } from 'swiper/modules';
|
|
16
16
|
import Image from 'next/image';
|
|
17
|
-
import { useQuery } from 'react-query';
|
|
17
|
+
import { useQuery } from '@tanstack/react-query';
|
|
18
18
|
import { isCurrentTimeWithinPopupRange, paramFetch } from '../../lib';
|
|
19
19
|
import { DateTime } from 'luxon';
|
|
20
20
|
import classNames from 'classnames';
|
|
@@ -122,27 +122,30 @@ const TopBanner = () => {
|
|
|
122
122
|
};
|
|
123
123
|
}, [handleScroll]);
|
|
124
124
|
// userQuery
|
|
125
|
-
useQuery({
|
|
125
|
+
const { data: popupData } = useQuery({
|
|
126
126
|
queryKey: ['popUpImg'],
|
|
127
|
-
queryFn: () =>
|
|
128
|
-
|
|
127
|
+
queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
128
|
+
const response = yield getPopUpData();
|
|
129
|
+
return response.list; // IBannerTypes[] 반환
|
|
130
|
+
}),
|
|
129
131
|
refetchOnWindowFocus: false,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
gcTime: Infinity,
|
|
133
|
+
staleTime: Infinity
|
|
134
|
+
});
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
if (popupData) {
|
|
134
137
|
const kstDateTime = DateTime.now().setZone('Asia/Seoul');
|
|
135
138
|
const nowDate = Number(kstDateTime.year + '' + zeroMaker(kstDateTime.month) + '' + zeroMaker(kstDateTime.day));
|
|
136
139
|
const nowTime = Number(zeroMaker(kstDateTime.hour) + zeroMaker(kstDateTime.minute));
|
|
137
140
|
const weekday = kstDateTime.weekdayShort + '';
|
|
138
|
-
const dateData =
|
|
141
|
+
const dateData = popupData.filter(item => findDate(item, 'start') <= nowDate &&
|
|
139
142
|
findDate(item, 'end') >= nowDate &&
|
|
140
143
|
findDays(item, weekday) &&
|
|
141
144
|
findTime(item, nowTime));
|
|
142
|
-
setPopup(dateData.filter(
|
|
145
|
+
setPopup(dateData.filter(item => !(localStorage.getItem(item.idx + '_CloseTopPop') &&
|
|
143
146
|
Number(localStorage.getItem(item.idx + '_CloseTopPop')) > new Date().getTime())));
|
|
144
147
|
}
|
|
145
|
-
});
|
|
148
|
+
}, [popupData]);
|
|
146
149
|
// 테스트 로직, 스토리북으로 확인할 때만 활성화 (useQuery는 주석하고)
|
|
147
150
|
// useEffect(() => {
|
|
148
151
|
// setPopup(POPUP_DUMMY);
|
|
@@ -6,7 +6,7 @@ import 'swiper/css';
|
|
|
6
6
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
7
7
|
import { Autoplay } from 'swiper/modules';
|
|
8
8
|
import Image from 'next/image';
|
|
9
|
-
import { useQuery } from 'react-query';
|
|
9
|
+
import { useQuery } from '@tanstack/react-query';
|
|
10
10
|
import { isCurrentTimeWithinPopupRange, paramFetch } from '../../lib';
|
|
11
11
|
import { DateTime } from 'luxon';
|
|
12
12
|
import classNames from 'classnames';
|
|
@@ -140,23 +140,26 @@ const TopBanner = () => {
|
|
|
140
140
|
}, [handleScroll]);
|
|
141
141
|
|
|
142
142
|
// userQuery
|
|
143
|
-
useQuery({
|
|
143
|
+
const { data: popupData } = useQuery<IBannerTypes[]>({
|
|
144
144
|
queryKey: ['popUpImg'],
|
|
145
|
-
queryFn: () =>
|
|
146
|
-
|
|
145
|
+
queryFn: async () => {
|
|
146
|
+
const response = await getPopUpData();
|
|
147
|
+
return response.list; // IBannerTypes[] 반환
|
|
148
|
+
},
|
|
147
149
|
refetchOnWindowFocus: false,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
gcTime: Infinity,
|
|
151
|
+
staleTime: Infinity
|
|
152
|
+
});
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
if (popupData) {
|
|
152
155
|
const kstDateTime = DateTime.now().setZone('Asia/Seoul');
|
|
153
156
|
const nowDate = Number(
|
|
154
157
|
kstDateTime.year + '' + zeroMaker(kstDateTime.month) + '' + zeroMaker(kstDateTime.day)
|
|
155
158
|
);
|
|
156
159
|
const nowTime = Number(zeroMaker(kstDateTime.hour) + zeroMaker(kstDateTime.minute));
|
|
157
160
|
const weekday = kstDateTime.weekdayShort + '';
|
|
158
|
-
const dateData =
|
|
159
|
-
|
|
161
|
+
const dateData = popupData.filter(
|
|
162
|
+
item =>
|
|
160
163
|
findDate(item, 'start') <= nowDate &&
|
|
161
164
|
findDate(item, 'end') >= nowDate &&
|
|
162
165
|
findDays(item, weekday) &&
|
|
@@ -164,7 +167,7 @@ const TopBanner = () => {
|
|
|
164
167
|
);
|
|
165
168
|
setPopup(
|
|
166
169
|
dateData.filter(
|
|
167
|
-
|
|
170
|
+
item =>
|
|
168
171
|
!(
|
|
169
172
|
localStorage.getItem(item.idx + '_CloseTopPop') &&
|
|
170
173
|
Number(localStorage.getItem(item.idx + '_CloseTopPop')) > new Date().getTime()
|
|
@@ -172,7 +175,7 @@ const TopBanner = () => {
|
|
|
172
175
|
)
|
|
173
176
|
);
|
|
174
177
|
}
|
|
175
|
-
});
|
|
178
|
+
}, [popupData]);
|
|
176
179
|
|
|
177
180
|
// 테스트 로직, 스토리북으로 확인할 때만 활성화 (useQuery는 주석하고)
|
|
178
181
|
// useEffect(() => {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
const MyCase = (props) => {
|
|
4
|
+
//전체 body 스크롤 잠금
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
document.body.style.overflow = 'hidden';
|
|
7
|
+
return () => {
|
|
8
|
+
document.body.style.overflow = 'visible';
|
|
9
|
+
};
|
|
10
|
+
}, []);
|
|
11
|
+
return (<>
|
|
12
|
+
<div className={'fixed left-0 top-0 z-[900] h-[100vh] w-full'}>
|
|
13
|
+
<div className={'absolute left-0 top-0 z-[1] h-full w-full bg-black bg-opacity-80'}></div>
|
|
14
|
+
<div className={'absolute bottom-[50%] left-[50%] z-[2] h-[80%] max-h-[1200px] w-[80%] max-w-[1000px] translate-x-[-50%] translate-y-[50%] bg-white px-[20px] ' +
|
|
15
|
+
//1024px
|
|
16
|
+
'max-lg:bottom-0 max-lg:h-[calc(100%-60px)] max-lg:w-full max-lg:translate-y-0 max-lg:px-[10px] max-lg:pb-[100px] max-lg:pt-[10px]'}>
|
|
17
|
+
<button type={'button'} className={'absolute right-[-40px] top-[-50px] text-[35px] text-white ' +
|
|
18
|
+
//1024px
|
|
19
|
+
' max-lg:right-[10px] max-lg:top-[-45px] max-lg:text-[25px]'} onClick={props.onClick}>
|
|
20
|
+
✕
|
|
21
|
+
</button>
|
|
22
|
+
<iframe width="100%" height="100%" title="나의 사건검색" src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&sch_bub_nm=&sa_year=&sa_gubun=&sa_serial=&x=&y=&saveCookie="></iframe>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</>);
|
|
26
|
+
};
|
|
27
|
+
export default MyCase;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
|
|
4
|
+
const MyCase = (props: { onClick: () => void }) => {
|
|
5
|
+
//전체 body 스크롤 잠금
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
document.body.style.overflow = 'hidden';
|
|
8
|
+
|
|
9
|
+
return () => {
|
|
10
|
+
document.body.style.overflow = 'visible';
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<div className={'fixed left-0 top-0 z-[900] h-[100vh] w-full'}>
|
|
17
|
+
<div className={'absolute left-0 top-0 z-[1] h-full w-full bg-black bg-opacity-80'}></div>
|
|
18
|
+
<div
|
|
19
|
+
className={
|
|
20
|
+
'absolute bottom-[50%] left-[50%] z-[2] h-[80%] max-h-[1200px] w-[80%] max-w-[1000px] translate-x-[-50%] translate-y-[50%] bg-white px-[20px] ' +
|
|
21
|
+
//1024px
|
|
22
|
+
'max-lg:bottom-0 max-lg:h-[calc(100%-60px)] max-lg:w-full max-lg:translate-y-0 max-lg:px-[10px] max-lg:pb-[100px] max-lg:pt-[10px]'
|
|
23
|
+
}
|
|
24
|
+
>
|
|
25
|
+
<button
|
|
26
|
+
type={'button'}
|
|
27
|
+
className={
|
|
28
|
+
'absolute right-[-40px] top-[-50px] text-[35px] text-white ' +
|
|
29
|
+
//1024px
|
|
30
|
+
' max-lg:right-[10px] max-lg:top-[-45px] max-lg:text-[25px]'
|
|
31
|
+
}
|
|
32
|
+
onClick={props.onClick}
|
|
33
|
+
>
|
|
34
|
+
✕
|
|
35
|
+
</button>
|
|
36
|
+
<iframe
|
|
37
|
+
width="100%"
|
|
38
|
+
height="100%"
|
|
39
|
+
title="나의 사건검색"
|
|
40
|
+
src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&sch_bub_nm=&sa_year=&sa_gubun=&sa_serial=&x=&y=&saveCookie="
|
|
41
|
+
></iframe>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default MyCase;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
2
|
+
import MyCasePage from './MyCasePage';
|
|
3
|
+
const meta = {
|
|
4
|
+
component: MyCasePage,
|
|
5
|
+
title: 'MyCasePage'
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: () => {
|
|
10
|
+
const queryClient = new QueryClient();
|
|
11
|
+
return (<QueryClientProvider client={queryClient}>
|
|
12
|
+
<div className={'font-[SUIT]'}>
|
|
13
|
+
<MyCasePage />
|
|
14
|
+
</div>
|
|
15
|
+
</QueryClientProvider>);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
2
|
+
import MyCasePage from './MyCasePage';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof MyCasePage> = {
|
|
6
|
+
component: MyCasePage,
|
|
7
|
+
title: 'MyCasePage'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
render: () => {
|
|
16
|
+
const queryClient = new QueryClient();
|
|
17
|
+
return (
|
|
18
|
+
<QueryClientProvider client={queryClient}>
|
|
19
|
+
<div className={'font-[SUIT]'}>
|
|
20
|
+
<MyCasePage />
|
|
21
|
+
</div>
|
|
22
|
+
</QueryClientProvider>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import IntroAppWrapper from './_component/_layout/IntroAppWrapper';
|
|
3
|
+
import background from '../../../asset/images/myCase/background.webp';
|
|
4
|
+
import backgroundTb from '../../../asset/images/myCase/background_tb.webp';
|
|
5
|
+
import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
6
|
+
const MyCaseApp = () => {
|
|
7
|
+
return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
8
|
+
<IntroAppWrapper title={'나의 사건 현황'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
9
|
+
// backgroundImage={background}
|
|
10
|
+
backgroundImage={background} backgroundImageTb={backgroundTb} backgroundImageMo={backgroundMo} outerClassName="h-[244px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
11
|
+
<div className={'relative z-[1]'}>
|
|
12
|
+
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
13
|
+
{/* <HeaderLayout>
|
|
14
|
+
<CaseAppContainer />
|
|
15
|
+
</HeaderLayout> */}
|
|
16
|
+
</div>
|
|
17
|
+
</div>);
|
|
18
|
+
};
|
|
19
|
+
export default MyCaseApp;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import IntroAppWrapper from './_component/_layout/IntroAppWrapper';
|
|
4
|
+
import CaseAppContainer from './_component/CaseAppContainer';
|
|
5
|
+
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
6
|
+
|
|
7
|
+
import background from '../../../asset/images/myCase/background.webp';
|
|
8
|
+
import backgroundTb from '../../../asset/images/myCase/background_tb.webp';
|
|
9
|
+
import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
10
|
+
const MyCaseApp = () => {
|
|
11
|
+
return (
|
|
12
|
+
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
13
|
+
<IntroAppWrapper
|
|
14
|
+
title={'나의 사건 현황'}
|
|
15
|
+
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
16
|
+
// backgroundImage={background}
|
|
17
|
+
backgroundImage={background}
|
|
18
|
+
backgroundImageTb={backgroundTb}
|
|
19
|
+
backgroundImageMo={backgroundMo}
|
|
20
|
+
outerClassName="h-[244px] sm-top:h-[448px] lg:h-[513px]"
|
|
21
|
+
/>
|
|
22
|
+
<div className={'relative z-[1]'}>
|
|
23
|
+
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
24
|
+
{/* <HeaderLayout>
|
|
25
|
+
<CaseAppContainer />
|
|
26
|
+
</HeaderLayout> */}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default MyCaseApp;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import IntroWrapper from './_component/_layout/IntroPageWrapper';
|
|
3
|
+
import CasePageContainer from './_component/CasePageContainer';
|
|
4
|
+
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
5
|
+
import background from '../../../asset/images/myCase/background.webp';
|
|
6
|
+
import backgroundTb from '../../../asset/images/myCase/background_tb.webp';
|
|
7
|
+
import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
8
|
+
const MyCasePage = () => {
|
|
9
|
+
return (
|
|
10
|
+
// <MyCaseManage jwt='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY' />
|
|
11
|
+
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px] ">
|
|
12
|
+
<IntroWrapper title={'나의 사건 현황'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundImageTb={backgroundTb} backgroundImageMo={backgroundMo} outerClassName="h-[244px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
13
|
+
<div className={'relative z-[1]'}>
|
|
14
|
+
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
15
|
+
<HeaderLayout>
|
|
16
|
+
<CasePageContainer />
|
|
17
|
+
</HeaderLayout>
|
|
18
|
+
</div>
|
|
19
|
+
</div>);
|
|
20
|
+
};
|
|
21
|
+
export default MyCasePage;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import IntroWrapper from './_component/_layout/IntroPageWrapper';
|
|
4
|
+
import CasePageContainer from './_component/CasePageContainer';
|
|
5
|
+
import HeaderLayout from './_component/_layout/HeaderLayout';
|
|
6
|
+
import background from '../../../asset/images/myCase/background.webp';
|
|
7
|
+
import backgroundTb from '../../../asset/images/myCase/background_tb.webp';
|
|
8
|
+
import backgroundMo from '../../../asset/images/myCase/background_mo.webp';
|
|
9
|
+
const MyCasePage = () => {
|
|
10
|
+
return (
|
|
11
|
+
// <MyCaseManage jwt='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY' />
|
|
12
|
+
|
|
13
|
+
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px] ">
|
|
14
|
+
<IntroWrapper
|
|
15
|
+
title={'나의 사건 현황'}
|
|
16
|
+
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
17
|
+
backgroundImage={background}
|
|
18
|
+
backgroundImageTb={backgroundTb}
|
|
19
|
+
backgroundImageMo={backgroundMo}
|
|
20
|
+
outerClassName="h-[244px] sm-top:h-[448px] lg:h-[513px]"
|
|
21
|
+
/>
|
|
22
|
+
<div className={'relative z-[1]'}>
|
|
23
|
+
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
24
|
+
<HeaderLayout>
|
|
25
|
+
<CasePageContainer />
|
|
26
|
+
</HeaderLayout>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default MyCasePage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
2
|
+
import MyCaseDetailPage from './MyCaseDetailPage';
|
|
3
|
+
const meta = {
|
|
4
|
+
component: MyCaseDetailPage,
|
|
5
|
+
title: 'MyCaseDetailPage'
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: () => {
|
|
10
|
+
const queryClient = new QueryClient();
|
|
11
|
+
return (<QueryClientProvider client={queryClient}>
|
|
12
|
+
<div className={'font-[SUIT]'}>
|
|
13
|
+
<MyCaseDetailPage />
|
|
14
|
+
</div>
|
|
15
|
+
</QueryClientProvider>);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
2
|
+
import MyCaseDetailPage from './MyCaseDetailPage';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof MyCaseDetailPage> = {
|
|
6
|
+
component: MyCaseDetailPage,
|
|
7
|
+
title: 'MyCaseDetailPage'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
render: () => {
|
|
16
|
+
const queryClient = new QueryClient();
|
|
17
|
+
return (
|
|
18
|
+
<QueryClientProvider client={queryClient}>
|
|
19
|
+
<div className={'font-[SUIT]'}>
|
|
20
|
+
<MyCaseDetailPage />
|
|
21
|
+
</div>
|
|
22
|
+
</QueryClientProvider>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import IntroAppWrapper from '../_component/_layout/IntroAppWrapper';
|
|
4
|
+
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
5
|
+
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
6
|
+
import DetailInfo from './_component/DetailInfo';
|
|
7
|
+
import { useParams, useSearchParams } from 'next/navigation';
|
|
8
|
+
import { useGetCourtFileList, useGetDetailList, useGetMyCaseQuestion, useGetMyFileList, useGetTimeLine } from '../_actions/action';
|
|
9
|
+
import TimeLine from './_component/TimeLine';
|
|
10
|
+
import Document from './_component/_document/Document';
|
|
11
|
+
import ContactInfo from './_component/ContactInfo';
|
|
12
|
+
import CaseInquiry from './_component/_caseInquiry/CaseInquiry';
|
|
13
|
+
import CaseTabSwiper from '../_component/_table/CaseTabSwiper';
|
|
14
|
+
import background from '../../../../asset/images/myCase/background.webp';
|
|
15
|
+
import backgroundTb from '../../../../asset/images/myCase/background_tb.webp';
|
|
16
|
+
import backgroundMo from '../../../../asset/images/myCase/background_mo.webp';
|
|
17
|
+
const MyCaseDetail = () => {
|
|
18
|
+
var _a;
|
|
19
|
+
const [selected, setSelected] = useState('사건 정보');
|
|
20
|
+
// const { searchParams } = useCompatibleRouter();
|
|
21
|
+
const params = useParams();
|
|
22
|
+
const id = params === null || params === void 0 ? void 0 : params.id;
|
|
23
|
+
const searchParams = useSearchParams();
|
|
24
|
+
// const params = useParams();
|
|
25
|
+
// const { page, tap, subTap } = searchParams ? Object.fromEntries(searchParams.entries()) : {};
|
|
26
|
+
const pageNumber = searchParams.get('page') ? Number(searchParams.get('page')) : 1;
|
|
27
|
+
const [pageSize, setPageSize] = useState(3);
|
|
28
|
+
const { data: detailList, isLoading: detailListLoading } = useGetDetailList(id);
|
|
29
|
+
const { data: timeLine, isLoading: timeLineLoading } = useGetTimeLine(id);
|
|
30
|
+
const { data: courtFileList, isLoading: courtFileListLoading } = useGetCourtFileList(id);
|
|
31
|
+
const { data: myFileList, isLoading: myFileListLoading } = useGetMyFileList(id);
|
|
32
|
+
const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = useGetMyCaseQuestion(id, pageNumber, pageSize);
|
|
33
|
+
return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
34
|
+
<IntroAppWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundImageTb={backgroundTb} backgroundImageMo={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
35
|
+
|
|
36
|
+
<div className={'relative z-[1] '}>
|
|
37
|
+
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
38
|
+
<HeaderLayout>
|
|
39
|
+
<div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
|
|
40
|
+
<div className="max-sm-top:hidden sm-top:gap-[32px] flex items-center justify-center lg:gap-[28px]">
|
|
41
|
+
<SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')}/>
|
|
42
|
+
<SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
|
|
43
|
+
<SubMenuButton title="문서함" isSelected={selected === '문서함'} onClick={() => setSelected('문서함')}/>
|
|
44
|
+
<SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
|
|
45
|
+
<SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')}/>
|
|
46
|
+
</div>
|
|
47
|
+
<div className="sm-top:hidden 2sm:pl-[40px]">
|
|
48
|
+
<CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[500px]:!block">
|
|
49
|
+
<SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px]"/>
|
|
50
|
+
<SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
|
|
51
|
+
<SubMenuButton title="문서함" isSelected={selected === '문서함'} onClick={() => setSelected('문서함')}/>
|
|
52
|
+
<SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
|
|
53
|
+
<SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')} outerClassName="!mr-[0px]"/>
|
|
54
|
+
</CaseTabSwiper>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
{selected === '사건 정보' && (<DetailInfo detailList={detailList === null || detailList === void 0 ? void 0 : detailList.data} isLoading={detailListLoading}/>)}
|
|
58
|
+
{selected === '사건 타임라인' && (<TimeLine timeLine={timeLine === null || timeLine === void 0 ? void 0 : timeLine.list} isLoading={timeLineLoading}/>)}
|
|
59
|
+
{selected === '문서함' && (<Document courtFileList={courtFileList === null || courtFileList === void 0 ? void 0 : courtFileList.data} myFileList={myFileList === null || myFileList === void 0 ? void 0 : myFileList.data}/>)}
|
|
60
|
+
{selected === '계약정보' && <ContactInfo />}
|
|
61
|
+
{selected === '사건문의' && (<CaseInquiry myCaseQuestion={myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.list} id={id} refetch={myCaseQuestionRefetch} pageSize={pageSize} totalLength={(_a = myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.totalLength) !== null && _a !== void 0 ? _a : 0} pageNumber={pageNumber} onChange={() => { }}/>)}
|
|
62
|
+
</HeaderLayout>
|
|
63
|
+
</div>
|
|
64
|
+
</div>);
|
|
65
|
+
};
|
|
66
|
+
export default MyCaseDetail;
|