From c34f89f58df92d33d97757738aafbe03ac883e53 Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Mon, 26 Dec 2016 12:42:40 -0700 Subject: [PATCH] Removed old js and css Updated locales --- chrome.manifest | 2 - .../images/btn-add-to-slack-122x35.png | Bin 3921 -> 0 bytes chrome/content/mailhops.js | 2 +- chrome/content/msgNotificationBar.js | 11 +- chrome/content/msgNotificationBar.xul | 2 +- chrome/content/pb-overlay.js | 504 ------------------ chrome/content/pb-overlay.xul | 82 --- chrome/content/tb-overlay.js | 322 ----------- chrome/content/tb-overlay.xul | 44 -- chrome/content/utils.js | 14 - chrome/locale/de/strings.dtd | 4 +- chrome/locale/de/strings.properties | 3 +- chrome/locale/en/strings.dtd | 2 - chrome/locale/en/strings.properties | 4 +- chrome/locale/es/strings.dtd | 4 +- chrome/locale/es/strings.properties | 3 +- chrome/locale/fr/strings.dtd | 4 +- chrome/locale/fr/strings.properties | 2 +- chrome/locale/ja/strings.dtd | 4 +- chrome/locale/ja/strings.properties | 3 +- chrome/locale/pt-BR/strings.dtd | 4 +- chrome/locale/pt-BR/strings.properties | 3 +- chrome/locale/ru/strings.dtd | 4 +- chrome/locale/ru/strings.properties | 3 +- chrome/locale/zh-CN/strings.dtd | 4 +- chrome/locale/zh-CN/strings.properties | 3 +- ...tion-styles.css => msgNotificationBar.css} | 0 chrome/skin/classic/pb-styles.css | 157 ------ chrome/skin/classic/tb-styles.css | 32 -- install.rdf | 3 +- 30 files changed, 26 insertions(+), 1203 deletions(-) delete mode 100644 chrome/content/images/btn-add-to-slack-122x35.png delete mode 100644 chrome/content/pb-overlay.js delete mode 100644 chrome/content/pb-overlay.xul delete mode 100644 chrome/content/tb-overlay.js delete mode 100644 chrome/content/tb-overlay.xul rename chrome/skin/classic/{mh-notification-styles.css => msgNotificationBar.css} (100%) delete mode 100644 chrome/skin/classic/pb-styles.css delete mode 100644 chrome/skin/classic/tb-styles.css diff --git a/chrome.manifest b/chrome.manifest index 050468c..c29d2eb 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -10,9 +10,7 @@ locale mailhops ru jar:chrome/mailhops.jar!/locale/ru/ locale mailhops zh-CN jar:chrome/mailhops.jar!/locale/zh-CN/ # Postbox -# overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/pb-overlay.xul application=postbox@postbox-inc.com overlay chrome://messenger/content/mailWindowOverlay.xul chrome://mailhops/content/msgNotificationBar.xul application=postbox@postbox-inc.com # Thunberbird -# overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/tb-overlay.xul application={3550f703-e582-4d05-9a08-453d09bdfdc6} overlay chrome://messenger/content/mailWindowOverlay.xul chrome://mailhops/content/msgNotificationBar.xul application={3550f703-e582-4d05-9a08-453d09bdfdc6} diff --git a/chrome/content/images/btn-add-to-slack-122x35.png b/chrome/content/images/btn-add-to-slack-122x35.png deleted file mode 100644 index f2661ae002f55e7e2d5c2f9a94aba6de690e3306..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3921 zcmZ`+cQ_kd7Z24KrA^J3S}!SDD~PR#Q9@$R*lldJcd56j(9i}^vH4KxTP4)4mD<#9 zT7;I@s9Eb(wTdtO^ZVm_?sM+B_uPB#^W1yR`JH=k7G_2qYyxZm0DuE-Y+yy_v2+q= z0n&S?Y2jHqWAcU}VF19}v@5?nF4O0t_l>QP^nDTlz+Z^~zzJRS*BSs20RaFu+yMZM z8~}hXxS+*Si@pH7XKG{sxcJ@v)BY-xE@2Heb_@dmgu8wdL*RIXHeJXZ4o4a?|HIC9 z9mqD@s7XKJsxI6BW)nTLl^+wF@A;@-XXh4;AUjBi8`#TGOCIZqWQ0#knCZ!>B#I+h zEi}S;iM6JtO@*WNg@xclTFo1^Xl8db5}H zYtb${6FS2!(fTbO%wEQJ^Au?8{9%l6JY{U>Fs^vM%w8>iZtP2G*RX|J=o^y1&bac~ zih*M8Yu`K{Lf-+9fx!}Fg^_YLAz6)?A$#WrKGeJL&S=WNt`O59B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&GRqXsnKJg`#VCNdlQyF0(I^Wg7ZAaA4oU^ zOj|Hr|C5RtaeXRv^KGn*nqT2jW0mBaxJ#JWgYBzA0bSz}fi6wN7`nT+*g3T(#)~BA zMMbIlPmvdn_PDh6hZ6|d*``p=Lb>h~G1uzkgC_D)gX-LJ|HTQHqM~9>&L2j$S-H6V zm>1ddU0y@WS@y2w?d?y5G#l%DsX*801;g`oqYKQ`W=U&n_RI`wvYHZM2W4i2N%ZL# z=h3;g5fRh3QCg;?lFSuu>-6+{<-= zUj^hMqV_lZgLbzc?v!n6aB#eFtZfF`T3Ya6zkipB{8Cp)Bq|lCg%Fnd&1*uxrT7!g zV}G2co!xgOA2!(~)xU+yT`Y4j%J0CgCGt-a*mDF(47`>vD>15+C#3Z)sw%o&m?-z=Ree2^%T%rt z>H}UVAyIW|i2hNdXCVtK6o$I4%W1f=L9B_`B(u@_@xngh zyE^U`&e?(^(&^PxzUdn7>ErE5O=hKB934Xx(oauY=!U27#4b!p})l zEj-m+hmD^HuHL|uy30p|p?}GIeJ7#sdZqBn_Z}VwX;EX|@1FSz4S%qR@nfYwin+<_ zU8zmnY|I~Yb;OC9f`#lpjCzK2EP*j(F1!)W|5hb|k>zi4O!J0tuB(nL&6iZoSHi#q zH;6P(_3B-o#VUt0G3O$BUmp_h*;f`*G-Y>HS*F_Vx^1n6$_V#DI0}de83MuU$K9uE z(lV{0iz5RjbGC^G&oSj-|MEOa9+m)bAkI}*hHM+=$x^n@8$Hj(2NyF6iZ*SbXk zqR#J_XDngKqx^cH*3g(D6@Mo80faLs9dY^EK8VBN>|CZ2eozwEB$lB7F9CXac{AM5 zAsp=y?x}G<)RWEtiVy`ASp`K|1&ED;ss= - + ',''); - var label = document.createElement('label'); - - label.setAttribute('class','text-link dataPaneURLitem'); - - if(href.indexOf('mailto:')!=-1){ - label.setAttribute('value','Unsubscribe via Email'); - if(href.toLowerCase().indexOf('subject=')==-1){ - if(href.indexOf('?')==-1) - href+='?subject=Unsubscribe'; - else - href+='&subject=Unsubscribe'; - } - } - else{ - label.setAttribute('value','Unsubscribe via Web'); - } - label.setAttribute('tooltiptext',href); - label.setAttribute('href',href); - this.resultListDataPane.appendChild(label); - } - } - } - }, - - auth: function( header_xmailer, header_useragent, header_xmimeole, header_auth, header_spf ){ - this.mailhopsAuthContainer.style.display=''; - //SPF - if(header_spf){ - header_spf=header_spf.replace(/^\s+/,""); - var headerSPFArr=header_spf.split(' '); - this.mailhopsDataPaneSPF.setAttribute('value','SPF: '+headerSPFArr[0]); - this.mailhopsDataPaneSPF.style.backgroundImage = 'url(chrome://mailhops/content/images/auth/'+headerSPFArr[0]+'.png)'; - this.mailhopsDataPaneSPF.setAttribute('tooltiptext',header_spf+'\n'+mailHopsUtils.spf(headerSPFArr[0])); - this.mailhopsDataPaneSPF.style.display='block'; - } else { - this.mailhopsDataPaneSPF.style.display='none'; - } - //Authentication-Results - //http://tools.ietf.org/html/rfc5451 - if(header_auth){ - var headerAuthArr=header_auth.split(';'); - var dkim_result; - var spf_result; - for(var h=0;h 0) - distanceText = mailHopsUtils.addCommas(Math.round(response.distance.kilometers))+' km traveled'; - else if(response.distance.miles > 0) - distanceText = mailHopsUtils.addCommas(Math.round(response.distance.miles))+' mi traveled'; - } - else if(displayText=='') - displayText = ' Local message.'; - } - - if(message.time != null){ - message.time = message.time/1000; - if(message.time < 60) - distanceText += ' in '+message.time+' sec.'; - else if(message.time < 3600) //something is wrong if it takes this long - distanceText += ' in '+Math.round(message.time/60)+' min.'; - else //something is wrong if it takes this long - distanceText += ' in '+Math.round(message.time/60/60)+' hrs.'; - } - - if(header_route){ - this.resultMapLink.setAttribute("data-route", header_route); - this.resultSlackLink.setAttribute("data-api_url", lookup_url.replace('lookup','map')); - } else { - this.resultMapLink.removeAttribute("data-route"); - this.resultSlackLink.removeAttribute("data-api_url"); - } - - this.resultTextDataPane.style.backgroundImage = 'url('+image+')'; - this.resultTextDataPane.value = displayText; - - if(distanceText){ - this.resultTextDataPane2.style.display = 'block'; - this.resultTextDataPane2.value = ' ( '+distanceText+' )'; - } else { - this.resultTextDataPane2.style.display = 'none'; - } - - //set weather of sender - if(weather){ - this.resultTextDataPane3.style.display = 'block'; - this.resultTextDataPane3.setAttribute('tooltiptext',new Date(weather.time*1000)); - this.resultTextDataPane3.value = weather.summary+' '+Math.round(weather.temp)+'\u00B0'; - this.resultTextDataPane3.style.backgroundImage = 'url('+mailHopsUtils.getWeatherIcon(weather.icon)+')'; - } - - //show the detail link - this.resultMapLink.style.display = 'block'; - this.resultContainerDetails.style.display = 'block'; - - } //end route -}; diff --git a/chrome/content/pb-overlay.xul b/chrome/content/pb-overlay.xul deleted file mode 100644 index d2880d1..0000000 --- a/chrome/content/pb-overlay.xul +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - -