setShowWormholeList(false)} />
{hasOldSettings && }
diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/MapContextMenu/MapContextMenu.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/MapContextMenu/MapContextMenu.tsx
index cf581d83..b0a9a608 100644
--- a/assets/js/hooks/Mapper/components/mapRootContent/components/MapContextMenu/MapContextMenu.tsx
+++ b/assets/js/hooks/Mapper/components/mapRootContent/components/MapContextMenu/MapContextMenu.tsx
@@ -12,9 +12,15 @@ export interface MapContextMenuProps {
onShowOnTheMap?: () => void;
onShowMapSettings?: () => void;
onShowTrackingDialog?: () => void;
+ onShowWormholesReference?: () => void;
}
-export const MapContextMenu = ({ onShowOnTheMap, onShowMapSettings, onShowTrackingDialog }: MapContextMenuProps) => {
+export const MapContextMenu = ({
+ onShowOnTheMap,
+ onShowMapSettings,
+ onShowTrackingDialog,
+ onShowWormholesReference,
+}: MapContextMenuProps) => {
const {
outCommand,
storedSettings: { setInterfaceSettings },
@@ -52,6 +58,12 @@ export const MapContextMenu = ({ onShowOnTheMap, onShowMapSettings, onShowTracki
command: onShowOnTheMap,
visible: canTrackCharacters,
},
+ {
+ label: 'Wormholes Ref.',
+ icon: 'pi pi-bullseye',
+ command: onShowWormholesReference,
+ visible: canTrackCharacters,
+ },
{ separator: true, visible: true },
{
label: 'Settings',
diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/RightBar/RightBar.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/RightBar/RightBar.tsx
index cbf22952..50a860af 100644
--- a/assets/js/hooks/Mapper/components/mapRootContent/components/RightBar/RightBar.tsx
+++ b/assets/js/hooks/Mapper/components/mapRootContent/components/RightBar/RightBar.tsx
@@ -14,6 +14,7 @@ interface RightBarProps {
onShowOnTheMap?: () => void;
onShowMapSettings?: () => void;
onShowTrackingDialog?: () => void;
+ onShowWormholesReference?: () => void;
additionalContent?: ReactNode;
}
@@ -21,6 +22,7 @@ export const RightBar = ({
onShowOnTheMap,
onShowMapSettings,
onShowTrackingDialog,
+ onShowWormholesReference,
additionalContent,
}: RightBarProps) => {
const {
@@ -90,6 +92,16 @@ export const RightBar = ({
+
+
+
+
>
)}
diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/WormholeSignaturesDialog/WormholeSignaturesDialog.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/WormholeSignaturesDialog/WormholeSignaturesDialog.tsx
index 18f8cbd6..97a6ef19 100644
--- a/assets/js/hooks/Mapper/components/mapRootContent/components/WormholeSignaturesDialog/WormholeSignaturesDialog.tsx
+++ b/assets/js/hooks/Mapper/components/mapRootContent/components/WormholeSignaturesDialog/WormholeSignaturesDialog.tsx
@@ -4,7 +4,7 @@ import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
import { useMapRootState } from '@/hooks/Mapper/mapRootProvider';
import { WormholeDataRaw } from '@/hooks/Mapper/types';
-import { WHClassView } from '@/hooks/Mapper/components/ui-kit';
+import { RespawnTag, WHClassView } from '@/hooks/Mapper/components/ui-kit';
import { kgToTons } from '@/hooks/Mapper/utils/kgToTons.ts';
import { WORMHOLE_CLASS_STYLES, WORMHOLES_ADDITIONAL_INFO } from '@/hooks/Mapper/components/map/constants.ts';
import clsx from 'clsx';
@@ -12,15 +12,61 @@ import { InputText } from 'primereact/inputtext';
import { IconField } from 'primereact/iconfield';
import { InputIcon } from 'primereact/inputicon';
+const renderSpawns = (w: WormholeDataRaw) => (
+
+ {w.src.map(s => {
+ const group = s.split('-')[0];
+ const info = WORMHOLES_ADDITIONAL_INFO[group];
+
+ if (!info) {
+ return (
+
+ {s}
+
+ );
+ }
+
+ const cls = WORMHOLE_CLASS_STYLES[String(info.wormholeClassID)] || '';
+ const label = `${info.shortName}`;
+ return (
+
+ {label}
+
+ );
+ })}
+
+);
+
+const renderName = (w: WormholeDataRaw) => (
+
+
+
+);
+
+const renderRespawn = (w: WormholeDataRaw) => (
+
+ {w.respawn.map(r => (
+
+ ))}
+
+);
+
export interface WormholeSignaturesDialogProps {
visible: boolean;
onHide: () => void;
}
-const RespawnTag = ({ value }: { value: string }) => (
- {value}
-);
-
export const WormholeSignaturesDialog = ({ visible, onHide }: WormholeSignaturesDialogProps) => {
const {
data: { wormholes },
@@ -61,49 +107,13 @@ export const WormholeSignaturesDialog = ({ visible, onHide }: WormholeSignatures
});
}, [wormholes, filter]);
- const renderName = (w: WormholeDataRaw) => (
-
-
-
- );
-
- const renderRespawn = (w: WormholeDataRaw) => (
-
- {w.respawn.map(r => (
-
- ))}
-
- );
-
- const renderSpawns = (w: WormholeDataRaw) => (
-
- {w.src.map(s => {
- const group = s.split('-')[0];
- const info = WORMHOLES_ADDITIONAL_INFO[group];
- if (!info)
- return (
-
- {s}
-
- );
- const cls = WORMHOLE_CLASS_STYLES[String(info.wormholeClassID)] || '';
- const label = `${info.shortName}`;
- return (
-
- {label}
-
- );
- })}
-
- );
-
return (