فهرست منبع

review changes

talon 6 سال پیش
والد
کامیت
5ddcdc6c7a
4فایلهای تغییر یافته به همراه12 افزوده شده و 10 حذف شده
  1. 3 3
      package.json
  2. 0 6
      resources/assets/js/bootstrap.js
  3. 8 0
      resources/assets/js/components.js
  4. 1 1
      resources/assets/js/components/PostComponent.vue

+ 3 - 3
package.json

@@ -43,9 +43,9 @@
         "sweetalert": "^2.1.2",
         "twitter-text": "^2.0.5",
         "vue-content-loader": "^0.2.1",
-        "vue-infinite-loading": "^2.4.3",
-        "vue-loading-overlay": "^3.1.1",
-        "vue-timeago": "^5.0.0",
+        "vue-infinite-loading": "^2.4.4",
+        "vue-loading-overlay": "^3.2.0",
+        "vue-timeago": "^5.1.2",
         "vue-touch": "^2.0.0-beta.4"
     },
     "collective": {

+ 0 - 6
resources/assets/js/bootstrap.js

@@ -7,12 +7,6 @@ window.axios = require('axios');
 window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
 require('readmore-js');
 
-Vue.use(require("vue-touch"), {name: "v-touch"})
-VueTouch.registerCustomEvent('doubletap', {
-  type: 'tap',
-  taps: 2
-})
-
 let token = document.head.querySelector('meta[name="csrf-token"]');
 if (token) {
     window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;

+ 8 - 0
resources/assets/js/components.js

@@ -3,6 +3,7 @@ import BootstrapVue from 'bootstrap-vue'
 import InfiniteLoading from 'vue-infinite-loading';
 import Loading from 'vue-loading-overlay';
 import VueTimeago from 'vue-timeago';
+import VueTouch from 'vue-touch';
 //import {Howl, Howler} from 'howler';
 
 Vue.use(BootstrapVue);
@@ -10,6 +11,13 @@ Vue.use(InfiniteLoading);
 Vue.use(Loading);
 Vue.use(VueTimeago);
 
+Vue.use(VueTouch, { name: 'v-touch' })
+VueTouch.registerCustomEvent('doubletap', {
+  type: 'tap',
+  taps: 2
+})
+
+
 pixelfed.readmore = () => {
   $('.read-more').each(function(k,v) {
       let el = $(this);

+ 1 - 1
resources/assets/js/components/PostComponent.vue

@@ -212,7 +212,7 @@
 
     <div v-if="profileLayout == 'moment'" class="momentui">
       <div class="bg-dark mt-md-n4">
-        <div class="container" v-on:doubletap="likeStatus(status, $event)">
+        <div class="container" v-on:doubletap="likeStatus">
               <div class="postPresenterContainer d-none d-flex justify-content-center align-items-center bg-dark">
                 <div v-if="status.pf_type === 'photo'" class="w-100">
                   <photo-presenter :status="status" v-on:lightbox="lightbox"></photo-presenter>