@daeryun/dr_components 0.9.82 → 0.9.83
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.
|
@@ -89,27 +89,12 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
};
|
|
90
90
|
const convertFaqItemType = (template) => {
|
|
91
91
|
if (faqCount >= 2) {
|
|
92
|
-
const before = template.description;
|
|
93
92
|
template.description = template.description
|
|
94
93
|
.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
|
|
95
|
-
if (before !== template.description) {
|
|
96
|
-
console.log('✅ FAQPage itemType 제거됨');
|
|
97
|
-
console.log('Before:', before.substring(0, 200) + '...');
|
|
98
|
-
console.log('After:', template.description.substring(0, 200) + '...');
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
console.log('❌ FAQPage itemType 제거되지 않음 - 패턴을 찾을 수 없음');
|
|
102
|
-
console.log('Content sample:', before.substring(0, 200) + '...');
|
|
103
|
-
}
|
|
104
94
|
return template;
|
|
105
95
|
}
|
|
106
96
|
return template;
|
|
107
97
|
};
|
|
108
|
-
// Microdata 설정 확인
|
|
109
|
-
console.log('isFaqActive:', isFaqActive);
|
|
110
|
-
console.log('faqCount : ', faqCount);
|
|
111
|
-
console.log('itemType:', handleFaqItemType(isFaqActive, faqCount));
|
|
112
|
-
console.log('itemScope:', handleFaqItemScope(isFaqActive, faqCount));
|
|
113
98
|
return (<div itemScope={handleFaqItemScope(isFaqActive, faqCount)} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
|
|
114
99
|
<div id={'sub_contents'}>
|
|
115
100
|
<div className="font-[SUIT] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
|
|
@@ -121,30 +121,15 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
121
121
|
|
|
122
122
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
123
123
|
if (faqCount as number >= 2) {
|
|
124
|
-
const before = template.description;
|
|
125
124
|
template.description = template.description
|
|
126
125
|
.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
|
|
127
126
|
|
|
128
|
-
if (before !== template.description) {
|
|
129
|
-
console.log('✅ FAQPage itemType 제거됨');
|
|
130
|
-
console.log('Before:', before.substring(0, 200) + '...');
|
|
131
|
-
console.log('After:', template.description.substring(0, 200) + '...');
|
|
132
|
-
} else {
|
|
133
|
-
console.log('❌ FAQPage itemType 제거되지 않음 - 패턴을 찾을 수 없음');
|
|
134
|
-
console.log('Content sample:', before.substring(0, 200) + '...');
|
|
135
|
-
}
|
|
136
|
-
|
|
137
127
|
return template;
|
|
138
128
|
}
|
|
139
129
|
|
|
140
130
|
return template;
|
|
141
131
|
};
|
|
142
132
|
|
|
143
|
-
// Microdata 설정 확인
|
|
144
|
-
console.log('isFaqActive:', isFaqActive);
|
|
145
|
-
console.log('faqCount : ', faqCount);
|
|
146
|
-
console.log('itemType:', handleFaqItemType(isFaqActive, faqCount as number));
|
|
147
|
-
console.log('itemScope:', handleFaqItemScope(isFaqActive, faqCount as number));
|
|
148
133
|
|
|
149
134
|
return (
|
|
150
135
|
<div
|