You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@springtree/eva-config-picker

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springtree/eva-config-picker

Configuration picker for the eva configuration suite

1.16.3
latest
npmnpm
Version published
Weekly downloads
54
-25%
Maintainers
5
Weekly downloads
 
Created
Source

eva config picker Built With Stencil Build Status

This will be for eva projects that support switching endpoints runtime.

Usage

The only component you will need in order to render all the required UI is the eva-config-picker, you will do so the following way.

<eva-config-picker></eva-config-picker>

This component dispatches a custom event named endPointSelect, you can listen to this event in multiple ways.

  • Plain JS

    document.querySelector('eva-config-picker').addEventListener( 'endPointSelect', event => {
      console.log(event.detail); // BaseEnvironment (endpoint, type, customerName)
    })
    
  • Angular

    <eva-config-picker (endPointSelect)="onEndPointSelect($event"></eva-config-picker>
    
    import { BaseEnvironment } from '@springtree/eva-config-picker';
    class Component {
      onEndPointSelect(event: CustomEvent<BaseEnvironment>) {
        console.log(event.detail); // BaseEnvironment
      }
    }
    

Please refer to the stencil documentation on how to consume web components created in this project. Also this project has a dependency on two image assets under src/assets/images/ make sure those are bundled in your final version.

This is how to do so for angular projects

angular.json under build.options.assets

{
  "glob": "**",
  "input": "node_modules/@springtree/eva-config-picker/dist/collection/assets/images",
  "output": "assets/images"
}

Development

Make sure you first run the nvm use command as this project has an .nvmrc file

the start will run a web server pointing to index.html in this project.

Need help? Check out the stencil docs here.

Publishing

This project automatically publishes when pushed to master with semantic-release

Naming Components

When creating new component tags, we recommend not using stencil in the component name (ex: <stencil-datepicker>). This is because the generated component has little to nothing to do with Stencil; it's just a web component! Instead, use the eva-config prefix.

FAQs

Package last updated on 25 Oct 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.