Fix jwt-token
This commit is contained in:
@@ -1,145 +1,124 @@
|
|||||||
/**
|
/**
|
||||||
* Drone Type Mappings
|
* Drone Type Mappings
|
||||||
* Maps integer drone_type values to human-readable names and categories
|
* Maps integer drone_type values to human-readable names and categories
|
||||||
|
* Based on ESP32S3 GuessedDroneType enum for accurate real-world detection
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const DRONE_TYPES = {
|
const DRONE_TYPES = {
|
||||||
// Military/Combat Drones
|
// Based on ESP32S3 GuessedDroneType enum
|
||||||
0: {
|
0: {
|
||||||
name: "Russian Orlan",
|
name: "None",
|
||||||
category: "Military/Reconnaissance",
|
category: "Unknown",
|
||||||
threat_level: "high",
|
threat_level: "monitoring",
|
||||||
description: "Russian military reconnaissance drone"
|
description: "No drone detected or signal below threshold"
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
name: "Bayraktar TB2",
|
name: "Unknown",
|
||||||
category: "Military/Combat",
|
category: "Unknown",
|
||||||
threat_level: "critical",
|
threat_level: "medium",
|
||||||
description: "Turkish military combat drone"
|
description: "Unidentified drone type"
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
name: "MQ-9 Reaper",
|
name: "Orlan",
|
||||||
category: "Military/Combat",
|
category: "Military/Reconnaissance",
|
||||||
threat_level: "critical",
|
threat_level: "critical",
|
||||||
description: "US military combat drone"
|
description: "Russian military reconnaissance drone"
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
name: "Iranian Shahed",
|
name: "Zala",
|
||||||
category: "Military/Kamikaze",
|
category: "Military/Surveillance",
|
||||||
threat_level: "critical",
|
threat_level: "critical",
|
||||||
description: "Iranian kamikaze/suicide drone"
|
description: "Russian military surveillance drone"
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
name: "Chinese Wing Loong",
|
name: "Eleron",
|
||||||
category: "Military/Combat",
|
category: "Military/Tactical",
|
||||||
threat_level: "critical",
|
threat_level: "critical",
|
||||||
description: "Chinese military combat drone"
|
description: "Russian military tactical drone"
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
name: "Israeli Hermes",
|
name: "Zala Lancet",
|
||||||
|
category: "Military/Kamikaze",
|
||||||
|
threat_level: "critical",
|
||||||
|
description: "Russian loitering munition drone"
|
||||||
|
},
|
||||||
|
6: {
|
||||||
|
name: "Lancet",
|
||||||
|
category: "Military/Kamikaze",
|
||||||
|
threat_level: "critical",
|
||||||
|
description: "Russian kamikaze loitering munition"
|
||||||
|
},
|
||||||
|
7: {
|
||||||
|
name: "FPV CrossFire",
|
||||||
|
category: "FPV/Racing",
|
||||||
|
threat_level: "high",
|
||||||
|
description: "FPV drone using CrossFire protocol"
|
||||||
|
},
|
||||||
|
8: {
|
||||||
|
name: "FPV ELRS",
|
||||||
|
category: "FPV/Racing",
|
||||||
|
threat_level: "high",
|
||||||
|
description: "FPV drone using ExpressLRS protocol"
|
||||||
|
},
|
||||||
|
9: {
|
||||||
|
name: "Maybe Orlan",
|
||||||
category: "Military/Reconnaissance",
|
category: "Military/Reconnaissance",
|
||||||
threat_level: "high",
|
threat_level: "high",
|
||||||
description: "Israeli military reconnaissance drone"
|
description: "Possible Orlan drone (uncertain identification)"
|
||||||
},
|
},
|
||||||
|
|
||||||
// Commercial/Professional Drones
|
|
||||||
10: {
|
10: {
|
||||||
name: "DJI Mavic",
|
name: "Maybe Zala",
|
||||||
category: "Commercial/Professional",
|
category: "Military/Surveillance",
|
||||||
threat_level: "medium",
|
threat_level: "high",
|
||||||
description: "DJI professional quadcopter"
|
description: "Possible Zala drone (uncertain identification)"
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
name: "DJI Phantom",
|
name: "Maybe Lancet",
|
||||||
category: "Commercial/Professional",
|
category: "Military/Kamikaze",
|
||||||
threat_level: "medium",
|
threat_level: "high",
|
||||||
description: "DJI professional quadcopter"
|
description: "Possible Lancet drone (uncertain identification)"
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
name: "DJI Inspire",
|
name: "Maybe Eleron",
|
||||||
category: "Commercial/Professional",
|
category: "Military/Tactical",
|
||||||
threat_level: "medium",
|
threat_level: "high",
|
||||||
description: "DJI professional cinematography drone"
|
description: "Possible Eleron drone (uncertain identification)"
|
||||||
},
|
},
|
||||||
13: {
|
13: {
|
||||||
name: "Autel EVO",
|
name: "DJI",
|
||||||
category: "Commercial/Professional",
|
category: "Commercial/Professional",
|
||||||
threat_level: "medium",
|
threat_level: "medium",
|
||||||
description: "Autel professional quadcopter"
|
description: "DJI consumer/commercial drone"
|
||||||
},
|
},
|
||||||
14: {
|
14: {
|
||||||
name: "Parrot Anafi",
|
name: "Supercam",
|
||||||
|
category: "Military/Surveillance",
|
||||||
|
threat_level: "critical",
|
||||||
|
description: "Russian military surveillance drone"
|
||||||
|
},
|
||||||
|
15: {
|
||||||
|
name: "Maybe Supercam",
|
||||||
|
category: "Military/Surveillance",
|
||||||
|
threat_level: "high",
|
||||||
|
description: "Possible Supercam drone (uncertain identification)"
|
||||||
|
},
|
||||||
|
16: {
|
||||||
|
name: "REB",
|
||||||
|
category: "Military/Electronic Warfare",
|
||||||
|
threat_level: "critical",
|
||||||
|
description: "Russian Electronic Warfare (REB) drone"
|
||||||
|
},
|
||||||
|
17: {
|
||||||
|
name: "Crypto Orlan",
|
||||||
|
category: "Military/Reconnaissance",
|
||||||
|
threat_level: "critical",
|
||||||
|
description: "Encrypted Orlan drone with enhanced security"
|
||||||
|
},
|
||||||
|
18: {
|
||||||
|
name: "DJI Enterprise",
|
||||||
category: "Commercial/Professional",
|
category: "Commercial/Professional",
|
||||||
threat_level: "medium",
|
threat_level: "medium",
|
||||||
description: "Parrot professional quadcopter"
|
description: "DJI Enterprise/Professional drone"
|
||||||
},
|
|
||||||
|
|
||||||
// Consumer/Hobby Drones
|
|
||||||
20: {
|
|
||||||
name: "DJI Mini",
|
|
||||||
category: "Consumer/Hobby",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "DJI consumer mini drone"
|
|
||||||
},
|
|
||||||
21: {
|
|
||||||
name: "DJI Spark",
|
|
||||||
category: "Consumer/Hobby",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "DJI consumer compact drone"
|
|
||||||
},
|
|
||||||
22: {
|
|
||||||
name: "Ryze Tello",
|
|
||||||
category: "Consumer/Hobby",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "Consumer toy/education drone"
|
|
||||||
},
|
|
||||||
23: {
|
|
||||||
name: "Holy Stone",
|
|
||||||
category: "Consumer/Hobby",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "Consumer hobby quadcopter"
|
|
||||||
},
|
|
||||||
24: {
|
|
||||||
name: "Syma X5C",
|
|
||||||
category: "Consumer/Hobby",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "Consumer toy quadcopter"
|
|
||||||
},
|
|
||||||
|
|
||||||
// Racing/FPV Drones
|
|
||||||
30: {
|
|
||||||
name: "Racing Quadcopter",
|
|
||||||
category: "Racing/FPV",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "Custom racing/FPV quadcopter"
|
|
||||||
},
|
|
||||||
31: {
|
|
||||||
name: "TinyHawk",
|
|
||||||
category: "Racing/FPV",
|
|
||||||
threat_level: "low",
|
|
||||||
description: "Micro racing quadcopter"
|
|
||||||
},
|
|
||||||
|
|
||||||
// Fixed-Wing Drones
|
|
||||||
40: {
|
|
||||||
name: "Fixed-Wing Surveillance",
|
|
||||||
category: "Fixed-Wing/Surveillance",
|
|
||||||
threat_level: "medium",
|
|
||||||
description: "Fixed-wing surveillance aircraft"
|
|
||||||
},
|
|
||||||
41: {
|
|
||||||
name: "Fixed-Wing Cargo",
|
|
||||||
category: "Fixed-Wing/Commercial",
|
|
||||||
threat_level: "medium",
|
|
||||||
description: "Fixed-wing cargo/delivery aircraft"
|
|
||||||
},
|
|
||||||
|
|
||||||
// Unknown/Unclassified
|
|
||||||
99: {
|
|
||||||
name: "Unknown Drone",
|
|
||||||
category: "Unknown/Unclassified",
|
|
||||||
threat_level: "medium",
|
|
||||||
description: "Unidentified or unclassified drone"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user