Fix jwt-token
This commit is contained in:
@@ -99,14 +99,14 @@ const Alerts = () => {
|
||||
const droneTypeMap = {
|
||||
0: { name: 'Unknown', color: 'gray', bgColor: 'bg-gray-100', textColor: 'text-gray-600', icon: '🔍' },
|
||||
1: { name: 'Generic', color: 'blue', bgColor: 'bg-blue-100', textColor: 'text-blue-800', icon: '🚁' },
|
||||
2: { name: 'Orlan', color: 'red', bgColor: 'bg-red-100', textColor: 'text-red-800', icon: '⚠️' },
|
||||
3: { name: 'Zala', color: 'orange', bgColor: 'bg-orange-100', textColor: 'text-orange-800', icon: '🔶' },
|
||||
4: { name: 'Forpost', color: 'purple', bgColor: 'bg-purple-100', textColor: 'text-purple-800', icon: '🟣' },
|
||||
5: { name: 'Inokhodets', color: 'indigo', bgColor: 'bg-indigo-100', textColor: 'text-indigo-800', icon: '🔷' },
|
||||
6: { name: 'Lancet', color: 'red', bgColor: 'bg-red-200', textColor: 'text-red-900', icon: '💥' },
|
||||
7: { name: 'Shahed', color: 'yellow', bgColor: 'bg-yellow-100', textColor: 'text-yellow-800', icon: '⚡' },
|
||||
8: { name: 'Geran', color: 'amber', bgColor: 'bg-amber-100', textColor: 'text-amber-800', icon: '🟨' },
|
||||
9: { name: 'Kub', color: 'green', bgColor: 'bg-green-100', textColor: 'text-green-800', icon: '🟢' },
|
||||
2: { name: 'Orlan', color: 'red', bgColor: 'bg-red-100', textColor: 'text-red-800', icon: '⚠️', warning: '⚠️ MILITARY' },
|
||||
3: { name: 'Zala', color: 'orange', bgColor: 'bg-orange-100', textColor: 'text-orange-800', icon: '🔶', warning: '⚠️ MILITARY' },
|
||||
4: { name: 'Forpost', color: 'purple', bgColor: 'bg-purple-100', textColor: 'text-purple-800', icon: '🟣', warning: '⚠️ MILITARY' },
|
||||
5: { name: 'Inokhodets', color: 'indigo', bgColor: 'bg-indigo-100', textColor: 'text-indigo-800', icon: '🔷', warning: '⚠️ MILITARY' },
|
||||
6: { name: 'Lancet', color: 'red', bgColor: 'bg-red-200', textColor: 'text-red-900', icon: '💥', warning: '⚠️ MILITARY' },
|
||||
7: { name: 'Shahed', color: 'yellow', bgColor: 'bg-yellow-100', textColor: 'text-yellow-800', icon: '⚡', warning: '⚠️ MILITARY' },
|
||||
8: { name: 'Geran', color: 'amber', bgColor: 'bg-amber-100', textColor: 'text-amber-800', icon: '🟨', warning: '⚠️ MILITARY' },
|
||||
9: { name: 'Kub', color: 'green', bgColor: 'bg-green-100', textColor: 'text-green-800', icon: '🟢', warning: '⚠️ MILITARY' },
|
||||
10: { name: 'X-UAV', color: 'teal', bgColor: 'bg-teal-100', textColor: 'text-teal-800', icon: '🔷' },
|
||||
11: { name: 'SuperCam', color: 'cyan', bgColor: 'bg-cyan-100', textColor: 'text-cyan-800', icon: '📷' },
|
||||
12: { name: 'Eleron', color: 'lime', bgColor: 'bg-lime-100', textColor: 'text-lime-800', icon: '🟩' },
|
||||
@@ -114,7 +114,7 @@ const Alerts = () => {
|
||||
14: { name: 'Autel', color: 'violet', bgColor: 'bg-violet-100', textColor: 'text-violet-800', icon: '🟪' },
|
||||
15: { name: 'Parrot', color: 'emerald', bgColor: 'bg-emerald-100', textColor: 'text-emerald-800', icon: '🦜' },
|
||||
16: { name: 'Skydio', color: 'sky', bgColor: 'bg-sky-100', textColor: 'text-sky-800', icon: '☁️' },
|
||||
17: { name: 'CryptoOrlan', color: 'red', bgColor: 'bg-red-300', textColor: 'text-red-900', icon: '🔴' }
|
||||
17: { name: 'CryptoOrlan', color: 'red', bgColor: 'bg-red-300', textColor: 'text-red-900', icon: '🔴', warning: '⚠️ MILITARY' }
|
||||
};
|
||||
|
||||
return droneTypeMap[detection.drone_type] || droneTypeMap[0];
|
||||
@@ -511,17 +511,8 @@ const Alerts = () => {
|
||||
<span className={`px-3 py-1 rounded-full text-sm font-semibold ${droneTypeInfo.bgColor} ${droneTypeInfo.textColor} border-2 border-${droneTypeInfo.color}-300`}>
|
||||
{droneTypeInfo.icon} {droneTypeInfo.name}
|
||||
</span>
|
||||
{droneTypeInfo.name === 'Orlan' && (
|
||||
<span className="text-red-600 font-bold text-xs">⚠️ MILITARY</span>
|
||||
)}
|
||||
{droneTypeInfo.name === 'Lancet' && (
|
||||
<span className="text-red-600 font-bold text-xs">💥 KAMIKAZE</span>
|
||||
)}
|
||||
{droneTypeInfo.name === 'CryptoOrlan' && (
|
||||
<span className="text-red-600 font-bold text-xs">🔴 ENCRYPTED</span>
|
||||
)}
|
||||
{droneTypeInfo.name === 'DJI' && (
|
||||
<span className="text-blue-600 font-medium text-xs">📱 COMMERCIAL</span>
|
||||
{droneTypeInfo.warning && (
|
||||
<span className="text-red-600 font-bold text-xs">{droneTypeInfo.warning}</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
@@ -609,6 +600,9 @@ const Alerts = () => {
|
||||
<span className={`px-2 py-1 rounded text-xs font-medium ${droneTypeInfo.bgColor} ${droneTypeInfo.textColor} opacity-80`}>
|
||||
{droneTypeInfo.icon} {droneTypeInfo.name}
|
||||
</span>
|
||||
{droneTypeInfo.warning && (
|
||||
<span className="text-red-600 font-bold text-xs opacity-80">{droneTypeInfo.warning}</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})()}
|
||||
|
||||
Reference in New Issue
Block a user