New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

edge-node-micro-app

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-node-micro-app

EdgeNode is a front-end Micro App.

  • 1.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

EdgeNode Micro App

EdgeNode is a front-end Micro App.

Install

use npm

npm install edge-node-micro-app

or use yarn

yarn add edge-node-micro-app

Usage

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.

EdgeNode Micro App Basic Props

ParamDescRequired
routerVueRouter Instanceyes
parentRouterNameParent Router Name, Which parent route do you want to place the route under, usually in a layout with a menuno
routerMetaCustom Meta,Configure according to the meta supported by your current projectno
entryMicro App URLyes
propsMicroApp Propsno

Qiankun Props

ParamDescRequired
tokenApi tokenyes
apiHostApi Hostno
socketHostWs Hostno

MicroApp Design Props

ParamDescRequired
primaryColorPrimary Colorno
appNameMicro App nameno
appIconMicro App iconno

MicroApp EdgeNode Manage Props

ParamDescRequired
onlineIconOnline Iconno
offlineIconOffline Iconno
onlineColorOnline Text Colorno
offlineColorOffline Text Colorno
backgroundNode Backgroundno
colorNode Font Colorno
beforeDelete删除节点前回调 async ():Promise => {}no

FAQs

Package last updated on 06 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc