@energysage/es-ds-components 3.0.0 → 3.0.2
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.
|
@@ -4,35 +4,44 @@ import IconCommunitySolar from './icon/community-solar.vue';
|
|
|
4
4
|
import IconInfoBlogPost from './icon/info-blog-post.vue';
|
|
5
5
|
import IconMarketplace from './icon/marketplace.vue';
|
|
6
6
|
|
|
7
|
-
const ES_DOMAIN = process.env.ES_DOMAIN || 'https://www.energysage.com';
|
|
8
|
-
const linkItems = [
|
|
9
|
-
{
|
|
10
|
-
icon: IconContactUs,
|
|
11
|
-
link: 'mailto:hello@energysage.com',
|
|
12
|
-
label: 'Contact us',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
icon: IconCommunitySolar,
|
|
16
|
-
link: `${ES_DOMAIN}/solar/`,
|
|
17
|
-
label: 'Learn about solar',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
icon: IconInfoBlogPost,
|
|
21
|
-
link: `${ES_DOMAIN}/blog/`,
|
|
22
|
-
label: 'EnergySage blog',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
icon: IconMarketplace,
|
|
26
|
-
link: `${ES_DOMAIN}/shop/home-solar/`,
|
|
27
|
-
label: 'EnergySage marketplace',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
30
|
-
|
|
31
7
|
const props = defineProps({
|
|
32
8
|
errorType: {
|
|
33
9
|
type: String,
|
|
34
10
|
required: true,
|
|
35
11
|
},
|
|
12
|
+
esDomain: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: null,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const esDomain = computed(() => {
|
|
19
|
+
return props.esDomain || 'https://www.energysage.com';
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const linkItems = computed(() => {
|
|
23
|
+
return [
|
|
24
|
+
{
|
|
25
|
+
icon: IconContactUs,
|
|
26
|
+
link: 'mailto:hello@energysage.com',
|
|
27
|
+
label: 'Contact us',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
icon: IconCommunitySolar,
|
|
31
|
+
link: `${esDomain.value}/solar/`,
|
|
32
|
+
label: 'Learn about solar',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
icon: IconInfoBlogPost,
|
|
36
|
+
link: `${esDomain.value}/blog/`,
|
|
37
|
+
label: 'EnergySage blog',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
icon: IconMarketplace,
|
|
41
|
+
link: `${esDomain.value}/shop/home-solar/`,
|
|
42
|
+
label: 'EnergySage marketplace',
|
|
43
|
+
},
|
|
44
|
+
];
|
|
36
45
|
});
|
|
37
46
|
|
|
38
47
|
interface ErrorCode {
|
package/components/es-video.vue
CHANGED
|
@@ -34,9 +34,13 @@ const embedUrlWithParams = computed(
|
|
|
34
34
|
class="embed-responsive embed-responsive-16by9">
|
|
35
35
|
<iframe
|
|
36
36
|
:id="`youtube-video-${videoId}`"
|
|
37
|
-
:src="embedUrlWithParams"
|
|
38
37
|
class="embed-responsive-item"
|
|
39
|
-
|
|
38
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
39
|
+
allowfullscreen
|
|
40
|
+
frameborder="0"
|
|
41
|
+
referrerpolicy="strict-origin-when-cross-origin"
|
|
42
|
+
:src="embedUrlWithParams"
|
|
43
|
+
title="YouTube video player"></iframe>
|
|
40
44
|
</div>
|
|
41
45
|
<es-card
|
|
42
46
|
v-else
|
package/package.json
CHANGED
|
@@ -76,7 +76,7 @@ export default (
|
|
|
76
76
|
{ text: 'Privacy policy', url: `${ES_DOMAIN}/privacy-policy/` },
|
|
77
77
|
{ text: 'Mobile terms of use', url: `${ES_DOMAIN}/mobile-terms-of-use/` },
|
|
78
78
|
{ text: 'Non-discrimination policy', url: `${ES_DOMAIN}/nondiscrimination/` },
|
|
79
|
-
{ text: 'Your privacy choices' },
|
|
79
|
+
// { text: 'Your privacy choices' },
|
|
80
80
|
],
|
|
81
81
|
copyrightText: '© Copyright 2009-{currentYear} EnergySage, Inc. All rights reserved.',
|
|
82
82
|
trademarkText: `ENERGYSAGE is a registered trademark and the EnergySage logo is a trademark of EnergySage, Inc.
|