some code cleaning trying to resolve thematique not loading on prod

This commit is contained in:
Bachir Soussi Chiadmi 2022-03-08 14:30:49 +01:00
parent af3eff0333
commit 6351fd5825
12 changed files with 27 additions and 24 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -24,8 +24,8 @@ Vue.use(InfiniteLoading, {
import VModal from 'vue-js-modal' import VModal from 'vue-js-modal'
Vue.use(VModal, { dialog: true }) Vue.use(VModal, { dialog: true })
import store from 'vuejs/store'
import router from 'vuejs/route' import router from 'vuejs/route'
import store from 'vuejs/store'
// import VueI18n from 'vue-i18n' // import VueI18n from 'vue-i18n'
// Vue.use(VueI18n) // Vue.use(VueI18n)

View File

@ -119,7 +119,7 @@ import router from 'vuejs/route'
import store from 'vuejs/store' import store from 'vuejs/store'
// import JSONAPI from 'vuejs/api/json-axios' // 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 MGQ from 'vuejs/api/graphql-axios'
import { print } from 'graphql/language/printer' import { print } from 'graphql/language/printer'
import gql from 'graphql-tag' import gql from 'graphql-tag'

View File

@ -26,11 +26,9 @@
</template> </template>
<script> <script>
import router from 'vuejs/route' // import router from 'vuejs/route'
import store from 'vuejs/store' 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 MGQ from 'vuejs/api/graphql-axios'
import { print } from 'graphql/language/printer' import { print } from 'graphql/language/printer'
import gql from 'graphql-tag' import gql from 'graphql-tag'
@ -40,11 +38,11 @@ import thematiqueFields from 'vuejs/api/gql/thematique.fragment.gql'
// import qs from 'querystring-es3' // import qs from 'querystring-es3'
import Card from 'vuejs/components/Content/Card' import Card from 'vuejs/components/Content/Card'
import { mapState, mapActions } from 'vuex' // import { mapState, mapActions } from 'vuex'
export default { export default {
name: "Thematique", name: "Thematique",
router, // router,
store, store,
data(){ data(){
return { return {
@ -105,7 +103,7 @@ export default {
} }
${thematiqueFields} ${thematiqueFields}
` `
// ?XDEBUG_SESSION_START=1
MGQ.post('', { query: print(ast) MGQ.post('', { query: print(ast)
}) })
.then(({ data:{data:{thematique}}}) => { .then(({ data:{data:{thematique}}}) => {

View File

@ -2,47 +2,54 @@ import Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import Home from 'vuejs/components/Pages/Home' 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( // const Home = () => import(
// /* webpackMode: "lazy" */ // /* webpackMode: "lazy" */
// /* webpackPrefetch: true */ // /* webpackPrefetch: true */
// /* webpackPreload: true */ // /* webpackPreload: true */
// 'vuejs/components/Pages/Home') // 'vuejs/components/Pages/Home')
// // import Base from 'vuejs/components/Pages/Base'
const Base = () => import( const Base = () => import(
/* webpackChunkName: "module-base" */ /* webpackChunkName: "module-base" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Base') 'vuejs/components/Pages/Base')
// import Thematique from 'vuejs/components/Pages/Thematique'
const Thematique = () => import( const Thematique = () => import(
/* webpackChunkName: "module-thematique" */ /* webpackChunkName: "module-thematique" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Thematique') 'vuejs/components/Pages/Thematique')
// import Blabla from 'vuejs/components/Pages/Blabla'
const Blabla = () => import( const Blabla = () => import(
/* webpackChunkName: "module-blabla" */ /* webpackChunkName: "module-blabla" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Blabla') 'vuejs/components/Pages/Blabla')
// import Article from 'vuejs/components/Pages/Article'
const Article = () => import( const Article = () => import(
/* webpackChunkName: "module-article" */ /* webpackChunkName: "module-article" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Article') 'vuejs/components/Pages/Article')
// import Showrooms from 'vuejs/components/Pages/Showrooms'
const Showrooms = () => import( const Showrooms = () => import(
/* webpackChunkName: "module-showrooms" */ /* webpackChunkName: "module-showrooms" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Showrooms') 'vuejs/components/Pages/Showrooms')
// import Pricing from 'vuejs/components/Pages/Pricing'
const Pricing = () => import( const Pricing = () => import(
/* webpackChunkName: "module-pricing" */ /* webpackChunkName: "module-pricing" */
/* webpackMode: "lazy" */ /* webpackMode: "lazy" */
@ -50,8 +57,6 @@ const Pricing = () => import(
/* webpackPreload: true */ /* webpackPreload: true */
'vuejs/components/Pages/Pricing') 'vuejs/components/Pages/Pricing')
// import Cart from 'vuejs/components/Pages/Cart'
Vue.use(VueRouter) Vue.use(VueRouter)
// https://www.lullabot.com/articles/decoupled-hard-problems-routing // https://www.lullabot.com/articles/decoupled-hard-problems-routing