@daeryun/dr_components 1.2.38 → 1.2.39

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.
Files changed (47) hide show
  1. package/dist/components/Footer/index.d.ts +3 -1
  2. package/dist/components/Footer/index.jsx +25 -12
  3. package/dist/components/Footer/index.tsx +39 -9
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +16 -4
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +26 -6
  6. package/dist/components/Header/PcHeader.jsx +1 -1
  7. package/dist/components/Header/PcHeader.tsx +1 -1
  8. package/dist/components/ViewMoreSection/ViewMoreSection.jsx +4 -0
  9. package/dist/components/ViewMoreSection/ViewMoreSection.tsx +4 -0
  10. package/dist/components/categoryView/CategoryComponent.jsx +6 -1
  11. package/dist/components/categoryView/CategoryComponent.tsx +9 -1
  12. package/dist/components/common/hook/index.d.ts +1 -0
  13. package/dist/components/common/hook/index.js +1 -0
  14. package/dist/components/common/hook/index.ts +1 -0
  15. package/dist/components/common/hook/useIsApp.d.ts +2 -0
  16. package/dist/components/common/hook/useIsApp.js +22 -0
  17. package/dist/components/common/hook/useIsApp.ts +29 -0
  18. package/dist/components/hook/useIsApp.d.ts +2 -0
  19. package/dist/components/hook/useIsApp.js +22 -0
  20. package/dist/components/hook/useIsApp.ts +29 -0
  21. package/dist/components/page/Integrate/Broadcast.d.ts +1 -0
  22. package/dist/components/page/Integrate/Broadcast.jsx +3 -2
  23. package/dist/components/page/Integrate/Broadcast.tsx +6 -2
  24. package/dist/components/page/Integrate/Field.d.ts +1 -0
  25. package/dist/components/page/Integrate/Field.jsx +5 -2
  26. package/dist/components/page/Integrate/Field.tsx +9 -2
  27. package/dist/components/page/Integrate/LawInfo.d.ts +1 -0
  28. package/dist/components/page/Integrate/LawInfo.jsx +5 -2
  29. package/dist/components/page/Integrate/LawInfo.tsx +8 -2
  30. package/dist/components/page/Integrate/Reply.d.ts +1 -0
  31. package/dist/components/page/Integrate/Reply.jsx +8 -6
  32. package/dist/components/page/Integrate/Reply.tsx +10 -8
  33. package/dist/components/page/Integrate/SearchData.jsx +8 -6
  34. package/dist/components/page/Integrate/SearchData.tsx +8 -0
  35. package/dist/components/page/Integrate/Success.d.ts +1 -0
  36. package/dist/components/page/Integrate/Success.jsx +7 -4
  37. package/dist/components/page/Integrate/Success.tsx +10 -5
  38. package/dist/components/page/Integrate/Trend.d.ts +1 -0
  39. package/dist/components/page/Integrate/Trend.jsx +5 -2
  40. package/dist/components/page/Integrate/Trend.tsx +7 -2
  41. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +6 -1
  42. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +9 -1
  43. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +6 -1
  44. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +9 -1
  45. package/dist/styles/globals.css +4 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+
4
+ const useIsApp = () => {
5
+ const searchParams = useSearchParams();
6
+ const isAppParams = searchParams?.get('isApp') === 'true';
7
+
8
+ const [isApp, setIsApp] = useState<boolean>(false);
9
+
10
+ useEffect(() => {
11
+ if (typeof window === 'undefined') return;
12
+
13
+ const sessionIsApp = sessionStorage.getItem('isApp');
14
+
15
+ if (sessionIsApp === 'true') {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+
20
+ if (isAppParams) {
21
+ setIsApp(true);
22
+ return;
23
+ }
24
+ }, [isAppParams]);
25
+
26
+ return isApp;
27
+ };
28
+
29
+ export default useIsApp;
@@ -18,5 +18,6 @@ declare const Broadcast: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
+ isApp: boolean;
21
22
  }) => React.JSX.Element;
22
23
  export default Broadcast;
@@ -8,7 +8,7 @@ import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
9
  import { htmlTagRemove } from '../../../lib';
10
10
  const Broadcast = (props) => {
11
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
11
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
12
12
  const [allTabPage, setAllTabPage] = useState(0);
13
13
  const [allTabList, setAllTabList] = useState([]);
14
14
  const getAllPage = () => {
@@ -45,7 +45,8 @@ const Broadcast = (props) => {
45
45
  return (<div key={'broadcast' + item.id} className={'w-full lg:flex lg:flex-row lg:flex-wrap lg:justify-between'}>
46
46
  {/*mobile*/}
47
47
  <Link href={{
48
- pathname: '/broadcast/' + item.id
48
+ pathname: '/broadcast/' + item.id,
49
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
49
50
  }} className={'mx-auto flex flex-col items-center justify-center lg:hidden' +
50
51
  (tab === '전체' && index === 3
51
52
  ? ''
@@ -28,8 +28,9 @@ const Broadcast = (props: {
28
28
  trend: number;
29
29
  };
30
30
  loading: boolean;
31
+ isApp: boolean;
31
32
  }) => {
32
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
33
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
33
34
 
34
35
  const [allTabPage, setAllTabPage] = useState<number>(0);
35
36
  const [allTabList, setAllTabList] = useState<IBroadCastTypes[]>([]);
@@ -95,7 +96,10 @@ const Broadcast = (props: {
95
96
  {/*mobile*/}
96
97
  <Link
97
98
  href={{
98
- pathname: '/broadcast/' + item.id
99
+ pathname: '/broadcast/' + item.id,
100
+ query: {
101
+ ...(isApp ? { isApp: true } : {})
102
+ }
99
103
  }}
100
104
  className={
101
105
  'mx-auto flex flex-col items-center justify-center lg:hidden' +
@@ -19,5 +19,6 @@ declare const Field: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Field;
@@ -5,7 +5,7 @@ import { ViewMore } from './ViewMore';
5
5
  import { Title } from './Title';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Field = (props) => {
8
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
8
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
9
9
  const [allTabPage, setAllTabPage] = useState(0);
10
10
  const [allTabList, setAllTabList] = useState([]);
11
11
  const getAllPage = () => {
@@ -34,7 +34,10 @@ const Field = (props) => {
34
34
  <Title title={'업무분야'} tab={tab} type={'field'} onClick={str => onMoreViewText(str)} count={listCount.field}/>
35
35
  <div className={'my-4 grid gap-[16px] sm:m-2 sm:grid-cols-2 lg:grid-cols-3'}>
36
36
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
37
- return (<Link href={`${item.pathname}field_new/[idx]`} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
37
+ return (<Link href={{
38
+ pathname: `${item.pathname}field_new/[idx]`,
39
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
40
+ }} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
38
41
  <p className={'text-[20px] text-[#555555] max-xl:text-[18px] max-sm:text-[16px] max-xs:text-[15px]'}>
39
42
  <span className={'mr-2 text-[#99999]'}>•</span>
40
43
  &nbsp; 업무분야
@@ -5,6 +5,7 @@ import { IFieldTypes, IListPagesType, IListTypes } from './integrateType';
5
5
  import { ViewMore } from './ViewMore';
6
6
  import { Title } from './Title';
7
7
  import { searchColorText } from '../../common/integrate';
8
+ import useIsApp from '../../hook/useIsApp';
8
9
 
9
10
  const Field = (props: {
10
11
  isMobileSize: boolean | null;
@@ -25,8 +26,9 @@ const Field = (props: {
25
26
  trend: number;
26
27
  };
27
28
  loading: boolean;
29
+ isApp: boolean;
28
30
  }) => {
29
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
31
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
30
32
 
31
33
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
34
  const [allTabList, setAllTabList] = useState<IFieldTypes[]>([]);
@@ -77,7 +79,12 @@ const Field = (props: {
77
79
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
78
80
  return (
79
81
  <Link
80
- href={`${item.pathname}field_new/[idx]`}
82
+ href={{
83
+ pathname: `${item.pathname}field_new/[idx]`,
84
+ query: {
85
+ ...(isApp ? { isApp: true } : {})
86
+ }
87
+ }}
81
88
  target={item.center_code === props.center_code ? '' : '_blank'}
82
89
  as={`${item.pathname}field_new/${item.idx}`}
83
90
  key={`${item.pathname}field_new/[${item.idx}] `}
@@ -19,5 +19,6 @@ declare const LawInfo: (props: {
19
19
  };
20
20
  search: string;
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default LawInfo;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const LawInfo = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,7 +40,10 @@ const LawInfo = (props) => {
40
40
  <Title title={'법률정보'} tab={tab} type={'info'} onClick={str => onMoreViewText(str)} count={listCount.info}/>
41
41
  <div className={'grid w-full gap-[40px] sm:grid-cols-2 sm:gap-[30px] lg:grid-cols-4 lg:gap-[16px]'}>
42
42
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
43
- return (<Link key={item.pathname + 'lawinfo_new/' + item.idx} href={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
43
+ return (<Link href={{
44
+ pathname: item.pathname + 'lawinfo_new/' + item.idx,
45
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
46
+ }} key={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
44
47
  <div className={'relative aspect-[1.47] w-full overflow-hidden max-sm:h-full max-sm:w-full'}>
45
48
  <Image src={'https://d1tgonli21s4df.cloudfront.net' + item.img} alt={item.alt} fill sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" className={'h-full w-full object-contain '}/>
46
49
  </div>
@@ -26,8 +26,9 @@ const LawInfo = (props: {
26
26
  };
27
27
  search: string;
28
28
  loading: boolean;
29
+ isApp: boolean;
29
30
  }) => {
30
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
31
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
31
32
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
33
  const [allTabList, setAllTabList] = useState<IInfoTypes[]>([]);
33
34
 
@@ -86,8 +87,13 @@ const LawInfo = (props: {
86
87
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
87
88
  return (
88
89
  <Link
90
+ href={{
91
+ pathname: item.pathname + 'lawinfo_new/' + item.idx,
92
+ query: {
93
+ ...(isApp ? { isApp: true } : {})
94
+ }
95
+ }}
89
96
  key={item.pathname + 'lawinfo_new/' + item.idx}
90
- href={item.pathname + 'lawinfo_new/' + item.idx}
91
97
  target={item.center_code === props.center_code ? '' : '_blank'}
92
98
  className={'mb-3 flex flex-col gap-3 overflow-hidden'}
93
99
  >
@@ -19,5 +19,6 @@ declare const Reply: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Reply;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Reply = (props) => {
9
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,11 +40,13 @@ const Reply = (props) => {
40
40
  <Title title={'고객후기'} tab={tab} type={'reply'} onClick={str => onMoreViewText(str)} count={listCount.reply}/>
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
43
- return (<Link href={(item.crime_code != props.crime_code
44
- ? 'https://www.daeryunlaw.com'
45
- : '') +
46
- '/reply/' +
47
- item.id} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
43
+ return (<Link href={{
44
+ pathname: (item.crime_code != props.crime_code
45
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
46
+ : '') +
47
+ '/reply/' +
48
+ item.id
49
+ }} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
48
50
  <p className={'h-[70px] text-[20px] font-[800] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
49
51
  <span className={'text-[#285FA7]'}>{item.etc4} </span>
50
52
  <br className={'block sm:hidden'}/>
@@ -27,8 +27,9 @@ const Reply = (props: {
27
27
  trend: number;
28
28
  };
29
29
  loading: boolean;
30
+ isApp: boolean;
30
31
  }) => {
31
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
32
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
32
33
 
33
34
  const [allTabPage, setAllTabPage] = useState<number>(0);
34
35
  const [allTabList, setAllTabList] = useState<IReplyTypes[]>([]);
@@ -84,13 +85,14 @@ const Reply = (props: {
84
85
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
85
86
  return (
86
87
  <Link
87
- href={
88
- (item.crime_code != props.crime_code
89
- ? 'https://www.daeryunlaw.com'
90
- : '') +
91
- '/reply/' +
92
- item.id
93
- }
88
+ href={{
89
+ pathname:
90
+ (item.crime_code != props.crime_code
91
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
92
+ : '') +
93
+ '/reply/' +
94
+ item.id
95
+ }}
94
96
  target={item.crime_code === props.crime_code ? '' : '_blank'}
95
97
  key={'reply' + item.id}
96
98
  className={
@@ -20,9 +20,11 @@ import Reply from './Reply';
20
20
  import Lawyer from './Lawyer';
21
21
  import useBrowser from '../../hook/useBrowser';
22
22
  import Trend from './Trend';
23
+ import useIsApp from '../../hook/useIsApp';
23
24
  const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
24
25
  const { width } = useBrowser(true);
25
26
  const router = useRouter();
27
+ const isApp = useIsApp();
26
28
  const [tab, setTab] = useState('');
27
29
  const [search, setSearch] = useState('');
28
30
  const [list, setList] = useState(searchInit.list);
@@ -81,14 +83,14 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
81
83
  }, [width, isMobileSize]);
82
84
  return (<span id={'integrate-result'}>
83
85
  {tab === '전체' && totalCount < 1 ? (<NoResult />) : (<>
84
- <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field}/>
85
- <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount}/>
86
- <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info}/>
86
+ <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field} isApp={isApp}/>
87
+ <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount} isApp={isApp}/>
88
+ <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info} isApp={isApp}/>
87
89
  <Lawyer isMobileSize={isMobileSize} tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('lawyerList', 'lawyer')} loading={loading.lawyer}/>
88
- <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount}/>
89
- <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast}/>
90
+ <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount} isApp={isApp}/>
91
+ <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast} isApp={isApp}/>
90
92
 
91
- <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend}/>
93
+ <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend} isApp={isApp}/>
92
94
 
93
95
  {/*<Map*/}
94
96
  {/* isMobileSize={isMobileSize}*/}
@@ -13,6 +13,7 @@ import Map from './Map';
13
13
  import Lawyer from './Lawyer';
14
14
  import useBrowser from '../../hook/useBrowser';
15
15
  import Trend from './Trend';
16
+ import useIsApp from '../../hook/useIsApp';
16
17
 
17
18
  const SearchData = ({
18
19
  list: propsList,
@@ -37,6 +38,7 @@ const SearchData = ({
37
38
  }) => {
38
39
  const { width } = useBrowser(true);
39
40
  const router = useRouter();
41
+ const isApp = useIsApp();
40
42
  const [tab, setTab] = useState<string>('');
41
43
  const [search, setSearch] = useState<string>('');
42
44
  const [list, setList] = useState<IListTypes>(searchInit.list);
@@ -122,6 +124,7 @@ const SearchData = ({
122
124
  onMoreView={() => loadMore('fieldList', 'field')}
123
125
  search={search}
124
126
  loading={loading.field}
127
+ isApp={isApp}
125
128
  />
126
129
  <Success
127
130
  isMobileSize={isMobileSize}
@@ -134,6 +137,7 @@ const SearchData = ({
134
137
  search={search}
135
138
  loading={loading.success}
136
139
  listCount={listCount}
140
+ isApp={isApp}
137
141
  />
138
142
  <LawInfo
139
143
  isMobileSize={isMobileSize}
@@ -146,6 +150,7 @@ const SearchData = ({
146
150
  onMoreView={() => loadMore('infoList', 'info')}
147
151
  search={search}
148
152
  loading={loading.info}
153
+ isApp={isApp}
149
154
  />
150
155
  <Lawyer
151
156
  isMobileSize={isMobileSize}
@@ -169,6 +174,7 @@ const SearchData = ({
169
174
  search={search}
170
175
  loading={loading.reply}
171
176
  listCount={listCount}
177
+ isApp={isApp}
172
178
  />
173
179
  <Broadcast
174
180
  isMobileSize={isMobileSize}
@@ -180,6 +186,7 @@ const SearchData = ({
180
186
  onMoreView={() => loadMore('broadcastList', 'broadcast')}
181
187
  search={search}
182
188
  loading={loading.broadcast}
189
+ isApp={isApp}
183
190
  />
184
191
 
185
192
  <Trend
@@ -192,6 +199,7 @@ const SearchData = ({
192
199
  onMoreView={() => loadMore('trendList', 'trend')}
193
200
  search={search}
194
201
  loading={loading.trend}
202
+ isApp={isApp}
195
203
  />
196
204
 
197
205
  {/*<Map*/}
@@ -19,5 +19,6 @@ declare const Success: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Success;
@@ -6,7 +6,7 @@ import { ViewMore } from './ViewMore';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Success = (props) => {
8
8
  var _a;
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,9 +41,12 @@ const Success = (props) => {
41
41
  {((_a = list.successList) === null || _a === void 0 ? void 0 : _a.length) !== 0 && (<div className={'mb-9 mt-9 grid gap-[30px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
43
43
  var _a, _b;
44
- return (<Link href={!item.center_code.includes('OF')
45
- ? item.pathname + 'success_new/' + item.id
46
- : `https://${item.office_pathname}/success_new/${item.id}`} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
44
+ return (<Link href={{
45
+ pathname: !item.center_code.includes('OF')
46
+ ? item.pathname + 'success_new/' + item.id
47
+ : `https://${item.office_pathname}/success_new/${item.id}`,
48
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
49
+ }} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
47
50
  <p className={`ml-8 inline-block w-auto max-w-[70%] bg-[#2960A7] p-2 px-7 text-center text-[18px] font-[800] text-[#fff] max-lg:text-[16px] max-sm:text-[15px] max-2xs:text-[14px]`}>
48
51
  <span className={'line-clamp-1'}>{item.sub}</span>
49
52
  </p>
@@ -6,6 +6,7 @@ import { IListPagesType, IListTypes, ISuccessTypes } from './integrateType';
6
6
  import { Title } from './Title';
7
7
  import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
 
10
11
  const Success = (props: {
11
12
  isMobileSize: boolean | null;
@@ -26,8 +27,9 @@ const Success = (props: {
26
27
  trend: number;
27
28
  };
28
29
  loading: boolean;
30
+ isApp: boolean;
29
31
  }) => {
30
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
32
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
31
33
 
32
34
  const [allTabPage, setAllTabPage] = useState<number>(0);
33
35
  const [allTabList, setAllTabList] = useState<ISuccessTypes[]>([]);
@@ -84,11 +86,14 @@ const Success = (props: {
84
86
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
85
87
  return (
86
88
  <Link
87
- href={
88
- !item.center_code.includes('OF')
89
+ href={{
90
+ pathname: !item.center_code.includes('OF')
89
91
  ? item.pathname + 'success_new/' + item.id
90
- : `https://${item.office_pathname}/success_new/${item.id}`
91
- }
92
+ : `https://${item.office_pathname}/success_new/${item.id}`,
93
+ query: {
94
+ ...(isApp ? { isApp: true } : {})
95
+ }
96
+ }}
92
97
  target={item.center_code === props.center_code ? '' : '_blank'}
93
98
  className={
94
99
  ' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'
@@ -18,5 +18,6 @@ declare const Trend: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
+ isApp: boolean;
21
22
  }) => React.JSX.Element;
22
23
  export default Trend;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Trend = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,7 +41,10 @@ const Trend = (props) => {
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
43
43
  const title = item.title.split('|');
44
- return (<Link target={'_blank'} href={'https://www.daeryunlaw.com/trend/' + item.idx} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
44
+ return (<Link target={'_blank'} href={{
45
+ pathname: `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
46
+ item.idx
47
+ }} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
45
48
  <p className={'line-clamp-2 h-[70px] text-[20px] font-[800] text-[#285FA7] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
46
49
  {title.length > 1 ? (<>
47
50
  {title[0]}
@@ -25,8 +25,9 @@ const Trend = (props: {
25
25
  trend: number;
26
26
  };
27
27
  loading: boolean;
28
+ isApp: boolean;
28
29
  }) => {
29
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
30
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
30
31
 
31
32
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
33
  const [allTabList, setAllTabList] = useState<ITrendTypes[]>([]);
@@ -85,7 +86,11 @@ const Trend = (props: {
85
86
  return (
86
87
  <Link
87
88
  target={'_blank'}
88
- href={'https://www.daeryunlaw.com/trend/' + item.idx}
89
+ href={{
90
+ pathname:
91
+ `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
92
+ item.idx
93
+ }}
89
94
  key={'trend' + item.idx}
90
95
  className={
91
96
  'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '
@@ -6,8 +6,10 @@ import imgExpand from '../../../asset/images/map/expand.webp';
6
6
  import imgMap from '../../../asset/images/map/map.webp';
7
7
  import imgShare from '../../../asset/images/map/share.webp';
8
8
  import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
  const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
11
  var _a, _b, _c;
12
+ const isApp = useIsApp();
11
13
  return (<div ref={targetRef} className="block md:mt-[5%] lg:hidden">
12
14
  <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
13
15
  <div className="flex flex-col gap-4 md:flex-row">
@@ -16,7 +18,10 @@ const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare,
16
18
  <h2 className="break-keep text-[18px] font-[800] text-[#0D2B52] md:text-[18px] lg:text-[28px]">
17
19
  {mapInfo.title}
18
20
  </h2>
19
- {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
21
+ {mapInfo.domain && (<Link href={{
22
+ pathname: `https://${mapInfo.domain}`,
23
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
24
+ }} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
20
25
  <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
21
26
  <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
22
27
  </span>
@@ -9,6 +9,7 @@ import imgMap from '../../../asset/images/map/map.webp';
9
9
  import imgShare from '../../../asset/images/map/share.webp';
10
10
  import imgYoutube from '../../../asset/images/map/youtube.webp';
11
11
  import { ForwardedRef } from 'react';
12
+ import useIsApp from '../../hook/useIsApp';
12
13
 
13
14
  const MobileMapKeyDetail = ({
14
15
  h1Title,
@@ -25,6 +26,8 @@ const MobileMapKeyDetail = ({
25
26
  mapShare: (item: IMap) => Promise<void>;
26
27
  targetRef: ForwardedRef<HTMLDivElement>;
27
28
  }) => {
29
+ const isApp = useIsApp();
30
+
28
31
  return (
29
32
  <div ref={targetRef} className="block md:mt-[5%] lg:hidden">
30
33
  <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
@@ -36,7 +39,12 @@ const MobileMapKeyDetail = ({
36
39
  </h2>
37
40
  {mapInfo.domain && (
38
41
  <Link
39
- href={`https://${mapInfo.domain}`}
42
+ href={{
43
+ pathname: `https://${mapInfo.domain}`,
44
+ query: {
45
+ ...(isApp ? { isApp: true } : {})
46
+ }
47
+ }}
40
48
  target="_blank"
41
49
  className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]"
42
50
  >
@@ -6,8 +6,10 @@ import imgExpand from '../../../asset/images/map/expand.webp';
6
6
  import imgMap from '../../../asset/images/map/map.webp';
7
7
  import imgShare from '../../../asset/images/map/share.webp';
8
8
  import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
  const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
11
  var _a, _b, _c;
12
+ const isApp = useIsApp();
11
13
  return (<div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
12
14
  <div className="flex gap-10">
13
15
  <div className="w-[35%] text-center">
@@ -15,7 +17,10 @@ const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, tar
15
17
  <h2 className="break-keep font-[800] text-[#0D2B52] md:text-[20px] lg:text-[22px]">
16
18
  {mapInfo.title}
17
19
  </h2>
18
- {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
20
+ {mapInfo.domain && (<Link href={{
21
+ pathname: `https://${mapInfo.domain}`,
22
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
23
+ }} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
19
24
  <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
20
25
  <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
21
26
  </span>
@@ -8,6 +8,7 @@ import imgExpand from '../../../asset/images/map/expand.webp';
8
8
  import imgMap from '../../../asset/images/map/map.webp';
9
9
  import imgShare from '../../../asset/images/map/share.webp';
10
10
  import imgYoutube from '../../../asset/images/map/youtube.webp';
11
+ import useIsApp from '../../hook/useIsApp';
11
12
 
12
13
  const PcMapKeyDetail = ({
13
14
  h1Title,
@@ -24,6 +25,8 @@ const PcMapKeyDetail = ({
24
25
  mapShare: (item: IMap) => Promise<void>;
25
26
  targetRef: ForwardedRef<HTMLDivElement>;
26
27
  }) => {
28
+ const isApp = useIsApp();
29
+
27
30
  return (
28
31
  <div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
29
32
  <div className="flex gap-10">
@@ -34,7 +37,12 @@ const PcMapKeyDetail = ({
34
37
  </h2>
35
38
  {mapInfo.domain && (
36
39
  <Link
37
- href={`https://${mapInfo.domain}`}
40
+ href={{
41
+ pathname: `https://${mapInfo.domain}`,
42
+ query: {
43
+ ...(isApp ? { isApp: true } : {})
44
+ }
45
+ }}
38
46
  target="_blank"
39
47
  className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]"
40
48
  >
@@ -11214,6 +11214,10 @@ body {
11214
11214
  font-size: 28px;
11215
11215
  }
11216
11216
 
11217
+ .max-5xl\:text-\[32px\] {
11218
+ font-size: 32px;
11219
+ }
11220
+
11217
11221
  .max-5xl\:text-\[70px\] {
11218
11222
  font-size: 70px;
11219
11223
  }