@daeryun/dr_components 0.6.68 → 0.6.69
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/Footer/_actions/action.d.ts +4 -0
- package/dist/components/Footer/_actions/action.js +14 -0
- package/dist/components/Footer/_actions/action.ts +17 -0
- package/dist/components/Footer/_fetchers/getFooterTermList.d.ts +1 -0
- package/dist/components/Footer/_fetchers/getFooterTermList.js +14 -0
- package/dist/components/Footer/_fetchers/getFooterTermList.ts +5 -0
- package/dist/components/Footer/_type/termType.d.ts +15 -0
- package/dist/components/Footer/_type/termType.js +1 -0
- package/dist/components/Footer/_type/termType.ts +15 -0
- package/dist/components/Footer/index.d.ts +1 -0
- package/dist/components/Footer/index.jsx +48 -23
- package/dist/components/Footer/index.tsx +57 -23
- package/dist/components/page/Login/LoginComp/SignContainer.jsx +0 -13
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +0 -13
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { getFooterTermList } from '../_fetchers/getFooterTermList';
|
|
3
|
+
export const useActionGetTermList = () => {
|
|
4
|
+
const { data, isError } = useQuery({
|
|
5
|
+
queryKey: ['getFooterTermList'],
|
|
6
|
+
queryFn: () => getFooterTermList(),
|
|
7
|
+
refetchOnWindowFocus: false,
|
|
8
|
+
gcTime: 0,
|
|
9
|
+
staleTime: 1000 * 60 * 30 // 30분 캐시
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
data: isError ? [] : (data !== null && data !== void 0 ? data : [])
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { getFooterTermList } from '../_fetchers/getFooterTermList';
|
|
3
|
+
import { ITermType } from '../../page/Login/_types/termType';
|
|
4
|
+
|
|
5
|
+
export const useActionGetTermList = () => {
|
|
6
|
+
const { data, isError } = useQuery<ITermType[]>({
|
|
7
|
+
queryKey: ['getFooterTermList'],
|
|
8
|
+
queryFn: () => getFooterTermList(),
|
|
9
|
+
refetchOnWindowFocus: false,
|
|
10
|
+
gcTime: 0,
|
|
11
|
+
staleTime: 1000 * 60 * 30 // 30분 캐시
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
data: isError ? [] : (data ?? [])
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFooterTermList: () => Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import axios from 'axios';
|
|
11
|
+
export const getFooterTermList = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
const response = yield axios.get(`/api/terms/footer/latest?etc=webfooter`);
|
|
13
|
+
return response.data.list;
|
|
14
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ITermType {
|
|
2
|
+
idx: number;
|
|
3
|
+
version: string;
|
|
4
|
+
contents: string;
|
|
5
|
+
created_at: Date;
|
|
6
|
+
created_by: string;
|
|
7
|
+
updated_at: Date | null;
|
|
8
|
+
updated_by: string | null;
|
|
9
|
+
deleted_at: Date | null;
|
|
10
|
+
deleted_by: string | null;
|
|
11
|
+
is_use: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
terms_code: string | null;
|
|
14
|
+
terms_name: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ITermType {
|
|
2
|
+
idx: number;
|
|
3
|
+
version: string;
|
|
4
|
+
contents: string;
|
|
5
|
+
created_at: Date;
|
|
6
|
+
created_by: string;
|
|
7
|
+
updated_at: Date | null;
|
|
8
|
+
updated_by: string | null;
|
|
9
|
+
deleted_at: Date | null;
|
|
10
|
+
deleted_by: string | null;
|
|
11
|
+
is_use: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
terms_code: string | null;
|
|
14
|
+
terms_name: string;
|
|
15
|
+
}
|
|
@@ -2,3 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { INewFooterTypes } from './IFooterTypes';
|
|
3
3
|
declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }: INewFooterTypes) => React.JSX.Element;
|
|
4
4
|
export default NewFooter;
|
|
5
|
+
export declare const FooterLinkList: () => React.JSX.Element;
|
|
@@ -12,8 +12,7 @@ import Image from 'next/image';
|
|
|
12
12
|
import React, { useEffect, useRef, useState } from 'react';
|
|
13
13
|
import * as gtag from '../../lib/gtag';
|
|
14
14
|
import Link from 'next/link';
|
|
15
|
-
import { getDomainHandler, insert } from '../../lib';
|
|
16
|
-
import { savePowerLinkConversion } from '../../lib';
|
|
15
|
+
import { getDomainHandler, insert, savePowerLinkConversion } from '../../lib';
|
|
17
16
|
import Wrapper from '../Layout/Wrapper';
|
|
18
17
|
import TopBtn from './TopBtn';
|
|
19
18
|
import { usePathname, useRouter } from 'next/navigation';
|
|
@@ -24,6 +23,7 @@ import sns04 from '../../asset/images/footer/sns_04.webp';
|
|
|
24
23
|
import sns05 from '../../asset/images/footer/sns_05.webp';
|
|
25
24
|
import BrochureBtn from '../BrochureBtn/BrochureBtn';
|
|
26
25
|
import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
|
|
26
|
+
import { useActionGetTermList } from './_actions/action';
|
|
27
27
|
const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
|
|
28
28
|
const router = useRouter();
|
|
29
29
|
const pathname = usePathname();
|
|
@@ -268,34 +268,59 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
|
|
|
268
268
|
</footer>);
|
|
269
269
|
};
|
|
270
270
|
export default NewFooter;
|
|
271
|
-
const FooterLinkList = () => {
|
|
271
|
+
export const FooterLinkList = () => {
|
|
272
|
+
/**
|
|
273
|
+
* 로그인 반영 후 푸터
|
|
274
|
+
*/
|
|
275
|
+
const { data } = useActionGetTermList();
|
|
272
276
|
return (<>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
</p>
|
|
283
|
-
<p>
|
|
284
|
-
<Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
|
|
285
|
-
개인정보처리방침
|
|
286
|
-
</Link>
|
|
287
|
-
</p>
|
|
288
|
-
<p>
|
|
289
|
-
<Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
|
|
290
|
-
이메일무단수집거부
|
|
291
|
-
</Link>
|
|
292
|
-
</p>
|
|
277
|
+
{data && data.length > 0
|
|
278
|
+
? data === null || data === void 0 ? void 0 : data.map((item, key) => {
|
|
279
|
+
return (<p key={key}>
|
|
280
|
+
<Link href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`} target={'_blank'}>
|
|
281
|
+
{item.terms_name}
|
|
282
|
+
</Link>
|
|
283
|
+
</p>);
|
|
284
|
+
})
|
|
285
|
+
: null}
|
|
293
286
|
<p className={'text-[#285FA7]'}>
|
|
294
287
|
<Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
|
|
295
288
|
고객만족센터
|
|
296
289
|
</Link>
|
|
297
290
|
</p>
|
|
298
291
|
</>);
|
|
292
|
+
/**
|
|
293
|
+
* 기존 푸터
|
|
294
|
+
*/
|
|
295
|
+
// return (
|
|
296
|
+
// <>
|
|
297
|
+
// <p>
|
|
298
|
+
// <Link href={'https://www.daeryunlaw.com/common/disclaimer'} target={'_blank'}>
|
|
299
|
+
// 면책공고
|
|
300
|
+
// </Link>
|
|
301
|
+
// </p>
|
|
302
|
+
// <p>
|
|
303
|
+
// <Link href={'https://www.daeryunlaw.com/common/limited-liability'} target={'_blank'}>
|
|
304
|
+
// 유한책임
|
|
305
|
+
// </Link>
|
|
306
|
+
// </p>
|
|
307
|
+
// <p>
|
|
308
|
+
// <Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
|
|
309
|
+
// 개인정보처리방침
|
|
310
|
+
// </Link>
|
|
311
|
+
// </p>
|
|
312
|
+
// <p>
|
|
313
|
+
// <Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
|
|
314
|
+
// 이메일무단수집거부
|
|
315
|
+
// </Link>
|
|
316
|
+
// </p>
|
|
317
|
+
// <p className={'text-[#285FA7]'}>
|
|
318
|
+
// <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
|
|
319
|
+
// 고객만족센터
|
|
320
|
+
// </Link>
|
|
321
|
+
// </p>
|
|
322
|
+
// </>
|
|
323
|
+
// );
|
|
299
324
|
};
|
|
300
325
|
const FooterSelectBox = (props) => {
|
|
301
326
|
var _a, _b;
|
|
@@ -4,8 +4,7 @@ import Image from 'next/image';
|
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import * as gtag from '../../lib/gtag';
|
|
6
6
|
import Link from 'next/link';
|
|
7
|
-
import { getDomainHandler, insert } from '../../lib';
|
|
8
|
-
import { savePowerLinkConversion } from '../../lib';
|
|
7
|
+
import { getDomainHandler, insert, savePowerLinkConversion } from '../../lib';
|
|
9
8
|
import Wrapper from '../Layout/Wrapper';
|
|
10
9
|
import TopBtn from './TopBtn';
|
|
11
10
|
import { usePathname, useRouter } from 'next/navigation';
|
|
@@ -17,6 +16,8 @@ import sns04 from '../../asset/images/footer/sns_04.webp';
|
|
|
17
16
|
import sns05 from '../../asset/images/footer/sns_05.webp';
|
|
18
17
|
import BrochureBtn from '../BrochureBtn/BrochureBtn';
|
|
19
18
|
import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
|
|
19
|
+
import { useActionGetTermList } from './_actions/action';
|
|
20
|
+
import { ITermType } from '../page/Login/_types/termType';
|
|
20
21
|
|
|
21
22
|
interface GroupsProps {
|
|
22
23
|
list: IGroupsData[];
|
|
@@ -460,29 +461,29 @@ const NewFooter = ({
|
|
|
460
461
|
|
|
461
462
|
export default NewFooter;
|
|
462
463
|
|
|
463
|
-
const FooterLinkList = () => {
|
|
464
|
+
export const FooterLinkList = () => {
|
|
465
|
+
/**
|
|
466
|
+
* 로그인 반영 후 푸터
|
|
467
|
+
*/
|
|
468
|
+
|
|
469
|
+
const { data }: { data: ITermType[] } = useActionGetTermList();
|
|
470
|
+
|
|
464
471
|
return (
|
|
465
472
|
<>
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
</p>
|
|
481
|
-
<p>
|
|
482
|
-
<Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
|
|
483
|
-
이메일무단수집거부
|
|
484
|
-
</Link>
|
|
485
|
-
</p>
|
|
473
|
+
{data && data.length > 0
|
|
474
|
+
? data?.map((item, key) => {
|
|
475
|
+
return (
|
|
476
|
+
<p key={key}>
|
|
477
|
+
<Link
|
|
478
|
+
href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`}
|
|
479
|
+
target={'_blank'}
|
|
480
|
+
>
|
|
481
|
+
{item.terms_name}
|
|
482
|
+
</Link>
|
|
483
|
+
</p>
|
|
484
|
+
);
|
|
485
|
+
})
|
|
486
|
+
: null}
|
|
486
487
|
<p className={'text-[#285FA7]'}>
|
|
487
488
|
<Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
|
|
488
489
|
고객만족센터
|
|
@@ -490,6 +491,39 @@ const FooterLinkList = () => {
|
|
|
490
491
|
</p>
|
|
491
492
|
</>
|
|
492
493
|
);
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* 기존 푸터
|
|
497
|
+
*/
|
|
498
|
+
// return (
|
|
499
|
+
// <>
|
|
500
|
+
// <p>
|
|
501
|
+
// <Link href={'https://www.daeryunlaw.com/common/disclaimer'} target={'_blank'}>
|
|
502
|
+
// 면책공고
|
|
503
|
+
// </Link>
|
|
504
|
+
// </p>
|
|
505
|
+
// <p>
|
|
506
|
+
// <Link href={'https://www.daeryunlaw.com/common/limited-liability'} target={'_blank'}>
|
|
507
|
+
// 유한책임
|
|
508
|
+
// </Link>
|
|
509
|
+
// </p>
|
|
510
|
+
// <p>
|
|
511
|
+
// <Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
|
|
512
|
+
// 개인정보처리방침
|
|
513
|
+
// </Link>
|
|
514
|
+
// </p>
|
|
515
|
+
// <p>
|
|
516
|
+
// <Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
|
|
517
|
+
// 이메일무단수집거부
|
|
518
|
+
// </Link>
|
|
519
|
+
// </p>
|
|
520
|
+
// <p className={'text-[#285FA7]'}>
|
|
521
|
+
// <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
|
|
522
|
+
// 고객만족센터
|
|
523
|
+
// </Link>
|
|
524
|
+
// </p>
|
|
525
|
+
// </>
|
|
526
|
+
// );
|
|
493
527
|
};
|
|
494
528
|
|
|
495
529
|
const FooterSelectBox = (props: {
|
|
@@ -46,19 +46,6 @@ const SignContainer = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px
|
|
|
46
46
|
}
|
|
47
47
|
]);
|
|
48
48
|
const [optionalTermItems, setOptionalTermItems] = useState([
|
|
49
|
-
// {
|
|
50
|
-
// title: '사건관련 알림 수신 동의 (선택)',
|
|
51
|
-
// checked: false,
|
|
52
|
-
// isContent: true,
|
|
53
|
-
// cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
|
|
54
|
-
// name: 'optionalMain',
|
|
55
|
-
// alarmTypeList: [
|
|
56
|
-
// { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
|
|
57
|
-
// { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
|
|
58
|
-
// { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
|
|
59
|
-
// { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
|
|
60
|
-
// ]
|
|
61
|
-
// },
|
|
62
49
|
{
|
|
63
50
|
title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
|
|
64
51
|
checked: false,
|
|
@@ -99,19 +99,6 @@ const SignContainer = ({
|
|
|
99
99
|
]);
|
|
100
100
|
|
|
101
101
|
const [optionalTermItems, setOptionalTermItems] = useState<IOptionalCheckItem[]>([
|
|
102
|
-
// {
|
|
103
|
-
// title: '사건관련 알림 수신 동의 (선택)',
|
|
104
|
-
// checked: false,
|
|
105
|
-
// isContent: true,
|
|
106
|
-
// cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
|
|
107
|
-
// name: 'optionalMain',
|
|
108
|
-
// alarmTypeList: [
|
|
109
|
-
// { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
|
|
110
|
-
// { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
|
|
111
|
-
// { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
|
|
112
|
-
// { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
|
|
113
|
-
// ]
|
|
114
|
-
// },
|
|
115
102
|
{
|
|
116
103
|
title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
|
|
117
104
|
checked: false,
|