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'
Vue.use(VModal, { dialog: true })
import store from 'vuejs/store'
import router from 'vuejs/route'
import store from 'vuejs/store'
// import VueI18n from 'vue-i18n'
// Vue.use(VueI18n)

View File

@ -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'

View File

@ -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}}}) => {

View File

@ -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