Update public source
This commit is contained in:
@@ -360,6 +360,12 @@ def get_category(
|
||||
):
|
||||
return "handshake"
|
||||
|
||||
if (
|
||||
str(access_point["encryption"] or "").strip().upper()
|
||||
== "OPEN"
|
||||
):
|
||||
return "open"
|
||||
|
||||
return "other"
|
||||
|
||||
|
||||
@@ -1264,6 +1270,18 @@ def render_search_page(
|
||||
Handshake / PMKID
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-category="open"
|
||||
checked
|
||||
>
|
||||
<span
|
||||
class="map-layer-dot map-layer-dot-open"
|
||||
></span>
|
||||
Open AP
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
@@ -1351,6 +1369,8 @@ def render_search_page(
|
||||
"search-password",
|
||||
handshake:
|
||||
"search-handshake",
|
||||
open:
|
||||
"search-open",
|
||||
other:
|
||||
"search-other"
|
||||
};
|
||||
@@ -1522,6 +1542,37 @@ def render_search_page(
|
||||
}
|
||||
);
|
||||
|
||||
map.addLayer(
|
||||
{
|
||||
id:
|
||||
"search-open",
|
||||
|
||||
type:
|
||||
"circle",
|
||||
|
||||
source:
|
||||
"search-aps",
|
||||
|
||||
filter: [
|
||||
"==",
|
||||
[
|
||||
"get",
|
||||
"category"
|
||||
],
|
||||
"open"
|
||||
],
|
||||
|
||||
paint: {
|
||||
"circle-radius": 7,
|
||||
"circle-stroke-width": 2,
|
||||
"circle-color":
|
||||
"#AB47BC",
|
||||
"circle-stroke-color":
|
||||
"#0f141a"
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
map.addLayer(
|
||||
{
|
||||
id:
|
||||
@@ -1569,6 +1620,7 @@ def render_search_page(
|
||||
[
|
||||
"search-password",
|
||||
"search-handshake",
|
||||
"search-open",
|
||||
"search-other"
|
||||
].forEach(
|
||||
(layerId) => {
|
||||
|
||||
Reference in New Issue
Block a user