some code cleaning trying to resolve thematique not loading on prod
This commit is contained in:
@ -119,7 +119,7 @@ import router from 'vuejs/route'
|
||||
import store from 'vuejs/store'
|
||||
|
||||
// import JSONAPI from 'vuejs/api/json-axios'
|
||||
import REST from 'vuejs/api/rest-axios'
|
||||
// import REST from 'vuejs/api/rest-axios'
|
||||
import MGQ from 'vuejs/api/graphql-axios'
|
||||
import { print } from 'graphql/language/printer'
|
||||
import gql from 'graphql-tag'
|
||||
|
@ -26,11 +26,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import router from 'vuejs/route'
|
||||
// import router from 'vuejs/route'
|
||||
import store from 'vuejs/store'
|
||||
|
||||
// import JSONAPI from 'vuejs/api/json-axios'
|
||||
import REST from 'vuejs/api/rest-axios'
|
||||
import MGQ from 'vuejs/api/graphql-axios'
|
||||
import { print } from 'graphql/language/printer'
|
||||
import gql from 'graphql-tag'
|
||||
@ -40,11 +38,11 @@ import thematiqueFields from 'vuejs/api/gql/thematique.fragment.gql'
|
||||
// import qs from 'querystring-es3'
|
||||
import Card from 'vuejs/components/Content/Card'
|
||||
|
||||
import { mapState, mapActions } from 'vuex'
|
||||
// import { mapState, mapActions } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "Thematique",
|
||||
router,
|
||||
// router,
|
||||
store,
|
||||
data(){
|
||||
return {
|
||||
@ -105,7 +103,7 @@ export default {
|
||||
}
|
||||
${thematiqueFields}
|
||||
`
|
||||
// ?XDEBUG_SESSION_START=1
|
||||
|
||||
MGQ.post('', { query: print(ast)
|
||||
})
|
||||
.then(({ data:{data:{thematique}}}) => {
|
||||
|
@ -2,47 +2,54 @@ import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
|
||||
import Home from 'vuejs/components/Pages/Home'
|
||||
// import Base from 'vuejs/components/Pages/Base'
|
||||
// import Thematique from 'vuejs/components/Pages/Thematique'
|
||||
// import Blabla from 'vuejs/components/Pages/Blabla'
|
||||
// import Article from 'vuejs/components/Pages/Article'
|
||||
// import Showrooms from 'vuejs/components/Pages/Showrooms'
|
||||
// import Pricing from 'vuejs/components/Pages/Pricing'
|
||||
|
||||
// const Home = () => import(
|
||||
// /* webpackMode: "lazy" */
|
||||
// /* webpackPrefetch: true */
|
||||
// /* webpackPreload: true */
|
||||
// 'vuejs/components/Pages/Home')
|
||||
// // import Base from 'vuejs/components/Pages/Base'
|
||||
|
||||
const Base = () => import(
|
||||
/* webpackChunkName: "module-base" */
|
||||
/* webpackMode: "lazy" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Base')
|
||||
// import Thematique from 'vuejs/components/Pages/Thematique'
|
||||
|
||||
const Thematique = () => import(
|
||||
/* webpackChunkName: "module-thematique" */
|
||||
/* webpackMode: "lazy" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Thematique')
|
||||
// import Blabla from 'vuejs/components/Pages/Blabla'
|
||||
|
||||
const Blabla = () => import(
|
||||
/* webpackChunkName: "module-blabla" */
|
||||
/* webpackMode: "lazy" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Blabla')
|
||||
// import Article from 'vuejs/components/Pages/Article'
|
||||
|
||||
const Article = () => import(
|
||||
/* webpackChunkName: "module-article" */
|
||||
/* webpackMode: "lazy" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Article')
|
||||
// import Showrooms from 'vuejs/components/Pages/Showrooms'
|
||||
|
||||
const Showrooms = () => import(
|
||||
/* webpackChunkName: "module-showrooms" */
|
||||
/* webpackMode: "lazy" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Showrooms')
|
||||
// import Pricing from 'vuejs/components/Pages/Pricing'
|
||||
|
||||
const Pricing = () => import(
|
||||
/* webpackChunkName: "module-pricing" */
|
||||
/* webpackMode: "lazy" */
|
||||
@ -50,8 +57,6 @@ const Pricing = () => import(
|
||||
/* webpackPreload: true */
|
||||
'vuejs/components/Pages/Pricing')
|
||||
|
||||
// import Cart from 'vuejs/components/Pages/Cart'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
// https://www.lullabot.com/articles/decoupled-hard-problems-routing
|
||||
|
Reference in New Issue
Block a user