@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
|
@@ -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 '
|
|
17
|
+
import { useQuery } from 'react-query';
|
|
18
18
|
import { isCurrentTimeWithinPopupRange, paramFetch } from '../../lib';
|
|
19
19
|
import { DateTime } from 'luxon';
|
|
20
20
|
import classNames from 'classnames';
|
|
@@ -122,30 +122,27 @@ const TopBanner = () => {
|
|
|
122
122
|
};
|
|
123
123
|
}, [handleScroll]);
|
|
124
124
|
// userQuery
|
|
125
|
-
|
|
125
|
+
useQuery({
|
|
126
126
|
queryKey: ['popUpImg'],
|
|
127
|
-
queryFn: () =>
|
|
128
|
-
|
|
129
|
-
return response.list; // IBannerTypes[] 반환
|
|
130
|
-
}),
|
|
127
|
+
queryFn: () => getPopUpData(),
|
|
128
|
+
//브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
|
|
131
129
|
refetchOnWindowFocus: false,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (popupData) {
|
|
130
|
+
//기본설정 cacheTime:5분, staleTime:0초, 값을 Infinity로 설정할 경우 api return 값이 바뀌지 않는 이상 서버에 새로 요청하지 않고 캐싱된 데이터를 영구적으로 사용하여 api 호출 최적화
|
|
131
|
+
cacheTime: Infinity,
|
|
132
|
+
staleTime: Infinity,
|
|
133
|
+
onSuccess: (res) => {
|
|
137
134
|
const kstDateTime = DateTime.now().setZone('Asia/Seoul');
|
|
138
135
|
const nowDate = Number(kstDateTime.year + '' + zeroMaker(kstDateTime.month) + '' + zeroMaker(kstDateTime.day));
|
|
139
136
|
const nowTime = Number(zeroMaker(kstDateTime.hour) + zeroMaker(kstDateTime.minute));
|
|
140
137
|
const weekday = kstDateTime.weekdayShort + '';
|
|
141
|
-
const dateData =
|
|
138
|
+
const dateData = res.list.filter((item) => findDate(item, 'start') <= nowDate &&
|
|
142
139
|
findDate(item, 'end') >= nowDate &&
|
|
143
140
|
findDays(item, weekday) &&
|
|
144
141
|
findTime(item, nowTime));
|
|
145
|
-
setPopup(dateData.filter(item => !(localStorage.getItem(item.idx + '_CloseTopPop') &&
|
|
142
|
+
setPopup(dateData.filter((item) => !(localStorage.getItem(item.idx + '_CloseTopPop') &&
|
|
146
143
|
Number(localStorage.getItem(item.idx + '_CloseTopPop')) > new Date().getTime())));
|
|
147
144
|
}
|
|
148
|
-
}
|
|
145
|
+
});
|
|
149
146
|
// 테스트 로직, 스토리북으로 확인할 때만 활성화 (useQuery는 주석하고)
|
|
150
147
|
// useEffect(() => {
|
|
151
148
|
// 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 '
|
|
9
|
+
import { useQuery } from 'react-query';
|
|
10
10
|
import { isCurrentTimeWithinPopupRange, paramFetch } from '../../lib';
|
|
11
11
|
import { DateTime } from 'luxon';
|
|
12
12
|
import classNames from 'classnames';
|
|
@@ -140,26 +140,23 @@ const TopBanner = () => {
|
|
|
140
140
|
}, [handleScroll]);
|
|
141
141
|
|
|
142
142
|
// userQuery
|
|
143
|
-
|
|
143
|
+
useQuery({
|
|
144
144
|
queryKey: ['popUpImg'],
|
|
145
|
-
queryFn:
|
|
146
|
-
|
|
147
|
-
return response.list; // IBannerTypes[] 반환
|
|
148
|
-
},
|
|
145
|
+
queryFn: () => getPopUpData(),
|
|
146
|
+
//브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
|
|
149
147
|
refetchOnWindowFocus: false,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (popupData) {
|
|
148
|
+
//기본설정 cacheTime:5분, staleTime:0초, 값을 Infinity로 설정할 경우 api return 값이 바뀌지 않는 이상 서버에 새로 요청하지 않고 캐싱된 데이터를 영구적으로 사용하여 api 호출 최적화
|
|
149
|
+
cacheTime: Infinity,
|
|
150
|
+
staleTime: Infinity,
|
|
151
|
+
onSuccess: (res: { list: any[] }) => {
|
|
155
152
|
const kstDateTime = DateTime.now().setZone('Asia/Seoul');
|
|
156
153
|
const nowDate = Number(
|
|
157
154
|
kstDateTime.year + '' + zeroMaker(kstDateTime.month) + '' + zeroMaker(kstDateTime.day)
|
|
158
155
|
);
|
|
159
156
|
const nowTime = Number(zeroMaker(kstDateTime.hour) + zeroMaker(kstDateTime.minute));
|
|
160
157
|
const weekday = kstDateTime.weekdayShort + '';
|
|
161
|
-
const dateData =
|
|
162
|
-
item =>
|
|
158
|
+
const dateData = res.list.filter(
|
|
159
|
+
(item: any) =>
|
|
163
160
|
findDate(item, 'start') <= nowDate &&
|
|
164
161
|
findDate(item, 'end') >= nowDate &&
|
|
165
162
|
findDays(item, weekday) &&
|
|
@@ -167,7 +164,7 @@ const TopBanner = () => {
|
|
|
167
164
|
);
|
|
168
165
|
setPopup(
|
|
169
166
|
dateData.filter(
|
|
170
|
-
item =>
|
|
167
|
+
(item: IBannerTypes) =>
|
|
171
168
|
!(
|
|
172
169
|
localStorage.getItem(item.idx + '_CloseTopPop') &&
|
|
173
170
|
Number(localStorage.getItem(item.idx + '_CloseTopPop')) > new Date().getTime()
|
|
@@ -175,7 +172,7 @@ const TopBanner = () => {
|
|
|
175
172
|
)
|
|
176
173
|
);
|
|
177
174
|
}
|
|
178
|
-
}
|
|
175
|
+
});
|
|
179
176
|
|
|
180
177
|
// 테스트 로직, 스토리북으로 확인할 때만 활성화 (useQuery는 주석하고)
|
|
181
178
|
// useEffect(() => {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
export { default as Choice } from './Choice/Choice';
|
|
2
2
|
export { default as Consulting } from './Consulting/Consulting';
|
|
3
3
|
export { default as Strength } from './Strength/Strength';
|
|
4
|
-
export { default as MyCaseApp } from './MyCase/MyCaseApp';
|
|
5
|
-
export { default as MyCasePage } from './MyCase/MyCasePage';
|
|
6
|
-
export { default as MyCaseDetailApp } from './MyCase/[id]/MyCaseDetailApp';
|
|
7
|
-
export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
export { default as Choice } from './Choice/Choice';
|
|
2
2
|
export { default as Consulting } from './Consulting/Consulting';
|
|
3
3
|
export { default as Strength } from './Strength/Strength';
|
|
4
|
-
export { default as MyCaseApp } from './MyCase/MyCaseApp';
|
|
5
|
-
export { default as MyCasePage } from './MyCase/MyCasePage';
|
|
6
|
-
export { default as MyCaseDetailApp } from './MyCase/[id]/MyCaseDetailApp';
|
|
7
|
-
export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
export { default as Choice } from './Choice/Choice';
|
|
2
2
|
export { default as Consulting } from './Consulting/Consulting';
|
|
3
3
|
export { default as Strength } from './Strength/Strength';
|
|
4
|
-
export { default as MyCaseApp } from './MyCase/MyCaseApp';
|
|
5
|
-
export { default as MyCasePage } from './MyCase/MyCasePage';
|
|
6
|
-
export { default as MyCaseDetailApp } from './MyCase/[id]/MyCaseDetailApp';
|
|
7
|
-
export { default as MyCaseDetailPage } from './MyCase/[id]/MyCaseDetailPage';
|