@daeryun/dr_components 0.4.99 → 0.5.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/Header/PcHeader.jsx +3 -3
- package/dist/components/Header/PcHeader.tsx +3 -3
- package/dist/components/page/LawyerDetail/LawyerDetail.jsx +33 -15
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +25 -16
- package/dist/components/page/LawyerDetail/{BasicInfo.d.ts → component/BasicInfo.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{BasicInfo.jsx → component/BasicInfo.jsx} +3 -3
- package/dist/components/page/LawyerDetail/{BasicInfo.tsx → component/BasicInfo.tsx} +4 -4
- package/dist/components/page/LawyerDetail/{CareerList.d.ts → component/CareerList.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{CareerList.jsx → component/CareerList.jsx} +2 -2
- package/dist/components/page/LawyerDetail/{CareerList.tsx → component/CareerList.tsx} +3 -3
- package/dist/components/page/LawyerDetail/{Introduce.d.ts → component/Introduce.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{Introduce.jsx → component/Introduce.jsx} +1 -1
- package/dist/components/page/LawyerDetail/{Introduce.tsx → component/Introduce.tsx} +2 -2
- package/dist/components/page/LawyerDetail/{MobileRelatedPage.d.ts → component/MobileRelatedPage.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{MobileRelatedPage.tsx → component/MobileRelatedPage.tsx} +1 -1
- package/dist/components/page/LawyerDetail/{MobileSpeciality.d.ts → component/MobileSpeciality.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{MobileSpeciality.jsx → component/MobileSpeciality.jsx} +1 -1
- package/dist/components/page/LawyerDetail/{MobileSpeciality.tsx → component/MobileSpeciality.tsx} +2 -2
- package/dist/components/page/LawyerDetail/{PcTabButton.d.ts → component/PcTabButton.d.ts} +1 -1
- package/dist/components/page/LawyerDetail/{PcTabButton.tsx → component/PcTabButton.tsx} +1 -1
- package/dist/styles/globals.css +6 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/dist/components/page/LawyerDetail/{MobileRelatedPage.jsx → component/MobileRelatedPage.jsx} +0 -0
- /package/dist/components/page/LawyerDetail/{MobileTabButton.d.ts → component/MobileTabButton.d.ts} +0 -0
- /package/dist/components/page/LawyerDetail/{MobileTabButton.jsx → component/MobileTabButton.jsx} +0 -0
- /package/dist/components/page/LawyerDetail/{MobileTabButton.tsx → component/MobileTabButton.tsx} +0 -0
- /package/dist/components/page/LawyerDetail/{PcTabButton.jsx → component/PcTabButton.jsx} +0 -0
|
@@ -56,12 +56,12 @@ const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, cente
|
|
|
56
56
|
//1024px
|
|
57
57
|
'max-lg:items-center max-lg:pt-0 '}>
|
|
58
58
|
<Link href={`/`} className={'shrink-0'}>
|
|
59
|
-
<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop || isMain || isHover || menuToggle ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" width={isTop ? 216 : 432} priority height={isTop ? 33 : 67} className={'h-[
|
|
59
|
+
<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop || isMain || isHover || menuToggle ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" width={isTop ? 216 : 432} priority height={isTop ? 33 : 67} className={'h-[38px] w-auto ' +
|
|
60
60
|
//1280px
|
|
61
|
-
'max-xl:h-[
|
|
61
|
+
'max-xl:h-[32px] '}/>
|
|
62
62
|
<h1 className={'hidden'}>변호사 | 법률상담은 법무법인(유한) 대륜</h1>
|
|
63
63
|
</Link>
|
|
64
|
-
<span className={'flex flex-1 items-start justify-end gap-[20px] pt-[
|
|
64
|
+
<span className={'flex flex-1 items-start justify-end gap-[20px] pt-[5px] ' +
|
|
65
65
|
//1024px
|
|
66
66
|
'max-lg:pt-0'}>
|
|
67
67
|
{/*nav*/}
|
|
@@ -93,16 +93,16 @@ const PcHeader = ({
|
|
|
93
93
|
priority
|
|
94
94
|
height={isTop ? 33 : 67}
|
|
95
95
|
className={
|
|
96
|
-
'h-[
|
|
96
|
+
'h-[38px] w-auto ' +
|
|
97
97
|
//1280px
|
|
98
|
-
'max-xl:h-[
|
|
98
|
+
'max-xl:h-[32px] '
|
|
99
99
|
}
|
|
100
100
|
/>
|
|
101
101
|
<h1 className={'hidden'}>변호사 | 법률상담은 법무법인(유한) 대륜</h1>
|
|
102
102
|
</Link>
|
|
103
103
|
<span
|
|
104
104
|
className={
|
|
105
|
-
'flex flex-1 items-start justify-end gap-[20px] pt-[
|
|
105
|
+
'flex flex-1 items-start justify-end gap-[20px] pt-[5px] ' +
|
|
106
106
|
//1024px
|
|
107
107
|
'max-lg:pt-0'
|
|
108
108
|
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
12
|
import { useSearchParams } from 'next/navigation';
|
|
4
13
|
import Link from 'next/link';
|
|
5
14
|
import Image from 'next/image';
|
|
6
|
-
import BasicInfo from './BasicInfo';
|
|
7
|
-
import CareerList from './CareerList';
|
|
8
|
-
import PcTabButton from './PcTabButton';
|
|
9
|
-
import MobileTabButton from './MobileTabButton';
|
|
10
|
-
import MobileSpeciality from './MobileSpeciality';
|
|
11
|
-
import Introduce from './Introduce';
|
|
12
|
-
import MobileRelatedPage from './MobileRelatedPage';
|
|
15
|
+
import BasicInfo from './component/BasicInfo';
|
|
16
|
+
import CareerList from './component/CareerList';
|
|
17
|
+
import PcTabButton from './component/PcTabButton';
|
|
18
|
+
import MobileTabButton from './component/MobileTabButton';
|
|
19
|
+
import MobileSpeciality from './component/MobileSpeciality';
|
|
20
|
+
import Introduce from './component/Introduce';
|
|
21
|
+
import MobileRelatedPage from './component/MobileRelatedPage';
|
|
13
22
|
import { bodyFetch, lawyerCode } from '../../../lib';
|
|
14
23
|
const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }) => {
|
|
15
24
|
const searchParams = useSearchParams();
|
|
@@ -42,15 +51,21 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }) =>
|
|
|
42
51
|
const ulElement = document.getElementById('field_box');
|
|
43
52
|
return ulElement ? ulElement.offsetHeight : 0;
|
|
44
53
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
const fetchData = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
+
try {
|
|
56
|
+
if (lawyerInfo !== null) {
|
|
57
|
+
yield bodyFetch('/api/mapping/list', { idx: lawyerInfo.l_id, key: 'contents' }, (obj) => {
|
|
58
|
+
setSuccessList(obj.returnObj.successList);
|
|
59
|
+
setBroadcastList(obj.returnObj.broadcastList);
|
|
60
|
+
setReviewList(obj.returnObj.reviewList);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
console.error(`lawyer/[l_id] fetch error : ${error}`);
|
|
53
66
|
}
|
|
67
|
+
});
|
|
68
|
+
useEffect(() => {
|
|
54
69
|
//모바일 전문분야
|
|
55
70
|
const handleResize = () => {
|
|
56
71
|
const newMaxLines = calculateMaxLines();
|
|
@@ -62,6 +77,9 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }) =>
|
|
|
62
77
|
window.removeEventListener('resize', handleResize);
|
|
63
78
|
};
|
|
64
79
|
}, []);
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
fetchData();
|
|
82
|
+
}, [lawyerInfo]);
|
|
65
83
|
useEffect(() => {
|
|
66
84
|
const page = searchParams.get('page');
|
|
67
85
|
const integrate_search = searchParams.get('integrate_search');
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useRef, useState } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useSearchParams } from 'next/navigation';
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import Image from 'next/image';
|
|
7
7
|
import { ILawyerCareer, ILawyer, IBoard, ISuccess, ILawyerCerti, ICommonCode } from './ILawyerDetailTypes';
|
|
8
|
-
import BasicInfo from './BasicInfo';
|
|
9
|
-
import CareerList from './CareerList';
|
|
10
|
-
import PcTabButton from './PcTabButton';
|
|
11
|
-
import MobileTabButton from './MobileTabButton';
|
|
12
|
-
import MobileSpeciality from './MobileSpeciality';
|
|
13
|
-
import Introduce from './Introduce';
|
|
14
|
-
import MobileRelatedPage from './MobileRelatedPage';
|
|
8
|
+
import BasicInfo from './component/BasicInfo';
|
|
9
|
+
import CareerList from './component/CareerList';
|
|
10
|
+
import PcTabButton from './component/PcTabButton';
|
|
11
|
+
import MobileTabButton from './component/MobileTabButton';
|
|
12
|
+
import MobileSpeciality from './component/MobileSpeciality';
|
|
13
|
+
import Introduce from './component/Introduce';
|
|
14
|
+
import MobileRelatedPage from './component/MobileRelatedPage';
|
|
15
15
|
import { bodyFetch, lawyerCode } from '../../../lib';
|
|
16
16
|
|
|
17
17
|
interface IDetailProps {
|
|
@@ -61,16 +61,21 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }: IDe
|
|
|
61
61
|
return ulElement ? ulElement.offsetHeight : 0;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
const fetchData = async () => {
|
|
65
|
+
try {
|
|
66
|
+
if (lawyerInfo !== null) {
|
|
67
|
+
await bodyFetch('/api/mapping/list', { idx: lawyerInfo.l_id, key: 'contents' }, (obj: any) => {
|
|
68
|
+
setSuccessList(obj.returnObj.successList);
|
|
69
|
+
setBroadcastList(obj.returnObj.broadcastList);
|
|
70
|
+
setReviewList(obj.returnObj.reviewList);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
} catch (error) {
|
|
74
|
+
console.error(`lawyer/[l_id] fetch error : ${error}`);
|
|
72
75
|
}
|
|
76
|
+
};
|
|
73
77
|
|
|
78
|
+
useEffect(() => {
|
|
74
79
|
//모바일 전문분야
|
|
75
80
|
const handleResize = () => {
|
|
76
81
|
const newMaxLines = calculateMaxLines();
|
|
@@ -85,6 +90,10 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }: IDe
|
|
|
85
90
|
};
|
|
86
91
|
}, []);
|
|
87
92
|
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
fetchData();
|
|
95
|
+
}, [lawyerInfo]);
|
|
96
|
+
|
|
88
97
|
useEffect(() => {
|
|
89
98
|
const page = searchParams.get('page');
|
|
90
99
|
const integrate_search = searchParams.get('integrate_search');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { insert } from '
|
|
5
|
-
import * as gtag from '
|
|
4
|
+
import { insert } from '../../../../lib/conversion';
|
|
5
|
+
import * as gtag from '../../../../lib/gtag';
|
|
6
6
|
import mobile from 'is-mobile';
|
|
7
|
-
import { searchColorLawyerText } from '
|
|
7
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
8
8
|
const BasicInfo = ({ lawyerInfo, codeList, integrateSearch }) => {
|
|
9
9
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
10
10
|
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { insert } from '
|
|
5
|
-
import * as gtag from '
|
|
4
|
+
import { insert } from '../../../../lib/conversion';
|
|
5
|
+
import * as gtag from '../../../../lib/gtag';
|
|
6
6
|
import mobile from 'is-mobile';
|
|
7
|
-
import { ILawyer } from '
|
|
8
|
-
import { searchColorLawyerText } from '
|
|
7
|
+
import { ILawyer } from '../ILawyerDetailTypes';
|
|
8
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
9
9
|
|
|
10
10
|
const BasicInfo = ({
|
|
11
11
|
lawyerInfo,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IBoard, ILawyer, ILawyerCareer, ISuccess } from '
|
|
2
|
+
import { IBoard, ILawyer, ILawyerCareer, ISuccess } from '../ILawyerDetailTypes';
|
|
3
3
|
declare const CareerList: ({ lawyerInfo, careerList, certiList, codeList, speciality, successList, broadcastList, reviewList, targetRefs, integrateSearch, targetTitleRefs }: {
|
|
4
4
|
lawyerInfo: ILawyer;
|
|
5
5
|
careerList: ILawyerCareer[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import style from '
|
|
5
|
-
import { searchColorLawyerText } from '
|
|
4
|
+
import style from '../detail.module.css';
|
|
5
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
6
6
|
const CareerList = ({ lawyerInfo, careerList, certiList, codeList, speciality, successList, broadcastList, reviewList, targetRefs, integrateSearch, targetTitleRefs }) => {
|
|
7
7
|
return (<div className={'mt-[80px] flex justify-between gap-[90px] ' +
|
|
8
8
|
//768px
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import style from '
|
|
5
|
-
import { IBoard, ILawyer, ILawyerCareer, ISuccess } from '
|
|
6
|
-
import { searchColorLawyerText } from '
|
|
4
|
+
import style from '../detail.module.css';
|
|
5
|
+
import { IBoard, ILawyer, ILawyerCareer, ISuccess } from '../ILawyerDetailTypes';
|
|
6
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
7
7
|
|
|
8
8
|
const CareerList = ({
|
|
9
9
|
lawyerInfo,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { searchColorLawyerText } from '
|
|
2
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
3
3
|
const Introduce = ({ lawyerInfo, integrateSearch }) => {
|
|
4
4
|
return (<section className={'mx-auto w-full max-w-screen-2xl py-[60px] ' +
|
|
5
5
|
//768px
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ILawyer } from '
|
|
3
|
-
import { searchColorLawyerText } from '
|
|
2
|
+
import { ILawyer } from '../ILawyerDetailTypes';
|
|
3
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
4
4
|
|
|
5
5
|
const Introduce = ({ lawyerInfo, integrateSearch }: { lawyerInfo: ILawyer; integrateSearch: string }) => {
|
|
6
6
|
return (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IBoard, ILawyer, ISuccess } from '
|
|
2
|
+
import { IBoard, ILawyer, ISuccess } from '../ILawyerDetailTypes';
|
|
3
3
|
declare const MobileRelatedPage: ({ lawyerInfo, broadcastList, reviewList, successList, isLawyer }: {
|
|
4
4
|
lawyerInfo: ILawyer;
|
|
5
5
|
isLawyer: boolean;
|
package/dist/components/page/LawyerDetail/{MobileRelatedPage.tsx → component/MobileRelatedPage.tsx}
RENAMED
|
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import { IBoard, ILawyer, ISuccess } from '
|
|
5
|
+
import { IBoard, ILawyer, ISuccess } from '../ILawyerDetailTypes';
|
|
6
6
|
|
|
7
7
|
const MobileRelatedPage = ({
|
|
8
8
|
lawyerInfo,
|
package/dist/components/page/LawyerDetail/{MobileSpeciality.d.ts → component/MobileSpeciality.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ILawyerCareer } from '
|
|
2
|
+
import { ILawyerCareer } from '../ILawyerDetailTypes';
|
|
3
3
|
declare const MobileSpeciality: ({ speciality, codeList, maxLines, integrateSearch }: {
|
|
4
4
|
speciality: ILawyerCareer[];
|
|
5
5
|
maxLines: number;
|
package/dist/components/page/LawyerDetail/{MobileSpeciality.jsx → component/MobileSpeciality.jsx}
RENAMED
|
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import { searchColorLawyerText } from '
|
|
5
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
6
6
|
const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch }) => {
|
|
7
7
|
const { t } = useTranslation('common'); //모바일 전문분야 더보기 버튼
|
|
8
8
|
const [mobileCareerViewMore, setMobileCareerViewMore] = useState(false);
|
package/dist/components/page/LawyerDetail/{MobileSpeciality.tsx → component/MobileSpeciality.tsx}
RENAMED
|
@@ -2,8 +2,8 @@ import Link from 'next/link';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import { ILawyerCareer } from '
|
|
6
|
-
import { searchColorLawyerText } from '
|
|
5
|
+
import { ILawyerCareer } from '../ILawyerDetailTypes';
|
|
6
|
+
import { searchColorLawyerText } from '../../../common/integrate';
|
|
7
7
|
|
|
8
8
|
const MobileSpeciality = ({
|
|
9
9
|
speciality,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { useRouter } from 'next/navigation';
|
|
4
4
|
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import { ILawyerCareer } from '
|
|
5
|
+
import { ILawyerCareer } from '../ILawyerDetailTypes';
|
|
6
6
|
|
|
7
7
|
const PcTabButton = ({
|
|
8
8
|
careerList,
|
package/dist/styles/globals.css
CHANGED
|
@@ -1853,6 +1853,10 @@ video {
|
|
|
1853
1853
|
height: 386px;
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
|
+
.h-\[38px\] {
|
|
1857
|
+
height: 38px;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1856
1860
|
.h-\[39\.6px\] {
|
|
1857
1861
|
height: 39.6px;
|
|
1858
1862
|
}
|
|
@@ -6932,8 +6936,8 @@ body {
|
|
|
6932
6936
|
height: 250px;
|
|
6933
6937
|
}
|
|
6934
6938
|
|
|
6935
|
-
.max-xl\:h-\[
|
|
6936
|
-
height:
|
|
6939
|
+
.max-xl\:h-\[32px\] {
|
|
6940
|
+
height: 32px;
|
|
6937
6941
|
}
|
|
6938
6942
|
|
|
6939
6943
|
.max-xl\:h-\[360px\] {
|