Updated: Waypoints v4.0.0 -> v4.0.1 (#108)

This commit is contained in:
nobody 2020-09-17 05:37:42 +02:00
parent fbc954f731
commit 6dc5d75372
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
11 changed files with 102 additions and 6 deletions

View File

@ -339,7 +339,13 @@ var mappings = {
'urlive/{version}/jquery.urlive.': resources.jqueryURLive,
'vue/{version}/vue.min.js': resources.vueJs,
'vue-resource/{version}/vue-resource.': resources.vueResource,
'waypoints/{version}/noframework.waypoints.': resources.jQueryWaypoints,
'waypoints/{version}/jquery.waypoints.': resources.jQueryWaypoints,
'waypoints/{version}/waypoints.debug.': resources.jQueryWaypoints,
'waypoints/{version}/zepto.waypoints.': resources.jQueryWaypoints,
'waypoints/{version}/shortcuts/infinite.': resources.jQueryWaypoints,
'waypoints/{version}/shortcuts/inview.': resources.jQueryWaypoints,
'waypoints/{version}/shortcuts/sticky.': resources.jQueryWaypoints,
'webfont/{version}/webfont.js': resources.webfontloader,
'webfont/{version}/webfontloader.js': resources.webfontloader,
'webrtc-adapter/{version}/adapter.min.js': resources.webRTCadapter,

View File

@ -746,9 +746,9 @@ var resources = {
'path': 'resources/vue-resource/{version}/vue-resource.min.jsm',
'type': 'application/javascript'
},
// Waypoints (jQuery)
// Waypoints (bundle)
'jQueryWaypoints': {
'path': 'resources/waypoints/{version}/jquery.waypoints.min.jsm',
'path': 'resources/waypoints/{version}/',
'type': 'application/javascript'
},
// WebComponents.js

View File

@ -245,6 +245,8 @@ helpers.determineBundle = function (path = '') {
return 'Bootstrap Datepicker';
} else if (path.includes('/jquery.lazy/')) {
return 'jQuery Lazy';
} else if (path.includes('/waypoints/')) {
return 'Waypoints';
} else {
return '';
}
@ -559,8 +561,8 @@ helpers.setLastVersion = function (type, version) {
return '2.6.12';
} else if (type.includes('/vue-resource/1.')) {
return '1.5.1';
} else if (type.includes('/waypoints/4.') && type.includes('jquery.waypoints')) {
return '4.0.0';
} else if (type.includes('/waypoints/4.')) {
return '4.0.1';
} else if (type.includes('webfont')) {
return '1.6.28';
} else if (type.includes('/webrtc-adapter/6.')) {
@ -593,6 +595,13 @@ helpers.compareVersion = function (v1, v2) {
const ListOfFiles = {
'slick-lightbox.css': 'slick-lightbox CSS',
'slick-lightbox.min.jsm': 'slick-lightbox JS',
'noframework.waypoints.min.jsm': 'Waypoints (Bundle)',
'jquery.waypoints.min.jsm': 'Waypoints (Bundle)',
'waypoints.debug.jsm': 'Waypoints (Bundle)',
'zepto.waypoints.min.jsm': 'Waypoints (Bundle)',
'shortcuts/infinite.min.jsm': 'Waypoints (Bundle)',
'shortcuts/inview.min.jsm': 'Waypoints (Bundle)',
'shortcuts/sticky.min.jsm': 'Waypoints (Bundle)',
'angular-translate.min.jsm': 'Angular Translate',
'angular-translate-interpolation-messageformat.min.jsm': 'Angular Translate Interpolation Messageformat',
'angular-translate-loader-static-files.min.jsm': 'Angular Translate Load Static Files',
@ -630,7 +639,6 @@ const ListOfFiles = {
'owl.theme.min.css': 'OwlCarousel (CSS Theme)',
'owl.carousel.min.css': 'OwlCarousel (CSS)',
'owl.carousel.min.jsm': 'OwlCarousel (JS)',
'jquery.waypoints.min.jsm': 'Waypoints (jQuery)',
'bootstrap-datepicker3.standalone.min.css': 'Bootstrap Datepicker 3 (CSS)',
'jets.min.jsm': 'Jets.js',
'lazyload.min.jsm': 'Vanilla Lazyload',

View File

@ -59,6 +59,7 @@
<li>Fixed: File name conversion (FontAwesomeJS, SwiperJS)</li>
<li>Added: Slick in cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
<li>Added: Slick Lightbox v0.2.12 (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
<li>Updated: Waypoints v4.0.0 -> v4.0.1 (and used the whole package) (<a href="https://codeberg.org/nobody/LocalCDN/issues/108">#108</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">

View File

@ -0,0 +1,7 @@
/*!
Waypoints Infinite Scroll Shortcut - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!function(){"use strict";function t(n){this.options=i.extend({},t.defaults,n),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=i(this.container),this.$more=i(this.options.more),this.$more.length&&(this.setupHandler(),this.waypoint=new o(this.options))}var i=window.jQuery,o=window.Waypoint;t.prototype.setupHandler=function(){this.options.handler=i.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.addClass(this.options.loadingClass),i.get(i(this.options.more).attr("href"),i.proxy(function(t){var n=i(i.parseHTML(t)),e=n.find(this.options.more),s=n.find(this.options.items);s.length||(s=n.filter(this.options.items)),this.$container.append(s),this.$container.removeClass(this.options.loadingClass),e.length||(e=n.filter(this.options.more)),e.length?(this.$more.replaceWith(e),this.$more=e,this.waypoint=new o(this.options)):this.$more.remove(),this.options.onAfterPageLoad(s)},this))},this)},t.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},t.defaults={container:"auto",items:".infinite-item",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:i.noop,onAfterPageLoad:i.noop},o.Infinite=t}();

View File

@ -0,0 +1,7 @@
/*!
Waypoints Inview Shortcut - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!function(){"use strict";function t(){}function e(t){this.options=i.Adapter.extend({},e.defaults,t),this.axis=this.options.horizontal?"horizontal":"vertical",this.waypoints=[],this.element=this.options.element,this.createWaypoints()}var i=window.Waypoint;e.prototype.createWaypoints=function(){for(var t={vertical:[{down:"enter",up:"exited",offset:"100%"},{down:"entered",up:"exit",offset:"bottom-in-view"},{down:"exit",up:"entered",offset:0},{down:"exited",up:"enter",offset:function(){return-this.adapter.outerHeight()}}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerWidth()}}]},e=0,i=t[this.axis].length;i>e;e++){var n=t[this.axis][e];this.createWaypoint(n)}},e.prototype.createWaypoint=function(t){var e=this;this.waypoints.push(new i({context:this.options.context,element:this.options.element,enabled:this.options.enabled,handler:function(t){return function(i){e.options[t[i]].call(e,i)}}(t),offset:t.offset,horizontal:this.options.horizontal}))},e.prototype.destroy=function(){for(var t=0,e=this.waypoints.length;e>t;t++)this.waypoints[t].destroy();this.waypoints=[]},e.prototype.disable=function(){for(var t=0,e=this.waypoints.length;e>t;t++)this.waypoints[t].disable()},e.prototype.enable=function(){for(var t=0,e=this.waypoints.length;e>t;t++)this.waypoints[t].enable()},e.defaults={context:window,enabled:!0,enter:t,entered:t,exit:t,exited:t},i.Inview=e}();

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
/*!
Waypoints Sticky Element Shortcut - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!function(){"use strict";function t(s){this.options=e.extend({},i.defaults,t.defaults,s),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,s=i?this.$element.outerHeight(!0):"";this.$wrapper.height(s),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}();

View File

@ -0,0 +1,46 @@
/*!
Waypoints Debug - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
(function() {
'use strict'
var displayNoneMessage = [
'You have a Waypoint element with display none. For more information on ',
'why this is a bad idea read ',
'http://imakewebthings.com/waypoints/guides/debugging/#display-none'
].join('')
var fixedMessage = [
'You have a Waypoint element with fixed positioning. For more ',
'information on why this is a bad idea read ',
'http://imakewebthings.com/waypoints/guides/debugging/#fixed-position'
].join('')
function checkWaypointStyles() {
var originalRefresh = window.Waypoint.Context.prototype.refresh
window.Waypoint.Context.prototype.refresh = function() {
for (var axis in this.waypoints) {
for (var key in this.waypoints[axis]) {
var waypoint = this.waypoints[axis][key]
var style = window.getComputedStyle(waypoint.element)
if (!waypoint.enabled) {
continue
}
if (style && style.display === 'none') {
console.error(displayNoneMessage)
}
if (style && style.position === 'fixed') {
console.error(fixedMessage)
}
}
}
return originalRefresh.call(this)
}
}
checkWaypointStyles()
}())
;

File diff suppressed because one or more lines are too long