File tree Expand file tree Collapse file tree 16 files changed +16761
-226
lines changed Expand file tree Collapse file tree 16 files changed +16761
-226
lines changed Original file line number Diff line number Diff line change 15
15
"@contentstack/live-preview-utils" : " ^1.0.1" ,
16
16
"@contentstack/utils" : " ^1.1.1" ,
17
17
"contentstack" : " ^3.15.0" ,
18
- "moment" : " ^2.29.1 " ,
18
+ "moment" : " ^2.29.2 " ,
19
19
"register-service-worker" : " ^1.7.1" ,
20
20
"vue" : " ^3.2.27" ,
21
21
"vue-json-pretty" : " ^1.8.2" ,
22
22
"vue-json-tree-viewer" : " ^1.0.2" ,
23
23
"vue-meta" : " ^2.4.0" ,
24
24
"vue-router" : " ^4.0.12" ,
25
+ "vue-skeletor" : " ^1.0.6" ,
25
26
"vuex" : " ^4.0.2"
26
27
},
27
28
"devDependencies" : {
68
69
" not dead"
69
70
],
70
71
"prettier" : {
71
- "singleQuote" : true
72
+ "singleQuote" : true ,
73
+ "endOfLine" : " auto"
72
74
}
73
75
}
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<Header />
4
- <router-view />
4
+ <router-view :key = " $route.path " />
5
5
<Footer />
6
6
</div >
7
7
</template >
Original file line number Diff line number Diff line change @@ -66,6 +66,20 @@ export default {
66
66
contentTypeUid: ' footer' ,
67
67
jsonRtePath: [' copyright' ]
68
68
});
69
+ let responsePages = await Stack .getEntries ({
70
+ contentTypeUid: ' page'
71
+ });
72
+ let navFooterList = response[0 ].navigation .link ;
73
+ if (responsePages .length !== response .length ) {
74
+ responsePages .forEach (entry => {
75
+ const fFound = response[0 ].navigation .link .find (
76
+ link => link .title === entry .title
77
+ );
78
+ if (! fFound) {
79
+ navFooterList .push ({ title: entry .title , href: entry .url });
80
+ }
81
+ });
82
+ }
69
83
this .data = response[0 ];
70
84
this .$store .dispatch (' setFooter' , response[0 ]);
71
85
}
Original file line number Diff line number Diff line change @@ -75,6 +75,24 @@ export default {
75
75
referenceFieldPath: ` navigation_menu.page_reference` ,
76
76
jsonRtePath: [' notification_bar.announcement_text' ]
77
77
});
78
+ let responsePages = await Stack .getEntries ({
79
+ contentTypeUid: ' page'
80
+ });
81
+ let navHeaderList = response[0 ].navigation_menu ;
82
+ if (responsePages .length !== response .length ) {
83
+ responsePages .forEach (entry => {
84
+ const hFound = response[0 ].navigation_menu .find (
85
+ navLink => navLink .label === entry .title
86
+ );
87
+
88
+ if (! hFound) {
89
+ navHeaderList .push ({
90
+ label: entry .title ,
91
+ page_reference: [{ title: entry .title , url: entry .url }]
92
+ });
93
+ }
94
+ });
95
+ }
78
96
this .data = response[0 ];
79
97
this .$store .dispatch (' setHeader' , response[0 ]);
80
98
}
Original file line number Diff line number Diff line change 13
13
{{ data.banner_description }}
14
14
</p >
15
15
<template v-if =" title === ' home-content' " >
16
- <router-link aria-current =" page" class =" btn tertiary-btn" to =" /" >
16
+ <router-link
17
+ v-if =" data.call_to_action.title && data.call_to_action.href"
18
+ aria-current =" page"
19
+ class =" btn tertiary-btn"
20
+ to =" /"
21
+ >
17
22
Read more
18
23
</router-link >
19
24
</template >
20
25
</div >
21
- <img :src =" data.banner_image.url" :alt =" data.banner_image.title" />
26
+ <img
27
+ v-if =" data.banner_image"
28
+ :src =" data.banner_image.url"
29
+ :alt =" data.banner_image.title"
30
+ />
22
31
</div >
23
32
</template >
24
33
Original file line number Diff line number Diff line change 16
16
:data =" component.hero_banner"
17
17
/>
18
18
<HeroBanner
19
- v-if =" component.hero_banner && page === 'About Us '"
19
+ v-if =" component.hero_banner && page !== 'Home '"
20
20
:key =" index"
21
21
title =" about-content"
22
22
:data =" component.hero_banner"
41
41
:key =" index"
42
42
:data =" component.section_with_buckets"
43
43
/>
44
- <AboutSectionBucket
45
- v-if =" component.section_with_buckets && page === 'About Us '"
44
+ <SectionWithBuckets
45
+ v-if =" component.section_with_buckets && page !== 'Home '"
46
46
:key =" index"
47
47
:data =" component.section_with_buckets"
48
48
/>
56
56
:key =" index"
57
57
:data =" component.section_with_html_code"
58
58
/>
59
+ <SectionWithEmbedObject
60
+ v-if =" component.section_with_html_code && page !== 'Contact Us'"
61
+ :key =" index"
62
+ :data =" component.section_with_html_code"
63
+ />
59
64
</template >
60
65
</main >
61
66
</template >
@@ -67,15 +72,13 @@ import SectionWithCards from '../components/SectionWithCards';
67
72
import TeamSection from ' ../components/TeamSection' ;
68
73
import SectionWithEmbedObject from ' ../components/SectionWithEmbedObject' ;
69
74
import SectionWithBuckets from ' ../components/SectionWithBuckets' ;
70
- import AboutSectionBucket from ' ../components/AboutSectionBucket' ;
71
75
import BlogSection from ' ../components/BlogSection' ;
72
76
import Devtools from ' ../components/Devtools.vue' ;
73
77
export default {
74
78
components: {
75
79
HeroBanner,
76
80
Section,
77
81
SectionWithBuckets,
78
- AboutSectionBucket,
79
82
SectionWithCards,
80
83
TeamSection,
81
84
BlogSection,
Original file line number Diff line number Diff line change 7
7
<p >
8
8
{{ data.description }}
9
9
</p >
10
- <router-link aria-current =" page" class =" btn secondary-btn" to =" /" >
10
+ <router-link
11
+ v-if =" data.call_to_action.title"
12
+ aria-current =" page"
13
+ class =" btn secondary-btn"
14
+ to =" /"
15
+ >
11
16
{{ data.call_to_action.title }}
12
17
</router-link >
13
18
</div >
18
23
<p >
19
24
{{ data.description }}
20
25
</p >
21
- <router-link aria-current =" page" class =" btn secondary-btn" to =" /" >
26
+ <router-link
27
+ v-if =" data.call_to_action.title"
28
+ aria-current =" page"
29
+ class =" btn secondary-btn"
30
+ to =" /"
31
+ >
22
32
{{ data.call_to_action.title }}
23
33
</router-link >
24
34
</div >
Original file line number Diff line number Diff line change 9
9
<img :src =" index.icon.url" :alt =" index.icon.title" />
10
10
<h3 >{{ index.title_h3 }}</h3 >
11
11
<p v-html =" index.description" />
12
- <router-link :to =" index.call_to_action.href" >
12
+ <router-link
13
+ v-if =" index.call_to_action.href"
14
+ :to =" index.call_to_action.href"
15
+ >
13
16
{{ index.call_to_action.title }}--> ;
14
17
</router-link >
15
18
</div >
Original file line number Diff line number Diff line change 3
3
<span data-bs-toggle =" modal" data-bs-target =" #staticBackdrop"
4
4
><img src =" /json.svg" alt =" JSON Preview icon"
5
5
/></span >
6
- <div class =" Tooltip-top" ref =" toolTipRef" >
7
- JSON Preview
8
- </div >
6
+ <div class =" Tooltip-top" ref =" toolTipRef" >JSON Preview</div >
9
7
</div >
10
8
</template >
11
9
Original file line number Diff line number Diff line change 1
1
import { createRouter , createWebHistory } from 'vue-router' ;
2
2
import Home from './views/Home.vue' ;
3
- import About from './views/About.vue' ;
4
- import Contact from './views/Contact.vue' ;
5
3
import Blog from './views/Blog.vue' ;
6
4
import BlogPost from './views/BlogPost.vue' ;
7
5
import NotFound from './views/404.vue' ;
@@ -12,12 +10,8 @@ const routes = [
12
10
component : Home
13
11
} ,
14
12
{
15
- path : '/about-us' ,
16
- component : About
17
- } ,
18
- {
19
- path : '/contact-us' ,
20
- component : Contact
13
+ path : '/:page' ,
14
+ component : Home
21
15
} ,
22
16
{
23
17
path : '/blog' ,
Original file line number Diff line number Diff line change 3
3
<div class =" error-page" >
4
4
<h1 >404: Not Found</h1 >
5
5
<p >You just hit a route that doesn' ; t exist... the sadness.</p >
6
- <router-link to =" /" >
7
- Navigate to home page
8
- </router-link >
6
+ <router-link to =" /" >Navigate to home page</router-link >
9
7
</div >
10
8
</div >
11
9
</template >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 46
46
</div >
47
47
</div >
48
48
</main >
49
+ <Skeletor v-else height =" 100vh" />
49
50
</template >
50
51
51
52
<script >
52
53
import moment from ' moment' ;
53
54
import Stack from ' ../plugins/contentstack' ;
54
55
import BlogBanner from ' ../components/BlogBanner' ;
55
56
import { onEntryChange } from ' ../plugins/contentstack' ;
57
+ import ' vue-skeletor/dist/vue-skeletor.css' ;
58
+ import { Skeletor } from ' vue-skeletor' ;
56
59
57
60
export default {
58
61
components: {
59
- BlogBanner
62
+ BlogBanner,
63
+ Skeletor
60
64
},
61
65
data () {
62
66
return {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
:entryUid =" data.uid"
7
7
:locale =" data.locale"
8
8
/>
9
+ <NotFound v-else-if =" data !== null" />
10
+ <Skeletor v-else height =" 100vh" />
9
11
</template >
10
12
11
13
<script >
12
14
import Stack from ' ../plugins/contentstack' ;
13
15
import RenderComponent from ' ../components/RenderComponents' ;
14
16
import { onEntryChange } from ' ../plugins/contentstack' ;
17
+ import NotFound from ' ./404.vue' ;
18
+ import ' vue-skeletor/dist/vue-skeletor.css' ;
19
+ import { Skeletor } from ' vue-skeletor' ;
15
20
16
21
export default {
17
22
name: ' Home' ,
18
23
components: {
19
- RenderComponent
24
+ RenderComponent,
25
+ NotFound,
26
+ Skeletor
20
27
},
21
28
data () {
22
29
return {
You can’t perform that action at this time.
0 commit comments