mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
review changes
This commit is contained in:
parent
ea9d5d9826
commit
5ddcdc6c7a
4 changed files with 12 additions and 10 deletions
|
@ -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": {
|
||||
|
|
6
resources/assets/js/bootstrap.js
vendored
6
resources/assets/js/bootstrap.js
vendored
|
@ -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
resources/assets/js/components.js
vendored
8
resources/assets/js/components.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue