From a616d47af8df39cffe632272af83772d904d5cbf Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 19 Jun 2017 12:46:43 +0000 Subject: [PATCH] remove legacy XPCOM implementation --- Makefile | 24 +--- build | 15 --- chrome.manifest | 8 -- chrome/content/icedeb-bts.png | Bin 1217 -> 0 bytes chrome/content/icedeb-buildd.png | Bin 1180 -> 0 bytes chrome/content/icedeb-ddpo.png | Bin 1145 -> 0 bytes chrome/content/icedeb-deb.png | Bin 1240 -> 0 bytes chrome/content/icedeb-ml.png | Bin 1245 -> 0 bytes chrome/content/icedeb-pts.png | Bin 1228 -> 0 bytes chrome/content/icedeb-security.png | Bin 1245 -> 0 bytes chrome/content/icedeb.css | 34 ----- chrome/content/icedeb.js | 195 ----------------------------- chrome/content/icedeb.xul | 76 ----------- chrome/content/icon.png | Bin 2259 -> 0 bytes chrome/locale/bg-BG/icedeb.dtd | 14 --- chrome/locale/en-US/icedeb.dtd | 14 --- install.rdf | 20 --- 17 files changed, 5 insertions(+), 395 deletions(-) delete mode 100644 chrome.manifest delete mode 100644 chrome/content/icedeb-bts.png delete mode 100644 chrome/content/icedeb-buildd.png delete mode 100644 chrome/content/icedeb-ddpo.png delete mode 100644 chrome/content/icedeb-deb.png delete mode 100644 chrome/content/icedeb-ml.png delete mode 100644 chrome/content/icedeb-pts.png delete mode 100644 chrome/content/icedeb-security.png delete mode 100644 chrome/content/icedeb.css delete mode 100644 chrome/content/icedeb.js delete mode 100644 chrome/content/icedeb.xul delete mode 100644 chrome/content/icon.png delete mode 100644 chrome/locale/bg-BG/icedeb.dtd delete mode 100644 chrome/locale/en-US/icedeb.dtd delete mode 100644 install.rdf diff --git a/Makefile b/Makefile index 61187fe..da40095 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,15 @@ #!/usr/bin/make -f -# vim: noet ts=8 ft=makefile +# vim: noet sts=8 sw=8 ts=8 ft=makefile PKG := icedeb -ALL_FILES := README TODO install.rdf chrome.manifest \ - $(shell find res -type f) $(shell find chrome -type f) +ALL_FILES := README TODO manifest.json icedeb.js icedeb.css icedeb.html icedeb-content.js \ + $(shell find res -type f) icons/openlogo-nd.svg icons/icedeb-addon.png all: $(PKG).xpi $(PKG).xpi: $(ALL_FILES) rm -f $@ zip $@ $^ -XCF := res/button-bts.xcf - -chrome/content/icedeb-bts.png: $(XCF) - xcf2png -o "$@" "$<" "base" "bts small" "bts big" -chrome/content/icedeb-buildd.png: $(XCF) - xcf2png -o "$@" "$<" "base" "buildd small" "buildd big" -chrome/content/icedeb-ddpo.png: $(XCF) - xcf2png -o "$@" "$<" "base" "DD small" "DD big" -chrome/content/icedeb-deb.png: $(XCF) - xcf2png -o "$@" "$<" "base" "deb small" "deb big" -chrome/content/icedeb-ml.png: $(XCF) - xcf2png -o "$@" "$<" "base" "ML small" "ML big" -chrome/content/icedeb-pts.png: $(XCF) - xcf2png -o "$@" "$<" "base" "pts small" "pts big" -chrome/content/icedeb-security.png: $(XCF) - xcf2png -o "$@" "$<" "base" "security small" "security big" +icons/icedeb-addon.png: res/icon.xcf + xcf2png -o "$@" $< -f -T diff --git a/build b/build index 08d261a..c9b7c2a 100644 --- a/build +++ b/build @@ -5,23 +5,8 @@ set -u export PKG=icedeb -btn2png() { - local tag="$1" - local btn="${2:-$tag}" - - xcf2png -o "chrome/content/$PKG-$btn.png" res/button-bts.xcf "base" "$tag small" "$tag big" -} - xcf2png -o "icons/icedeb-addon.png" res/icon.xcf -f -T -btn2png bts -btn2png pts -btn2png deb -btn2png ML ml -btn2png DD ddpo -btn2png buildd -btn2png security - [ ! -e $PKG.xpi ] || rm $PKG.xpi zip -r $PKG.xpi README TODO res \ diff --git a/chrome.manifest b/chrome.manifest deleted file mode 100644 index 88666b5..0000000 --- a/chrome.manifest +++ /dev/null @@ -1,8 +0,0 @@ -content icedeb chrome/content/ -style chrome://global/content/customizeToolbar.xul chrome://icedeb/content/icedeb.css - -locale icedeb en-US chrome/locale/en-US/ -locale icedeb bg-BG chrome/locale/bg-BG/ - -# Firefox -overlay chrome://browser/content/browser.xul chrome://icedeb/content/icedeb.xul diff --git a/chrome/content/icedeb-bts.png b/chrome/content/icedeb-bts.png deleted file mode 100644 index c691b25dba5c1a34e6b07f4584273ded619fcabc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1217 zcmV;y1U~zTP)FSNL7>v;c|Qy4`T~vVO>aZ+f?T0m~$Df!mD^0Ph&0q6;j;Y==I)bk{S3e zzK^0qWj8k9dHf)x_`(#xK8ahf6kG8R?7#^)T5W*yLW(c%6|gGG6L2r)=cYIC0A9m3 z9Ey{$1p8q-mWLGoyq7tT$^gT-Hl%pVK>vmKmD;L{LW(;&0jr{%k0&t)Z(|jH5>njW zp?f0M;X{}}8B%w<%j;-hLy zZp93&s)}-?Lv@+@#LjKQRYiGvRg_E16#kU4msfu!D-u05~ zL=EHO zexRlD5Dvqx4#3w#iaT2y>SK>JW_z*WnTwmK?@U`R#IyKI2i!+;|M?-s@!b5>fZE@3 z+2wqrRZ-3gDUPDow|sb$@k6Sjob^ij_t<>%4mjK~|EY?Z$77-iS%Vf_h}aI4Ex8)2 zT5$i9=Y4Hv{yZ?3AMY5yMID;JjozRI$JJ52 zOXg#9SI1#)Z;oz6eUJatq4p%MX)25Ta@?4$RZ-p?Qmm??JRLs|DZbqvG-$zuH{S!W zz{ds~pR;^+t9m5Xh7`M;gVs`F2F4~yla7p-tP5S zS{3C|Sn%$>|6FX{JEwYRqAJQG)Q)v+NO6*bwd6)vG2_@%2ip5+?(uP1?^Y(?!7cdQ zz`!1iq_J(gMvC8HWmS}a$L}x?r{Q3HC#1MxFL0V5{ny>EUOudM{Vx4)=dR!59ks!B zs(s-e2Esv3fg(-{DL&Q)Z0UR%b3=-&tD?LHYeI^f_6F7^RZ%WcXEbZ^Vo0$oc1~J+ zMD3|NaZC;=@0IaPf}alA;|}K6;|3gsQ*!f-7*z-11ueLyY`(vOXVk~D6_@UFz$~}r z1+K{To$6HTezo_pr{^`_t8tk+(>_IgeA6RUQ7)^B@?Eucn%Ch#wIv(r4-C5r8`atJ zY10PRg1i9z6*G=Ka*BX(1iq!thJHQ0gc;%+!$+qLBWHXbKf)hdeWU8krIFS6s5*3g zTAg-HKj6aN?BDKZXnbz3cGzc$;;ILDidmFId@+GOgT*C$NW=x5YL7b fckBy*_mlqugf*B^5RMQ?00000NkvXXu0mjfJ>*qm diff --git a/chrome/content/icedeb-buildd.png b/chrome/content/icedeb-buildd.png deleted file mode 100644 index 977755f7c36d44e2437a13bd204cbe0ab8956565..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1180 zcmV;N1Y`S&P)Al zOralyUT#KZB_oMYEVLioV!9t%X;?aC&fUJ>?b9E3AN%aHb8a?z{`r3Ip7-6o?)lvF z++`Ss8KFvmCxI$pKhO#k0gck?j^WG^n6nyq3HTE@3H$;y0KZGC`(s_^3X|jmF92%+ z5s>r)-vDjEtJ3P@!vMPr*aB1n?ZD5#d0;j$9T$Kl((02#0ve%a1G|7y-}N`J2RIFM z05<{ifC}ImpcAN(R)00boVR&^F~B-$^_G->8SpMHsdt_6F3<>E599zPt=<#RjRp4l4L%)5D4<&cdfg-X8)> zLH-In2txyU~d@X-4QS;1o!}O9k5{-x6DtnWUO zlKtp^lgStP_5~wUk+ixSh$3q8o5@ZwLKU5|XM5+L3FLgqiqa9B0qA6* zOxS9mE&+GR+IY0k|DE7}X9mW%;z|<$-&34Nl=n8Uu|yQ#4bUu(ya?P6JRa-P5zOMM zddNzFmXM>2ZSkioz@6hS0q`T+0=I+!bD93V zK&26?5@6cJUB8vn*gc=7oDu3)Tw<-0Ru4+B*m~&e#$9v6wiqx<0G6aQ5kP_M?Eu~f zHW;Bc8=>w2A|upR+*SCzw0diLoVRCzeYi8Y6u=0z+_(1u&m^=1`r>jB0U7@U(!e}v z^?{@>9&Lnr2v?^{rPVJRp`^6BIk5QwQL<*1XzH})E?k=f9(Vp zGC~zdtL+dFLjsP}BA^!Nnv^MQ`?BD^$Ou)H@WoaJ9K^kFYDeI^YD*?b7MOfCvLCI_ z9qtC63g|cCYTRVpV|BQ`|7;Qe-U1Wy$?GygUGy27j6`QrHv->P+o1O#K#u+_u3&yX z8jFmEMZjyowYWmL8^8$l1g@0C=dmHBOGarZ->3lA;tu#h+=0L3GeYe!LOoZO88@B( uIZ1|H28>V(fH}aYz)@-S`OyHllKlhrQ?MxgXY;TC0000q@p1Ab)0mO}Xu5W#Y3E7RWF^dW_~lX z=j?32IAnyH2|Nib1v-FkpbTh}R`-mj4^N*Bz-Hh)a2EIpXa&wltB2#bV2n;mfMYaK1b-+7Bt6C+k&UgWhP!+&oU@FiDGy$(l zt9w1Mi-0y@I*kqpLY}xaz=yyVY4!FAo`3*oad78=dTI3wJ~#kr z_18ozc>*W_nv76sPiOJA@R z9^_Hr5g>FETki>b0@xv~&L+lN30#s^?*clFP!pVA1Jeos9rYW)SHN0n_2v9gj8LU+ z*0nB)V#x1+kAcg;F%RI~z@9`u0WeQmeaN-9{kA;i+#zs_5Ab2&Cg3G$^`HlC5%9i? zvA{|r)TBg6J1_^xc>sTxR$om_C7aq77&i|;iddQiN zcRF|M1>k7)Z_uOl{vx; zQ86z7w7{iN00nSczVR51QxcE21Fh0(Uy{5HtVlfn25inSRO1p1X?0(02bTB%e88=fqXB57AI|k_-I+E?G7KyL|0kMR?8UE2ezFZeXr2FdGc-2kMMabpZ4J z+5foc$es8@|4H-4bh=;G>zr|$0`7H zUy4nPtXcm*8KKq!p%JP)VgApzcr1lRsLa0fvK7Ds6ed9oIB69B^#=sP6hU@+AkLJM z+UWBWm6;<%e}30g`Gq=P0YHwBFVpqQf%|}kK$o;S!x(>s*Ft{*%0!p>{FiNL00000 LNkvXXu0mjfaS9A* diff --git a/chrome/content/icedeb-deb.png b/chrome/content/icedeb-deb.png deleted file mode 100644 index 3718c76f5eddea9af73ab2ff563282e7e9f52418..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1240 zcmV;}1Sk86P)5z&7A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9YN1}4e%{6OIm$3cNQa5pijaN?qzJ~TG{)I>yq7ox^5SWzxuI(|k-!UqSnz(!&z!%E`U~6c+?+B}b zB{`-#TwB`(yox(Ep8(!y=fnuL&It8EXo6FPPYyOhZ8JiRiKxqfJ#k{^i%GQhixnB* z^}xcj{u4&1kBm@LBkE^yN9RP~4qyiGaMqaXr~&93a$aC>H3B<;l}4zw!}5A$P!CAmI)6P^iF8KLHQ^-f?huok!P@^Lqt;0h~^P)Q@y z=pevho?e)EX@>902O1)h*pcq9gemTsWUBT@F=(00000NkvXX Hu0mjfsk$<* diff --git a/chrome/content/icedeb-pts.png b/chrome/content/icedeb-pts.png deleted file mode 100644 index d13f38ede8a5f0d19c057bbf73dff8da5cd42d29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1228 zcmV;-1T*`IP)q zDvv)3Bq&B8fp(YdV!|IUY=6zYCW6edl2Cv{H{2i@v;Lh4k^C0N5HBmPsK{iuDkw?NAM~( z<4By21vmg(usEdn+dZs#Tn#Xc>qCln42)lfyJfG=3n^~x1gwg3HlD-`yoqJFIi$Fy zL-#bS#(Ob=GNkxOhu(o$Q*ZFAjfXn)F2)16Hl(<8s6(NL6*b(;I4`95tu8nSDLyWH zaucRtSyhxH9jc4u6T7GlR~6+sRZ)JfD$03v*9zH#TVNN!Iv6g;d_0J`A;rhKzy=_n z#;4J*H+Ff4+7-Axq&U&CcRpSVDc*|>RZ$Mr;}J6_0oK$%!XI&INb!w9D^*cWt#`ek z4x$F~&v+Pb;MoqqlkxM`Iz7w@DXy#Mr_nTPxE}7~eO-VT;$VC?q&U_AcN%_L>m;0C z73F(cDv#nQ?C1deS4eStYeRkPVq>}&8lIWBg?wk)av7e%?>gWPt;a73DUR3OPYtO3 zrG9n=-)L2o(?W{dpl|W;dgDh_MLF%|^!nIrvkp4iiT|mJsUO5dld=XqI2W;Wr&^2(BA2&xgBH!cRbf`Uv>zc-VcaDd#m7Cf z20Nd%czUaOELMdSyMp8{d{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jB&@KC^#R@22ECTxP{k9>bf^wPs+usgW`(hW5tSCr1sxXORouD6=^q!E{fu`aQS= zp)Qm)+=BHra{t4NzBH%$c}DgAP{a70k~D!Q%xmkm@5b#5vU#7J%%+!Y&z|}wuE3Xj zcKsfll2pA3qu9~ZvCuDiN7s?!_|FYyPvYCsDOl>BDU)`US#hUSmCnLX@)!=)2laa} z;CyhQ;%KKN>1ojZL9Mb9?WCdn#b^&irhM>D0G_$ z{#)%B>S$@*kCnae9dlQYY_n=;k5>;vl`J>m-lp++3>*3Sw1?PNW zV9|4}RL*)>C575x)0qAk+=)w?3_Edh_mNJv0k@S|@icyiVO)x{@wGgLhh`%O<45)! z!qixM{+?eBe(L%>h8v|aIxcyvg>T?~N$^`Um*|TsRma(on5(WOXrgN%narY(j_3n=gh1k0e47xc2aQ%o;a^{ z+I>GCTpoKFTVbE%o!(QAnb)PDepj#%H_va)d2VHUWU|bP;i`Q<-apHjca7lPSS)GM zCpy}1lvy!RX2lBpx_X8sG2c)dw+TPM+!IZxU#Pc98Z?1>CLLXi&tu)6I+vCMS_60% zf0N>_hnw&*=`MIeljNBH>gp)7;xc?3f5h{73==1k$ZYs8%b1-H(E3K500000NkvXX Hu0mjfQF>%Y diff --git a/chrome/content/icedeb.css b/chrome/content/icedeb.css deleted file mode 100644 index acd8e43..0000000 --- a/chrome/content/icedeb.css +++ /dev/null @@ -1,34 +0,0 @@ -#icedeb-bts, -#wrapper-icedeb-bts -{list-style-image: url("chrome://icedeb/content/icedeb-bts.png");} - -#icedeb-pts, -#wrapper-icedeb-pts -{list-style-image: url("chrome://icedeb/content/icedeb-pts.png");} - -#icedeb-deb, -#wrapper-icedeb-deb -{list-style-image: url("chrome://icedeb/content/icedeb-deb.png");} - -#icedeb-ml, -#wrapper-icedeb-ml -{list-style-image: url("chrome://icedeb/content/icedeb-ml.png");} - -#icedeb-ddpo, -#wrapper-icedeb-ddpo -{list-style-image: url("chrome://icedeb/content/icedeb-ddpo.png");} - -#icedeb-buildd, -#wrapper-icedeb-buildd -{list-style-image: url("chrome://icedeb/content/icedeb-buildd.png");} - -#icedeb-security, -#wrapper-icedeb-security -{list-style-image: url("chrome://icedeb/content/icedeb-security.png");} - -/* common style for all custom buttons */ -.icedeb-button -{-moz-image-region: rect( 0px 24px 24px 0px);} - -[iconsize="small"] .icedeb-button -{-moz-image-region: rect( 0px 40px 16px 24px);} diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js deleted file mode 100644 index a8db84b..0000000 --- a/chrome/content/icedeb.js +++ /dev/null @@ -1,195 +0,0 @@ -IceDeb = { - getClipboardText: function() { - var clip = Components.classes['@mozilla.org/widget/clipboard;1'] - .getService(Components.interfaces.nsIClipboard); - if (!clip) return null; - - var trans = Components.classes['@mozilla.org/widget/transferable;1'] - .createInstance(Components.interfaces.nsITransferable); - if (!trans) return null; - - if (typeof(trans.init) === 'function') - trans.init(null); - - trans.addDataFlavor("text/unicode"); - clip.getData(trans, - clip.supportsSelectionClipboard() - ? clip.kSelectionClipboard - : clip.kGlobalClipboard - ); - - var s = new Object; - var p; - var len = new Object; - trans.getTransferData("text/unicode", s, len); - - var text = null; - var res; - - if (s) - p = s.value.QueryInterface(Components.interfaces.nsISupportsString, res); - if (p) - text = p.data.substring(0, len.value / 2); - - return text; - }, - trim_keyword: function(word) { - if (!word) return word; - - var oldword; - do { - oldword = word; - - word = word.replace(/^[^a-zA-Z0-9]+/, ''); - word = word.replace(/[^a-zA-Z0-9]+$/, ''); - word = word.replace(/^Bug#/i, ''); - } while ( oldword != word ); - - return word; - }, - lookup_bts: function(in_new) { - var bug = IceDeb.trim_keyword(IceDeb.getClipboardText()); - if (!bug) return null; - var uri="https://bugs.debian.org/" + bug; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_pts: function(in_new) { - var pkg = IceDeb.trim_keyword(IceDeb.getClipboardText()); - if (!pkg) return null; - var uri="https://tracker.debian.org/" + pkg; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_deb: function(in_new) { - var pkg = IceDeb.trim_keyword(IceDeb.getClipboardText()); - if (!pkg) return null; - var uri="https://packages.debian.org/" + pkg; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_ml: function(in_new) { - var msg_id = IceDeb.trim_keyword(IceDeb.getClipboardText()); - if (!msg_id) msg_id = ''; - var uri="https://lists.debian.org/msgid-search/" + msg_id; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_ddpo: function(in_new) { - var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); - var uri="https://qa.debian.org/developer.php"; - - if (keyword) uri += "?login=" + keyword; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_buildd: function(in_new) { - var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); - var uri="https://buildd.debian.org/"; - - if (keyword) uri += keyword; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - lookup_security: function(in_new) { - var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); - var uri="https://security-tracker.debian.org/"; - - if (keyword) uri += "tracker/" + keyword; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } - }, - - btsButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_bts(false) - else if ( e.button == 1 ) - IceDeb.lookup_bts(true); - }, - ptsButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_pts(false) - else if ( e.button == 1 ) - IceDeb.lookup_pts(true); - }, - debButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_deb(false) - else if ( e.button == 1 ) - IceDeb.lookup_deb(true); - }, - mlButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_ml(false) - else if ( e.button == 1 ) - IceDeb.lookup_ml(true); - }, - ddpoButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_ddpo(false) - else if ( e.button == 1 ) - IceDeb.lookup_ddpo(true); - }, - builddButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_buildd(false) - else if ( e.button == 1 ) - IceDeb.lookup_buildd(true); - }, - securityButton: function (e) { - if ( e.button == 0 ) - IceDeb.lookup_security(false) - else if ( e.button == 1 ) - IceDeb.lookup_security(true); - } -} - diff --git a/chrome/content/icedeb.xul b/chrome/content/icedeb.xul deleted file mode 100644 index 7b8e347..0000000 --- a/chrome/content/icedeb.xul +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - -