Kaynağa Gözat

Update npm dependencies

Bubka 2 yıl önce
ebeveyn
işleme
7d4526a90c
3 değiştirilmiş dosya ile 258 ekleme ve 275 silme
  1. 255 259
      package-lock.json
  2. 2 2
      package.json
  3. 1 14
      resources/js/api.js

Dosya farkı çok büyük olduğundan ihmal edildi
+ 255 - 259
package-lock.json


+ 2 - 2
package.json

@@ -26,7 +26,7 @@
         "@fortawesome/free-brands-svg-icons": "^5.15.4",
         "@fortawesome/free-brands-svg-icons": "^5.15.4",
         "@fortawesome/free-solid-svg-icons": "^5.15.4",
         "@fortawesome/free-solid-svg-icons": "^5.15.4",
         "@fortawesome/vue-fontawesome": "^2.0.6",
         "@fortawesome/vue-fontawesome": "^2.0.6",
-        "axios": "^0.24.0",
+        "axios": "^1.0.0",
         "bulma": "^0.9.3",
         "bulma": "^0.9.3",
         "bulma-checkradio": "^2.1.2",
         "bulma-checkradio": "^2.1.2",
         "bulma-switch": "^2.0.0",
         "bulma-switch": "^2.0.0",
@@ -34,7 +34,7 @@
         "object-equals": "^0.3.0",
         "object-equals": "^0.3.0",
         "v-clipboard": "^2.2.3",
         "v-clipboard": "^2.2.3",
         "vue": "^2.6.14",
         "vue": "^2.6.14",
-        "vue-axios": "^3.4.0",
+        "vue-axios": "~3.4.0",
         "vue-i18n": "^8.26.7",
         "vue-i18n": "^8.26.7",
         "vue-notification": "^1.3.20",
         "vue-notification": "^1.3.20",
         "vue-pull-refresh": "^0.2.7",
         "vue-pull-refresh": "^0.2.7",

+ 1 - 14
resources/js/api.js

@@ -6,20 +6,7 @@ import router   from './routes.js'
 Vue.use(VueAxios, axios)
 Vue.use(VueAxios, axios)
 
 
 Vue.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
 Vue.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
-
-// let token = document.head.querySelector('meta[name="csrf-token"]');
-
-// if (token) {
-//     Vue.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
-// } else {
-//     console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
-// }
-
-Vue.axios.interceptors.request.use(function (request) {
-
-    request.headers.common['Content-Type'] = 'application/json'
-    return request
-})
+Vue.axios.defaults.headers.common['Content-Type'] = 'application/json'
 
 
 Vue.axios.interceptors.response.use(response => response, error => {
 Vue.axios.interceptors.response.use(response => response, error => {
 
 

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor