mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
dist: rebuilt client assets and bumped v1 version string
This commit is contained in:
parent
d60de02faa
commit
fea3126c2e
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"]};window.addEventListener("DOMContentLoaded",(function(){for(var e=document.querySelectorAll(".image-container"),t=0;t<e.length;t++){var a=e[t].querySelector(".details .file-size");if(a){var i=a.dataset.value||a.innerHTML.replace(/\s*B$/i,"");a.innerHTML=page.getPrettyBytes(parseInt(i))}var n=e[t].querySelector(".details .file-date");if(n){var o=n.dataset.value;n.innerHTML=page.getPrettyDate(new Date(1e3*parseInt(o)))}}page.lazyLoad=new LazyLoad;var l=new RegExp(""+page.lightboxExts.map((function(e){return e.substring(1)})).join("|"),"i");console.log(l),page.lightbox=new SimpleLightbox("#table a.image",{captions:!0,captionSelector:"img",captionType:"attr",captionsData:"alt",captionPosition:"bottom",captionDelay:500,fileExt:l,preloading:!1,uniqueImages:!1})}));
|
||||
var lsKeys={},page={lazyLoad:null,lightbox:null,lightboxExts:[".gif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp",".bmp"]};window.addEventListener("DOMContentLoaded",(function(){for(var e=document.querySelectorAll(".file-size"),t=0;t<e.length;t++){var a=e[t].dataset.value||e[t].innerHTML;e[t].innerHTML=page.getPrettyBytes(parseInt(a,10))}for(var n=document.querySelectorAll(".file-date"),i=0;i<n.length;i++){var o=n[i].dataset.value;n[i].innerHTML=page.getPrettyDate(new Date(1e3*parseInt(o,10)))}page.lazyLoad=new LazyLoad;var l=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:l,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","window","addEventListener","files","document","querySelectorAll","i","length","sizeElem","querySelector","str","dataset","value","innerHTML","replace","getPrettyBytes","parseInt","dateElem","getPrettyDate","Date","LazyLoad","imageExtsRegex","RegExp","map","ext","substring","join","console","log","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,SAGpFC,OAAOC,iBAAiB,oBAAkB,WAIxC,IAHAP,IAAMQ,EAAQC,SAASC,iBAAiB,oBAG/BC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAAK,CACrCX,IAAMa,EAAWL,EAAMG,GAAGG,cAAc,uBACxC,GAAID,EAAU,CACZb,IAAMe,EAAMF,EAASG,QAAQC,OAASJ,EAASK,UAAUC,QAAQ,SAAU,IAC3EN,EAASK,UAAYhB,KAAKkB,eAAeC,SAASN,GACpD,CAEAf,IAAMsB,EAAWd,EAAMG,GAAGG,cAAc,uBACxC,GAAIQ,EAAU,CACZtB,IAAMe,EAAMO,EAASN,QAAQC,MAC7BK,EAASJ,UAAYhB,KAAKqB,cAAc,IAAIC,KAAqB,IAAhBH,SAASN,IAC5D,CACF,CAEAb,KAAKC,SAAW,IAAIsB,SAIpBzB,IAAM0B,EAAiB,IAAIC,OAAO,GAAGzB,KAAKG,aAAauB,KAAG,SAACC,GACzD,OAAOA,EAAIC,UAAU,EACvB,IAAGC,KAAK,KAAQ,KAEhBC,QAAQC,IAAIP,GACZxB,KAAKE,SAAW,IAAI8B,eAAe,iBAAkB,CACnDC,UAAU,EACVC,gBAAiB,MACjBC,YAAa,OACbC,aAAc,MACdC,gBAAiB,SACjBC,aAAc,IACdC,QAASf,EACTgB,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\nwindow.addEventListener('DOMContentLoaded', () => {\n const files = document.querySelectorAll('.image-container')\n\n // Prettify individual file's data rows\n for (let i = 0; i < files.length; i++) {\n const sizeElem = files[i].querySelector('.details .file-size')\n if (sizeElem) {\n const str = sizeElem.dataset.value || sizeElem.innerHTML.replace(/\\s*B$/i, '')\n sizeElem.innerHTML = page.getPrettyBytes(parseInt(str))\n }\n\n const dateElem = files[i].querySelector('.details .file-date')\n if (dateElem) {\n const str = dateElem.dataset.value\n dateElem.innerHTML = page.getPrettyDate(new Date(parseInt(str) * 1000))\n }\n }\n\n page.lazyLoad = new LazyLoad()\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 console.log(imageExtsRegex)\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","window","addEventListener","sizeElements","document","querySelectorAll","i","length","string","dataset","value","innerHTML","getPrettyBytes","parseInt","dateElements","getPrettyDate","Date","LazyLoad","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,SAGpFC,OAAOC,iBAAiB,oBAAkB,WAGxC,IADAP,IAAMQ,EAAeC,SAASC,iBAAiB,cACtCC,EAAI,EAAGA,EAAIH,EAAaI,OAAQD,IAAK,CAC5CX,IAAMa,EAASL,EAAaG,GAAGG,QAAQC,OAASP,EAAaG,GAAGK,UAChER,EAAaG,GAAGK,UAAYd,KAAKe,eAAeC,SAASL,EAAQ,IACnE,CAIA,IADAb,IAAMmB,EAAeV,SAASC,iBAAiB,cACtCC,EAAI,EAAGA,EAAIQ,EAAaP,OAAQD,IAAK,CAC5CX,IAAMa,EAASM,EAAaR,GAAGG,QAAQC,MACvCI,EAAaR,GAAGK,UAAYd,KAAKkB,cAAc,IAAIC,KAA4B,IAAvBH,SAASL,EAAQ,KAC3E,CAEAX,KAAKC,SAAW,IAAImB,SAIpBtB,IAAMuB,EAAiB,IAAIC,OAAO,GAAGtB,KAAKG,aAAaoB,KAAG,SAACC,GACzD,OAAOA,EAAIC,UAAU,EACvB,IAAGC,KAAK,KAAQ,KAEhB1B,KAAKE,SAAW,IAAIyB,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\nwindow.addEventListener('DOMContentLoaded', () => {\n // Prettify all .file-size elements\n const sizeElements = document.querySelectorAll('.file-size')\n for (let i = 0; i < sizeElements.length; i++) {\n const string = sizeElements[i].dataset.value || sizeElements[i].innerHTML\n sizeElements[i].innerHTML = page.getPrettyBytes(parseInt(string, 10))\n }\n\n // Prettify all .file-date elements\n const dateElements = document.querySelectorAll('.file-date')\n for (let i = 0; i < dateElements.length; i++) {\n const string = dateElements[i].dataset.value\n dateElements[i].innerHTML = page.getPrettyDate(new Date(parseInt(string, 10) * 1000))\n }\n\n page.lazyLoad = new LazyLoad()\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"]}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"1": "1664553797",
|
||||
"1": "1664643387",
|
||||
"2": "1602515119",
|
||||
"3": "1650485321",
|
||||
"4": "1602515119",
|
||||
|
Loading…
Reference in New Issue
Block a user