Fix lightbox deps

This commit is contained in:
2024-02-11 09:20:08 +01:00
parent 869b084d70
commit abacab8206
2 changed files with 5 additions and 6 deletions

View File

@@ -4,14 +4,16 @@ import { Map, NavigationControl, Marker } from 'maplibre-gl';
import simplebar from 'simplebar-vue'; import simplebar from 'simplebar-vue';
import Lightbox from '../scripts/lightbox.js'; import autosize from 'autosize';
import mousewheel from 'jquery-mousewheel';
import waitforimages from 'jquery.waitforimages';
import lightbox from '../scripts/lightbox.js';
//import SimpleBar from 'simplebar'; //import SimpleBar from 'simplebar';
import SpotIcon from './spotIcon.vue'; import SpotIcon from './spotIcon.vue';
import SpotButton from './spotButton.vue'; import SpotButton from './spotButton.vue';
import ProjectPost from './projectPost.vue'; import ProjectPost from './projectPost.vue';
import { registerRuntimeCompiler } from 'vue';
export default { export default {
components: { components: {
@@ -100,7 +102,7 @@ export default {
this.modeHisto = (this.project.mode == this.spot.consts.modes.histo); this.modeHisto = (this.project.mode == this.spot.consts.modes.histo);
}, },
initLightbox() { initLightbox() {
Lightbox.option({ lightbox.option({
alwaysShowNavOnTouchDevices: true, alwaysShowNavOnTouchDevices: true,
albumLabel: '<i class="fa fa-fw fa-lg fa-media push"></i> %1 / %2', albumLabel: '<i class="fa fa-fw fa-lg fa-media push"></i> %1 / %2',
fadeDuration: 300, fadeDuration: 300,
@@ -127,8 +129,6 @@ export default {
await this.getNextFeed(); await this.getNextFeed();
console.log('going to post');
//Scroll to post //Scroll to post
if(this.$parent.hash.items.length == 3) this.findPost({type: this.$parent.hash.items[1], id: this.$parent.hash.items[2]}); if(this.$parent.hash.items.length == 3) this.findPost({type: this.$parent.hash.items[1], id: this.$parent.hash.items[2]});
}, },

View File

@@ -13,7 +13,6 @@ window.getOuterWidth = common.getOuterWidth;
import Css from './../styles/spot.scss'; import Css from './../styles/spot.scss';
import LogoText from '../images/logo_black.png'; import LogoText from '../images/logo_black.png';
import Logo from '../images/spot-logo-only.svg'; import Logo from '../images/spot-logo-only.svg';
console.log(Logo);
//Masks //Masks
import Spot from './spot.js'; import Spot from './spot.js';