Parcourir la source

some code cleaning trying to resolve thematique not loading on prod

bach il y a 2 ans
Parent
commit
6351fd5825

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-article.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-article.bundle.js.gz


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-base.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-base.bundle.js.gz


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-thematique.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-thematique.bundle.js.gz


+ 1 - 1
web/themes/custom/materiotheme/assets/scripts/main.js

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

+ 1 - 1
web/themes/custom/materiotheme/vuejs/components/Pages/Article.vue

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

+ 4 - 6
web/themes/custom/materiotheme/vuejs/components/Pages/Thematique.vue

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

+ 13 - 8
web/themes/custom/materiotheme/vuejs/route/index.js

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

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff