@lvce-editor/ports-view 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2825,28 +2825,28 @@ const statusCell = {
|
|
|
2825
2825
|
role: Cell,
|
|
2826
2826
|
type: Div
|
|
2827
2827
|
};
|
|
2828
|
-
const getPortRowVirtualDom =
|
|
2829
|
-
const portText = String(
|
|
2828
|
+
const getPortRowVirtualDom = visiblePort => {
|
|
2829
|
+
const portText = String(visiblePort.port);
|
|
2830
2830
|
return [{
|
|
2831
|
-
ariaRowIndex:
|
|
2831
|
+
ariaRowIndex: visiblePort.index + 2,
|
|
2832
2832
|
childCount: 5,
|
|
2833
|
-
className: getRowClassName(
|
|
2833
|
+
className: getRowClassName(visiblePort),
|
|
2834
2834
|
role: Row,
|
|
2835
2835
|
type: Div
|
|
2836
|
-
}, statusCell, ...getPortsStatusVirtualDom(
|
|
2836
|
+
}, statusCell, ...getPortsStatusVirtualDom(visiblePort.active, visiblePort.port), ...getTextCell(portText), {
|
|
2837
2837
|
childCount: 1,
|
|
2838
2838
|
className: PortsColumn,
|
|
2839
2839
|
role: Cell,
|
|
2840
|
-
title:
|
|
2840
|
+
title: visiblePort.forwardedAddress,
|
|
2841
2841
|
type: Div
|
|
2842
2842
|
}, {
|
|
2843
2843
|
childCount: 1,
|
|
2844
2844
|
className: 'PortsAddressLink',
|
|
2845
|
-
name: `port-address-${
|
|
2845
|
+
name: `port-address-${visiblePort.port}`,
|
|
2846
2846
|
role: Link,
|
|
2847
2847
|
tabIndex: Unfocusable,
|
|
2848
2848
|
type: A
|
|
2849
|
-
}, text(
|
|
2849
|
+
}, text(visiblePort.forwardedAddress), ...getTextCell(visiblePort.runningProcess), ...getTextCell(visiblePort.origin)];
|
|
2850
2850
|
};
|
|
2851
2851
|
|
|
2852
2852
|
const emptyBody = {
|