add kit intro content from static page and update pages ids
This commit is contained in:
@@ -2,9 +2,8 @@
|
|||||||
<b-overlay :show="filteredNodes === undefined" class="h-100" z-index="0">
|
<b-overlay :show="filteredNodes === undefined" class="h-100" z-index="0">
|
||||||
<div class="kit-list">
|
<div class="kit-list">
|
||||||
<header class="kit-list-header">
|
<header class="kit-list-header">
|
||||||
<div class="kit-list-header-intro">
|
<div class="kit-list-header-intro" v-html="intro" />
|
||||||
FIXME Intro
|
|
||||||
</div>
|
|
||||||
<search-input v-model="search" class="input-search" />
|
<search-input v-model="search" class="input-search" />
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -41,7 +40,8 @@ export default {
|
|||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
search: ''
|
search: '',
|
||||||
|
intro: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -53,6 +53,12 @@ export default {
|
|||||||
const search = this.search.toLowerCase()
|
const search = this.search.toLowerCase()
|
||||||
return this.sheets.filter(node => searchInNode(search, node))
|
return this.sheets.filter(node => searchInNode(search, node))
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
async created () {
|
||||||
|
this.$store.dispatch('QUERY_PAGE', 'kit').then(page => {
|
||||||
|
this.intro = page.content
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ export default {
|
|||||||
state: {
|
state: {
|
||||||
welcome: undefined,
|
welcome: undefined,
|
||||||
intro: undefined,
|
intro: undefined,
|
||||||
|
kit: undefined,
|
||||||
ids: {
|
ids: {
|
||||||
welcome: 208,
|
welcome: 263,
|
||||||
intro: 207
|
intro: 264,
|
||||||
|
kit: 209
|
||||||
},
|
},
|
||||||
visited: localStorage.getItem('visited') === 'true'
|
visited: localStorage.getItem('visited') === 'true'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user