Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-npm-menu
Advanced tools
A side menu for the user to navigate around the site. Future versions of this menu will include access controls, that will show / hide items on the menu.
A React menu for the user to navigate around the site. Future versions of this menu will include access controls, that will show / hide items on the menu.
A side menu for the user to navigate around the site. Future versions of this menu will include access controls, that will show / hide items on the menu.
<Menu params={data}/>;
This is a full params object in all it's glory. See details about each key below.
{
"currentRoute": "/",
"menuItems": [
{
"name": "MY SITES",
"route": "/mysites",
"valign": "top"
},
{
"name": "CONNECTION STATUS",
"route": "/connection_status",
"valign": "top"
},
{
"name": "WETSTOCK LIVE ANALYTICS",
"route": "/wetstock_live",
"valign": "top",
"children": [
{
"name": "Compliance",
"route": "/compliance"
},
{
"name": "Maintenance",
"route": "/maintenance"
},
{
"name": "Replenshments",
"route": "/replenshments"
},
{
"name": "Business",
"route": "/business"
}
]
},
{
"name": "INCOMMING ALARMS",
"route": "/",
"valign": "top",
"children": [
{
"name": "12:06 LOW PRODUCT-TANK 1",
"route": "/product_tank1"
},
{
"name": "14:07 CLEARED -LOW-TANK 1",
"route": "/cleared_tank1"
}
]
},
{
"name": "CONTACT US",
"route": "/contact_us",
"valign": "bottom"
}
]
}
All menu item for nevigate around the site.
menu item for nevigate around the site.
import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import Menu from './components/menu';
class App extends Component {
constructor(props){
super(props);
}
render() {
let data ={
"currentRoute": "/",
"menuItems": [
{
"name": "MY SITES",
"route": "/mysites",
"valign": "top"
},
{
"name": "CONNECTION STATUS",
"route": "/connection_status",
"valign": "top"
},
{
"name": "WETSTOCK LIVE ANALYTICS",
"route": "/wetstock_live",
"valign": "top",
"children": [
{
"name": "Compliance",
"route": "/compliance"
},
{
"name": "Maintenance",
"route": "/maintenance"
},
{
"name": "Replenshments",
"route": "/replenshments"
},
{
"name": "Business",
"route": "/business"
}
]
},
{
"name": "INCOMMING ALARMS",
"route": "/",
"valign": "top",
"children": [
{
"name": "12:06 LOW PRODUCT-TANK 1",
"route": "/product_tank1"
},
{
"name": "14:07 CLEARED -LOW-TANK 1",
"route": "/cleared_tank1"
}
]
},
{
"name": "CONTACT US",
"route": "/contact_us",
"valign": "bottom"
}
]
};
return(
<div>
<Menu params={data}/>
</div>
);
}
}
ReactDOM.render(<App />,document.querySelector('.container'));
Clone the repo as a new project:
git clone https://github.com/lobdev/react-npm-menu <react-menu-component>
Start Server:
First you have to replace the lib/component/menu.js to index.js in package.json
cd react-npm-menu
npm i
npm start
Run App:
npm start command automatically initiate browser at 3000 port
http:://localhost:3000
Make sure you configure your editor/IDE to use:
.editorconfig
.eslintrc
FAQs
A side menu for the user to navigate around the site. Future versions of this menu will include access controls, that will show / hide items on the menu.
We found that react-npm-menu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.