From: Alexandre Terrasa Date: Tue, 18 Feb 2014 22:58:55 +0000 (-0500) Subject: nitdoc: remove unused plugin "Copy to Clipboard" X-Git-Tag: v0.6.4~2^2~5 X-Git-Url: http://nitlanguage.org nitdoc: remove unused plugin "Copy to Clipboard" Signed-off-by: Alexandre Terrasa --- diff --git a/LICENSE-MIT b/LICENSE-MIT deleted file mode 100644 index 0ca65b9..0000000 --- a/LICENSE-MIT +++ /dev/null @@ -1,5 +0,0 @@ -The MIT License (MIT) -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/NOTICE b/NOTICE index 72c94fe..e85c0fc 100644 --- a/NOTICE +++ b/NOTICE @@ -36,8 +36,3 @@ Copyright: 2009-2012 Alexis Laferrière 2006 Gabriel Bauman License: GPL 2.0 (see LICENSE-GPL-2) Comment: GPL because the original work is GPL - -Files: share/nitdoc/ZeroClipboard.swf - share/nitdoc/scripts/ZeroClipboard.min.js -Copyright: 2013 Jon Rohan, James M. Greene -Licence: MIT (see LICENSE-MIT) diff --git a/share/nitdoc/ZeroClipboard.swf b/share/nitdoc/ZeroClipboard.swf deleted file mode 100644 index 8b707aa..0000000 Binary files a/share/nitdoc/ZeroClipboard.swf and /dev/null differ diff --git a/share/nitdoc/css/Nitdoc.UI.css b/share/nitdoc/css/Nitdoc.UI.css index 35c5343..17b248d 100644 --- a/share/nitdoc/css/Nitdoc.UI.css +++ b/share/nitdoc/css/Nitdoc.UI.css @@ -31,33 +31,6 @@ a.nitdoc-ui-fold { font-size: 120%; } -/* Copy signature to clipboard */ - -button.nitdoc-ui-copy.zeroclipboard-is-active { - border-color: #0D8921; -} - -button.nitdoc-ui-copy { - visibility: hidden; - vertical-align: middle; - margin: -2px 0px 0px 10px; - width: 22px; - height: 19px; - padding: 1px; - cursor: pointer; - background: #eee; - border: 1px solid #ccc; - box-shadow: none; -} - -button.nitdoc-ui-copy img { - width: 16px; -} - -article:hover > .signature button.nitdoc-ui-copy, button.nitdoc-ui-copy.zeroclipboard-is-hover { - visibility: visible; -} - /* Search page field */ .nitdoc-ui-searchpage-field { diff --git a/share/nitdoc/js/lib/ZeroClipboard.js b/share/nitdoc/js/lib/ZeroClipboard.js deleted file mode 100644 index 9038520..0000000 --- a/share/nitdoc/js/lib/ZeroClipboard.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * zeroclipboard - * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript interface. - * Copyright 2013 Jon Rohan, James M. Greene, . - * Released under the MIT license - * http://zeroclipboard.github.io/ZeroClipboard/ - * v1.2.0-beta.4 - */(function(){"use strict";var a=function(){var a=/\-([a-z])/g,b=function(a,b){return b.toUpperCase()};return function(c){return c.replace(a,b)}}(),b=function(b,c){var d,e,f,g,h,i;window.getComputedStyle?d=window.getComputedStyle(b,null).getPropertyValue(c):(e=a(c),b.currentStyle?d=b.currentStyle[e]:d=b.style[e]);if(c==="cursor")if(!d||d==="auto"){f=b.tagName.toLowerCase(),g=["a"];for(h=0,i=g.length;h=0?"&nocache=":"?nocache=")+(new Date).getTime():""},k=function(a){var b=[];if(a.trustedDomains){var c;typeof a.trustedDomains=="string"&&a.trustedDomains?c=[a.trustedDomains]:"length"in a.trustedDomains&&(c=a.trustedDomains),b.push("trustedDomain="+encodeURIComponent(c.join(",")))}return typeof a.amdModuleId=="string"&&a.amdModuleId&&b.push("amdModuleId="+encodeURIComponent(a.amdModuleId)),typeof a.cjsModuleId=="string"&&a.cjsModuleId&&b.push("cjsModuleId="+encodeURIComponent(a.cjsModuleId)),b.join("&")},l=function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c ';b=document.createElement("div"),b.id="global-zeroclipboard-html-bridge",b.setAttribute("class","global-zeroclipboard-container"),b.setAttribute("data-clipboard-ready",!1),b.style.position="absolute",b.style.left="-9999px",b.style.top="-9999px",b.style.width="15px",b.style.height="15px",b.style.zIndex="9999",b.innerHTML=f,document.body.appendChild(b)}a.htmlBridge=b,a.flashBridge=document["global-zeroclipboard-flash-bridge"]||b.children[0].lastElementChild};o.prototype.resetBridge=function(){this.htmlBridge.style.left="-9999px",this.htmlBridge.style.top="-9999px",this.htmlBridge.removeAttribute("title"),this.htmlBridge.removeAttribute("data-clipboard-text"),g(p,this.options.activeClass),p=null,this.options.text=null},o.prototype.ready=function(){var a=this.htmlBridge.getAttribute("data-clipboard-ready");return a==="true"||a===!0},o.prototype.reposition=function(){if(!p)return!1;var a=i(p);this.htmlBridge.style.top=a.top+"px",this.htmlBridge.style.left=a.left+"px",this.htmlBridge.style.width=a.width+"px",this.htmlBridge.style.height=a.height+"px",this.htmlBridge.style.zIndex=a.zIndex+1,this.setSize(a.width,a.height)},o.dispatch=function(a,b){o.prototype._singleton.receiveEvent(a,b)},o.prototype.on=function(a,b){var c=a.toString().split(/\s/g);for(var d=0;d") - .addClass(this.options.btnClass) - .attr("data-clipboard-text", this.element.attr(this.options.dataKey)) - .append( - $("").attr("src", this.options.btnImage) - ); - this.element.append(this.btn); - new ZeroClipboard(this.btn, this.options.zeroConfig); - } - }); - - $(".signature").clipboard(); -}); diff --git a/src/nitdoc.nit b/src/nitdoc.nit index c9691bf..fef6e46 100644 --- a/src/nitdoc.nit +++ b/src/nitdoc.nit @@ -148,7 +148,6 @@ class NitdocContext if opt_shareurl.value == null then sys.system("cp -r {share_dir.to_s}/* {output_dir.to_s}/") else - sys.system("cp -r {share_dir.to_s}/ZeroClipboard.swf {output_dir.to_s}/") sys.system("cp -r {share_dir.to_s}/resources/ {output_dir.to_s}/resources/") end self.dot_dir = null diff --git a/tests/sav/nitdoc_args1.res b/tests/sav/nitdoc_args1.res index 1d16a05..4a272d5 100644 --- a/tests/sav/nitdoc_args1.res +++ b/tests/sav/nitdoc_args1.res @@ -1,4 +1,3 @@ -ZeroClipboard.swf class_module_0_Int.html class_module_0_Object.html class_module_0_Sys.html