mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
index options added
This commit is contained in:
@@ -1,25 +1,30 @@
|
||||
<template>
|
||||
<div class="landing-page">
|
||||
<!--Navigation-->
|
||||
<Navigation class="page-wrapper medium" />
|
||||
<div v-if="! isLoading">
|
||||
<!--Navigation-->
|
||||
<Navigation class="page-wrapper medium" />
|
||||
|
||||
<!--Header-->
|
||||
<PageHeader />
|
||||
<!--Header-->
|
||||
<PageHeader />
|
||||
|
||||
<!--VueFileManager ScreenShot-->
|
||||
<HeroScreenshot />
|
||||
<!--VueFileManager ScreenShot-->
|
||||
<HeroScreenshot />
|
||||
|
||||
<!--Main Features-->
|
||||
<MainFeatures />
|
||||
<!--Main Features-->
|
||||
<MainFeatures />
|
||||
|
||||
<!--Pricing Tables-->
|
||||
<PricingTables />
|
||||
<!--Pricing Tables-->
|
||||
<PricingTables />
|
||||
|
||||
<!--Get Started Call To Action-->
|
||||
<GetStarted />
|
||||
<!--Get Started Call To Action-->
|
||||
<GetStarted />
|
||||
|
||||
<!--Footer-->
|
||||
<PageFooter />
|
||||
<!--Footer-->
|
||||
<PageFooter />
|
||||
</div>
|
||||
<div v-if="isLoading">
|
||||
<Spinner></Spinner>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -31,6 +36,7 @@
|
||||
import PageHeader from '@/components/Index/IndexPageHeader'
|
||||
import GetStarted from '@/components/Index/IndexGetStarted'
|
||||
import PageFooter from '@/components/Index/IndexPageFooter'
|
||||
import Spinner from '@/components/FilesView/Spinner'
|
||||
import { mapGetters } from 'vuex'
|
||||
import axios from 'axios'
|
||||
|
||||
@@ -44,13 +50,14 @@
|
||||
Navigation,
|
||||
PageHeader,
|
||||
PageFooter,
|
||||
Spinner,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
isLoading: true,
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
@@ -58,6 +65,20 @@
|
||||
this.$router.push({name: 'SignIn'})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// Get page content
|
||||
axios.get('/api/content', {
|
||||
params: {
|
||||
column: 'footer_content|get_started_description|get_started_title|pricing_description|pricing_title|feature_description_3|feature_title_3|feature_description_2|feature_title_2|feature_description_1|feature_title_1|features_description|features_title|header_description|header_title|section_get_started|section_pricing_content|section_feature_boxes|section_features'
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
this.$store.commit('SET_INDEX_CONTENT', response.data)
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false
|
||||
})
|
||||
},
|
||||
created() {
|
||||
this.$scrollTop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user