From abacab8206cdded7cb7917878d6d1d8515de7c13 Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 11 Feb 2024 09:20:08 +0100 Subject: [PATCH] Fix lightbox deps --- src/components/project.vue | 10 +++++----- src/scripts/app.js | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/project.vue b/src/components/project.vue index 54f7b8c..c87c48f 100644 --- a/src/components/project.vue +++ b/src/components/project.vue @@ -4,14 +4,16 @@ import { Map, NavigationControl, Marker } from 'maplibre-gl'; 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 SpotIcon from './spotIcon.vue'; import SpotButton from './spotButton.vue'; import ProjectPost from './projectPost.vue'; -import { registerRuntimeCompiler } from 'vue'; export default { components: { @@ -100,7 +102,7 @@ export default { this.modeHisto = (this.project.mode == this.spot.consts.modes.histo); }, initLightbox() { - Lightbox.option({ + lightbox.option({ alwaysShowNavOnTouchDevices: true, albumLabel: ' %1 / %2', fadeDuration: 300, @@ -127,8 +129,6 @@ export default { await this.getNextFeed(); - console.log('going 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]}); }, diff --git a/src/scripts/app.js b/src/scripts/app.js index bb589b3..d411088 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -13,7 +13,6 @@ window.getOuterWidth = common.getOuterWidth; import Css from './../styles/spot.scss'; import LogoText from '../images/logo_black.png'; import Logo from '../images/spot-logo-only.svg'; -console.log(Logo); //Masks import Spot from './spot.js';