@daeryun/dr_components 1.1.37 → 1.1.38
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/SuccessNew/components/H2Contents.jsx +5 -8
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +5 -11
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +5 -8
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +5 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3,17 +3,15 @@ import { htmlUrlDecode } from '../../../../lib';
|
|
|
3
3
|
const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
4
4
|
const { active_faq } = h2Template;
|
|
5
5
|
const getItemScope = () => {
|
|
6
|
-
const negativeActiveFaqValue =
|
|
6
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
7
7
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
8
|
-
console.log('H2 getItemScope, 이거 보이면 true');
|
|
9
8
|
return true;
|
|
10
9
|
}
|
|
11
10
|
return undefined;
|
|
12
11
|
};
|
|
13
12
|
const getItemProp = (category) => {
|
|
14
|
-
const negativeActiveFaqValue =
|
|
13
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
15
14
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
16
|
-
console.log('H2 getItemProp category : ', category);
|
|
17
15
|
switch (category) {
|
|
18
16
|
case 'mainEntity':
|
|
19
17
|
return 'mainEntity';
|
|
@@ -24,22 +22,21 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
24
22
|
case 'text':
|
|
25
23
|
return 'text';
|
|
26
24
|
default:
|
|
27
|
-
undefined;
|
|
25
|
+
return undefined;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
return undefined;
|
|
31
29
|
};
|
|
32
30
|
const getItemType = (category) => {
|
|
33
|
-
const negativeActiveFaqValue =
|
|
31
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
34
32
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
35
|
-
console.log('H2 getItemType category : ', category);
|
|
36
33
|
switch (category) {
|
|
37
34
|
case 'question':
|
|
38
35
|
return 'https://schema.org/Question';
|
|
39
36
|
case 'answer':
|
|
40
37
|
return 'https://schema.org/Answer';
|
|
41
38
|
default:
|
|
42
|
-
undefined;
|
|
39
|
+
return undefined;
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
42
|
return undefined;
|
|
@@ -17,11 +17,9 @@ const H2Contents = ({
|
|
|
17
17
|
const { active_faq } = h2Template;
|
|
18
18
|
|
|
19
19
|
const getItemScope = (): boolean | undefined => {
|
|
20
|
-
const negativeActiveFaqValue =
|
|
21
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
20
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
22
21
|
|
|
23
22
|
if (negativeActiveFaqValue && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
24
|
-
console.log('H2 getItemScope, 이거 보이면 true');
|
|
25
23
|
return true;
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -29,11 +27,9 @@ const H2Contents = ({
|
|
|
29
27
|
};
|
|
30
28
|
|
|
31
29
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
32
|
-
const negativeActiveFaqValue =
|
|
33
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
30
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
34
31
|
|
|
35
32
|
if (negativeActiveFaqValue && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
36
|
-
console.log('H2 getItemProp category : ', category);
|
|
37
33
|
switch (category) {
|
|
38
34
|
case 'mainEntity':
|
|
39
35
|
return 'mainEntity';
|
|
@@ -44,7 +40,7 @@ const H2Contents = ({
|
|
|
44
40
|
case 'text':
|
|
45
41
|
return 'text';
|
|
46
42
|
default:
|
|
47
|
-
undefined;
|
|
43
|
+
return undefined;
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
@@ -52,18 +48,16 @@ const H2Contents = ({
|
|
|
52
48
|
};
|
|
53
49
|
|
|
54
50
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
55
|
-
const negativeActiveFaqValue =
|
|
56
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
51
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
57
52
|
|
|
58
53
|
if (negativeActiveFaqValue && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
59
|
-
console.log('H2 getItemType category : ', category);
|
|
60
54
|
switch (category) {
|
|
61
55
|
case 'question':
|
|
62
56
|
return 'https://schema.org/Question';
|
|
63
57
|
case 'answer':
|
|
64
58
|
return 'https://schema.org/Answer';
|
|
65
59
|
default:
|
|
66
|
-
undefined;
|
|
60
|
+
return undefined;
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
63
|
|
|
@@ -5,17 +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
|
-
const negativeActiveFaqValue =
|
|
8
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
9
9
|
if (negativeActiveFaqValue) {
|
|
10
|
-
console.log('H3 getItemScope, 이거 보이면 true');
|
|
11
10
|
return true;
|
|
12
11
|
}
|
|
13
12
|
return undefined;
|
|
14
13
|
};
|
|
15
14
|
const getItemProp = (category) => {
|
|
16
|
-
const negativeActiveFaqValue =
|
|
15
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
17
16
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
18
|
-
console.log('H3 getItemProp category : ', category);
|
|
19
17
|
switch (category) {
|
|
20
18
|
case 'mainEntity':
|
|
21
19
|
return 'mainEntity';
|
|
@@ -26,22 +24,21 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
26
24
|
case 'text':
|
|
27
25
|
return 'text';
|
|
28
26
|
default:
|
|
29
|
-
undefined;
|
|
27
|
+
return undefined;
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
30
|
return undefined;
|
|
33
31
|
};
|
|
34
32
|
const getItemType = (category) => {
|
|
35
|
-
const negativeActiveFaqValue =
|
|
33
|
+
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
36
34
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
37
|
-
console.log('H2 getItemType category : ', category);
|
|
38
35
|
switch (category) {
|
|
39
36
|
case 'question':
|
|
40
37
|
return 'https://schema.org/Question';
|
|
41
38
|
case 'answer':
|
|
42
39
|
return 'https://schema.org/Answer';
|
|
43
40
|
default:
|
|
44
|
-
undefined;
|
|
41
|
+
return undefined;
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
return undefined;
|
|
@@ -11,11 +11,9 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
11
11
|
const { active_faq } = h3Template;
|
|
12
12
|
|
|
13
13
|
const getItemScope = (): boolean | undefined => {
|
|
14
|
-
const negativeActiveFaqValue =
|
|
15
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
14
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
16
15
|
|
|
17
16
|
if (negativeActiveFaqValue) {
|
|
18
|
-
console.log('H3 getItemScope, 이거 보이면 true');
|
|
19
17
|
return true;
|
|
20
18
|
}
|
|
21
19
|
|
|
@@ -23,11 +21,9 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
23
21
|
};
|
|
24
22
|
|
|
25
23
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
26
|
-
const negativeActiveFaqValue =
|
|
27
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
24
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
28
25
|
|
|
29
26
|
if (negativeActiveFaqValue && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
30
|
-
console.log('H3 getItemProp category : ', category);
|
|
31
27
|
switch (category) {
|
|
32
28
|
case 'mainEntity':
|
|
33
29
|
return 'mainEntity';
|
|
@@ -38,7 +34,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
38
34
|
case 'text':
|
|
39
35
|
return 'text';
|
|
40
36
|
default:
|
|
41
|
-
undefined;
|
|
37
|
+
return undefined;
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
|
|
@@ -46,18 +42,16 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
46
42
|
};
|
|
47
43
|
|
|
48
44
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
49
|
-
const negativeActiveFaqValue =
|
|
50
|
-
(active_faq === false || active_faq === null || active_faq === undefined) && false;
|
|
45
|
+
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
51
46
|
|
|
52
47
|
if (negativeActiveFaqValue && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
53
|
-
console.log('H2 getItemType category : ', category);
|
|
54
48
|
switch (category) {
|
|
55
49
|
case 'question':
|
|
56
50
|
return 'https://schema.org/Question';
|
|
57
51
|
case 'answer':
|
|
58
52
|
return 'https://schema.org/Answer';
|
|
59
53
|
default:
|
|
60
|
-
undefined;
|
|
54
|
+
return undefined;
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
57
|
|