Added lazy loading to tag photos. Changed tag thumb location.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user