
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
edge-node-micro-app
Advanced tools
EdgeNode is a front-end Micro App.
npm install edge-node-micro-app
yarn add edge-node-micro-app
Before that, you must have installed the VueRouter.
For example:
import router from '../router'
import registerEdgeNodeMicroApp from 'edge-node-micro-app'
const logo = 'xxxx'
const onlineIcon = 'xxx'
const offlineIcon = 'xxx'
registerEdgeNodeMicroApp({
autoRegister: {
router,
parentRouterName: 'basic',
routerMeta: {},
},
name: 'node-admin',
activeRule: '/node-admin/',
entry: 'http://localhost:3000',
props: {
token: 'xxx',
apiHost: 'http://127.0.0.1:8080',
socketHost: 'http://127.0.0.1:8080',
design: {
primaryColor: '#f15713',
appName: '',
appIcon: logo,
},
node: {
onlineIcon,
offlineIcon,
onlineColor: '#6acc25',
offlineColor: '#ed5653',
background: '#171717',
color: '#ffffff',
},
beforeDelete: () => {
Promise.then(true)
},
},
})
Then you can display the page by configuring node-manager('/node-admin/'
) and image-version('/node-admin/image'
) in any menu.
Param | Desc | Required |
---|---|---|
router | VueRouter Instance | yes |
parentRouterName | Parent Router Name, Which parent route do you want to place the route under, usually in a layout with a menu | no |
routerMeta | Custom Meta,Configure according to the meta supported by your current project | no |
entry | Micro App URL | yes |
props | MicroApp Props | no |
Param | Desc | Required |
---|---|---|
token | Api token | yes |
apiHost | Api Host | no |
socketHost | Ws Host | no |
Param | Desc | Required |
---|---|---|
primaryColor | Primary Color | no |
appName | Micro App name | no |
appIcon | Micro App icon | no |
Param | Desc | Required |
---|---|---|
onlineIcon | Online Icon | no |
offlineIcon | Offline Icon | no |
onlineColor | Online Text Color | no |
offlineColor | Offline Text Color | no |
background | Node Background | no |
color | Node Font Color | no |
beforeDelete | 删除节点前回调 async ():Promise => {} | no |
FAQs
EdgeNode is a front-end Micro App.
We found that edge-node-micro-app 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.