Removes HammerJS temporally due to memory leak.

This commit is contained in:
Mateus Machado Luna 2018-10-16 10:13:23 -03:00
parent f22dc5bc1f
commit af03314501
6 changed files with 18 additions and 10 deletions

View File

@ -21,7 +21,6 @@
"vue-masonry-css": "^1.0.3", "vue-masonry-css": "^1.0.3",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-the-mask": "^0.11.1", "vue-the-mask": "^0.11.1",
"vue2-hammer": "^2.0.1",
"vuedraggable": "^2.16.0", "vuedraggable": "^2.16.0",
"vuex": "^3.0.1" "vuex": "^3.0.1"
}, },

View File

@ -6,7 +6,7 @@
import Vue from 'vue'; import Vue from 'vue';
import Buefy from 'buefy'; import Buefy from 'buefy';
import VTooltip from 'v-tooltip'; import VTooltip from 'v-tooltip';
import { VueHammer } from 'vue2-hammer'; // import { VueHammer } from 'vue2-hammer';
import VueMasonry from 'vue-masonry-css'; import VueMasonry from 'vue-masonry-css';
import draggable from 'vuedraggable'; import draggable from 'vuedraggable';
import VueTheMask from 'vue-the-mask'; import VueTheMask from 'vue-the-mask';
@ -49,7 +49,7 @@ import { I18NPlugin, UserPrefsPlugin, RouterHelperPlugin, ConsolePlugin, UserCap
// Configure and Register Plugins // Configure and Register Plugins
Vue.use(Buefy); Vue.use(Buefy);
Vue.use(VTooltip); Vue.use(VTooltip);
Vue.use(VueHammer); // Vue.use(VueHammer);
Vue.use(VueMasonry); Vue.use(VueMasonry);
Vue.use(I18NPlugin); Vue.use(I18NPlugin);
Vue.use(UserPrefsPlugin); Vue.use(UserPrefsPlugin);

View File

@ -2,7 +2,7 @@
import Vue from 'vue'; import Vue from 'vue';
import Buefy from 'buefy'; import Buefy from 'buefy';
import VTooltip from 'v-tooltip'; import VTooltip from 'v-tooltip';
import { VueHammer } from 'vue2-hammer'; // import { VueHammer } from 'vue2-hammer';
import VueMasonry from 'vue-masonry-css'; import VueMasonry from 'vue-masonry-css';
// Custom elements // Custom elements
@ -48,7 +48,7 @@ import { I18NPlugin, UserPrefsPlugin, RouterHelperPlugin, ConsolePlugin } from '
// Configure and Register Plugins // Configure and Register Plugins
Vue.use(Buefy); Vue.use(Buefy);
Vue.use(VTooltip); Vue.use(VTooltip);
Vue.use(VueHammer); // Vue.use(VueHammer);
Vue.use(VueMasonry); Vue.use(VueMasonry);
Vue.use(I18NPlugin); Vue.use(I18NPlugin);
Vue.use(UserPrefsPlugin); Vue.use(UserPrefsPlugin);

View File

@ -1,9 +1,13 @@
<template> <template>
<div <!-- <div <IF WE USE HAMMERJS>
v-hammer:swipe="onSwipeFiltersMenu" v-hammer:swipe="onSwipeFiltersMenu"
:class="{ :class="{
'repository-level-page': isRepositoryLevel, 'repository-level-page': isRepositoryLevel,
'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen 'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen
}"> -->
<div :class="{
'repository-level-page': isRepositoryLevel,
'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen
}"> }">
<!-- SEARCH AND FILTERS --------------------- --> <!-- SEARCH AND FILTERS --------------------- -->

View File

@ -1,9 +1,13 @@
<template> <template>
<div <!-- <div <IF WE USE HAMMER JS>
v-hammer:swipe="onSwipeFiltersMenu" v-hammer:swipe="onSwipeFiltersMenu"
:class="{ :class="{
'repository-level-page': isRepositoryLevel, 'repository-level-page': isRepositoryLevel,
'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen 'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen
}"> -->
<div :class="{
'repository-level-page': isRepositoryLevel,
'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen
}"> }">
<!-- SEARCH AND FILTERS --------------------- --> <!-- SEARCH AND FILTERS --------------------- -->

View File

@ -106,9 +106,10 @@
</span> </span>
</button> </button>
<div <div
class="slide-main-content">
<!-- <div <IF WE USE HAMMER JS>
class="slide-main-content" class="slide-main-content"
v-hammer:swipe.prevent="onSwipeFiltersMenu"> v-hammer:swipe.prevent="onSwipeFiltersMenu"> -->
<transition <transition
mode="out-in" mode="out-in"
:name="goingRight ? 'slide-right' : 'slide-left'" > :name="goingRight ? 'slide-right' : 'slide-left'" >