From 5c8491b6b9be7a2c5a3ecb392a0aa39637b1e61d Mon Sep 17 00:00:00 2001 From: Dillon Date: Sun, 8 May 2022 02:42:41 +0800 Subject: [PATCH] chore(lib): update clipboard.js 2.0.6 -> 2.0.11 --- assets/data/cdn/jsdelivr.yml | 4 ++-- assets/lib/VERSION | 2 +- assets/lib/clipboard/clipboard.min.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index b8831028..81fdae48 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -31,8 +31,8 @@ libFiles: lightgalleryJS: lightgallery.js@1.2.0/dist/js/lightgallery.min.js lightgalleryThumbnailJS: lg-thumbnail.js@1.2.0/dist/lg-thumbnail.min.js lightgalleryZoomJS: lg-zoom.js@1.2.0/dist/lg-zoom.min.js - # clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js - clipboardJS: clipboard@2.0.6/dist/clipboard.min.js + # clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js + clipboardJS: clipboard@2.0.11/dist/clipboard.min.js # sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js sharerJS: sharer.js@0.4.0/sharer.min.js # typeit@7.0.4 https://github.com/alexmacarthur/typeit diff --git a/assets/lib/VERSION b/assets/lib/VERSION index 91d64b88..89655e3d 100644 --- a/assets/lib/VERSION +++ b/assets/lib/VERSION @@ -13,7 +13,7 @@ emoji-data@14.0.0 https://github.com/iamcal/emoji-data lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js -clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js +clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js typeit@7.0.4 https://github.com/alexmacarthur/typeit katex@0.15.3 https://katex.org/ diff --git a/assets/lib/clipboard/clipboard.min.js b/assets/lib/clipboard/clipboard.min.js index 28650f3c..1103f811 100644 --- a/assets/lib/clipboard/clipboard.min.js +++ b/assets/lib/clipboard/clipboard.min.js @@ -1,7 +1,7 @@ /*! - * clipboard.js v2.0.6 + * clipboard.js v2.0.11 * https://clipboardjs.com/ - * + * * Licensed MIT © Zeno Rocha */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o