@daeryun/dr_components 0.2.64 → 0.2.66
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/custom.d.ts +8 -8
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.d.ts +0 -1
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +5 -6
- package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +0 -1
- package/dist/components/Fix/Fix.stories.d.ts +2 -3
- package/dist/components/Fix/index.jsx +6 -2
- package/dist/components/Fix/index.tsx +14 -4
- package/dist/components/Footer/TopBtn.d.ts +0 -1
- package/dist/components/Footer/index.jsx +5 -5
- package/dist/components/Footer/index.tsx +9 -5
- package/dist/components/MapSection/Map.d.ts +0 -1
- package/dist/components/MapSection/MapSection.d.ts +1 -1
- package/dist/components/Mark/Mark.d.ts +0 -1
- package/dist/components/SelectBox/SelectBox.d.ts +8 -8
- package/dist/components/Seo/SeoStrength.stories.d.ts +0 -1
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +0 -1
- package/dist/components/banner/TopBanner.d.ts +0 -1
- package/dist/components/banner/TopBanner.stories.d.ts +0 -1
- package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
- package/dist/components/hook/useElementObserve.d.ts +2 -2
- package/dist/components/page/Choice/Choice.d.ts +1 -1
- package/dist/components/page/Strength/Strength.d.ts +0 -1
- package/dist/components/page/index.d.ts +0 -3
- package/dist/components/page/index.js +0 -3
- package/dist/components/page/index.ts +0 -3
- package/dist/lib/utils.js +4 -4
- package/dist/styles/globals.css +2 -548
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/dist/components/page/myCaseManage/[id]/_component/ContactInfo.d.ts +0 -3
- package/dist/components/page/myCaseManage/[id]/_component/ContactInfo.jsx +0 -65
- package/dist/components/page/myCaseManage/[id]/_component/ContactInfo.tsx +0 -76
- package/dist/components/page/myCaseManage/[id]/_component/DetailInfo.d.ts +0 -7
- package/dist/components/page/myCaseManage/[id]/_component/DetailInfo.jsx +0 -33
- package/dist/components/page/myCaseManage/[id]/_component/DetailInfo.tsx +0 -50
- package/dist/components/page/myCaseManage/[id]/_component/TimeLine.d.ts +0 -7
- package/dist/components/page/myCaseManage/[id]/_component/TimeLine.jsx +0 -41
- package/dist/components/page/myCaseManage/[id]/_component/TimeLine.tsx +0 -55
- package/dist/components/page/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.d.ts +0 -3
- package/dist/components/page/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.jsx +0 -90
- package/dist/components/page/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.tsx +0 -143
- package/dist/components/page/myCaseManage/[id]/_component/_document/Document.d.ts +0 -6
- package/dist/components/page/myCaseManage/[id]/_component/_document/Document.jsx +0 -41
- package/dist/components/page/myCaseManage/[id]/_component/_document/Document.tsx +0 -59
- package/dist/components/page/myCaseManage/[id]/_component/_document/DocumentLine.d.ts +0 -7
- package/dist/components/page/myCaseManage/[id]/_component/_document/DocumentLine.jsx +0 -55
- package/dist/components/page/myCaseManage/[id]/_component/_document/DocumentLine.tsx +0 -72
- package/dist/components/page/myCaseManage/[id]/index.d.ts +0 -3
- package/dist/components/page/myCaseManage/[id]/index.jsx +0 -44
- package/dist/components/page/myCaseManage/[id]/index.tsx +0 -85
- package/dist/components/page/myCaseManage/_actions/action.d.ts +0 -13
- package/dist/components/page/myCaseManage/_actions/action.js +0 -56
- package/dist/components/page/myCaseManage/_actions/action.ts +0 -65
- package/dist/components/page/myCaseManage/_component/CaseContainer.d.ts +0 -3
- package/dist/components/page/myCaseManage/_component/CaseContainer.jsx +0 -99
- package/dist/components/page/myCaseManage/_component/CaseContainer.tsx +0 -177
- package/dist/components/page/myCaseManage/_component/_breadCrumble/CategoryMenu.d.ts +0 -8
- package/dist/components/page/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +0 -47
- package/dist/components/page/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +0 -76
- package/dist/components/page/myCaseManage/_component/_button/Badge.d.ts +0 -15
- package/dist/components/page/myCaseManage/_component/_button/Badge.jsx +0 -16
- package/dist/components/page/myCaseManage/_component/_button/Badge.tsx +0 -22
- package/dist/components/page/myCaseManage/_component/_button/SubColor1Button.d.ts +0 -7
- package/dist/components/page/myCaseManage/_component/_button/SubColor1Button.jsx +0 -6
- package/dist/components/page/myCaseManage/_component/_button/SubColor1Button.tsx +0 -20
- package/dist/components/page/myCaseManage/_component/_button/SubMenuButton.d.ts +0 -7
- package/dist/components/page/myCaseManage/_component/_button/SubMenuButton.jsx +0 -6
- package/dist/components/page/myCaseManage/_component/_button/SubMenuButton.tsx +0 -12
- package/dist/components/page/myCaseManage/_component/_empty/EmptyTable.d.ts +0 -6
- package/dist/components/page/myCaseManage/_component/_empty/EmptyTable.jsx +0 -53
- package/dist/components/page/myCaseManage/_component/_empty/EmptyTable.tsx +0 -59
- package/dist/components/page/myCaseManage/_component/_layout/CaseLayout.d.ts +0 -7
- package/dist/components/page/myCaseManage/_component/_layout/CaseLayout.jsx +0 -8
- package/dist/components/page/myCaseManage/_component/_layout/CaseLayout.tsx +0 -20
- package/dist/components/page/myCaseManage/_component/_layout/CaseWrapper.d.ts +0 -11
- package/dist/components/page/myCaseManage/_component/_layout/CaseWrapper.jsx +0 -24
- package/dist/components/page/myCaseManage/_component/_layout/CaseWrapper.tsx +0 -36
- package/dist/components/page/myCaseManage/_component/_layout/HeaderLayout.d.ts +0 -5
- package/dist/components/page/myCaseManage/_component/_layout/HeaderLayout.jsx +0 -4
- package/dist/components/page/myCaseManage/_component/_layout/HeaderLayout.tsx +0 -5
- package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.d.ts +0 -8
- package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.jsx +0 -24
- package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.tsx +0 -43
- package/dist/components/page/myCaseManage/_component/_loading/Loading.d.ts +0 -3
- package/dist/components/page/myCaseManage/_component/_loading/Loading.jsx +0 -90
- package/dist/components/page/myCaseManage/_component/_loading/Loading.tsx +0 -94
- package/dist/components/page/myCaseManage/_component/_pagination/PaginationComponent.d.ts +0 -10
- package/dist/components/page/myCaseManage/_component/_pagination/PaginationComponent.jsx +0 -75
- package/dist/components/page/myCaseManage/_component/_pagination/PaginationComponent.tsx +0 -163
- package/dist/components/page/myCaseManage/_component/_table/CaseTable.d.ts +0 -10
- package/dist/components/page/myCaseManage/_component/_table/CaseTable.jsx +0 -37
- package/dist/components/page/myCaseManage/_component/_table/CaseTable.tsx +0 -62
- package/dist/components/page/myCaseManage/_fetchers/getCase.d.ts +0 -5
- package/dist/components/page/myCaseManage/_fetchers/getCase.js +0 -30
- package/dist/components/page/myCaseManage/_fetchers/getCase.ts +0 -21
- package/dist/components/page/myCaseManage/_fetchers/getCaseList.d.ts +0 -7
- package/dist/components/page/myCaseManage/_fetchers/getCaseList.js +0 -30
- package/dist/components/page/myCaseManage/_fetchers/getCaseList.ts +0 -24
- package/dist/components/page/myCaseManage/_fetchers/getCourtFileList.d.ts +0 -5
- package/dist/components/page/myCaseManage/_fetchers/getCourtFileList.js +0 -30
- package/dist/components/page/myCaseManage/_fetchers/getCourtFileList.ts +0 -21
- package/dist/components/page/myCaseManage/_fetchers/getTimeLine.d.ts +0 -5
- package/dist/components/page/myCaseManage/_fetchers/getTimeLine.js +0 -30
- package/dist/components/page/myCaseManage/_fetchers/getTimeLine.ts +0 -21
- package/dist/components/page/myCaseManage/_lib/catagoryMenuName.d.ts +0 -8
- package/dist/components/page/myCaseManage/_lib/catagoryMenuName.js +0 -8
- package/dist/components/page/myCaseManage/_lib/catagoryMenuName.ts +0 -11
- package/dist/components/page/myCaseManage/_lib/pagination/locale/ko_KR.d.ts +0 -15
- package/dist/components/page/myCaseManage/_lib/pagination/locale/ko_KR.js +0 -21
- package/dist/components/page/myCaseManage/_type/type.d.ts +0 -64
- package/dist/components/page/myCaseManage/_type/type.js +0 -1
- package/dist/components/page/myCaseManage/_type/type.ts +0 -73
- package/dist/components/page/myCaseManage/index.d.ts +0 -3
- package/dist/components/page/myCaseManage/index.jsx +0 -20
- package/dist/components/page/myCaseManage/index.tsx +0 -30
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, useRef } from 'react';
|
|
2
|
-
// import useElementObserve from '../../../hook/useElementObserve';
|
|
3
|
-
|
|
4
|
-
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
className?: string; // 스타일 추가
|
|
7
|
-
innerClassName?: string; // 스타일 추가
|
|
8
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
-
isLine?: boolean;
|
|
10
|
-
isLinePadding?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const CaseWrapper: React.FC<WrapperProps> = ({
|
|
14
|
-
children,
|
|
15
|
-
className = '',
|
|
16
|
-
ref = null,
|
|
17
|
-
// isLine,
|
|
18
|
-
// isLinePadding = true,
|
|
19
|
-
innerClassName,
|
|
20
|
-
...others
|
|
21
|
-
}) => {
|
|
22
|
-
const lineRef = useRef(null);
|
|
23
|
-
// const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<div
|
|
27
|
-
className={' mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ' + className}
|
|
28
|
-
ref={ref}
|
|
29
|
-
{...others}
|
|
30
|
-
>
|
|
31
|
-
{children}
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export default CaseWrapper;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const IntroWrapper: ({ backgroundImage, outerClassName, title, subTitle }: {
|
|
3
|
-
backgroundImage?: string | undefined;
|
|
4
|
-
outerClassName?: string | undefined;
|
|
5
|
-
title?: string | undefined;
|
|
6
|
-
subTitle?: string | undefined;
|
|
7
|
-
}) => import("react").JSX.Element;
|
|
8
|
-
export default IntroWrapper;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import Image from 'next/image';
|
|
2
|
-
import CategoryMenu from '../_breadCrumble/CategoryMenu';
|
|
3
|
-
import { useTranslation } from 'next-i18next';
|
|
4
|
-
import CaseWrapper from './CaseWrapper';
|
|
5
|
-
import Wrapper from '../../../../Layout/Wrapper';
|
|
6
|
-
const IntroWrapper = ({ backgroundImage, outerClassName, title, subTitle }) => {
|
|
7
|
-
const { t } = useTranslation('common');
|
|
8
|
-
return (<div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
9
|
-
{backgroundImage ? (<Image unoptimized src={backgroundImage} alt="background" fill className="object-cover"/>) : (<></>)}
|
|
10
|
-
|
|
11
|
-
<Wrapper>
|
|
12
|
-
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
13
|
-
<CategoryMenu t={t}/>
|
|
14
|
-
</div>
|
|
15
|
-
</Wrapper>
|
|
16
|
-
<CaseWrapper>
|
|
17
|
-
<div className={'relative w-full '}>
|
|
18
|
-
<p className={'lg:title_large '}>{title}</p>
|
|
19
|
-
<p className={'lg:title_small lg:mt-[12px] '}>{subTitle}</p>
|
|
20
|
-
</div>
|
|
21
|
-
</CaseWrapper>
|
|
22
|
-
</div>);
|
|
23
|
-
};
|
|
24
|
-
export default IntroWrapper;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import Image from 'next/image';
|
|
2
|
-
|
|
3
|
-
import CategoryMenu from '../_breadCrumble/CategoryMenu';
|
|
4
|
-
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import CaseWrapper from './CaseWrapper';
|
|
6
|
-
import Wrapper from '../../../../Layout/Wrapper';
|
|
7
|
-
|
|
8
|
-
const IntroWrapper = ({
|
|
9
|
-
backgroundImage,
|
|
10
|
-
outerClassName,
|
|
11
|
-
title,
|
|
12
|
-
subTitle
|
|
13
|
-
}: {
|
|
14
|
-
backgroundImage?: string;
|
|
15
|
-
outerClassName?: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
subTitle?: string;
|
|
18
|
-
}) => {
|
|
19
|
-
const { t } = useTranslation('common');
|
|
20
|
-
return (
|
|
21
|
-
<div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
22
|
-
{backgroundImage ? (
|
|
23
|
-
<Image unoptimized src={backgroundImage} alt="background" fill className="object-cover" />
|
|
24
|
-
) : (
|
|
25
|
-
<></>
|
|
26
|
-
)}
|
|
27
|
-
|
|
28
|
-
<Wrapper>
|
|
29
|
-
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
30
|
-
<CategoryMenu t={t} />
|
|
31
|
-
</div>
|
|
32
|
-
</Wrapper>
|
|
33
|
-
<CaseWrapper>
|
|
34
|
-
<div className={'relative w-full '}>
|
|
35
|
-
<p className={'lg:title_large '}>{title}</p>
|
|
36
|
-
<p className={'lg:title_small lg:mt-[12px] '}>{subTitle}</p>
|
|
37
|
-
</div>
|
|
38
|
-
</CaseWrapper>
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default IntroWrapper;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="next/types/global" />
|
|
2
|
-
const Loading = () => {
|
|
3
|
-
return (<>
|
|
4
|
-
<style>{`
|
|
5
|
-
.loader {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
width: 48px; /* 전체 너비 */
|
|
10
|
-
height: 48px; /* 전체 높이 */
|
|
11
|
-
position: relative;
|
|
12
|
-
animation: rotate 10s linear infinite; /* 전체 회전 애니메이션 */
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.loader-circle {
|
|
16
|
-
width: 9.12px; /* 원의 너비 */
|
|
17
|
-
height: 9.12px; /* 원의 높이 */
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
position: absolute;
|
|
20
|
-
animation: move 1.6s linear infinite; /* 개별 원의 애니메이션 */
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.loader-circle:nth-child(1) {
|
|
24
|
-
background: #ffffff;
|
|
25
|
-
animation-delay: -1.4s;
|
|
26
|
-
}
|
|
27
|
-
.loader-circle:nth-child(2) {
|
|
28
|
-
background: #f5f5f5;
|
|
29
|
-
animation-delay: -1.2s;
|
|
30
|
-
}
|
|
31
|
-
.loader-circle:nth-child(3) {
|
|
32
|
-
background: #ededed;
|
|
33
|
-
animation-delay: -1s;
|
|
34
|
-
}
|
|
35
|
-
.loader-circle:nth-child(4) {
|
|
36
|
-
background: #dbdbdb;
|
|
37
|
-
animation-delay: -0.8s;
|
|
38
|
-
}
|
|
39
|
-
.loader-circle:nth-child(5) {
|
|
40
|
-
background: #b9b9b9;
|
|
41
|
-
animation-delay: -0.6s;
|
|
42
|
-
}
|
|
43
|
-
.loader-circle:nth-child(6) {
|
|
44
|
-
background: #909090;
|
|
45
|
-
animation-delay: -0.4s;
|
|
46
|
-
}
|
|
47
|
-
.loader-circle:nth-child(7) {
|
|
48
|
-
background: #606060;
|
|
49
|
-
animation-delay: -0.2s;
|
|
50
|
-
}
|
|
51
|
-
.loader-circle:nth-child(8) {
|
|
52
|
-
background: #3d3d3d;
|
|
53
|
-
animation-delay: 0s;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes rotate {
|
|
57
|
-
0% {
|
|
58
|
-
transform: rotate(0deg);
|
|
59
|
-
}
|
|
60
|
-
100% {
|
|
61
|
-
transform: rotate(360deg);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@keyframes move {
|
|
66
|
-
0% {
|
|
67
|
-
transform: rotate(0deg) translate(20px) rotate(0deg);
|
|
68
|
-
opacity: 1;
|
|
69
|
-
}
|
|
70
|
-
100% {
|
|
71
|
-
transform: rotate(360deg) translate(20px) rotate(-360deg);
|
|
72
|
-
opacity: 1;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
`}</style>
|
|
76
|
-
<div className="mx-auto flex h-[200px] items-center justify-center">
|
|
77
|
-
<div className="loader ">
|
|
78
|
-
<div className="loader-circle"></div>
|
|
79
|
-
<div className="loader-circle"></div>
|
|
80
|
-
<div className="loader-circle"></div>
|
|
81
|
-
<div className="loader-circle"></div>
|
|
82
|
-
<div className="loader-circle"></div>
|
|
83
|
-
<div className="loader-circle"></div>
|
|
84
|
-
<div className="loader-circle"></div>
|
|
85
|
-
<div className="loader-circle"></div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</>);
|
|
89
|
-
};
|
|
90
|
-
export default Loading;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/// <reference types="next/types/global" />
|
|
2
|
-
|
|
3
|
-
const Loading = () => {
|
|
4
|
-
return (
|
|
5
|
-
<>
|
|
6
|
-
<style>{`
|
|
7
|
-
.loader {
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
align-items: center;
|
|
11
|
-
width: 48px; /* 전체 너비 */
|
|
12
|
-
height: 48px; /* 전체 높이 */
|
|
13
|
-
position: relative;
|
|
14
|
-
animation: rotate 10s linear infinite; /* 전체 회전 애니메이션 */
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.loader-circle {
|
|
18
|
-
width: 9.12px; /* 원의 너비 */
|
|
19
|
-
height: 9.12px; /* 원의 높이 */
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
position: absolute;
|
|
22
|
-
animation: move 1.6s linear infinite; /* 개별 원의 애니메이션 */
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.loader-circle:nth-child(1) {
|
|
26
|
-
background: #ffffff;
|
|
27
|
-
animation-delay: -1.4s;
|
|
28
|
-
}
|
|
29
|
-
.loader-circle:nth-child(2) {
|
|
30
|
-
background: #f5f5f5;
|
|
31
|
-
animation-delay: -1.2s;
|
|
32
|
-
}
|
|
33
|
-
.loader-circle:nth-child(3) {
|
|
34
|
-
background: #ededed;
|
|
35
|
-
animation-delay: -1s;
|
|
36
|
-
}
|
|
37
|
-
.loader-circle:nth-child(4) {
|
|
38
|
-
background: #dbdbdb;
|
|
39
|
-
animation-delay: -0.8s;
|
|
40
|
-
}
|
|
41
|
-
.loader-circle:nth-child(5) {
|
|
42
|
-
background: #b9b9b9;
|
|
43
|
-
animation-delay: -0.6s;
|
|
44
|
-
}
|
|
45
|
-
.loader-circle:nth-child(6) {
|
|
46
|
-
background: #909090;
|
|
47
|
-
animation-delay: -0.4s;
|
|
48
|
-
}
|
|
49
|
-
.loader-circle:nth-child(7) {
|
|
50
|
-
background: #606060;
|
|
51
|
-
animation-delay: -0.2s;
|
|
52
|
-
}
|
|
53
|
-
.loader-circle:nth-child(8) {
|
|
54
|
-
background: #3d3d3d;
|
|
55
|
-
animation-delay: 0s;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@keyframes rotate {
|
|
59
|
-
0% {
|
|
60
|
-
transform: rotate(0deg);
|
|
61
|
-
}
|
|
62
|
-
100% {
|
|
63
|
-
transform: rotate(360deg);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@keyframes move {
|
|
68
|
-
0% {
|
|
69
|
-
transform: rotate(0deg) translate(20px) rotate(0deg);
|
|
70
|
-
opacity: 1;
|
|
71
|
-
}
|
|
72
|
-
100% {
|
|
73
|
-
transform: rotate(360deg) translate(20px) rotate(-360deg);
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`}</style>
|
|
78
|
-
<div className="mx-auto flex h-[200px] items-center justify-center">
|
|
79
|
-
<div className="loader ">
|
|
80
|
-
<div className="loader-circle"></div>
|
|
81
|
-
<div className="loader-circle"></div>
|
|
82
|
-
<div className="loader-circle"></div>
|
|
83
|
-
<div className="loader-circle"></div>
|
|
84
|
-
<div className="loader-circle"></div>
|
|
85
|
-
<div className="loader-circle"></div>
|
|
86
|
-
<div className="loader-circle"></div>
|
|
87
|
-
<div className="loader-circle"></div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</>
|
|
91
|
-
);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export default Loading;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import 'rc-pagination/assets/index.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const PaginationComponent: (props: {
|
|
4
|
-
onChange: (pageNum: number) => void;
|
|
5
|
-
current: number;
|
|
6
|
-
total: number;
|
|
7
|
-
pageSize: number;
|
|
8
|
-
marginY?: number | undefined;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
export default PaginationComponent;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import Pagination from 'rc-pagination';
|
|
2
|
-
import 'rc-pagination/assets/index.css';
|
|
3
|
-
import localeInfo from '../../_lib/pagination/locale/ko_KR';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import Link from 'next/link';
|
|
8
|
-
const PaginationComponent = (props) => {
|
|
9
|
-
const { onChange, current, total, pageSize, marginY } = props;
|
|
10
|
-
// useEffect(() => {
|
|
11
|
-
// const prevElement = document.querySelector('.rc-pagination-prev')
|
|
12
|
-
// if (prevElement) {
|
|
13
|
-
// prevElement.setAttribute('rel', 'prev')
|
|
14
|
-
// }
|
|
15
|
-
//
|
|
16
|
-
// const nextElement = document.querySelector('.rc-pagination-next')
|
|
17
|
-
// if (nextElement) {
|
|
18
|
-
// nextElement.setAttribute('rel', 'next')
|
|
19
|
-
// }
|
|
20
|
-
// }, [current, total, pageSize, localeInfo])
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
const rcPageCon = document.querySelectorAll('.rc-pagination-item');
|
|
23
|
-
rcPageCon.forEach(i => {
|
|
24
|
-
i.removeAttribute('tabindex');
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
const router = useRouter();
|
|
28
|
-
const [query, setQuery] = useState({});
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
const filteredQuery = Object.assign({}, Object.fromEntries(Object.entries(router.query).filter(([key, value]) => !(key === 'search' && value === '') && !(key === 'page'))));
|
|
31
|
-
setQuery(filteredQuery);
|
|
32
|
-
}, [router.asPath]);
|
|
33
|
-
//페이징 렌더링
|
|
34
|
-
const itemRender = useCallback((page, type, element) => {
|
|
35
|
-
if (type === 'page') {
|
|
36
|
-
if (router.pathname === '/blog') {
|
|
37
|
-
return (<span className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''} `}>
|
|
38
|
-
{page}
|
|
39
|
-
</span>);
|
|
40
|
-
}
|
|
41
|
-
return (<Link href={{
|
|
42
|
-
pathname: router.pathname,
|
|
43
|
-
query: Object.assign({ page }, query)
|
|
44
|
-
}} className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''}`} aria-label={current === page ? `${page} 페이지, 현재 페이지 입니다.` : `${page} 페이지로 이동`} style={{ color: current === page ? 'inherit' : 'initial' }} // 폰트 색상 고정
|
|
45
|
-
>
|
|
46
|
-
{page}
|
|
47
|
-
</Link>);
|
|
48
|
-
}
|
|
49
|
-
else if (type === 'prev') {
|
|
50
|
-
if (current === 1) {
|
|
51
|
-
return (<Image src={'/images/pagination/arrow_l_off.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else if (type === 'next') {
|
|
55
|
-
if (current === 1) {
|
|
56
|
-
return (<Image src={'/images/pagination/arrow_r_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
57
|
-
}
|
|
58
|
-
else if (current >= total / pageSize) {
|
|
59
|
-
return (<Image src={'/images/pagination/arrow_r_off.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return element;
|
|
63
|
-
}, [current, query]);
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
return (<div className={'flex items-center justify-center'} style={{
|
|
66
|
-
marginBlock: (marginY ? marginY : 100) + 'px'
|
|
67
|
-
}}>
|
|
68
|
-
<Pagination onChange={onChange} current={current} total={total} pageSize={pageSize} locale={localeInfo} prevIcon={<Image src={'/images/pagination/arrow_l_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>} nextIcon={<Image src={'/images/pagination/arrow_r_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>} jumpPrevIcon={<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
69
|
-
ㆍㆍㆍ
|
|
70
|
-
</span>} jumpNextIcon={<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
71
|
-
ㆍㆍㆍ
|
|
72
|
-
</span>} className={'pagination-data'} itemRender={itemRender}/>
|
|
73
|
-
</div>);
|
|
74
|
-
};
|
|
75
|
-
export default PaginationComponent;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import Pagination from 'rc-pagination';
|
|
2
|
-
import 'rc-pagination/assets/index.css';
|
|
3
|
-
import localeInfo from '../../_lib/pagination/locale/ko_KR';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import Link from 'next/link';
|
|
8
|
-
|
|
9
|
-
const PaginationComponent = (props: {
|
|
10
|
-
onChange: (pageNum: number) => void;
|
|
11
|
-
current: number;
|
|
12
|
-
total: number;
|
|
13
|
-
pageSize: number;
|
|
14
|
-
marginY?: number;
|
|
15
|
-
}) => {
|
|
16
|
-
const { onChange, current, total, pageSize, marginY } = props;
|
|
17
|
-
|
|
18
|
-
// useEffect(() => {
|
|
19
|
-
// const prevElement = document.querySelector('.rc-pagination-prev')
|
|
20
|
-
// if (prevElement) {
|
|
21
|
-
// prevElement.setAttribute('rel', 'prev')
|
|
22
|
-
// }
|
|
23
|
-
//
|
|
24
|
-
// const nextElement = document.querySelector('.rc-pagination-next')
|
|
25
|
-
// if (nextElement) {
|
|
26
|
-
// nextElement.setAttribute('rel', 'next')
|
|
27
|
-
// }
|
|
28
|
-
// }, [current, total, pageSize, localeInfo])
|
|
29
|
-
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
const rcPageCon = document.querySelectorAll('.rc-pagination-item');
|
|
32
|
-
rcPageCon.forEach(i => {
|
|
33
|
-
i.removeAttribute('tabindex');
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
const router = useRouter();
|
|
38
|
-
const [query, setQuery] = useState({});
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
const filteredQuery = {
|
|
41
|
-
...Object.fromEntries(
|
|
42
|
-
Object.entries(router.query).filter(
|
|
43
|
-
([key, value]) => !(key === 'search' && value === '') && !(key === 'page')
|
|
44
|
-
)
|
|
45
|
-
)
|
|
46
|
-
};
|
|
47
|
-
setQuery(filteredQuery);
|
|
48
|
-
}, [router.asPath]);
|
|
49
|
-
|
|
50
|
-
//페이징 렌더링
|
|
51
|
-
const itemRender = useCallback(
|
|
52
|
-
(page: number, type: string, element: React.ReactNode) => {
|
|
53
|
-
if (type === 'page') {
|
|
54
|
-
if (router.pathname === '/blog') {
|
|
55
|
-
return (
|
|
56
|
-
<span className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''} `}>
|
|
57
|
-
{page}
|
|
58
|
-
</span>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
return (
|
|
62
|
-
<Link
|
|
63
|
-
href={{
|
|
64
|
-
pathname: router.pathname,
|
|
65
|
-
query: { page, ...query }
|
|
66
|
-
}}
|
|
67
|
-
className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''}`}
|
|
68
|
-
aria-label={current === page ? `${page} 페이지, 현재 페이지 입니다.` : `${page} 페이지로 이동`}
|
|
69
|
-
style={{ color: current === page ? 'inherit' : 'initial' }} // 폰트 색상 고정
|
|
70
|
-
>
|
|
71
|
-
{page}
|
|
72
|
-
</Link>
|
|
73
|
-
);
|
|
74
|
-
} else if (type === 'prev') {
|
|
75
|
-
if (current === 1) {
|
|
76
|
-
return (
|
|
77
|
-
<Image
|
|
78
|
-
src={'/images/pagination/arrow_l_off.webp'}
|
|
79
|
-
width={26}
|
|
80
|
-
height={26}
|
|
81
|
-
alt={''}
|
|
82
|
-
className={'max-sm:scale-[0.8]'}
|
|
83
|
-
/>
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
} else if (type === 'next') {
|
|
87
|
-
if (current === 1) {
|
|
88
|
-
return (
|
|
89
|
-
<Image
|
|
90
|
-
src={'/images/pagination/arrow_r_on.webp'}
|
|
91
|
-
width={26}
|
|
92
|
-
height={26}
|
|
93
|
-
alt={''}
|
|
94
|
-
className={'max-sm:scale-[0.8]'}
|
|
95
|
-
/>
|
|
96
|
-
);
|
|
97
|
-
} else if (current >= total / pageSize) {
|
|
98
|
-
return (
|
|
99
|
-
<Image
|
|
100
|
-
src={'/images/pagination/arrow_r_off.webp'}
|
|
101
|
-
width={26}
|
|
102
|
-
height={26}
|
|
103
|
-
alt={''}
|
|
104
|
-
className={'max-sm:scale-[0.8]'}
|
|
105
|
-
/>
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return element;
|
|
110
|
-
},
|
|
111
|
-
[current, query]
|
|
112
|
-
);
|
|
113
|
-
|
|
114
|
-
// @ts-ignore
|
|
115
|
-
return (
|
|
116
|
-
<div
|
|
117
|
-
className={'flex items-center justify-center'}
|
|
118
|
-
style={{
|
|
119
|
-
marginBlock: (marginY ? marginY : 100) + 'px'
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
<Pagination
|
|
123
|
-
onChange={onChange}
|
|
124
|
-
current={current}
|
|
125
|
-
total={total}
|
|
126
|
-
pageSize={pageSize}
|
|
127
|
-
locale={localeInfo}
|
|
128
|
-
prevIcon={
|
|
129
|
-
<Image
|
|
130
|
-
src={'/images/pagination/arrow_l_on.webp'}
|
|
131
|
-
width={26}
|
|
132
|
-
height={26}
|
|
133
|
-
alt={''}
|
|
134
|
-
className={'max-sm:scale-[0.8]'}
|
|
135
|
-
/>
|
|
136
|
-
}
|
|
137
|
-
nextIcon={
|
|
138
|
-
<Image
|
|
139
|
-
src={'/images/pagination/arrow_r_on.webp'}
|
|
140
|
-
width={26}
|
|
141
|
-
height={26}
|
|
142
|
-
alt={''}
|
|
143
|
-
className={'max-sm:scale-[0.8]'}
|
|
144
|
-
/>
|
|
145
|
-
}
|
|
146
|
-
jumpPrevIcon={
|
|
147
|
-
<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
148
|
-
ㆍㆍㆍ
|
|
149
|
-
</span>
|
|
150
|
-
}
|
|
151
|
-
jumpNextIcon={
|
|
152
|
-
<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
153
|
-
ㆍㆍㆍ
|
|
154
|
-
</span>
|
|
155
|
-
}
|
|
156
|
-
className={'pagination-data'}
|
|
157
|
-
itemRender={itemRender}
|
|
158
|
-
/>
|
|
159
|
-
</div>
|
|
160
|
-
);
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export default PaginationComponent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Case } from '../../_type/type';
|
|
3
|
-
declare const CaseTable: ({ list, totalLength, pageSize, pageNumber, onChange }: {
|
|
4
|
-
list: Case[];
|
|
5
|
-
totalLength: number;
|
|
6
|
-
pageSize: number;
|
|
7
|
-
pageNumber: number;
|
|
8
|
-
onChange: (pageNum: number) => void;
|
|
9
|
-
}) => import("react").JSX.Element;
|
|
10
|
-
export default CaseTable;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import Image from 'next/image';
|
|
2
|
-
import Link from 'next/link';
|
|
3
|
-
import { useRouter } from 'next/router';
|
|
4
|
-
import Badge from '../_button/Badge';
|
|
5
|
-
import PaginationComponent from '../_pagination/PaginationComponent';
|
|
6
|
-
const CaseTable = ({ list, totalLength, pageSize, pageNumber, onChange }) => {
|
|
7
|
-
const router = useRouter();
|
|
8
|
-
return (<>
|
|
9
|
-
<div className="w-full lg:px-[60px]">
|
|
10
|
-
<div className="border-grayScale5 flex flex-row border-y-[1px] border-solid ">
|
|
11
|
-
<div className="lg:body_medium1 text-left lg:w-[19.43%] lg:py-[28px]">사건 시작일</div>
|
|
12
|
-
<div className="lg:body_medium1 text-left lg:w-[21.43%] lg:py-[28px]">사건번호</div>
|
|
13
|
-
<div className="lg:body_medium1 text-left lg:w-[27.71%] lg:py-[28px]">사건명</div>
|
|
14
|
-
<div className="lg:body_medium1 text-left lg:w-[31.43%] lg:py-[28px]">진행상황</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
{list.map((item, key) => {
|
|
18
|
-
return (<Link key={key} href={`/mycase/${item.idx}`} className={'border-grayScale5 hover:bg-grayScale7 group relative flex cursor-pointer flex-row border-b-[1px] border-solid '}>
|
|
19
|
-
<div className="lg:body_medium2 text-left lg:ml-[60px] lg:w-[19.43%] lg:py-[33px]">없음</div>
|
|
20
|
-
<div className="lg:body_medium2 text-left lg:w-[21.43%] lg:py-[33px]">{item.case_number}</div>
|
|
21
|
-
<div className="lg:body_medium2 text-left lg:w-[27.71%] lg:py-[33px]">{item.title}</div>
|
|
22
|
-
<div className="lg:body_medium2 flex flex-row gap-[20px] text-left lg:mr-[60px] lg:w-[31.43%] lg:py-[33px]">
|
|
23
|
-
<Badge title={item.state}/>
|
|
24
|
-
{item.is_deferred && <Badge title="보류"/>}
|
|
25
|
-
</div>
|
|
26
|
-
<div className="absolute right-[60px] top-[36px]">
|
|
27
|
-
<div className="flex flex-row items-center gap-[12px] transition-all duration-300 group-hover:gap-[32px]">
|
|
28
|
-
<p className="lg:body_small2">사건상세</p>
|
|
29
|
-
<Image src="/images/mycase/arrow_right.svg" alt="arrow_right" width={10} height={16}/>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</Link>);
|
|
33
|
-
})}
|
|
34
|
-
<PaginationComponent pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
|
|
35
|
-
</>);
|
|
36
|
-
};
|
|
37
|
-
export default CaseTable;
|