From 2bcdfdbd3b40f12985f5322ca9403ad082a6c798 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 8 Nov 2016 12:44:23 +0300 Subject: [PATCH] removed ZeroClipboard --- apps/documenteditor/embed/index.html.deploy | 1 - apps/presentationeditor/embed/index.html.deploy | 1 - .../embed/index.html.opensource | 1 - apps/spreadsheeteditor/embed/index.html.deploy | 1 - build/presentationeditor.json | 16 ---------------- build/spreadsheeteditor.json | 16 ---------------- vendor/ZeroClipboard/ZeroClipboard.min.js | 3 --- vendor/ZeroClipboard/ZeroClipboard.swf | Bin 1071 -> 0 bytes vendor/ZeroClipboard/ZeroClipboard10.swf | Bin 1153 -> 0 bytes 9 files changed, 39 deletions(-) delete mode 100755 vendor/ZeroClipboard/ZeroClipboard.min.js delete mode 100755 vendor/ZeroClipboard/ZeroClipboard.swf delete mode 100755 vendor/ZeroClipboard/ZeroClipboard10.swf diff --git a/apps/documenteditor/embed/index.html.deploy b/apps/documenteditor/embed/index.html.deploy index ef2574afdc..119474a5f5 100644 --- a/apps/documenteditor/embed/index.html.deploy +++ b/apps/documenteditor/embed/index.html.deploy @@ -309,7 +309,6 @@ - diff --git a/apps/presentationeditor/embed/index.html.deploy b/apps/presentationeditor/embed/index.html.deploy index 828429f875..f2438a92ea 100644 --- a/apps/presentationeditor/embed/index.html.deploy +++ b/apps/presentationeditor/embed/index.html.deploy @@ -309,7 +309,6 @@ - diff --git a/apps/presentationeditor/embed/index.html.opensource b/apps/presentationeditor/embed/index.html.opensource index 8ccb3ceec6..751e3de3af 100644 --- a/apps/presentationeditor/embed/index.html.opensource +++ b/apps/presentationeditor/embed/index.html.opensource @@ -102,7 +102,6 @@ - diff --git a/apps/spreadsheeteditor/embed/index.html.deploy b/apps/spreadsheeteditor/embed/index.html.deploy index 3adb900beb..3ad1b258c7 100644 --- a/apps/spreadsheeteditor/embed/index.html.deploy +++ b/apps/spreadsheeteditor/embed/index.html.deploy @@ -310,7 +310,6 @@ - diff --git a/build/presentationeditor.json b/build/presentationeditor.json index 94d5c46617..0c3b16062d 100644 --- a/build/presentationeditor.json +++ b/build/presentationeditor.json @@ -459,21 +459,6 @@ "dest": "../deploy/web-apps/vendor/requirejs/require.js" } }, - "zeroclipboard": { - "clean": [ - "../deploy/web-apps/vendor/ZeroClipboard" - ], - "copy": { - "script": { - "expand": true, - "cwd": "../vendor/ZeroClipboard/", - "src": [ - "**" - ], - "dest": "../deploy/web-apps/vendor/ZeroClipboard/" - } - } - }, "obf_api": { "ccvars": "../../sdkjs/slide/variable.map", "ccprops": "../../sdkjs/slide/property.map", @@ -510,7 +495,6 @@ "deploy-touch", "deploy-jquery", "deploy-underscore", - "deploy-zeroclipboard", "deploy-bootstrap", "deploy-jszip", "deploy-jsziputils", diff --git a/build/spreadsheeteditor.json b/build/spreadsheeteditor.json index 971496fe49..6b5968c801 100644 --- a/build/spreadsheeteditor.json +++ b/build/spreadsheeteditor.json @@ -489,21 +489,6 @@ "dest": "../deploy/web-apps/vendor/requirejs/require.js" } }, - "zeroclipboard": { - "clean": [ - "../deploy/web-apps/vendor/ZeroClipboard" - ], - "copy": { - "script": { - "expand": true, - "cwd": "../vendor/ZeroClipboard/", - "src": [ - "**" - ], - "dest": "../deploy/web-apps/vendor/ZeroClipboard/" - } - } - }, "obf": { "api": "../deploy/sdkjs/cell/sdk-all.js", "pat": "asc_\\w+", @@ -528,7 +513,6 @@ "deploy-touch", "deploy-jquery", "deploy-underscore", - "deploy-zeroclipboard", "deploy-bootstrap", "deploy-jszip", "deploy-jsziputils", diff --git a/vendor/ZeroClipboard/ZeroClipboard.min.js b/vendor/ZeroClipboard/ZeroClipboard.min.js deleted file mode 100755 index a42d502323..0000000000 --- a/vendor/ZeroClipboard/ZeroClipboard.min.js +++ /dev/null @@ -1,3 +0,0 @@ -// Simple Set Clipboard System -// Author: Joseph Huckaby -var ZeroClipboard={version:"1.0.8",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){return typeof a=="string"&&(a=document.getElementById(a)),a.addClass||(a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a),this.className+=" "+a},a.removeClass=function(a){var b=this.className.split(/\s+/),c=-1;for(var d=0;d-1&&(b.splice(c,1),this.className=b.join(" ")),this},a.hasClass=function(a){return!!this.className.match(new RegExp("\\s*"+a+"\\s*"))}),a},setMoviePath:function(a){this.moviePath=a},newClient:function(){return new ZeroClipboard.Client},dispatch:function(a,b,c){var d=this.clients[a];d&&d.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a,b){var c={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};while(a&&a!=b)c.left+=a.offsetLeft,c.top+=a.offsetTop,a=a.offsetParent;return c},Client:function(a){this.handlers={},this.id=ZeroClipboard.nextId++,this.movieId="ZeroClipboardMovie_"+this.id,ZeroClipboard.register(this.id,this),a&&this.glue(a)}};ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",handCursorEnabled:!0,cssEffects:!0,handlers:null,zIndex:99,glue:function(a,b,c){this.domElement=ZeroClipboard.$(a),this.domElement.style.zIndex&&(this.zIndex=parseInt(this.domElement.style.zIndex,10)+1),typeof b=="string"?b=ZeroClipboard.$(b):typeof b=="undefined"&&(b=document.getElementsByTagName("body")[0]);var d=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");var e=this.div.style;e.position="absolute",e.left=""+d.left+"px",e.top=""+d.top+"px",e.width=""+d.width+"px",e.height=""+d.height+"px",e.zIndex=this.zIndex;if(typeof c=="object")for(var f in c)e[f]=c[f];b.appendChild(this.div),this.div.innerHTML=this.getHTML(d.width,d.height)},getHTML:function(a,b){var c="",d="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+=''}else c+='';return c},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide(),this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.domElement=null,this.div=null}},reposition:function(a){a&&(this.domElement=ZeroClipboard.$(a),this.domElement||this.hide());if(this.domElement&&this.div){var b=ZeroClipboard.getDOMObjectPosition(this.domElement),c=this.div.style;c.left=""+b.left+"px",c.top=""+b.top+"px"}},setText:function(a){this.clipText=a,this.ready&&this.movie.setText(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,""),this.handlers[a]||(this.handlers[a]=[]),this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a,this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var c=this;setTimeout(function(){c.receiveEvent("load",null)},100),this.ready=!0;return}this.ready=!0,this.movie.setText(this.clipText),this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":this.domElement&&this.cssEffects&&(this.domElement.addClass("hover"),this.recoverActive&&this.domElement.addClass("active"));break;case"mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0),this.domElement.removeClass("hover"));break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[a])for(var d=0,e=this.handlers[a].length;dA-xFjKf1te)pFM-&Q&_dOT zp~-XxqP4X~YJ}vGWC;KAD1C=MKwiO_PG6^Vbs@z~r#qgr-}!Xr?4IxJ9P1kT4dpSa zmlT9hja*+}e;Cbih*6`(JT|+I(1(#NIVSiTL~Dq=|Lb=d5tOYL`L;_#dyQQ%FAAmI zcth~a_gzLk@xphk!Y?fFYp&C2`ZTZ#X}INt9hY9ojZWZ1Om23g$oC2%i(XLAs&#|V z5ArS7X}yhomj%SJGT~|rnZj|zM|I&j59e1QKqGxQN5!(ijWrx1S)ZN!RwWBwC`$uYc z!)028S7F4?l?H2dd39HKImh$+mv#S~I-YjmQ;P-rUfUM~-;Xr+ldpAXK+hS!b|@Ro zUs)@fv!kf9RjpFXZ?d(Pe_q{bY*sgP{Ykaib==7Da_N!X$Z^AwK5e&BZ5R56j>T=;_5DD$nR8}GiWShym;5A&x*eM;)Us-}<67Eb+@9n>sdlhm z`(coON!$a6H-ML=9U8}t-8aV1yD!xY9v@|7-FWq*lEUMka&b=Hq$X{>72}4eNl_P+ zccPJWGtXb!r#GbVPIO$}sN%oME%Yf<`b@|2f6G5y#$}-l zAR|D=L6`ti0Wt|N4P*v{Ss-&j?gE(yvY_TMkQE@SK-Pd%f#~WwXExMLZXW@84CD#m zFMxar!IU~i}ZGSTvX;GX_!`A@yKkIbSu*e=l_b9m*BF@hOB8SS;p?XkU4 z+#Y{FagI+_hF#pQ*y^c#B7H9*TQ=n-IvJZOQ*KYMV&e{u!2((~XOiIAy*Zr0yBr$x zqA6D~T{u}ZWn+;Cn@jC`refSD34E}PZ{YGaxq%P2g&VlCEyl30qM2Z<#-M2CQxMno zG_4J8H7mc8(VenQzJ;=@j=BiTh*RubMeS$61ORcM^S6!u6l;=?s|@ py1A~K8@jovn~!u;;=k8uI$3rc`gC{*rT-s&a~N%N=5J58nk1s|4c7nw diff --git a/vendor/ZeroClipboard/ZeroClipboard10.swf b/vendor/ZeroClipboard/ZeroClipboard10.swf deleted file mode 100755 index bfed97f6750ab7cdfd984926590463e9faa4a248..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1153 zcmV-{1b+KNS5pcU2LJ$goPAa6a??f>-d#&Nl5EG$%@7kvfN%>TR=AU1NU$9U#HfRv z!gPi~Yk3u^$dX5r6ZprY^d0&D{OJRTAN}7aDP3J~6XL>A#;+Yp zdjD5uM(6D)8f`Wjbl~^dy6F!a+ud7@o0@jF(H}c*MMc;1yRzV z4rvg6X;>D%jr@@^>7(jFasqWHglO`n52_P;#}9@y3X8q=E8Zshi_Ug0Y1tNyXz@v} zvzK!+ujs6UcW!z6bIHkRL(Wg4stvnm}4G+Xk`&sL`6WN#7CKk03(nwk`;v10xqVKPr+o&DOeCNQW55#+Y3@r_W)A zU(d%@%{sL+kFC=m7KS)x*u_@eR^r#a8yD`?eNO8u92 z&f^?j;84FPaEAt_E3YqcpkGS-jmy@R*pl_DBr~pU;R#;dA`^Ult1!W9TLQ;CCN;J| zzmcFyY?U%J6I;sK!z@s|j_?AK2vJmswfK`=