Сборка фронт части

This commit is contained in:
test 2025-06-19 13:16:59 +05:00
parent 43f0bc1cdc
commit dfbd387fae
176 changed files with 7839 additions and 1032 deletions

View file

@ -0,0 +1,21 @@
export const updateWifiData = (wifiData: any, nodes: any)=>{
const wifiName = wifiData.name;
const updatedNodes = nodes.map((node: any) => {
if (node.data.networkData && node.data.networkData.device === wifiName) {
return {
...node,
data: {
...node.data,
networkData: {
...node.data.networkData,
strength: wifiData.strength,
},
},
};
}
return node;
});
return updatedNodes
}