chore(lib): update lightgallery 1.2.0 -> 2.4.0

This commit is contained in:
Dillon
2022-05-12 05:35:34 +08:00
parent 5e9c5f6417
commit 8a9df9b02f
28 changed files with 90 additions and 60 deletions

View File

@@ -21,13 +21,11 @@ libFiles:
objectFitImagesJS: object-fit-images@3.2.4/dist/ofi.min.js
# twemoji@14.0.2 https://github.com/twitter/twemoji
twemojiJS: twemoji@14.0.2/dist/twemoji.min.js
# lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
# lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
# lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
lightgalleryCSS: lightgallery.js@1.2.0/dist/css/lightgallery.min.css
lightgalleryJS: lightgallery.js@1.2.0/dist/js/lightgallery.min.js
lightgalleryThumbnailJS: lg-thumbnail.js@1.2.0/dist/lg-thumbnail.min.js
lightgalleryZoomJS: lg-zoom.js@1.2.0/dist/lg-zoom.min.js
# lightgallery@2.4.0 https://github.com/sachinchoolur/lightgallery
lightgalleryCSS: lightgallery@2.4.0/css/lightgallery-bundle.min.css
lightgalleryJS: lightgallery@2.4.0/lightgallery.min.js
lightgalleryThumbnailJS: lightgallery@2.4.0/plugins/thumbnail/lg-thumbnail.min.js
lightgalleryZoomJS: lightgallery@2.4.0/plugins/zoom/lg-zoom.min.js
# clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js
clipboardJS: clipboard@2.0.11/dist/clipboard.min.js
# sharer.js@0.5.1 https://github.com/ellisonleao/sharer.js

View File

@@ -454,7 +454,19 @@ var Theme = /*#__PURE__*/function () {
}, {
key: "initLightGallery",
value: function initLightGallery() {
if (this.config.lightGallery) lightGallery(document.getElementById('content'), this.config.lightGallery);
if (this.config.lightgallery) lightGallery(document.getElementById('content'), {
plugins: [lgThumbnail, lgZoom],
selector: '.lightgallery',
speed: 400,
hideBarsDelay: 2000,
allowMediaOverlap: true,
exThumbImage: 'data-thumbnail',
toggleThumb: true,
thumbWidth: 80,
thumbHeight: '60px',
actualSize: false,
showZoomInOutIcons: true
});
}
}, {
key: "initHighlight",

View File

@@ -9,9 +9,7 @@ lazysizes@5.3.1 https://github.com/aFarkas/lazysizes
object-fit-images@3.2.4 https://github.com/fregante/object-fit-images
twemoji@14.0.2 https://github.com/twitter/twemoji
emoji-data@14.0.0 https://github.com/iamcal/emoji-data
lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
lightgallery@2.4.0 https://github.com/sachinchoolur/lightgallery
clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js
sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
typeit@8.5.4 https://github.com/alexmacarthur/typeit

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

13
assets/lib/lightgallery/lightgallery.min.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long