From de963668697aba78c79c39737d2734bb8a860a9c Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 2 Jun 2015 22:36:36 +0200 Subject: [PATCH 01/12] fix scaling --- bookmarklet.js | 67 ++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index e386a01..9d72062 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1,5 +1,5 @@ (function() { - var version = "4.0.1"; + var version = "4.0.3"; console.log("Version: " + version); var global = {}; @@ -259,36 +259,15 @@ var printWindow = printFrame[0].contentWindow; var printDocument = printWindow.document; + var columnCount = jQuery("#columnCount").val(); var rowCount = jQuery("#rowCount").val(); - // scale + var cardCount = jQuery(".card", printDocument).length; + var pageCount = Math.ceil(cardCount / (columnCount * rowCount)) - jQuery("html", printDocument).css("font-size", "1cm"); - - // scale horizontal - // substract one pixel due to rounding problems - var cardMaxWidth = jQuery(".card", printDocument).outerWidth() / columnCount - 1; - var cardMinWidth = jQuery(".card", printDocument).css("min-width").replace("px", ""); - var scaleWidth = cardMaxWidth / cardMinWidth; - console.log("cardMaxWidth: "+cardMaxWidth); - console.log("cardMinWidth: "+cardMinWidth); - console.log("scaleWidth: "+scaleWidth); - - // scale vertical - // substract one pixel due to rounding problems - var cardMaxHeight = jQuery(".card", printDocument).outerHeight() / rowCount - 1; - var cardMinHeight = jQuery(".card", printDocument).css("min-height").replace("px", ""); - var scaleHeight = cardMaxHeight / cardMinHeight; - console.log("cardMaxHeight: "+cardMaxHeight); - console.log("cardMinHeight: "+cardMinHeight); - console.log("scaleHeight: "+scaleHeight); - scaleHeight = 1; - // scale min - var scale = Math.min(scaleWidth, scaleHeight); - if(scale < 1) { - jQuery("html", printDocument).css("font-size",scale +"cm"); - } + console.log("cardCount: "+cardCount); + console.log("pageCount: "+pageCount); // size @@ -297,7 +276,7 @@ var style= document.createElement('style'); style.id = 'styleColumnCount'; style.type ='text/css'; - style.innerHTML = ".card { width: calc( 100% / " + columnCount + "); }" + style.innerHTML = ".card { width: calc( 100% / " + columnCount + " - 0.0001px ); }" jQuery("head", printDocument).append(style); // size horizontal @@ -305,8 +284,36 @@ var style= document.createElement('style'); style.id = 'styleRowCount'; style.type ='text/css'; - style.innerHTML = ".card { height: calc( 100% / " + rowCount + "); }" + style.innerHTML = ".card { height: calc( 100% / " + rowCount + " - 0.0001px ); }" jQuery("head", printDocument).append(style); + + // scale + + jQuery("html", printDocument).css("font-size", "1cm"); + + // scale horizontal + // substract one pixel due to rounding problems + var cardMaxWidth = Math.floor(jQuery(".card", printDocument).outerWidth() / columnCount) ; + var cardMinWidth = jQuery(".card", printDocument).css("min-width").replace("px", "") ; + var scaleWidth = cardMaxWidth / cardMinWidth; + console.log("cardMaxWidth: "+cardMaxWidth); + console.log("cardMinWidth: "+cardMinWidth); + console.log("scaleWidth: "+scaleWidth); + + // scale vertical + // substract one pixel due to rounding problems + var cardMaxHeight = Math.floor(jQuery(".card", printDocument).outerHeight() * 2 / rowCount) ; + var cardMinHeight = jQuery(".card", printDocument).css("min-height").replace("px", "") ; + var scaleHeight = cardMaxHeight / cardMinHeight; + console.log("cardMaxHeight: "+cardMaxHeight); + console.log("cardMinHeight: "+cardMinHeight); + console.log("scaleHeight: "+scaleHeight); + + // scale min + var scale = Math.min(scaleWidth, scaleHeight, 1); + if(scale < 1) { + jQuery("html", printDocument).css("font-size",scale +"cm"); + } } function cropCards() { @@ -664,7 +671,7 @@ min-width:19.0rem; min-height:10.0rem; - border-color: light-grey; + border-color: LightGray; border-style: dotted; border-width: 0.03cm; } From 37a84608b3e0ffbe1d00976af2c680aa9bf68564 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 08:36:28 +0200 Subject: [PATCH 02/12] FIX print function --- bookmarklet.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index 9d72062..ae9fc08 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1,5 +1,5 @@ (function() { - var version = "4.0.3"; + var version = "4.0.4"; console.log("Version: " + version); var global = {}; @@ -103,12 +103,13 @@ } function print() { + var printFrame = jQuery("#card-print-dialog-content-iframe"); + var printWindow = printFrame[0].contentWindow; + if (global.isProd) { ga('send', 'event', 'button', 'click', 'print', jQuery(".card", printDocument).length); } - var printFrame = jQuery("#card-print-dialog-content-iframe"); - var printWindow = printFrame[0].contentWindow; printWindow.print(); } From 2a0efe04305fd14f85d441dbfb386f2704085502 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 08:47:20 +0200 Subject: [PATCH 03/12] FIX print function --- bookmarklet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index ae9fc08..d6d0380 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1,5 +1,5 @@ (function() { - var version = "4.0.4"; + var version = "4.0.5"; console.log("Version: " + version); var global = {}; @@ -105,6 +105,7 @@ function print() { var printFrame = jQuery("#card-print-dialog-content-iframe"); var printWindow = printFrame[0].contentWindow; + var printDocument = printWindow.document; if (global.isProd) { ga('send', 'event', 'button', 'click', 'print', jQuery(".card", printDocument).length); From f048b881957a3a03c35bc50ec3263cf1d1c8460d Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 10:20:47 +0200 Subject: [PATCH 04/12] fix redrawCards on resize and print --- bookmarklet.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index d6d0380..38bddf1 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1,5 +1,5 @@ (function() { - var version = "4.0.5"; + var version = "4.0.6"; console.log("Version: " + version); var global = {}; @@ -66,8 +66,8 @@ var printFrame = jQuery("#card-print-dialog-content-iframe"); var printWindow = printFrame[0].contentWindow; - printWindow.addEventListener("resize", function(){redrawCards;}); - printWindow.matchMedia("print").addListener(function(){redrawCards;}); + printWindow.addEventListener("resize", function(){redrawCards();}); + printWindow.matchMedia("print").addListener(function(){redrawCards();}); jQuery("#rowCount").val(readCookie("card_printer_row_count",2)); jQuery("#columnCount").val(readCookie("card_printer_column_count",1)); From 7d0aeb7951579026d67dd0e8df7684af39bf9c07 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 10:32:01 +0200 Subject: [PATCH 05/12] FIX assignee Letter position --- bookmarklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 38bddf1..fca0ae5 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -817,7 +817,7 @@ text-align: center; font-weight: bold; font-size: 1.4rem; - line-height: 1.8rem; + line-height: 1.9rem; } .issue-epic-box { position: absolute; From d6cd954b0f2b99eff09da6bde625f58411c48b59 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 11:19:47 +0200 Subject: [PATCH 06/12] ADD YouTrack support --- bookmarklet.js | 106 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 99 insertions(+), 7 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index fca0ae5..4617852 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -42,6 +42,9 @@ } else if (/.*trello.com\/.*/g.test(document.URL)) { console.log("App: " + "Trello"); global.appFunctions = trelloFunctions; + } else if (/.*\/youtrack\/.*/g.test(document.URL)) { + console.log("App: " + "YouTrack"); + global.appFunctions = youTrackFunctions; } else { alert("Unsupported app.Please create an issue at https://github.com/qoomon/Jira-Issue-Card-Printer"); return; @@ -1224,9 +1227,7 @@ module.getSelectedIssueKeyList = function() { //Browse if (/.*\/browse\/.*/g.test(document.URL)) { - return jQuery("a[data-issue-key][id='key-val']").map(function() { - return jQuery(this).attr('data-issue-key'); - }); + return [document.URL.replace(/.*\/browse\/([^?]*).*/, '$1')]; } // RapidBoard @@ -1306,9 +1307,9 @@ // add custom fields with field names jQuery.each(responseData.names, function(key, value) { if (key.startsWith("customfield_")) { - var newFieldId = value.toCamelCase(); - //console.log("add new field: " + newFieldId + " with value from " + key); - responseData.fields[value.toCamelCase()] = responseData.fields[key]; + var fieldName = value.toCamelCase(); + //console.log("add new field: " + fieldName + " with value from " + key); + responseData.fields[fieldName] = responseData.fields[key]; } }); callback(responseData); @@ -1319,12 +1320,103 @@ return module; }({})); + var youTrackFunctions = (function (module) { + + module.getSelectedIssueKeyList = function() { + //Detail View + if (/.*\/issue\/.*/g.test(document.URL)) { + return [document.URL.replace(/.*\/issue\/([^?]*).*/, '$1')]; + } + + // Agile Board + if (/.*\/rest\/agile.*/g.test(document.URL)) { + return jQuery('div.sb-task-focused').map(function() { + return jQuery(this).attr('id'); + }); + } + + return []; + }; + + module.getCardData= function(issueKey, callback) { + module.getIssueData(issueKey, function(data) { + + var issueData = {}; + + issueData.key = data.id; + + issueData.type = data.field.type[0]; + + issueData.summary = data.field.summary; + + issueData.description = data.field.description; + + if (data.field.assignee) { + issueData.assignee = data.field.assignee[0].fullName; + // var avatarUrl = data.fields.assignee.avatarUrls['48x48']; + // if (avatarUrl.indexOf("ownerId=") >= 0) { + // issueData.avatarUrl = avatarUrl; + // } + } + // + // if (data.fields.duedate) { + // issueData.dueDate = new Date(data.fields.duedate).format('D d.m.'); + // } + // + if (data.field.attachments) { + issueData.hasAttachment = data.field.attachments.length > 0; + } + // + // issueData.storyPoints = data.fields.storyPoints; + // + // issueData.epicKey = data.fields.epicLink; + // if (issueData.epicKey) { + // jiraFunctions.getIssueData(issueData.epicKey, function(data) { + // issueData.epicName = data.fields.epicName; + // }, false); + // } + // + issueData.url = window.location.origin + "/youtrack/issue/" + issueData.key; + + callback(issueData); + }); + }; + + module.getIssueData = function(issueKey, callback, async) { + async = typeof async !== 'undefined' ? async : true; + //https://docs.atlassian.com/jira/REST/latest/ + var url = '/youtrack/rest/issue/' + issueKey + '?'; + console.log("IssueUrl: " + url); + //console.log("Issue: " + issueKey + " Loading..."); + jQuery.ajax({ + type: 'GET', + url: url, + data: {}, + dataType: 'json', + async: async, + success: function(responseData) { + //console.log("Issue: " + issueKey + " Loaded!"); + jQuery.each(responseData.field, function(key, value) { + // add fields with field names + var fieldName = value.name.toCamelCase(); + //console.log("add new field: " + newFieldId + " with value from " + fieldName); + responseData.field[fieldName] = value.value; + + }); + callback(responseData); + }, + }); + }; + + return module; + }({})); + var pivotalTrackerFunctions = (function (module) { module.getSelectedIssueKeyList = function() { //Single Story if (/.*\/stories\/.*/g.test(document.URL)) { - return [document.URL.replace(/.*\/stories\/([^?]*).*/, '$1')]; // TODO + return [document.URL.replace(/.*\/stories\/([^?]*).*/, '$1')]; } // Board From 7c8eaef2c4feb37c8d8f1ea92450bbd6233064ea Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 17:03:45 +0200 Subject: [PATCH 07/12] add info line --- bookmarklet.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bookmarklet.js b/bookmarklet.js index 4617852..75f78c4 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -363,6 +363,7 @@
Card Print
+
@@ -573,6 +574,11 @@ display: inline-block; height 30px; } + #info-line { + padding-left: 3rem; + padding-right: 3rem; + font-weight: bold; + } #card-print-dialog-title{ position: relative; From cfb0aeb706c3a0b1fa21b96b221f8b6bd73eb431 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 21:21:36 +0200 Subject: [PATCH 08/12] no message --- resources/Tearing.png | Bin 0 -> 753 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/Tearing.png diff --git a/resources/Tearing.png b/resources/Tearing.png new file mode 100644 index 0000000000000000000000000000000000000000..b7f0c5dc684217e5d4e3e9d5db376b150bb92d12 GIT binary patch literal 753 zcmVc#H5JmR}I)dv|I)V_f2k;X8p9`O9;AAj2Vfix!XG+6)} zax%ve+kuhBCvaeOnvI9gy&rDrLhJSVi-Y2u#u7}tnw7n$$5$UzbVKg)=$pnJ(s)-Z zhObuu3wlsUW00{JaRIjGF3D3!W7KA45MaZBhct>bD{p4(^EU~}rP22W+_)PzI!)g2 zWGM!)1F~iuOog$S---XvZwesSQ6Y`~W3h*xug|=ufI=G2R0@nL>no2bu#iTPPIK@P zFF3%FX`K3tW2t6kHRvlvluMQGf~LBSV<`ad?jv4QfE|!k=4s@P#dtOejzUjC5+jY#80QM0lYXjTeu??{mh|HbhlF+7p67|SzKCimiaXQr`@ zLu4%0u9q@!8fN-|r;=puSPu$G~f#LhW$_-4)2vH92jS j>W>%5CVs-ff@$k7Ui*UWV7zTL00000NkvXXu0mjfF*jGY literal 0 HcmV?d00001 From 29e248205b32439af40c9de4bbd73234a1eb6192 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 21:36:27 +0200 Subject: [PATCH 09/12] no message --- resources/Tearing.png | Bin 753 -> 1155 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/resources/Tearing.png b/resources/Tearing.png index b7f0c5dc684217e5d4e3e9d5db376b150bb92d12..8164579ce004276ae969348f608e87e9798a068c 100644 GIT binary patch literal 1155 zcmV-}1bq96P)1gh6ou_BO5;31k}48XB&Vmq5)D!c`wcd2Do2zwPL%^Yf{W!U2W=x>~K@bFGR!LTO+zVA% z`?5M=wPXdjUyucrLrBHw3-7{<}6{D{tbBtEV2{^FV_wQc&TpW*=Vkp8K}e-O!vPIjC?~`ox>GI^myE*Zb~P zin+0Y3U}30YX(fBlpr)&0Tu4b`|#pQ^|*D%Leo)(`6T+G3%D!W!|O7eL^lj)wpTFv z8RrrI1C>fe3iQSBtCeI=)ebZ~ z?Yqanu)Dh}CTVMH3%#p-hjG~`IQs7E7Zw&4M7!M<(*$?5?l2V9VQ2?9`tINwsLRXC zLjZLIcTMat9mgPzR)gr?>+Gl{ZB@#Ovnx>7*4BohDUIN+v05rHCHvLYRk66ZNZAf# z+1;Y=3)GdvAuWHkr!F2kB`dD>iz zfEsbv)1101*TE8!pc~%%Hx4d~b(7A)7^pdR*Q}?4CKh$j-P_w!?|bG5q%EDX8wWLK z?#i|N^hZI(A=M7Z_kUu0gF$!PRzS^(yK*J_-@3blX{463|dna!X^UtC1+?_UthnGX?(&VDR(Uvizkk{ zD_gQxhtgfR|8gvMWDSVtw@)%Q;h-FJSGI#CT%jo=un&pm*CZR0a8wStD_64rYa%pd zfK|;q%l!{X$0HnX*BcCVSsP6F~LLT`B4r&;qDVyX*Y? z{C!{rP+fM{e=cr^0#vx`wPcUb1W;Xf*H5O;kOEY=t8TqUvInTHyX#}%15llISA-^j z>bkpLAT$9~E85)LObY24AO)yab$ECfC}YD{{f$= VD*j2YCvN}%002ovPDHLkV1jS@H4gv) literal 753 zcmVc#H5JmR}I)dv|I)V_f2k;X8p9`O9;AAj2Vfix!XG+6)} zax%ve+kuhBCvaeOnvI9gy&rDrLhJSVi-Y2u#u7}tnw7n$$5$UzbVKg)=$pnJ(s)-Z zhObuu3wlsUW00{JaRIjGF3D3!W7KA45MaZBhct>bD{p4(^EU~}rP22W+_)PzI!)g2 zWGM!)1F~iuOog$S---XvZwesSQ6Y`~W3h*xug|=ufI=G2R0@nL>no2bu#iTPPIK@P zFF3%FX`K3tW2t6kHRvlvluMQGf~LBSV<`ad?jv4QfE|!k=4s@P#dtOejzUjC5+jY#80QM0lYXjTeu??{mh|HbhlF+7p67|SzKCimiaXQr`@ zLu4%0u9q@!8fN-|r;=puSPu$G~f#LhW$_-4)2vH92jS j>W>%5CVs-ff@$k7Ui*UWV7zTL00000NkvXXu0mjfF*jGY From 4892b6a1434cb06e09353ea3d83df5558e0adc97 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 21:40:55 +0200 Subject: [PATCH 10/12] no message --- resources/Tearing.png | Bin 1155 -> 1164 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/resources/Tearing.png b/resources/Tearing.png index 8164579ce004276ae969348f608e87e9798a068c..08b5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zfEsbv)1101*TE8!pc~%%Hx4d~b(7A)7^pdR*Q}?4CKh$j-P_w!?|bG5q%EDX8wWLK z?#i|N^hZI(A=M7Z_kUu0gF$!PRzS^(yK*J_-@3blX{463|dna!X^UtC1+?_UthnGX?(&VDR(Uvizkk{ zD_gQxhtgfR|8gvMWDSVtw@)%Q;h-FJSGI#CT%jo=un&pm*CZR0a8wStD_64rYa%pd zfK|;q%l!{X$0HnX*BcCVSsP6F~LLT`B4r&;qDVyX*Y? z{C!{rP+fM{e=cr^0#vx`wPcUb1W;Xf*H5O;kOEY=t8TqUvInTHyX#}%15llISA-^j z>bkpLAT$9~E85)LObY24AO)yab$ECfC}YD{{f$= VD*j2YCvN}%002ovPDHLkV1jS@H4gv) From 0d16a44eadea856a0686b5540bd25ec04c09cda6 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 3 Jun 2015 21:43:02 +0200 Subject: [PATCH 11/12] Update tearing --- bookmarklet.js | 2 +- resources/Tearing.png | Bin 1164 -> 1154 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 75f78c4..ab606f3 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -919,7 +919,7 @@ width: 100%; border-style:solid; border-bottom-width: 0.8rem; - border-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/ZigZag.png) 0 0 56 fill round repeat; + border-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/Tearing.png) 0 0 56 fill round repeat; } @media print { @page { diff --git a/resources/Tearing.png b/resources/Tearing.png index 08b5f42a5d35e748ab4cd155ced6cd38749395be..5962809dd8b5204c6d76e52915c6db4338fdbee0 100644 GIT binary patch literal 1154 zcmV-|1bzF7P)fV*(wYrT+`2u;v_SjcqXkgIXQV@RL03;A&&OXn38}JuBlW7v55PP z*vC0BF>#5;@hLqn5h&rBvZ6SS_ur@-Fz?42bDjkTjY%3xxTeyL8W!`|YRS~+&8+c= zLkZU`mwA>ngk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i7~wa9?1#Z^Vyc zY{l!jYgw0qDhsBDdn&#W}Pb2w-~Uo&@Dx z-~%wda!(XF0Mj@3JOwfU(}^}VHf*6h1}*^8srL5vM!pDuPjVwm0JH45=Z7Se{22r= eAqZeX{^}1j$-d)U3$aW90000 Date: Wed, 3 Jun 2015 22:09:45 +0200 Subject: [PATCH 12/12] update tearing --- bookmarklet.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index ab606f3..ca504d3 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -363,7 +363,7 @@
Card Print
- +
@@ -913,13 +913,16 @@ } .zigzag::after { position: absolute; - bottom: -0.04rem; + bottom: -0.00rem; left:-0.07rem; content:""; width: 100%; border-style:solid; - border-bottom-width: 0.8rem; - border-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/Tearing.png) 0 0 56 fill round repeat; + border-bottom-width: 1rem; + border-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/Tearing.png); + border-image-width: 0 0 0.7rem 0; + border-image-slice: 56 0 56 1; + border-image-repeat: round round; } @media print { @page {