From 8d52f881a1741ea66e981ad59d7c3f4aba8543e7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 10 Jan 2012 16:25:42 +0200 Subject: [PATCH] an attempt to produce a descent restartless variant behaves bad in the browser -- the buttons aren't visible in the toolbar editor, right-button clicking is not captured properly --- Magnifying_Glass_1.svg | 108 ++++++++++++++ bootstrap.js | 24 ++++ build | 2 +- chrome/content/bts.png | Bin 0 -> 915 bytes data/widget/widget.js | 12 ++ install.rdf | 3 +- package.json | 8 ++ system-search.svg | 313 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 468 insertions(+), 2 deletions(-) create mode 100644 Magnifying_Glass_1.svg create mode 100644 bootstrap.js create mode 100644 chrome/content/bts.png create mode 100644 data/widget/widget.js create mode 100644 package.json create mode 100644 system-search.svg diff --git a/Magnifying_Glass_1.svg b/Magnifying_Glass_1.svg new file mode 100644 index 0000000..92d2773 --- /dev/null +++ b/Magnifying_Glass_1.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/bootstrap.js b/bootstrap.js new file mode 100644 index 0000000..8ccb4e4 --- /dev/null +++ b/bootstrap.js @@ -0,0 +1,24 @@ +const widgets = require('widget'); +const data = require('self').data; + +exports.main = function() { + var bts = widgets.Widget({ + id: "icedeb-bts", + label: "Query Debian Bug-tracking System", + contentURL: data.url('widget/icedeb-bts.png'), + contentScriptWhen: 'ready', + contentScriptFile: data.url('widget/icedeb-bts.js') + }); + + bts.port.on('left-click', function() { + console.log('left click'); + }); + + bts.port.on('right-click', function() { + console.log('right click'); + }); + + bts.port.on('middle-click', function() { + console.log('middle click'); + }); +}; diff --git a/build b/build index b993202..80e6c6a 100644 --- a/build +++ b/build @@ -7,4 +7,4 @@ export PKG=icedeb [ ! -e $PKG.xpi ] || rm $PKG.xpi -zip -r $PKG.xpi chrome install* chrome.manifest README res +zip -r $PKG.xpi chrome data install* chrome.manifest README res *.js diff --git a/chrome/content/bts.png b/chrome/content/bts.png new file mode 100644 index 0000000000000000000000000000000000000000..89239332c27ddab9533a817b2423a6799315e350 GIT binary patch literal 915 zcmV;E18n?>P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01EH`01EH{Laa2H00007bV*G`2ipo1 z4GlXjo0=a000R?AL_t(Y$BorXXkAql2Hbj$#x&IGE(uHU60!nQl zb2x%u@lu*+Czni6ODY?Yp)W4|i94IFWWf3DB2%P^K2$A|JVdOQP;Lp1S$5Vc{bPP zs-MH|2Iuo_EIgdVVQ=g=bRw9+?;W)4!_VyuYm2>k9Ck--KI=peX4xG8U_-eM6RMyADcrneha}uPh4Z*GRrw*YgiXuSw)b#k-?$Z0% zRZA*A;Uip#t+)hFr+IdySc5W*F8 z=k>l}{6Gj{ID{}0LKq7nJkm~N*o!ed5$Aa<#ryGAyth#A8=}~Qo$;mHg25IInzZ;Y zR>$6WjlGzxW198B8~6@yW9$5SCvmE!@^%!@F2A;aDFktCJ)Vly_`L-Q>P{YCJ}~u7 z_Z_$66&!A`O=4Zcd=D;*sedE>UJ}7TSoOgQVP>`NQ)`@eO@nP$Bq`#2XMC$?F^r*> pG+pFbybYW12}aU9`)4Wp{s++}*lZ + true Debian buttons Collection of buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number, message-ID) and click on one of the buttons. Clicking with the middle mouse button opens a new tab. Damyan Ivanov {8fb11c5b-84eb-4da0-9128-292eacce2dcb} - 1.5 + 2.0 2 chrome://icedeb/content/icon.png diff --git a/package.json b/package.json new file mode 100644 index 0000000..f44ceab --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name":"icedeb", + "fullName":"Debian Buttons", + "description":"A collection of handy buttons for searching Debian-related material right from the clpboard.", + "author":"Damyan Ivanov", + "license":"BSD", + "version":"2.0" +} diff --git a/system-search.svg b/system-search.svg new file mode 100644 index 0000000..1a4c1cd --- /dev/null +++ b/system-search.svg @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Jakub Steiner + + + http://jimmac.musichall.cz + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.2