1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-24 17:20:49 +01:00

nprogress v0.2.0 (#1254)

This commit is contained in:
nobody 2022-12-14 06:25:23 +01:00
parent bbcb6a3cd8
commit 8f075aaaa4
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
7 changed files with 22 additions and 0 deletions

View File

@ -1379,6 +1379,8 @@ https://cdnjs.cloudflare.com/ajax/libs/mootools/1.4.5/mootools-core-full-compat-
https://cdnjs.cloudflare.com/ajax/libs/mootools/1.6.0/mootools-core.min.js
https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.7.0/nouislider.min.js
https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.6.1/nouislider.min.js
https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css
https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js
https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.css
https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.js
https://cdnjs.cloudflare.com/ajax/libs/oclazyload/1.1.0/ocLazyLoad.min.js

View File

@ -416,6 +416,10 @@ mappings.cdn = {
'moment.js/{version}/moment.min.': resources.moment,
'moment.js/{version}/moment-with-locales.': resources.moment,
'mootools/{version}/mootools-core': resources.mootools,
'nprogress/{version}/nprogress.min.js': resources.nprogressJS,
'nprogress/{version}/nprogress.js': resources.nprogressJS,
'nprogress/{version}/nprogress.min.css': resources.nprogressCSS,
'nprogress/{version}/nprogress.css': resources.nprogressCSS,
'noUiSlider/{version}/nouislider.js': resources.noUiSlider,
'noUiSlider/{version}/nouislider.min.js': resources.noUiSlider,
'nvd3/{version}/nv.d3.min.js': resources.nvd3JS,

View File

@ -808,6 +808,13 @@ var resources = {
'ngxBootstrapDatepicker': {
'path': 'resources/ngx-bootstrap/{version}/datepicker/bs-datepicker.css'
},
// nprogress
'nprogressCSS': {
'path': 'resources/nprogress/{version}/nprogress.min.css'
},
'nprogressJS': {
'path': 'resources/nprogress/{version}/nprogress.min.jsm'
},
// noUiSlider
'noUiSlider': {
'path': 'resources/noUiSlider/{version}/nouislider.min.jsm'

View File

@ -365,6 +365,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/ngx-bootstrap/10.')) return '10.0.0';
if (type.startsWith('/noUiSlider/14.')) return '14.7.0';
if (type.startsWith('/noUiSlider/15.')) return '15.6.1';
if (type.startsWith('/nprogress/0.')) return '0.2.0';
if (type.startsWith('/nvd3/1.')) return '1.8.6';
if (type.startsWith('/object-assign@4.')) return '4.1.1';
if (type.startsWith('/oclazyload/1.')) return '1.1.0';
@ -500,6 +501,8 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'nprogress.min.jsm': 'nprogress (JS)',
'nprogress.min.css': 'nprogress (CSS)',
'swagger-ui-bundle.min.jsm': 'Swagger-UI (JS)',
'swagger-ui.min.css': 'Swagger-UI (CSS)',
'knockout.mapping.min.jsm': 'knockout.mapping',

View File

@ -32,6 +32,10 @@
<li>paginationjs v2.4.1 -> v2.4.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1252">#1252</a>)</li>
<li>findify-bundle v7.1.77 -> v7.1.78 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1253">#1253</a>)</li>
</ul>
<p>Added</p>
<ul>
<li>nprogress v0.2.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1254">#1254</a>)</li>
</ul>
<p>Improved</p>
<ul>
<li>HTML filter active by default (<a href="https://codeberg.org/nobody/LocalCDN/issues/1249">#1249</a>)</li>

View File

@ -0,0 +1 @@
#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0,-4px);-ms-transform:rotate(3deg) translate(0,-4px);transform:rotate(3deg) translate(0,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

View File

@ -0,0 +1 @@
!function(n,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():n.NProgress=e()}(this,function(){function n(n,e,t){return e>n?e:n>t?t:n}function e(n){return 100*(-1+n)}function t(n,t,r){var i;return i="translate3d"===c.positionUsing?{transform:"translate3d("+e(n)+"%,0,0)"}:"translate"===c.positionUsing?{transform:"translate("+e(n)+"%,0)"}:{"margin-left":e(n)+"%"},i.transition="all "+t+"ms "+r,i}function r(n,e){var t="string"==typeof n?n:o(n);return t.indexOf(" "+e+" ")>=0}function i(n,e){var t=o(n),i=t+e;r(t,e)||(n.className=i.substring(1))}function s(n,e){var t,i=o(n);r(n,e)&&(t=i.replace(" "+e+" "," "),n.className=t.substring(1,t.length-1))}function o(n){return(" "+(n.className||"")+" ").replace(/\s+/gi," ")}function a(n){n&&n.parentNode&&n.parentNode.removeChild(n)}var u={};u.version="0.2.0";var c=u.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};u.configure=function(n){var e,t;for(e in n)t=n[e],void 0!==t&&n.hasOwnProperty(e)&&(c[e]=t);return this},u.status=null,u.set=function(e){var r=u.isStarted();e=n(e,c.minimum,1),u.status=1===e?null:e;var i=u.render(!r),s=i.querySelector(c.barSelector),o=c.speed,a=c.easing;return i.offsetWidth,l(function(n){""===c.positionUsing&&(c.positionUsing=u.getPositioningCSS()),f(s,t(e,o,a)),1===e?(f(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){f(i,{transition:"all "+o+"ms linear",opacity:0}),setTimeout(function(){u.remove(),n()},o)},o)):setTimeout(n,o)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var n=function(){setTimeout(function(){u.status&&(u.trickle(),n())},c.trickleSpeed)};return c.trickle&&n(),this},u.done=function(n){return n||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(e){var t=u.status;return t?("number"!=typeof e&&(e=(1-t)*n(Math.random()*t,.1,.95)),t=n(t+e,0,.994),u.set(t)):u.start()},u.trickle=function(){return u.inc(Math.random()*c.trickleRate)},function(){var n=0,e=0;u.promise=function(t){return t&&"resolved"!==t.state()?(0===e&&u.start(),n++,e++,t.always(function(){e--,0===e?(n=0,u.done()):u.set((n-e)/n)}),this):this}}(),u.render=function(n){if(u.isRendered())return document.getElementById("nprogress");i(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=c.template;var r,s=t.querySelector(c.barSelector),o=n?"-100":e(u.status||0),l=document.querySelector(c.parent);return f(s,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),c.showSpinner||(r=t.querySelector(c.spinnerSelector),r&&a(r)),l!=document.body&&i(l,"nprogress-custom-parent"),l.appendChild(t),t},u.remove=function(){s(document.documentElement,"nprogress-busy"),s(document.querySelector(c.parent),"nprogress-custom-parent");var n=document.getElementById("nprogress");n&&a(n)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var n=document.body.style,e="WebkitTransform"in n?"Webkit":"MozTransform"in n?"Moz":"msTransform"in n?"ms":"OTransform"in n?"O":"";return e+"Perspective"in n?"translate3d":e+"Transform"in n?"translate":"margin"};var l=function(){function n(){var t=e.shift();t&&t(n)}var e=[];return function(t){e.push(t),1==e.length&&n()}}(),f=function(){function n(n){return n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,e){return e.toUpperCase()})}function e(n){var e=document.body.style;if(n in e)return n;for(var t,r=i.length,s=n.charAt(0).toUpperCase()+n.slice(1);r--;)if(t=i[r]+s,t in e)return t;return n}function t(t){return t=n(t),s[t]||(s[t]=e(t))}function r(n,e,r){e=t(e),n.style[e]=r}var i=["Webkit","O","Moz","ms"],s={};return function(n,e){var t,i,s=arguments;if(2==s.length)for(t in e)i=e[t],void 0!==i&&e.hasOwnProperty(t)&&r(n,t,i);else r(n,s[1],s[2])}}();return u});