wonder-image 1.2.4 → 1.2.6
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/frontend/body-end.js +1 -1
- package/dist/frontend/body-end.js.map +1 -1
- package/dist/frontend/head.css +1 -1
- package/dist/frontend/head.css.map +1 -1
- package/package.json +1 -1
- package/src/build/frontend/css/class/text.css +8 -0
- package/src/build/frontend/js/aos.js +4 -2
- package/src/build/frontend/js/form/place.js +8 -12
- package/webpack.config.js +12 -3
package/package.json
CHANGED
|
@@ -183,6 +183,10 @@ line-height: var(--text-small-line-height) !important;
|
|
|
183
183
|
font-family: var(--text-small-font-family) !important;
|
|
184
184
|
font-weight: var(--text-small-font-weight) !important;
|
|
185
185
|
}
|
|
186
|
+
/* Align */
|
|
187
|
+
.t-a-c { text-align: center !important; }
|
|
188
|
+
.t-a-l { text-align: left !important; }
|
|
189
|
+
.t-a-r { text-align: right !important; }
|
|
186
190
|
/* Font weight */
|
|
187
191
|
.fw-t-100 { font-weight: 100 !important; }
|
|
188
192
|
.fw-t-200 { font-weight: 200 !important; }
|
|
@@ -231,6 +235,10 @@ line-height: var(--text-small-line-height) !important;
|
|
|
231
235
|
font-family: var(--text-small-font-family) !important;
|
|
232
236
|
font-weight: var(--text-small-font-weight) !important;
|
|
233
237
|
}
|
|
238
|
+
/* Align */
|
|
239
|
+
.p-a-c { text-align: center !important; }
|
|
240
|
+
.p-a-l { text-align: left !important; }
|
|
241
|
+
.p-a-r { text-align: right !important; }
|
|
234
242
|
/* Font weight */
|
|
235
243
|
.fw-p-100 { font-weight: 100 !important; }
|
|
236
244
|
.fw-p-200 { font-weight: 200 !important; }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
function setAos() {
|
|
2
2
|
|
|
3
|
-
if(isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {
|
|
4
|
-
|
|
3
|
+
if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {
|
|
4
|
+
AOS.init({
|
|
5
|
+
disable: 'mobile'
|
|
6
|
+
});
|
|
5
7
|
} else {
|
|
6
8
|
AOS.init();
|
|
7
9
|
}
|
|
@@ -30,18 +30,14 @@ function checkInputPlace(input, autocomplete) {
|
|
|
30
30
|
|
|
31
31
|
for (const component of place.address_components) {
|
|
32
32
|
|
|
33
|
-
const componentType = component.types
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
case "administrative_area_level_2": { province.value = component.short_name; break; }
|
|
42
|
-
case "country": { country.value = component.short_name; break; }
|
|
43
|
-
|
|
44
|
-
}
|
|
33
|
+
const componentType = component.types;
|
|
34
|
+
|
|
35
|
+
if (componentType.includes('street_number')) { number.value = component.long_name; }
|
|
36
|
+
if (componentType.includes('route')) { number.value = component.short_name; }
|
|
37
|
+
if (componentType.includes('administrative_area_level_3') || componentType.includes('postal_town')) { city.value = component.short_name; }
|
|
38
|
+
if (componentType.includes('postal_code') || componentType.includes('postal_code_prefix')) { cap.value = component.short_name; }
|
|
39
|
+
if (componentType.includes('administrative_area_level_2')) { province.value = component.short_name; }
|
|
40
|
+
if (componentType.includes('country')) { country.value = component.short_name; }
|
|
45
41
|
|
|
46
42
|
}
|
|
47
43
|
|
package/webpack.config.js
CHANGED
|
@@ -52,7 +52,12 @@ module.exports = {
|
|
|
52
52
|
test: /.s?css$/,
|
|
53
53
|
use: [
|
|
54
54
|
MiniCssExtractPlugin.loader,
|
|
55
|
-
{
|
|
55
|
+
{
|
|
56
|
+
loader: "css-loader",
|
|
57
|
+
options: {
|
|
58
|
+
sourceMap: true
|
|
59
|
+
}
|
|
60
|
+
}
|
|
56
61
|
],
|
|
57
62
|
},
|
|
58
63
|
],
|
|
@@ -68,12 +73,16 @@ module.exports = {
|
|
|
68
73
|
preset: [
|
|
69
74
|
"default",
|
|
70
75
|
{
|
|
71
|
-
discardComments: {
|
|
76
|
+
discardComments: {
|
|
77
|
+
removeAll: true
|
|
78
|
+
},
|
|
72
79
|
},
|
|
73
80
|
],
|
|
74
81
|
},
|
|
75
82
|
})
|
|
76
83
|
]
|
|
77
84
|
},
|
|
78
|
-
plugins: [
|
|
85
|
+
plugins: [
|
|
86
|
+
new MiniCssExtractPlugin()
|
|
87
|
+
],
|
|
79
88
|
};
|