Skip to content

Commit 0565ce5

Browse files
committed
Finish 3.3.0
2 parents ec0548c + 344c581 commit 0565ce5

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
lines changed

database/COPYRIGHT.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Database and Contents Copyright (c) 2021 MaxMind, Inc.

database/GeoLite2-ASN.mmdb

50 KB
Binary file not shown.

database/GeoLite2-City.mmdb

8.19 MB
Binary file not shown.

database/LICENSE.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Use of this MaxMind product is governed by MaxMind's GeoLite2 End User License Agreement, which can be viewed at https://www.maxmind.com/en/geolite2/eula.
2+
3+
This database incorporates GeoNames [https://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 4.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": "./integration.js",
33
"name": "MaxMind",
44
"description": "Polarity MaxMind Integration",
5-
"version": "3.2.4-beta",
5+
"version": "3.3.0",
66
"private": true,
77
"dependencies": {
88
"async": "^3.2.0",

styles/maxmind.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@
1515
.critical-bold {
1616
color: @brand-danger !important;
1717
}
18+
19+
.words {
20+
word-break: break-word !important;
21+
}

templates/maxmind-block.hbs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{{#if details.asn}}
3232
<div>
3333
<span class="p-key">Org: </span>
34-
<span class="p-value">{{details.asn.autonomous_system_organization}}</span>
34+
<span class="p-value words">{{details.asn.autonomous_system_organization}}</span>
3535
</div>
3636
<div>
3737
<span class="p-key">ASN: </span>
@@ -46,6 +46,26 @@
4646
</div>
4747
{{/if}}
4848

49+
{{#if details.location.latitude}}
50+
<div>
51+
<span class="p-key">Latitude, Longitude: </span>
52+
<span class="p-value">{{details.location.latitude}}, {{details.location.longitude}}</span>
53+
</div>
54+
{{/if}}
55+
56+
{{#if details.location.accuracy_radius}}
57+
<div>
58+
<span class="p-key">Accuracy Radius: </span>
59+
<span class="p-value">{{details.location.accuracy_radius}} km</span>
60+
</div>
61+
{{/if}}
62+
63+
{{#if details.location.time_zone}}
64+
<div>
65+
<span class="p-key">Timezone: </span>
66+
<span class="p-value">{{details.location.time_zone}}</span>
67+
</div>
68+
{{/if}}
4969

5070
{{#if details.traits.is_anonymous_proxy}}
5171
<div>
@@ -60,6 +80,8 @@
6080
</div>
6181
{{/if}}
6282

83+
84+
6385
{{#if (gt block.ipAddresses.length 1)}}
6486
<h1 class="p-title">{{fa-icon "network-wired" fixedWidth=true}} Addresses Recognized in Network</h1>
6587
{{#each block.ipAddresses as |ip|}}

0 commit comments

Comments
 (0)