@daeryun/dr_components 0.9.99 → 1.0.1
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 +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +1 -1
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +10 -9
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +13 -9
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +10 -9
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +13 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -88,7 +88,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
88
88
|
};
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
|
-
if (faqElementMaxCountInContents >=
|
|
91
|
+
if (faqElementMaxCountInContents >= 1) {
|
|
92
92
|
template.description = template.description.replaceAll(/<div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage">/gi, '<div>');
|
|
93
93
|
return template;
|
|
94
94
|
}
|
|
@@ -120,7 +120,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
120
120
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
|
-
if ((faqElementMaxCountInContents as number) >=
|
|
123
|
+
if ((faqElementMaxCountInContents as number) >= 1) {
|
|
124
124
|
template.description = template.description.replaceAll(
|
|
125
125
|
/<div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage">/gi,
|
|
126
126
|
'<div>'
|
|
@@ -3,16 +3,15 @@ import { htmlUrlDecode } from '../../../../lib';
|
|
|
3
3
|
const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
4
4
|
const { active_faq } = h2Template;
|
|
5
5
|
const getItemScope = () => {
|
|
6
|
+
if (active_faq === false && faqCount === 0) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
6
9
|
if (active_faq || faqCount === 0) {
|
|
7
10
|
return undefined;
|
|
8
11
|
}
|
|
9
|
-
return true;
|
|
10
12
|
};
|
|
11
13
|
const getItemProp = (category) => {
|
|
12
|
-
if (active_faq
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
14
|
+
if (active_faq === false && faqCount === 0) {
|
|
16
15
|
switch (category) {
|
|
17
16
|
case 'mainEntity':
|
|
18
17
|
return 'mainEntity';
|
|
@@ -26,12 +25,12 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
26
25
|
undefined;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
};
|
|
30
|
-
const getItemType = (category) => {
|
|
31
28
|
if (active_faq || faqCount === 0) {
|
|
32
29
|
return undefined;
|
|
33
30
|
}
|
|
34
|
-
|
|
31
|
+
};
|
|
32
|
+
const getItemType = (category) => {
|
|
33
|
+
if (active_faq === false && faqCount === 0) {
|
|
35
34
|
switch (category) {
|
|
36
35
|
case 'question':
|
|
37
36
|
return 'https://schema.org/Question';
|
|
@@ -41,7 +40,9 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
41
40
|
undefined;
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
if (active_faq || faqCount === 0) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
45
46
|
};
|
|
46
47
|
return (<div itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
47
48
|
<h2 className={'flex h-fit w-full items-center break-keep rounded-[40px] bg-[#285FA7] py-[6.75px] pl-[40px] pr-[20px] -indent-[20px] text-[20px] font-bold leading-[28px] tracking-tight text-white sm:pl-[46px] sm:pr-[26px] sm:text-[26px] sm:leading-[34px] lg:pl-[53px] lg:pr-[33px] lg:text-[31.5px] lg:leading-[38px]'} id={h2Template.idx.toString()} itemProp={getItemProp('name')}>
|
|
@@ -17,17 +17,17 @@ const H2Contents = ({
|
|
|
17
17
|
const { active_faq } = h2Template;
|
|
18
18
|
|
|
19
19
|
const getItemScope = (): boolean | undefined => {
|
|
20
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
if (active_faq || (faqCount as number) === 0) {
|
|
21
25
|
return undefined;
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
return true;
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
28
|
-
if (active_faq
|
|
29
|
-
return undefined;
|
|
30
|
-
} else {
|
|
30
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
31
31
|
switch (category) {
|
|
32
32
|
case 'mainEntity':
|
|
33
33
|
return 'mainEntity';
|
|
@@ -41,12 +41,14 @@ const H2Contents = ({
|
|
|
41
41
|
undefined;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
};
|
|
45
44
|
|
|
46
|
-
const getItemType = (category: ItemTypes): string | undefined => {
|
|
47
45
|
if (active_faq || (faqCount as number) === 0) {
|
|
48
46
|
return undefined;
|
|
49
|
-
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const getItemType = (category: ItemTypes): string | undefined => {
|
|
51
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
50
52
|
switch (category) {
|
|
51
53
|
case 'question':
|
|
52
54
|
return 'https://schema.org/Question';
|
|
@@ -57,7 +59,9 @@ const H2Contents = ({
|
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
if (active_faq || (faqCount as number) === 0) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
return (
|
|
@@ -5,16 +5,15 @@ import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
|
|
|
5
5
|
const H3Contents = ({ h3Template, faqCount }) => {
|
|
6
6
|
const { active_faq } = h3Template;
|
|
7
7
|
const getItemScope = () => {
|
|
8
|
+
if (active_faq === false && faqCount === 0) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
8
11
|
if (active_faq || faqCount === 0) {
|
|
9
12
|
return undefined;
|
|
10
13
|
}
|
|
11
|
-
return true;
|
|
12
14
|
};
|
|
13
15
|
const getItemProp = (category) => {
|
|
14
|
-
if (active_faq
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
16
|
+
if (active_faq === false && faqCount === 0) {
|
|
18
17
|
switch (category) {
|
|
19
18
|
case 'mainEntity':
|
|
20
19
|
return 'mainEntity';
|
|
@@ -28,12 +27,12 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
28
27
|
undefined;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
|
-
};
|
|
32
|
-
const getItemType = (category) => {
|
|
33
30
|
if (active_faq || faqCount === 0) {
|
|
34
31
|
return undefined;
|
|
35
32
|
}
|
|
36
|
-
|
|
33
|
+
};
|
|
34
|
+
const getItemType = (category) => {
|
|
35
|
+
if (active_faq === false && faqCount === 0) {
|
|
37
36
|
switch (category) {
|
|
38
37
|
case 'question':
|
|
39
38
|
return 'https://schema.org/Question';
|
|
@@ -43,7 +42,9 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
43
42
|
undefined;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
|
|
45
|
+
if (active_faq || faqCount === 0) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
47
48
|
};
|
|
48
49
|
return (<>
|
|
49
50
|
<div className={'px-[10px] sm:px-[18px]'} key={'h3영역' + h3Template.idx} itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
@@ -11,16 +11,17 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
11
11
|
const { active_faq } = h3Template;
|
|
12
12
|
|
|
13
13
|
const getItemScope = (): boolean | undefined => {
|
|
14
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
if (active_faq || (faqCount as number) === 0) {
|
|
15
19
|
return undefined;
|
|
16
20
|
}
|
|
17
|
-
return true;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
21
|
-
if (active_faq
|
|
22
|
-
return undefined;
|
|
23
|
-
} else {
|
|
24
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
24
25
|
switch (category) {
|
|
25
26
|
case 'mainEntity':
|
|
26
27
|
return 'mainEntity';
|
|
@@ -34,12 +35,14 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
34
35
|
undefined;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
};
|
|
38
38
|
|
|
39
|
-
const getItemType = (category: ItemTypes): string | undefined => {
|
|
40
39
|
if (active_faq || (faqCount as number) === 0) {
|
|
41
40
|
return undefined;
|
|
42
|
-
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const getItemType = (category: ItemTypes): string | undefined => {
|
|
45
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
43
46
|
switch (category) {
|
|
44
47
|
case 'question':
|
|
45
48
|
return 'https://schema.org/Question';
|
|
@@ -50,7 +53,9 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
if (active_faq || (faqCount as number) === 0) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
54
59
|
};
|
|
55
60
|
|
|
56
61
|
return (
|