Deimplement OSINT+ search
This commit is contained in:
@@ -507,6 +507,37 @@
|
||||
};
|
||||
});
|
||||
}
|
||||
if (widgetNodes.length === 3) {
|
||||
const dominantNode = widgetNodes.find(function (node) {
|
||||
return node.id === workspaceState.activeWidgetId;
|
||||
}) || widgetNodes[widgetNodes.length - 1];
|
||||
const secondaryNodes = widgetNodes.filter(function (node) {
|
||||
return node !== dominantNode;
|
||||
});
|
||||
return [
|
||||
{
|
||||
node: dominantNode,
|
||||
x: 0,
|
||||
y: 0,
|
||||
w: GRID_COLUMNS / 2,
|
||||
h: GRID_ROWS,
|
||||
},
|
||||
{
|
||||
node: secondaryNodes[0],
|
||||
x: GRID_COLUMNS / 2,
|
||||
y: 0,
|
||||
w: GRID_COLUMNS / 2,
|
||||
h: GRID_ROWS / 2,
|
||||
},
|
||||
{
|
||||
node: secondaryNodes[1],
|
||||
x: GRID_COLUMNS / 2,
|
||||
y: GRID_ROWS / 2,
|
||||
w: GRID_COLUMNS / 2,
|
||||
h: GRID_ROWS / 2,
|
||||
},
|
||||
];
|
||||
}
|
||||
return widgetNodes.slice(0, 4).map(function (node, index) {
|
||||
return {
|
||||
node: node,
|
||||
|
||||
Reference in New Issue
Block a user