@energysage/es-ds-components 3.0.0 → 3.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/components/es-error-page.vue +33 -24
- package/package.json +1 -1
|
@@ -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 {
|