@daeryun/dr_components 1.0.10 → 1.0.12
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/LawInfoNew/LawInfoNew.jsx +3 -2
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +5 -4
- package/dist/components/page/SuccessNew/SuccessNewType.d.ts +1 -1
- package/dist/components/page/SuccessNew/SuccessNewType.ts +1 -1
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +3 -3
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +3 -3
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +3 -3
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -89,7 +89,8 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
91
|
if (faqElementMaxCountInContents >= 2) {
|
|
92
|
-
template
|
|
92
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
93
|
+
template.description = template.description.replaceAll('<div itemscope="" itemtype="https://schema.org/FAQPage">', '<div>');
|
|
93
94
|
return template;
|
|
94
95
|
}
|
|
95
96
|
return template;
|
|
@@ -131,7 +132,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
131
132
|
{/*h2*/}
|
|
132
133
|
{h2List &&
|
|
133
134
|
h2List.map((h2Template, index) => {
|
|
134
|
-
console.log('h2Template.faqCount : ', h2Template.faqCount);
|
|
135
|
+
console.log('h2Template.faqCount : ', h2Template === null || h2Template === void 0 ? void 0 : h2Template.faqCount);
|
|
135
136
|
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
|
|
136
137
|
<H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={h2Template.faqCount}/>
|
|
137
138
|
|
|
@@ -121,8 +121,9 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
123
|
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
124
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
124
125
|
template.description = template.description.replaceAll(
|
|
125
|
-
|
|
126
|
+
'<div itemscope="" itemtype="https://schema.org/FAQPage">',
|
|
126
127
|
'<div>'
|
|
127
128
|
);
|
|
128
129
|
|
|
@@ -205,7 +206,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
205
206
|
{/*h2*/}
|
|
206
207
|
{h2List &&
|
|
207
208
|
h2List.map((h2Template, index) => {
|
|
208
|
-
console.log('h2Template.faqCount : ', h2Template
|
|
209
|
+
console.log('h2Template.faqCount : ', h2Template?.faqCount);
|
|
209
210
|
return (
|
|
210
211
|
<section
|
|
211
212
|
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
@@ -214,7 +215,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
214
215
|
<H2Contents
|
|
215
216
|
h2Template={convertFaqItemType(h2Template)}
|
|
216
217
|
index={index}
|
|
217
|
-
faqCount={h2Template.faqCount
|
|
218
|
+
faqCount={h2Template.faqCount}
|
|
218
219
|
/>
|
|
219
220
|
|
|
220
221
|
{/*h3*/}
|
|
@@ -238,7 +239,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
238
239
|
<H3Contents
|
|
239
240
|
h3Template={convertFaqItemType(h3Template)}
|
|
240
241
|
key={'h3영역' + h3Template.idx}
|
|
241
|
-
faqCount={h3Template.faqCount
|
|
242
|
+
faqCount={h3Template.faqCount}
|
|
242
243
|
/>
|
|
243
244
|
{(refer_is_use &&
|
|
244
245
|
refer_length > 0 &&
|
|
@@ -5,13 +5,13 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
5
5
|
console.log('h2 active_faq :', active_faq);
|
|
6
6
|
console.log('h2 faqCount :', faqCount);
|
|
7
7
|
const getItemScope = () => {
|
|
8
|
-
if (active_faq === false && faqCount === 0) {
|
|
8
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
9
9
|
return true;
|
|
10
10
|
}
|
|
11
11
|
return undefined;
|
|
12
12
|
};
|
|
13
13
|
const getItemProp = (category) => {
|
|
14
|
-
if (active_faq === false && faqCount === 0) {
|
|
14
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
15
15
|
switch (category) {
|
|
16
16
|
case 'mainEntity':
|
|
17
17
|
return 'mainEntity';
|
|
@@ -28,7 +28,7 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
28
28
|
return undefined;
|
|
29
29
|
};
|
|
30
30
|
const getItemType = (category) => {
|
|
31
|
-
if (active_faq === false && faqCount === 0) {
|
|
31
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
32
32
|
switch (category) {
|
|
33
33
|
case 'question':
|
|
34
34
|
return 'https://schema.org/Question';
|
|
@@ -19,7 +19,7 @@ const H2Contents = ({
|
|
|
19
19
|
console.log('h2 faqCount :', faqCount);
|
|
20
20
|
|
|
21
21
|
const getItemScope = (): boolean | undefined => {
|
|
22
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
22
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
23
23
|
return true;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ const H2Contents = ({
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
30
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
30
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
31
31
|
switch (category) {
|
|
32
32
|
case 'mainEntity':
|
|
33
33
|
return 'mainEntity';
|
|
@@ -46,7 +46,7 @@ const H2Contents = ({
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
49
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
49
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
50
50
|
switch (category) {
|
|
51
51
|
case 'question':
|
|
52
52
|
return 'https://schema.org/Question';
|
|
@@ -7,13 +7,13 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
7
7
|
console.log('h3 active_faq :', active_faq);
|
|
8
8
|
console.log('h3 faqCount :', faqCount);
|
|
9
9
|
const getItemScope = () => {
|
|
10
|
-
if (active_faq === false && faqCount === 0) {
|
|
10
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
13
13
|
return undefined;
|
|
14
14
|
};
|
|
15
15
|
const getItemProp = (category) => {
|
|
16
|
-
if (active_faq === false && faqCount === 0) {
|
|
16
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
17
17
|
switch (category) {
|
|
18
18
|
case 'mainEntity':
|
|
19
19
|
return 'mainEntity';
|
|
@@ -30,7 +30,7 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
30
30
|
return undefined;
|
|
31
31
|
};
|
|
32
32
|
const getItemType = (category) => {
|
|
33
|
-
if (active_faq === false && faqCount === 0) {
|
|
33
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
34
34
|
switch (category) {
|
|
35
35
|
case 'question':
|
|
36
36
|
return 'https://schema.org/Question';
|
|
@@ -13,7 +13,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
13
13
|
console.log('h3 faqCount :', faqCount);
|
|
14
14
|
|
|
15
15
|
const getItemScope = (): boolean | undefined => {
|
|
16
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
16
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
24
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
24
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
25
25
|
switch (category) {
|
|
26
26
|
case 'mainEntity':
|
|
27
27
|
return 'mainEntity';
|
|
@@ -40,7 +40,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
43
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
43
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
44
44
|
switch (category) {
|
|
45
45
|
case 'question':
|
|
46
46
|
return 'https://schema.org/Question';
|