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
b2a11ae42c
commit
1cd9894333
2
dist/css/player.css
vendored
2
dist/css/player.css
vendored
@ -1,2 +1,2 @@
|
||||
#inputForm,#playerContainer{margin-bottom:1.5rem}.video-js{margin:0 auto}.video-js.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay{height:calc(100% - 30px)!important}
|
||||
#inputForm,#playerContainer{margin-bottom:1.5rem}.video-js{margin:0 auto}.video-js.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay{height:calc(100% - 30px)!important}.video-js .vjs-loop-button .vjs-icon-placeholder,.video-js .vjs-seek-button .vjs-icon-placeholder{cursor:pointer;font-family:fontello;font-style:normal;font-weight:400}.video-js .vjs-loop-button .vjs-icon-placeholder:before,.video-js .vjs-seek-button .vjs-icon-placeholder:before{font-size:1.5em;line-height:1.97}.video-js .vjs-loop-button:not(.vjs-loop-enabled){color:#7a7a7a}.video-js .vjs-loop-button .vjs-icon-placeholder:before{content:"\e81f"}.video-js .vjs-seek-button.skip-back .vjs-icon-placeholder:before{content:"\e81e";transform:none}.video-js .vjs-seek-button.skip-forward .vjs-icon-placeholder:before{content:"\e818";transform:none}
|
||||
/*# sourceMappingURL=player.css.map */
|
||||
|
2
dist/css/player.css.map
vendored
2
dist/css/player.css.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"sources":["css/player.scss","css/player.css"],"names":[],"mappings":"AAKA,4BAEE,oBCAF,CDGA,UACE,aCAF,CDII,wDACE,kCCCN","file":"player.css","sourcesContent":["@charset \"utf-8\";\n@import \"_variables\";\n\n/** Main **/\n\n#inputForm,\n#playerContainer {\n margin-bottom: 1.5rem\n}\n\n.video-js {\n margin: 0 auto;\n\n &.vjs-wavesurfer.vjs-fluid {\n /* stylelint-disable-next-line selector-type-no-unknown */\n wave.vjs-wavedisplay {\n height: calc(100% - 30px) !important\n }\n }\n}\n","/* stylelint-disable scss/dollar-variable-empty-line-before */\n/* stylelint-disable-next-line value-keyword-case */\n/** Bulma: Variables **/\n/** Main **/\n#inputForm,\n#playerContainer {\n margin-bottom: 1.5rem;\n}\n\n.video-js {\n margin: 0 auto;\n}\n.video-js.vjs-wavesurfer.vjs-fluid {\n /* stylelint-disable-next-line selector-type-no-unknown */\n}\n.video-js.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {\n height: calc(100% - 30px) !important;\n}"]}
|
||||
{"version":3,"sources":["css/player.scss","css/player.css"],"names":[],"mappings":"AAKA,4BAEE,oBCAF,CDGA,UACE,aCAF,CDII,wDACE,kCCCN,CDKI,kGAKE,cAAA,CAHA,oBAAA,CAEA,iBAAA,CADA,eCAN,CDIM,gHACE,eAAA,CACA,gBCDR,CDOI,kDACE,aCLN,CDQI,wDACE,eCNN,CDWI,kEACE,eAAA,CACA,cCTN,CDYI,qEACE,eAAA,CACA,cCVN","file":"player.css","sourcesContent":["@charset \"utf-8\";\n@import \"_variables\";\n\n/** Main **/\n\n#inputForm,\n#playerContainer {\n margin-bottom: 1.5rem\n}\n\n.video-js {\n margin: 0 auto;\n\n &.vjs-wavesurfer.vjs-fluid {\n /* stylelint-disable-next-line selector-type-no-unknown */\n wave.vjs-wavedisplay {\n height: calc(100% - 30px) !important\n }\n }\n\n .vjs-loop-button,\n .vjs-seek-button {\n .vjs-icon-placeholder {\n /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */\n font-family: fontello;\n font-weight: normal;\n font-style: normal;\n cursor: pointer;\n\n &::before {\n font-size: 1.5em;\n line-height: 1.97\n }\n }\n }\n\n .vjs-loop-button {\n &:not(.vjs-loop-enabled) {\n color: $grey\n }\n\n .vjs-icon-placeholder::before {\n content: \"\\e81f\"\n }\n }\n\n .vjs-seek-button {\n &.skip-back .vjs-icon-placeholder::before {\n content: \"\\e81e\";\n transform: none\n }\n\n &.skip-forward .vjs-icon-placeholder::before {\n content: \"\\e818\";\n transform: none\n }\n }\n}\n","/* stylelint-disable scss/dollar-variable-empty-line-before */\n/* stylelint-disable-next-line value-keyword-case */\n/** Bulma: Variables **/\n/** Main **/\n#inputForm,\n#playerContainer {\n margin-bottom: 1.5rem;\n}\n\n.video-js {\n margin: 0 auto;\n}\n.video-js.vjs-wavesurfer.vjs-fluid {\n /* stylelint-disable-next-line selector-type-no-unknown */\n}\n.video-js.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {\n height: calc(100% - 30px) !important;\n}\n.video-js .vjs-loop-button .vjs-icon-placeholder,\n.video-js .vjs-seek-button .vjs-icon-placeholder {\n /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */\n font-family: fontello;\n font-weight: normal;\n font-style: normal;\n cursor: pointer;\n}\n.video-js .vjs-loop-button .vjs-icon-placeholder::before,\n.video-js .vjs-seek-button .vjs-icon-placeholder::before {\n font-size: 1.5em;\n line-height: 1.97;\n}\n.video-js .vjs-loop-button:not(.vjs-loop-enabled) {\n color: hsl(0deg, 0%, 48%);\n}\n.video-js .vjs-loop-button .vjs-icon-placeholder::before {\n content: \"\\e81f\";\n}\n.video-js .vjs-seek-button.skip-back .vjs-icon-placeholder::before {\n content: \"\\e81e\";\n transform: none;\n}\n.video-js .vjs-seek-button.skip-forward .vjs-icon-placeholder::before {\n content: \"\\e818\";\n transform: none;\n}"]}
|
2
dist/js/player.js
vendored
2
dist/js/player.js
vendored
@ -1,2 +1,2 @@
|
||||
var lsKeys={},page={urlPrefix:null,urlIdentifier:null,urlInput:document.querySelector("#identifier"),reloadBtn:document.querySelector("#reloadBtn"),downloadBtn:document.querySelector("#downloadBtn"),uploadRoot:null,titleFormat:null,videoContainer:document.querySelector("#playerContainer"),player:null};window.HELP_IMPROVE_VIDEOJS=!1,page.onError=function(e){console.error(e);var r=document.createElement("div");return r.innerHTML="\n <p><code>"+e.toString()+"</code></p>\n <p>Please check your console for more information.</p>\n ",swal({title:"An error occurred!",icon:"error",content:r})},page.onAxiosError=function(e){var r={520:"Unknown Error",521:"Web Server Is Down",522:"Connection Timed Out",523:"Origin Is Unreachable",524:"A Timeout Occurred",525:"SSL Handshake Failed",526:"Invalid SSL Certificate",527:"Railgun Error",530:"Origin DNS Error"}[e.response.status]||e.response.statusText,o=e.response.data&&e.response.data.description?e.response.data.description:"";return swal(e.response.status+" "+r,o,"error")},page.toggleReloadBtn=function(e){e?(page.reloadBtn.classList.remove("is-loading"),page.reloadBtn.removeAttribute("disabled")):(page.reloadBtn.classList.add("is-loading"),page.reloadBtn.setAttribute("disabled","disabled"))},page.reloadVideo=function(){if(page.urlInput.value){page.toggleReloadBtn(!1);var e=page.uploadRoot+"/"+page.urlInput.value;axios.head(e).then((function(r){if(![200,304].includes(r.status))return page.toggleReloadBtn(!0),page.onAxiosError(r);var o=r.headers["content-type"]||"",t=o.startsWith("video/"),a=o.startsWith("audio/");if(!t&&!a)return page.toggleReloadBtn(!0),swal("An error occurred!","The requested upload does not appear to be a media file.","error");page.urlIdentifier=page.urlInput.value,page.player&&(page.player.dispose(),page.videoContainer.innerHTML="");var n=document.createElement("video-js");n.id="video-js",n.className="video-js vjs-default-skin vjs-fluid vjs-big-play-centered",n.setAttribute("controls",!0),n.setAttribute("preload","auto"),page.videoContainer.appendChild(n);var i={language:"en",playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],responsive:!0};a&&(i.plugins={wavesurfer:{responsive:!0}}),page.player=videojs("video-js",i,(function(){var r="Using video.js "+videojs.VERSION;a&&(r+=" with videojs-wavesurfer "+videojs.getPluginVersion("wavesurfer")+" and wavesurfer.js "+WaveSurfer.VERSION),videojs.log(r),page.player.src({src:e,type:o})})),page.player.seekButtons({forward:10,back:10}),page.titleFormat&&(document.title=page.titleFormat.replace(/%identifier%/g,page.urlIdentifier)),page.downloadBtn&&page.downloadBtn.setAttribute("href",e),window.history.pushState(null,null,page.urlPrefix+page.urlIdentifier),page.toggleReloadBtn(!0)})).catch((function(e){page.toggleReloadBtn(!0),void 0!==e.response?page.onAxiosError(e):page.onError(e)}))}},window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector("#mainScript");if(e&&void 0!==e.dataset.uploadRoot){page.uploadRoot=e.dataset.uploadRoot,page.titleFormat=e.dataset.titleFormat;var r=window.location.protocol+"//"+window.location.host,o=window.location.pathname.match(/.*\/(.*)$/);if(!o||!o[1])return swal("An error occurred!","Failed to parse upload identifier from URL.","error");if(page.urlIdentifier=o[1],r+=window.location.pathname.substring(0,window.location.pathname.indexOf(o[1])),page.urlPrefix=r,page.urlInput){page.urlInput.value=page.urlIdentifier;var t=document.querySelector("#inputForm");t.addEventListener("submit",(function(e){e.preventDefault()})),page.videoContainer&&(page.reloadBtn=document.querySelector("#reloadBtn"),page.reloadBtn&&page.reloadBtn.addEventListener("click",(function(e){t.checkValidity()&&page.reloadVideo()})),page.reloadVideo())}}}));
|
||||
var lsKeys={},page={urlPrefix:null,urlIdentifier:null,urlInput:document.querySelector("#identifier"),reloadBtn:document.querySelector("#reloadBtn"),downloadBtn:document.querySelector("#downloadBtn"),uploadRoot:null,titleFormat:null,videoContainer:document.querySelector("#playerContainer"),player:null};window.HELP_IMPROVE_VIDEOJS=!1,page.onError=function(e){console.error(e);var o=document.createElement("div");return o.innerHTML="\n <p><code>"+e.toString()+"</code></p>\n <p>Please check your console for more information.</p>\n ",swal({title:"An error occurred!",icon:"error",content:o})},page.onAxiosError=function(e){var o={520:"Unknown Error",521:"Web Server Is Down",522:"Connection Timed Out",523:"Origin Is Unreachable",524:"A Timeout Occurred",525:"SSL Handshake Failed",526:"Invalid SSL Certificate",527:"Railgun Error",530:"Origin DNS Error"}[e.response.status]||e.response.statusText,t=e.response.data&&e.response.data.description?e.response.data.description:"";return swal(e.response.status+" "+o,t,"error")},page.toggleReloadBtn=function(e){e?(page.reloadBtn.classList.remove("is-loading"),page.reloadBtn.removeAttribute("disabled")):(page.reloadBtn.classList.add("is-loading"),page.reloadBtn.setAttribute("disabled","disabled"))},page.reloadVideo=function(){if(page.urlInput.value){page.toggleReloadBtn(!1);var e=page.uploadRoot+"/"+page.urlInput.value;axios.head(e).then((function(o){if(![200,304].includes(o.status))return page.toggleReloadBtn(!0),page.onAxiosError(o);var t=o.headers["content-type"]||"",r=t.startsWith("video/"),a=t.startsWith("audio/");if(!r&&!a)return page.toggleReloadBtn(!0),swal("An error occurred!","The requested upload does not appear to be a media file.","error");page.urlIdentifier=page.urlInput.value,page.player&&(page.player.dispose(),page.videoContainer.innerHTML="");var n=document.createElement("video-js");n.id="video-js",n.className="video-js vjs-default-skin vjs-fluid vjs-big-play-centered",n.setAttribute("controls",!0),n.setAttribute("preload","auto"),page.videoContainer.appendChild(n);var i={language:"en",playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],responsive:!0,plugins:{}};a&&(i.plugins.wavesurfer={responsive:!0}),page.player=videojs("video-js",i,(function(){var o="Using video.js "+videojs.VERSION;a&&(o+=" with videojs-wavesurfer "+videojs.getPluginVersion("wavesurfer")+" and wavesurfer.js "+WaveSurfer.VERSION),videojs.log(o),page.player.src({src:e,type:t})})),page.player.seekButtons({forward:10,back:10});var l=videojs.getComponent("Button"),d=function(){return page.player.loop()?"Disable loop":"Enable loop"},p=videojs.extend(l,{constructor:function(){l.apply(this,arguments),this.addClass("vjs-loop-button"),this.controlText(d())},handleClick:function(){page.player.loop(!page.player.loop()),this.toggleClass("vjs-loop-enabled",page.player.loop()),this.controlText(d())}});videojs.registerComponent("loopButton",p),page.player.getChild("controlBar").addChild("loopButton"),page.titleFormat&&(document.title=page.titleFormat.replace(/%identifier%/g,page.urlIdentifier)),page.downloadBtn&&page.downloadBtn.setAttribute("href",e),window.history.pushState(null,null,page.urlPrefix+page.urlIdentifier),page.toggleReloadBtn(!0)})).catch((function(e){page.toggleReloadBtn(!0),void 0!==e.response?page.onAxiosError(e):page.onError(e)}))}},window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector("#mainScript");if(e&&void 0!==e.dataset.uploadRoot){page.uploadRoot=e.dataset.uploadRoot,page.titleFormat=e.dataset.titleFormat;var o=window.location.protocol+"//"+window.location.host,t=window.location.pathname.match(/.*\/(.*)$/);if(!t||!t[1])return swal("An error occurred!","Failed to parse upload identifier from URL.","error");if(page.urlIdentifier=t[1],o+=window.location.pathname.substring(0,window.location.pathname.indexOf(t[1])),page.urlPrefix=o,page.urlInput){page.urlInput.value=page.urlIdentifier;var r=document.querySelector("#inputForm");r.addEventListener("submit",(function(e){e.preventDefault()})),page.videoContainer&&(page.reloadBtn=document.querySelector("#reloadBtn"),page.reloadBtn&&page.reloadBtn.addEventListener("click",(function(e){r.checkValidity()&&page.reloadVideo()})),page.reloadVideo())}}}));
|
||||
//# sourceMappingURL=player.js.map
|
||||
|
2
dist/js/player.js.map
vendored
2
dist/js/player.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
{
|
||||
"1": "1653633462",
|
||||
"1": "1653633961",
|
||||
"2": "1602515119",
|
||||
"3": "1650485321",
|
||||
"4": "1602515119",
|
||||
|
Loading…
Reference in New Issue
Block a user