@gudhub/ssg-web-components-library 1.0.129 → 1.0.130
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/package.json
CHANGED
|
@@ -10,11 +10,15 @@ crm-services-banner {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
.container {
|
|
15
|
+
margin-top: 35px;
|
|
16
|
+
}
|
|
13
17
|
.main-subtitle {
|
|
14
18
|
margin-bottom: 40px;
|
|
15
19
|
}
|
|
16
20
|
.banner_list, .text {
|
|
17
|
-
color:
|
|
21
|
+
color: #05183A;
|
|
18
22
|
margin-bottom: 40px;
|
|
19
23
|
}
|
|
20
24
|
.text p {
|
|
@@ -32,6 +36,14 @@ crm-services-banner {
|
|
|
32
36
|
gap: 20px;
|
|
33
37
|
.left {
|
|
34
38
|
flex-shrink: 1;
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
color: #05183A;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.main-subtitle {
|
|
45
|
+
color: #05183A;
|
|
46
|
+
}
|
|
35
47
|
}
|
|
36
48
|
.right {
|
|
37
49
|
display: flex;
|
|
@@ -42,6 +54,8 @@ crm-services-banner {
|
|
|
42
54
|
img {
|
|
43
55
|
width: 100%;
|
|
44
56
|
max-width: 100%;
|
|
57
|
+
|
|
58
|
+
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
|
|
45
59
|
}
|
|
46
60
|
}
|
|
47
61
|
}
|
|
@@ -46,6 +46,13 @@ class TitleTag extends GHComponent {
|
|
|
46
46
|
const app = await gudhub.getApp(appId);
|
|
47
47
|
const items = app.items_list;
|
|
48
48
|
|
|
49
|
+
const chapter = this.hasAttribute('data-chapter')
|
|
50
|
+
? this.getAttribute('data-chapter')
|
|
51
|
+
: 'pages';
|
|
52
|
+
|
|
53
|
+
const config = window.getConfig();
|
|
54
|
+
const chapterConfig = config?.chapters?.[chapter];
|
|
55
|
+
|
|
49
56
|
let item;
|
|
50
57
|
let fieldId;
|
|
51
58
|
let value;
|
|
@@ -59,9 +66,17 @@ class TitleTag extends GHComponent {
|
|
|
59
66
|
}
|
|
60
67
|
});
|
|
61
68
|
}
|
|
62
|
-
fieldId =
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
fieldId =
|
|
70
|
+
this.getAttribute('data-meta-title') ||
|
|
71
|
+
chapterConfig?.meta_title_field_id ||
|
|
72
|
+
chapterConfig?.title_field_id ||
|
|
73
|
+
app.field_list.find(
|
|
74
|
+
findedField => findedField.name_space === 'title'
|
|
75
|
+
)?.field_id;
|
|
76
|
+
|
|
77
|
+
value = item.fields.find(
|
|
78
|
+
findedField => String(findedField.field_id) === String(fieldId)
|
|
79
|
+
)?.field_value;
|
|
65
80
|
|
|
66
81
|
const title = document.createElement('title');
|
|
67
82
|
title.innerText = value;
|