From dcf1865b542a6793da14c743c0070c4a9d0eb451 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak
"+n.content+"
").text(),a(n.htmlAllowed)&&e.attr("data-html-allowed",n.htmlAllowed),a(n.content)&&(e.find(".snackbar-content").length?e.find(".snackbar-content").html(n.content):e.prepend(""),e.attr("data-content",n.content)),o?e.appendTo("#snackbar-container"):e.insertAfter("#snackbar-container .snackbar:last-child"),a(n.action)&&"toggle"==n.action&&(n.action=i?"hide":"show");var s=Date.now();e.data("animationId1",s),setTimeout(function(){e.data("animationId1")===s&&(a(n.action)&&"show"!=n.action?a(n.action)&&"hide"==n.action&&e.removeClass("snackbar-opened"):e.addClass("snackbar-opened"))},50);var c=Date.now();return e.data("animationId2",c),0!==n.timeout&&setTimeout(function(){e.data("animationId2")===c&&e.removeClass("snackbar-opened")},n.timeout),e}return!1},t.fn.snackbar=function(n){if("undefined"!=typeof n){var e={};if(this.hasClass("snackbar"))return e={id:this.attr("id"),content:t(this).attr("data-content"),style:t(this).attr("data-style"),timeout:t(this).attr("data-timeout"),htmlAllowed:t(this).attr("data-html-allowed")},("show"===n||"hide"===n||"toggle"==n)&&(e.action=n),t.snackbar(e);a(n)&&"show"!==n&&"hide"!==n&&"toggle"!=n||(e={content:t(this).attr("data-content"),style:t(this).attr("data-style"),timeout:t(this).attr("data-timeout"),htmlAllowed:t(this).attr("data-html-allowed")}),a(n)&&(e.id=this.attr("data-snackbar-id"),("show"===n||"hide"===n||"toggle"==n)&&(e.action=n));var o=t.snackbar(e);return this.attr("data-snackbar-id",o.attr("id")),o}}}); \ No newline at end of file diff --git a/src/meta/js.js b/src/meta/js.js index a6dc73331e..c2ccdabedf 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -85,7 +85,6 @@ JS.scripts = { 'public/vendor/semver/semver.browser.js', 'public/vendor/jquery/serializeObject/jquery.ba-serializeobject.min.js', 'public/vendor/jquery/deserialize/jquery.deserialize.min.js', - 'public/vendor/snackbar/snackbar.min.js', 'public/vendor/slideout/slideout.min.js', 'public/vendor/nprogress.min.js', ], diff --git a/src/meta/minifier.js b/src/meta/minifier.js index e14761a707..a7e2e422ed 100644 --- a/src/meta/minifier.js +++ b/src/meta/minifier.js @@ -280,7 +280,9 @@ function buildCSS(data, callback) { clean({ processImportFrom: ['local'], }), - ] : [autoprefixer]).process(lessOutput.css).then(function (result) { + ] : [autoprefixer]).process(lessOutput.css, { + from: undefined, + }).then(function (result) { process.nextTick(callback, null, { code: result.css }); }, function (err) { process.nextTick(callback, err); diff --git a/src/views/admin/footer.tpl b/src/views/admin/footer.tpl index de228ce0d7..1f6d36eb70 100644 --- a/src/views/admin/footer.tpl +++ b/src/views/admin/footer.tpl @@ -3,10 +3,7 @@