feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
63
modules/backend/assets/js/vendor/jquery.waterfall.js
vendored
Normal file
63
modules/backend/assets/js/vendor/jquery.waterfall.js
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
(function($) {
|
||||
/**
|
||||
* Runs functions given in arguments in series, each functions passing their results to the next one.
|
||||
* Return jQuery Deferred object.
|
||||
*
|
||||
* @example
|
||||
* $.waterfall(
|
||||
* function() { return $.ajax({url : first_url}) },
|
||||
* function() { return $.ajax({url : second_url}) },
|
||||
* function() { return $.ajax({url : another_url}) }
|
||||
*).fail(function() {
|
||||
* console.log(arguments)
|
||||
*).done(function() {
|
||||
* console.log(arguments)
|
||||
*})
|
||||
*
|
||||
* @example2
|
||||
* event_chain = [];
|
||||
* event_chain.push(function() { var deferred = $.Deferred(); deferred.resolve(); return deferred; });
|
||||
* $.waterfall.apply(this, event_chain).fail(function(){}).done(function(){});
|
||||
*
|
||||
* @author Dmitry (dio) Levashov, dio@std42.ru
|
||||
* @return jQuery.Deferred
|
||||
*/
|
||||
$.waterfall = function() {
|
||||
var steps = [],
|
||||
dfrd = $.Deferred(),
|
||||
pointer = 0;
|
||||
|
||||
$.each(arguments, function(i, a) {
|
||||
steps.push(function() {
|
||||
var args = [].slice.apply(arguments), d;
|
||||
|
||||
if (typeof(a) == 'function') {
|
||||
if (!((d = a.apply(null, args)) && d.promise)) {
|
||||
d = $.Deferred()[d === false ? 'reject' : 'resolve'](d);
|
||||
}
|
||||
} else if (a && a.promise) {
|
||||
d = a;
|
||||
} else {
|
||||
d = $.Deferred()[a === false ? 'reject' : 'resolve'](a);
|
||||
}
|
||||
|
||||
d.fail(function() {
|
||||
dfrd.reject.apply(dfrd, [].slice.apply(arguments));
|
||||
})
|
||||
.done(function(data) {
|
||||
pointer++;
|
||||
args.push(data);
|
||||
|
||||
pointer == steps.length
|
||||
? dfrd.resolve.apply(dfrd, args)
|
||||
: steps[pointer].apply(null, args);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
steps.length ? steps[0]() : dfrd.resolve();
|
||||
|
||||
return dfrd;
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user