mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-17 23:00:10 -07:00
Postbox first version
This commit is contained in:
parent
1d68d49640
commit
8453a9bc98
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ var gNativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(C
|
|||||||
//IP regex
|
//IP regex
|
||||||
var gIPRegEx=/(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
|
var gIPRegEx=/(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
|
||||||
var gAllIPRegEx = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
|
var gAllIPRegEx = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
|
||||||
var gAppName = window.navigator.appName!=null?window.navigator.appName:'';
|
var gApp = 'Postbox';
|
||||||
|
|
||||||
var mailHops =
|
var mailHops =
|
||||||
{
|
{
|
||||||
@ -20,7 +20,7 @@ var mailHops =
|
|||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
map: 'goog',
|
map: 'goog',
|
||||||
unit: 'mi',
|
unit: 'mi',
|
||||||
appVersion: 'MailHops '+gAppName+' 0.4.3'
|
appVersion: 'MailHops '+gApp+' 0.4.3'
|
||||||
}
|
}
|
||||||
|
|
||||||
mailHops.startLoading = function()
|
mailHops.startLoading = function()
|
||||||
|
@ -8,14 +8,16 @@
|
|||||||
|
|
||||||
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
|
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
|
||||||
|
|
||||||
<vbox id="expandedHeaders">
|
<vbox id="headers">
|
||||||
<hbox id="mailhopsBox" class="mailheader" collapsed="false" flex="1">
|
<hbox id="mailhopsBox" class="mailheader" collapsed="false" inminmode="true">
|
||||||
<label id="mailhopsLabel" class="headerName" value="route: "/>
|
<label id="mailhopsLabel" class="headerName plain" value="route: "/>
|
||||||
<hbox id="mailhopsResult" flex="2">
|
<hbox flex="1">
|
||||||
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16" height="11"/>
|
<mailheadervalue id="mailhopsResult" flex="1">
|
||||||
<hbox id="mailhopsResultText"></hbox>
|
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16px" height="11px"/>
|
||||||
|
<hbox id="mailhopsResultText" class="headerValue plain"></hbox>
|
||||||
|
</mailheadervalue>
|
||||||
</hbox>
|
</hbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
</overlay>
|
</overlay>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||||
|
|
||||||
#mailhops {cursor:pointer;}
|
#mailhopsBox {cursor:pointer;}
|
||||||
|
|
||||||
#mailhopsResultText {padding-left:4px;}
|
#mailhopsResultText {padding-left:4px;}
|
||||||
|
|
||||||
|
@ -20,12 +20,6 @@
|
|||||||
<em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL>
|
<em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL>
|
||||||
|
|
||||||
<em:targetApplication>
|
<em:targetApplication>
|
||||||
<!-- Thunderbird -->
|
|
||||||
<Description>
|
|
||||||
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
|
|
||||||
<em:minVersion>3.0</em:minVersion>
|
|
||||||
<em:maxVersion>3.1</em:maxVersion>
|
|
||||||
</Description>
|
|
||||||
|
|
||||||
<!-- Postbox -->
|
<!-- Postbox -->
|
||||||
<Description>
|
<Description>
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user