@daeryun/dr_components 1.2.62 → 1.2.63
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/page/FieldNew/FieldNewView.jsx +4 -4
- package/dist/components/page/FieldNew/FieldNewView.tsx +4 -4
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +10 -12
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +11 -13
- package/dist/components/page/SuccessNew/SuccessNewView.jsx +4 -4
- package/dist/components/page/SuccessNew/SuccessNewView.tsx +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -46,19 +46,19 @@ const FieldNewView = ({ data, tel }) => {
|
|
|
46
46
|
};
|
|
47
47
|
const handleFaqItemType = (isFaqActive, faqElementMaxCountInContents) => {
|
|
48
48
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
49
|
-
return
|
|
49
|
+
return undefined;
|
|
50
50
|
}
|
|
51
51
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
52
|
-
return
|
|
52
|
+
return 'https://schema.org/FAQPage';
|
|
53
53
|
}
|
|
54
54
|
return 'https://schema.org/FAQPage';
|
|
55
55
|
};
|
|
56
56
|
const handleFaqItemScope = (isFaqActive, faqElementMaxCountInContents) => {
|
|
57
57
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
58
|
-
return
|
|
58
|
+
return undefined;
|
|
59
59
|
}
|
|
60
60
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
61
|
-
return
|
|
61
|
+
return true;
|
|
62
62
|
}
|
|
63
63
|
return true;
|
|
64
64
|
};
|
|
@@ -64,11 +64,11 @@ const FieldNewView = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
64
64
|
|
|
65
65
|
const handleFaqItemType = (isFaqActive: boolean, faqElementMaxCountInContents?: number): string | undefined => {
|
|
66
66
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
67
|
-
return
|
|
67
|
+
return undefined;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
71
|
-
return
|
|
71
|
+
return 'https://schema.org/FAQPage';
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
return 'https://schema.org/FAQPage';
|
|
@@ -76,11 +76,11 @@ const FieldNewView = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
76
76
|
|
|
77
77
|
const handleFaqItemScope = (isFaqActive: boolean, faqElementMaxCountInContents?: number): true | undefined => {
|
|
78
78
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
79
|
-
return
|
|
79
|
+
return undefined;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
83
|
-
return
|
|
83
|
+
return true;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
return true;
|
|
@@ -47,37 +47,37 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
47
47
|
};
|
|
48
48
|
const handleFaqItemType = (isFaqActive, faqElementMaxCountInContents) => {
|
|
49
49
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
50
|
-
return
|
|
50
|
+
return undefined;
|
|
51
51
|
}
|
|
52
52
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
53
|
-
return
|
|
53
|
+
return 'https://schema.org/FAQPage';
|
|
54
54
|
}
|
|
55
55
|
return 'https://schema.org/FAQPage';
|
|
56
56
|
};
|
|
57
57
|
const handleFaqItemScope = (isFaqActive, faqElementMaxCountInContents) => {
|
|
58
58
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
59
|
-
return
|
|
59
|
+
return undefined;
|
|
60
60
|
}
|
|
61
61
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
62
|
-
return
|
|
62
|
+
return true;
|
|
63
63
|
}
|
|
64
64
|
return true;
|
|
65
65
|
};
|
|
66
66
|
const convertFaqItemType = (template) => {
|
|
67
67
|
if (faqElementMaxCountInContents >= 2) {
|
|
68
|
-
const before = template.description;
|
|
68
|
+
// const before = template.description;
|
|
69
69
|
// faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
70
70
|
template.description = template.description.replaceAll('<div itemscope="" itemtype="https://schema.org/FAQPage">', '<div>');
|
|
71
71
|
// 교체가 되었는지 확인
|
|
72
|
-
console.log('교체 발생:', before !== template.description);
|
|
73
|
-
console.log('FAQPage 포함 여부:', template.description.includes('FAQPage'));
|
|
72
|
+
// console.log('교체 발생:', before !== template.description);
|
|
73
|
+
// console.log('FAQPage 포함 여부:', template.description.includes('FAQPage'));
|
|
74
74
|
return template;
|
|
75
75
|
}
|
|
76
76
|
return template;
|
|
77
77
|
};
|
|
78
|
-
console.log('isFaqActive:', isFaqActive);
|
|
79
|
-
console.log('faqElementMaxCountInContents:', faqElementMaxCountInContents);
|
|
80
|
-
console.log('handleFaqItemType 결과:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents));
|
|
78
|
+
// console.log('isFaqActive:', isFaqActive);
|
|
79
|
+
// console.log('faqElementMaxCountInContents:', faqElementMaxCountInContents);
|
|
80
|
+
// console.log('handleFaqItemType 결과:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents as number));
|
|
81
81
|
// 변호사 6명 맞추기
|
|
82
82
|
useEffect(() => {
|
|
83
83
|
const originLawyerLength = lawyerData.length;
|
|
@@ -108,8 +108,6 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}, [template]);
|
|
111
|
-
console.log('itemScope:', handleFaqItemScope(isFaqActive, faqElementMaxCountInContents));
|
|
112
|
-
console.log('itemType:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents));
|
|
113
111
|
return (<div itemScope={handleFaqItemScope(isFaqActive, faqElementMaxCountInContents)} itemType={handleFaqItemType(isFaqActive, faqElementMaxCountInContents)} ref={printRef}>
|
|
114
112
|
<div id={'sub_contents'}>
|
|
115
113
|
<LawInfoWrapper>
|
|
@@ -71,11 +71,11 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
71
71
|
|
|
72
72
|
const handleFaqItemType = (isFaqActive: boolean, faqElementMaxCountInContents?: number): string | undefined => {
|
|
73
73
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
74
|
-
return
|
|
74
|
+
return undefined;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
78
|
-
return
|
|
78
|
+
return 'https://schema.org/FAQPage';
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
return 'https://schema.org/FAQPage';
|
|
@@ -83,11 +83,11 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
83
83
|
|
|
84
84
|
const handleFaqItemScope = (isFaqActive: boolean, faqElementMaxCountInContents?: number): true | undefined => {
|
|
85
85
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
86
|
-
return
|
|
86
|
+
return undefined;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
90
|
-
return
|
|
90
|
+
return true;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
return true;
|
|
@@ -95,7 +95,8 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
95
95
|
|
|
96
96
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
97
97
|
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
98
|
-
const before = template.description;
|
|
98
|
+
// const before = template.description;
|
|
99
|
+
|
|
99
100
|
// faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
100
101
|
template.description = template.description.replaceAll(
|
|
101
102
|
'<div itemscope="" itemtype="https://schema.org/FAQPage">',
|
|
@@ -103,8 +104,8 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
103
104
|
);
|
|
104
105
|
|
|
105
106
|
// 교체가 되었는지 확인
|
|
106
|
-
console.log('교체 발생:', before !== template.description);
|
|
107
|
-
console.log('FAQPage 포함 여부:', template.description.includes('FAQPage'));
|
|
107
|
+
// console.log('교체 발생:', before !== template.description);
|
|
108
|
+
// console.log('FAQPage 포함 여부:', template.description.includes('FAQPage'));
|
|
108
109
|
|
|
109
110
|
return template;
|
|
110
111
|
}
|
|
@@ -112,9 +113,9 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
112
113
|
return template;
|
|
113
114
|
};
|
|
114
115
|
|
|
115
|
-
console.log('isFaqActive:', isFaqActive);
|
|
116
|
-
console.log('faqElementMaxCountInContents:', faqElementMaxCountInContents);
|
|
117
|
-
console.log('handleFaqItemType 결과:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents as number));
|
|
116
|
+
// console.log('isFaqActive:', isFaqActive);
|
|
117
|
+
// console.log('faqElementMaxCountInContents:', faqElementMaxCountInContents);
|
|
118
|
+
// console.log('handleFaqItemType 결과:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents as number));
|
|
118
119
|
|
|
119
120
|
// 변호사 6명 맞추기
|
|
120
121
|
useEffect(() => {
|
|
@@ -150,9 +151,6 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
150
151
|
}
|
|
151
152
|
}, [template]);
|
|
152
153
|
|
|
153
|
-
console.log('itemScope:', handleFaqItemScope(isFaqActive, faqElementMaxCountInContents as number));
|
|
154
|
-
console.log('itemType:', handleFaqItemType(isFaqActive, faqElementMaxCountInContents as number));
|
|
155
|
-
|
|
156
154
|
return (
|
|
157
155
|
<div
|
|
158
156
|
itemScope={handleFaqItemScope(isFaqActive, faqElementMaxCountInContents as number)}
|
|
@@ -59,19 +59,19 @@ const SuccessNewView = ({ data, tel }) => {
|
|
|
59
59
|
};
|
|
60
60
|
const handleFaqItemType = (isFaqActive, faqElementMaxCountInContents) => {
|
|
61
61
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
62
|
-
return
|
|
62
|
+
return undefined;
|
|
63
63
|
}
|
|
64
64
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
65
|
-
return
|
|
65
|
+
return 'https://schema.org/FAQPage';
|
|
66
66
|
}
|
|
67
67
|
return 'https://schema.org/FAQPage';
|
|
68
68
|
};
|
|
69
69
|
const handleFaqItemScope = (isFaqActive, faqElementMaxCountInContents) => {
|
|
70
70
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
71
|
-
return
|
|
71
|
+
return undefined;
|
|
72
72
|
}
|
|
73
73
|
if (isFaqActive && faqElementMaxCountInContents >= 2) {
|
|
74
|
-
return
|
|
74
|
+
return true;
|
|
75
75
|
}
|
|
76
76
|
return true;
|
|
77
77
|
};
|
|
@@ -90,11 +90,11 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
90
90
|
|
|
91
91
|
const handleFaqItemType = (isFaqActive: boolean, faqElementMaxCountInContents?: number): string | undefined => {
|
|
92
92
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
93
|
-
return
|
|
93
|
+
return undefined;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
97
|
-
return
|
|
97
|
+
return 'https://schema.org/FAQPage';
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
return 'https://schema.org/FAQPage';
|
|
@@ -102,11 +102,11 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
102
102
|
|
|
103
103
|
const handleFaqItemScope = (isFaqActive: boolean, faqElementMaxCountInContents?: number): true | undefined => {
|
|
104
104
|
if (isFaqActive && faqElementMaxCountInContents === 0) {
|
|
105
|
-
return
|
|
105
|
+
return undefined;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
|
|
109
|
-
return
|
|
109
|
+
return true;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
return true;
|