@daeryun/dr_components 1.0.82 → 1.0.84
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/components/page/Login/Login.jsx +17 -26
- package/dist/components/page/Login/Login.tsx +16 -16
- package/dist/components/page/Login/LoginComp/LoginContainer.jsx +38 -4
- package/dist/components/page/Login/LoginComp/LoginContainer.tsx +43 -5
- package/dist/components/page/Login/LoginShareCheckContainer.jsx +6 -4
- package/dist/components/page/Login/LoginShareCheckContainer.tsx +6 -5
- package/dist/components/page/Login/_hooks/useAppLoginDetect.js +5 -1
- package/dist/components/page/Login/_hooks/useAppLoginDetect.ts +5 -1
- package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +3 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +10 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +4 -13
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +4 -27
- package/dist/lib/categoryMenuName.js +29 -1
- package/dist/lib/categoryMenuName.ts +25 -1
- package/dist/styles/globals.css +370 -382
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ const LoginShareCheckContainer = ({ children, setUserInfo }: Props) => {
|
|
|
18
18
|
const router = useRouter();
|
|
19
19
|
const pathName = usePathname();
|
|
20
20
|
const SESSION_KEY = process.env.NEXT_PUBLIC_USER_SESSION_STORAGE_KEY || 'loginUser';
|
|
21
|
+
const CHECK_ROUTE = ['/mycase', '/mypage', '/login'];
|
|
21
22
|
|
|
22
23
|
/** 기본 게스트 유저 설정 */
|
|
23
24
|
const setGuestUser = () => {
|
|
@@ -200,11 +201,11 @@ const LoginShareCheckContainer = ({ children, setUserInfo }: Props) => {
|
|
|
200
201
|
};
|
|
201
202
|
|
|
202
203
|
useEffect(() => {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
const routeCheck = CHECK_ROUTE.some(route => pathName.startsWith(route));
|
|
205
|
+
if (routeCheck) {
|
|
206
|
+
initializeUser();
|
|
207
|
+
handlePageTransitionCheck();
|
|
208
|
+
}
|
|
208
209
|
}, [pathName]);
|
|
209
210
|
|
|
210
211
|
return <>{children}</>;
|
|
@@ -15,6 +15,7 @@ import { fetchAuthCallback } from '../_api/fetchAuthCallback';
|
|
|
15
15
|
import { deleteToken, getToken } from '../_api/token';
|
|
16
16
|
import checkThirdPartyCookie from '../_api/checkThirdPartyCookie';
|
|
17
17
|
import { fetchUserData } from '../_api/fetchUserData';
|
|
18
|
+
const CHECK_ROUTE = ['/mycase', '/mypage', '/login'];
|
|
18
19
|
export const checkAppLoginDetect = (userInfo, setUserInfo, isThirdCookie) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
20
|
// if (!isLogin) return;
|
|
20
21
|
const nullData = { name: '', isLogin: false, email: '', provider: '' };
|
|
@@ -78,7 +79,10 @@ const useAppLoginDetect = (userInfo, pathname, setUserInfo) => {
|
|
|
78
79
|
const isCookie = yield checkThirdPartyCookie();
|
|
79
80
|
yield checkAppLoginDetect(userInfo, setUserInfo, isCookie);
|
|
80
81
|
});
|
|
81
|
-
|
|
82
|
+
const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
|
|
83
|
+
if (routeCheck) {
|
|
84
|
+
checkLogin();
|
|
85
|
+
}
|
|
82
86
|
}, [userInfo, pathname]);
|
|
83
87
|
};
|
|
84
88
|
export default useAppLoginDetect;
|
|
@@ -8,6 +8,7 @@ import checkThirdPartyCookie from '../_api/checkThirdPartyCookie';
|
|
|
8
8
|
import { fetchUserData } from '../_api/fetchUserData';
|
|
9
9
|
import { ILoginInfo } from '../_types/login';
|
|
10
10
|
|
|
11
|
+
const CHECK_ROUTE = ['/mycase', '/mypage', '/login'];
|
|
11
12
|
export const checkAppLoginDetect = async (
|
|
12
13
|
userInfo: ILoginInfo,
|
|
13
14
|
setUserInfo: React.Dispatch<React.SetStateAction<ILoginInfo>>,
|
|
@@ -78,8 +79,11 @@ const useAppLoginDetect = (
|
|
|
78
79
|
const isCookie = await checkThirdPartyCookie();
|
|
79
80
|
await checkAppLoginDetect(userInfo, setUserInfo, isCookie);
|
|
80
81
|
};
|
|
82
|
+
const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
if (routeCheck) {
|
|
85
|
+
checkLogin();
|
|
86
|
+
}
|
|
83
87
|
}, [userInfo, pathname]);
|
|
84
88
|
};
|
|
85
89
|
|
|
@@ -72,6 +72,9 @@ const LawyerSection = ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }) =>
|
|
|
72
72
|
'max-lg:pb-[6px] max-lg:text-[14px]'}>
|
|
73
73
|
{item.buttonText}
|
|
74
74
|
|
|
75
|
+
{/*1024미만부터*/}
|
|
76
|
+
<Image src={imagePath + `/strength_new/arrow_2_tab.webp`} alt={'강점'} width={22} height={14} className={'h-auto w-[15px] lg:hidden'} quality={100}/>
|
|
77
|
+
{/*1024까지*/}
|
|
75
78
|
<span className={'relative block h-[14px] w-[8px] ' +
|
|
76
79
|
'max-3xl:h-[12px] max-3xl:w-[6px] ' +
|
|
77
80
|
'lg:duration-500 lg:group-hover:w-[18px] lg:group-hover:transition-[width] 3xl:group-hover:w-[20px] ' +
|
|
@@ -191,6 +191,16 @@ const LawyerSection = ({
|
|
|
191
191
|
>
|
|
192
192
|
{item.buttonText}
|
|
193
193
|
|
|
194
|
+
{/*1024미만부터*/}
|
|
195
|
+
<Image
|
|
196
|
+
src={imagePath + `/strength_new/arrow_2_tab.webp`}
|
|
197
|
+
alt={'강점'}
|
|
198
|
+
width={22}
|
|
199
|
+
height={14}
|
|
200
|
+
className={'h-auto w-[15px] lg:hidden'}
|
|
201
|
+
quality={100}
|
|
202
|
+
/>
|
|
203
|
+
{/*1024까지*/}
|
|
194
204
|
<span
|
|
195
205
|
className={
|
|
196
206
|
'relative block h-[14px] w-[8px] ' +
|
|
@@ -119,7 +119,8 @@ const ViewMoreTabItem = ({ item, index, initialData }) => {
|
|
|
119
119
|
const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
|
|
120
120
|
return (<Link href={`/strength/${item.url}`} className={'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
|
|
121
121
|
'max-md:gap-8 ' +
|
|
122
|
-
'max-[700px]:flex-col max-[700px]:gap-6
|
|
122
|
+
'max-[700px]:flex-col max-[700px]:gap-6 ' +
|
|
123
|
+
(index === 0 ? ' max-[700px]:pb-7 ' : ' max-[700px]:pb-5 ') +
|
|
123
124
|
'xxl:hidden ' +
|
|
124
125
|
(hidden ? '!hidden' : '')}>
|
|
125
126
|
<div className={'relative h-[150px] w-[260px] max-[700px]:h-[100px] max-[700px]:w-full'}>
|
|
@@ -140,16 +141,6 @@ const ViewMoreTabItem = ({ item, index, initialData }) => {
|
|
|
140
141
|
</p>) : (<h3 className={'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
|
|
141
142
|
{item.title}
|
|
142
143
|
</h3>)}
|
|
143
|
-
<div className={'mt-auto hidden justify-end max-[700px]:flex'}>
|
|
144
|
-
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
145
|
-
{item.view_more_text}
|
|
146
|
-
<span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
|
|
147
|
-
<span className={'relative block h-[12px] w-[16px]'}>
|
|
148
|
-
<Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes="16px" className={'object-contain'} quality={100}/>
|
|
149
|
-
</span>
|
|
150
|
-
</span>
|
|
151
|
-
</span>
|
|
152
|
-
</div>
|
|
153
144
|
</div>
|
|
154
145
|
<p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
|
|
155
146
|
{item.subTitle}
|
|
@@ -160,13 +151,13 @@ const ViewMoreTabItem = ({ item, index, initialData }) => {
|
|
|
160
151
|
return (<li key={index} className={'relative flex gap-2 text-[16px] leading-[1.4] tracking-[-0.04em] max-[700px]:items-center '}>
|
|
161
152
|
<span className={'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-3xl:h-1 max-3xl:w-1 max-[700px]:mt-0'}></span>
|
|
162
153
|
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
163
|
-
{desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3]
|
|
154
|
+
{desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] '}>
|
|
164
155
|
* {initialData.consult_date}
|
|
165
156
|
</span>) : (<></>)}
|
|
166
157
|
</li>);
|
|
167
158
|
})}
|
|
168
159
|
</ul>
|
|
169
|
-
<div className={'mt-auto flex shrink-0 justify-end
|
|
160
|
+
<div className={'mt-auto flex shrink-0 justify-end '}>
|
|
170
161
|
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
171
162
|
{item.view_more_text}
|
|
172
163
|
<span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
|
|
@@ -249,7 +249,8 @@ const ViewMoreTabItem = ({
|
|
|
249
249
|
className={
|
|
250
250
|
'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
|
|
251
251
|
'max-md:gap-8 ' +
|
|
252
|
-
'max-[700px]:flex-col max-[700px]:gap-6
|
|
252
|
+
'max-[700px]:flex-col max-[700px]:gap-6 ' +
|
|
253
|
+
(index === 0 ? ' max-[700px]:pb-7 ' : ' max-[700px]:pb-5 ') +
|
|
253
254
|
'xxl:hidden ' +
|
|
254
255
|
(hidden ? '!hidden' : '')
|
|
255
256
|
}
|
|
@@ -314,26 +315,6 @@ const ViewMoreTabItem = ({
|
|
|
314
315
|
{item.title}
|
|
315
316
|
</h3>
|
|
316
317
|
)}
|
|
317
|
-
<div className={'mt-auto hidden justify-end max-[700px]:flex'}>
|
|
318
|
-
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
319
|
-
{item.view_more_text}
|
|
320
|
-
<span
|
|
321
|
-
style={{ backgroundColor: item.color }}
|
|
322
|
-
className={'flex h-6 w-6 items-center justify-center rounded-full '}
|
|
323
|
-
>
|
|
324
|
-
<span className={'relative block h-[12px] w-[16px]'}>
|
|
325
|
-
<Image
|
|
326
|
-
src={imagePath + `/strength_new/arrow.webp`}
|
|
327
|
-
alt={'강점'}
|
|
328
|
-
fill
|
|
329
|
-
sizes="16px"
|
|
330
|
-
className={'object-contain'}
|
|
331
|
-
quality={100}
|
|
332
|
-
/>
|
|
333
|
-
</span>
|
|
334
|
-
</span>
|
|
335
|
-
</span>
|
|
336
|
-
</div>
|
|
337
318
|
</div>
|
|
338
319
|
<p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
|
|
339
320
|
{item.subTitle}
|
|
@@ -355,11 +336,7 @@ const ViewMoreTabItem = ({
|
|
|
355
336
|
></span>
|
|
356
337
|
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
357
338
|
{desc.includes('*consult_date*') ? (
|
|
358
|
-
<span
|
|
359
|
-
className={
|
|
360
|
-
'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] max-[700px]:relative max-[700px]:bottom-0 max-[700px]:left-0'
|
|
361
|
-
}
|
|
362
|
-
>
|
|
339
|
+
<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] '}>
|
|
363
340
|
* {initialData.consult_date}
|
|
364
341
|
</span>
|
|
365
342
|
) : (
|
|
@@ -369,7 +346,7 @@ const ViewMoreTabItem = ({
|
|
|
369
346
|
);
|
|
370
347
|
})}
|
|
371
348
|
</ul>
|
|
372
|
-
<div className={'mt-auto flex shrink-0 justify-end
|
|
349
|
+
<div className={'mt-auto flex shrink-0 justify-end '}>
|
|
373
350
|
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
374
351
|
{item.view_more_text}
|
|
375
352
|
<span
|
|
@@ -2,7 +2,35 @@ export function categoryMenuName({ url }) {
|
|
|
2
2
|
const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
|
|
3
3
|
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
4
4
|
const allUrl = window.location.href;
|
|
5
|
-
if (url.includes('/
|
|
5
|
+
if (url.includes('/strength/people')) {
|
|
6
|
+
return {
|
|
7
|
+
title: '대륜의 강점',
|
|
8
|
+
subTitle: '인적 역량',
|
|
9
|
+
address: 'strength/people'
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else if (url.includes('/strength/system')) {
|
|
13
|
+
return {
|
|
14
|
+
title: '대륜의 강점',
|
|
15
|
+
subTitle: '사건 처리 시스템',
|
|
16
|
+
address: 'strength/system'
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
else if (url.includes('/strength/customer')) {
|
|
20
|
+
return {
|
|
21
|
+
title: '대륜의 강점',
|
|
22
|
+
subTitle: '고객 중심 운영',
|
|
23
|
+
address: 'strength/customer'
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
else if (url.includes('/strength/infra')) {
|
|
27
|
+
return {
|
|
28
|
+
title: '대륜의 강점',
|
|
29
|
+
subTitle: '전문 대응 인프라',
|
|
30
|
+
address: 'strength/infra'
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
else if (url.includes('/broadcast')) {
|
|
6
34
|
return {
|
|
7
35
|
title: '소식/자료',
|
|
8
36
|
subTitle: '언론보도',
|
|
@@ -7,7 +7,31 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
7
7
|
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
8
8
|
const allUrl = window.location.href;
|
|
9
9
|
|
|
10
|
-
if (url.includes('/
|
|
10
|
+
if (url.includes('/strength/people')) {
|
|
11
|
+
return {
|
|
12
|
+
title: '대륜의 강점',
|
|
13
|
+
subTitle: '인적 역량',
|
|
14
|
+
address: 'strength/people'
|
|
15
|
+
};
|
|
16
|
+
} else if (url.includes('/strength/system')) {
|
|
17
|
+
return {
|
|
18
|
+
title: '대륜의 강점',
|
|
19
|
+
subTitle: '사건 처리 시스템',
|
|
20
|
+
address: 'strength/system'
|
|
21
|
+
};
|
|
22
|
+
} else if (url.includes('/strength/customer')) {
|
|
23
|
+
return {
|
|
24
|
+
title: '대륜의 강점',
|
|
25
|
+
subTitle: '고객 중심 운영',
|
|
26
|
+
address: 'strength/customer'
|
|
27
|
+
};
|
|
28
|
+
} else if (url.includes('/strength/infra')) {
|
|
29
|
+
return {
|
|
30
|
+
title: '대륜의 강점',
|
|
31
|
+
subTitle: '전문 대응 인프라',
|
|
32
|
+
address: 'strength/infra'
|
|
33
|
+
};
|
|
34
|
+
} else if (url.includes('/broadcast')) {
|
|
11
35
|
return {
|
|
12
36
|
title: '소식/자료',
|
|
13
37
|
subTitle: '언론보도',
|