mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 09:21:32 +00:00
dist: rebuilt client assets and bumped v1 version string
This commit is contained in:
parent
8051879670
commit
bbeb423ab2
2
dist/js/album.js
vendored
2
dist/js/album.js
vendored
@ -1,2 +1,2 @@
|
||||
var lsKeys={},page={lazyLoad:null,lightbox:null,lightboxExts:[".gif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp",".bmp"],updateImageContainer:function(e){var t=e.parentNode.parentNode;if(t.classList.contains("image-container")){var a=t.querySelector(".file-size");if(a){var n=a.dataset.value||a.innerHTML;a.innerHTML=page.getPrettyBytes(parseInt(n,10))}var i=t.querySelector(".file-date");if(i){var r=i.dataset.value;i.innerHTML=page.getPrettyDate(new Date(1e3*parseInt(r,10)))}}}};window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector("#count .file-size");if(e){var t=e.dataset.value||e.innerHTML;e.innerHTML=page.getPrettyBytes(parseInt(t,10))}page.lazyLoad=new LazyLoad({unobserve_entered:!0,callback_enter:page.updateImageContainer});var a=new RegExp(""+page.lightboxExts.map((function(e){return e.substring(1)})).join("|"),"i");page.lightbox=new SimpleLightbox("#table a.image",{captions:!0,captionSelector:"img",captionType:"attr",captionsData:"alt",captionPosition:"bottom",captionDelay:500,fileExt:a,preloading:!1,uniqueImages:!1})}));
|
||||
var lsKeys={},page={lazyLoad:null,lightbox:null,lightboxExts:[".gif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp",".bmp"],updateImageContainer:function(e){var t=e.parentNode.parentNode;if(t.classList.contains("image-container")){var a=t.querySelector(".file-size");if(a){var n=a.dataset.value||a.innerHTML;a.innerHTML=page.getPrettyBytes(parseInt(n,10))}var i=t.querySelector(".file-date");if(i){var r=i.dataset.value;i.innerHTML=page.getPrettyDate(new Date(1e3*parseInt(r,10)))}}}};window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector("#count .file-size");if(e){var t=e.dataset.value||e.innerHTML;e.innerHTML=page.getPrettyBytes(parseInt(t,10))}page.lazyLoad=new LazyLoad({unobserve_entered:!0,callback_enter:page.updateImageContainer}),page.lightbox=new SimpleLightbox("#table a.image",{captions:!0,captionSelector:"img",captionType:"attr",captionsData:"alt",captionPosition:"bottom",captionDelay:500,fileExt:page.lightboxExts.map((function(e){return e.substring(1)})).join("|"),preloading:!1,uniqueImages:!1})}));
|
||||
//# sourceMappingURL=album.js.map
|
||||
|
2
dist/js/album.js.map
vendored
2
dist/js/album.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"sources":["album.js"],"names":["const","lsKeys","page","lazyLoad","lightbox","lightboxExts","updateImageContainer","element","container","parentNode","classList","contains","size","querySelector","string","dataset","value","innerHTML","getPrettyBytes","parseInt","date","getPrettyDate","Date","window","addEventListener","headerSize","document","LazyLoad","unobserve_entered","callback_enter","imageExtsRegex","RegExp","map","ext","substring","join","SimpleLightbox","captions","captionSelector","captionType","captionsData","captionPosition","captionDelay","fileExt","preloading","uniqueImages"],"mappings":"AAGAA,IAAMC,OAAS,CAAA,EAETC,KAAO,CACXC,SAAU,KACVC,SAAU,KAIVC,aAAc,CAAC,OAAQ,QAAS,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,QAElFC,qBAAoB,SAAEC,GAEpBP,IAAMQ,EAAYD,EAAQE,WAAWA,WACrC,GAAKD,EAAUE,UAAUC,SAAS,mBAAlC,CAEAX,IAAMY,EAAOJ,EAAUK,cAAc,cACrC,GAAID,EAAM,CACRZ,IAAMc,EAASF,EAAKG,QAAQC,OAASJ,EAAKK,UAC1CL,EAAKK,UAAYf,KAAKgB,eAAeC,SAASL,EAAQ,IACxD,CAEAd,IAAMoB,EAAOZ,EAAUK,cAAc,cACrC,GAAIO,EAAM,CACRpB,IAAMc,EAASM,EAAKL,QAAQC,MAC5BI,EAAKH,UAAYf,KAAKmB,cAAc,IAAIC,KAA4B,IAAvBH,SAASL,EAAQ,KAChE,CAZsD,CAaxD,GAGFS,OAAOC,iBAAiB,oBAAkB,WAExCxB,IAAMyB,EAAaC,SAASb,cAAc,qBAC1C,GAAIY,EAAY,CACdzB,IAAMc,EAASW,EAAWV,QAAQC,OAASS,EAAWR,UACtDQ,EAAWR,UAAYf,KAAKgB,eAAeC,SAASL,EAAQ,IAC9D,CAGAZ,KAAKC,SAAW,IAAIwB,SAAS,CAC3BC,mBAAmB,EACnBC,eAAgB3B,KAAKI,uBAKvBN,IAAM8B,EAAiB,IAAIC,OAAO,GAAG7B,KAAKG,aAAa2B,KAAG,SAACC,GACzD,OAAOA,EAAIC,UAAU,EACvB,IAAGC,KAAK,KAAQ,KAEhBjC,KAAKE,SAAW,IAAIgC,eAAe,iBAAkB,CACnDC,UAAU,EACVC,gBAAiB,MACjBC,YAAa,OACbC,aAAc,MACdC,gBAAiB,SACjBC,aAAc,IACdC,QAASb,EACTc,YAAY,EACZC,cAAc,GAElB","file":"album.js","sourcesContent":["/* global LazyLoad, SimpleLightbox */\n\n// eslint-disable-next-line no-unused-vars\nconst lsKeys = {}\n\nconst page = {\n lazyLoad: null,\n lightbox: null,\n\n // Array of extensions that will be whitelisted for SimpleLightbox\n // Should only include image extensions that can be rendered directly on browsers\n lightboxExts: ['.gif', '.jpeg', '.jpg', '.png', '.svg', '.tif', '.tiff', '.webp', '.bmp'],\n\n updateImageContainer: element => {\n // Update size & string elements within each individual image container\n const container = element.parentNode.parentNode\n if (!container.classList.contains('image-container')) return\n\n const size = container.querySelector('.file-size')\n if (size) {\n const string = size.dataset.value || size.innerHTML\n size.innerHTML = page.getPrettyBytes(parseInt(string, 10))\n }\n\n const date = container.querySelector('.file-date')\n if (date) {\n const string = date.dataset.value\n date.innerHTML = page.getPrettyDate(new Date(parseInt(string, 10) * 1000))\n }\n }\n}\n\nwindow.addEventListener('DOMContentLoaded', () => {\n // Update size string in album header block\n const headerSize = document.querySelector('#count .file-size')\n if (headerSize) {\n const string = headerSize.dataset.value || headerSize.innerHTML\n headerSize.innerHTML = page.getPrettyBytes(parseInt(string, 10))\n }\n\n // Attach callback function to lazyloader\n page.lazyLoad = new LazyLoad({\n unobserve_entered: true,\n callback_enter: page.updateImageContainer\n })\n\n // Build RegExp out of imageExts array\n // SimpleLightbox demands RegExp for configuring supported file extensions\n const imageExtsRegex = new RegExp(`${page.lightboxExts.map(ext => {\n return ext.substring(1) // removes starting dot\n }).join('|')}`, 'i')\n\n page.lightbox = new SimpleLightbox('#table a.image', {\n captions: true,\n captionSelector: 'img',\n captionType: 'attr',\n captionsData: 'alt',\n captionPosition: 'bottom',\n captionDelay: 500,\n fileExt: imageExtsRegex,\n preloading: false,\n uniqueImages: false\n })\n})\n"]}
|
||||
{"version":3,"sources":["album.js"],"names":["const","lsKeys","page","lazyLoad","lightbox","lightboxExts","updateImageContainer","element","container","parentNode","classList","contains","size","querySelector","string","dataset","value","innerHTML","getPrettyBytes","parseInt","date","getPrettyDate","Date","window","addEventListener","headerSize","document","LazyLoad","unobserve_entered","callback_enter","SimpleLightbox","captions","captionSelector","captionType","captionsData","captionPosition","captionDelay","fileExt","map","ext","substring","join","preloading","uniqueImages"],"mappings":"AAGAA,IAAMC,OAAS,CAAA,EAETC,KAAO,CACXC,SAAU,KACVC,SAAU,KAIVC,aAAc,CAAC,OAAQ,QAAS,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,QAElFC,qBAAoB,SAAEC,GAEpBP,IAAMQ,EAAYD,EAAQE,WAAWA,WACrC,GAAKD,EAAUE,UAAUC,SAAS,mBAAlC,CAEAX,IAAMY,EAAOJ,EAAUK,cAAc,cACrC,GAAID,EAAM,CACRZ,IAAMc,EAASF,EAAKG,QAAQC,OAASJ,EAAKK,UAC1CL,EAAKK,UAAYf,KAAKgB,eAAeC,SAASL,EAAQ,IACxD,CAEAd,IAAMoB,EAAOZ,EAAUK,cAAc,cACrC,GAAIO,EAAM,CACRpB,IAAMc,EAASM,EAAKL,QAAQC,MAC5BI,EAAKH,UAAYf,KAAKmB,cAAc,IAAIC,KAA4B,IAAvBH,SAASL,EAAQ,KAChE,CAZsD,CAaxD,GAGFS,OAAOC,iBAAiB,oBAAkB,WAExCxB,IAAMyB,EAAaC,SAASb,cAAc,qBAC1C,GAAIY,EAAY,CACdzB,IAAMc,EAASW,EAAWV,QAAQC,OAASS,EAAWR,UACtDQ,EAAWR,UAAYf,KAAKgB,eAAeC,SAASL,EAAQ,IAC9D,CAGAZ,KAAKC,SAAW,IAAIwB,SAAS,CAC3BC,mBAAmB,EACnBC,eAAgB3B,KAAKI,uBAGvBJ,KAAKE,SAAW,IAAI0B,eAAe,iBAAkB,CACnDC,UAAU,EACVC,gBAAiB,MACjBC,YAAa,OACbC,aAAc,MACdC,gBAAiB,SACjBC,aAAc,IACdC,QAASnC,KAAKG,aAAaiC,KAAG,SAACC,GAC7B,OAAOA,EAAIC,UAAU,EACvB,IAAGC,KAAK,KACRC,YAAY,EACZC,cAAc,GAElB","file":"album.js","sourcesContent":["/* global LazyLoad, SimpleLightbox */\n\n// eslint-disable-next-line no-unused-vars\nconst lsKeys = {}\n\nconst page = {\n lazyLoad: null,\n lightbox: null,\n\n // Array of extensions that will be whitelisted for SimpleLightbox\n // Should only include image extensions that can be rendered directly on browsers\n lightboxExts: ['.gif', '.jpeg', '.jpg', '.png', '.svg', '.tif', '.tiff', '.webp', '.bmp'],\n\n updateImageContainer: element => {\n // Update size & string elements within each individual image container\n const container = element.parentNode.parentNode\n if (!container.classList.contains('image-container')) return\n\n const size = container.querySelector('.file-size')\n if (size) {\n const string = size.dataset.value || size.innerHTML\n size.innerHTML = page.getPrettyBytes(parseInt(string, 10))\n }\n\n const date = container.querySelector('.file-date')\n if (date) {\n const string = date.dataset.value\n date.innerHTML = page.getPrettyDate(new Date(parseInt(string, 10) * 1000))\n }\n }\n}\n\nwindow.addEventListener('DOMContentLoaded', () => {\n // Update size string in album header block\n const headerSize = document.querySelector('#count .file-size')\n if (headerSize) {\n const string = headerSize.dataset.value || headerSize.innerHTML\n headerSize.innerHTML = page.getPrettyBytes(parseInt(string, 10))\n }\n\n // Attach callback function to lazyloader\n page.lazyLoad = new LazyLoad({\n unobserve_entered: true,\n callback_enter: page.updateImageContainer\n })\n\n page.lightbox = new SimpleLightbox('#table a.image', {\n captions: true,\n captionSelector: 'img',\n captionType: 'attr',\n captionsData: 'alt',\n captionPosition: 'bottom',\n captionDelay: 500,\n fileExt: page.lightboxExts.map(ext => {\n return ext.substring(1) // removes starting dot\n }).join('|'),\n preloading: false,\n uniqueImages: false\n })\n})\n"]}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"1": "1693994216",
|
||||
"1": "1694019565",
|
||||
"2": "1602515119",
|
||||
"3": "1650485321",
|
||||
"4": "1602515119",
|
||||
|
Loading…
Reference in New Issue
Block a user