Added lazy loading to tag photos. Changed tag thumb location.

This commit is contained in:
2020-04-08 14:50:43 +02:00
parent 24b297011e
commit cb68319ac0
1451 changed files with 324 additions and 414 deletions

View File

@@ -1,6 +1,7 @@
import Vue from 'vue';
import dayjs from 'dayjs';
import VTooltip from 'v-tooltip';
import VueLazyLoad from 'vue-lazyload';
import dayjs from 'dayjs';
import router from './router';
import initStore from './store';
@@ -43,6 +44,9 @@ function init() {
});
Vue.use(VTooltip);
Vue.use(VueLazyLoad, {
throttleWait: 0,
});
new Vue({ // eslint-disable-line no-new
el: '#container',

View File

@@ -43,11 +43,13 @@ function initTagsActions(store, _router) {
media {
id
thumbnail
lazy
path
comment
sfw: sfwMedia {
id
thumbnail
lazy
path
comment
}
@@ -123,9 +125,11 @@ function initTagsActions(store, _router) {
media {
thumbnail
comment
lazy
sfw: sfwMedia {
thumbnail
comment
lazy
}
}
}