@advanced-rest-client/anypoint-signin

Anypoint authentication web component

Usage no npm install needed!

<script type="module">
  import advancedRestClientAnypointSignin from 'https://cdn.skypack.dev/@advanced-rest-client/anypoint-signin';
</script>

README

Published on NPM

Build Status

Published on webcomponents.org

<anypoint-signin>

Anypoint authentication web component

<anypoint-signin></anypoint-signin>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/anypoint-signin

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/anypoint-signin/anypoint-signin.js';
    </script>
  </head>
  <body>
    <anypoint-signin></anypoint-signin>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/anypoint-signin/anypoint-signin.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <anypoint-signin></anypoint-signin>
    `;
  }

  _authChanged(e) {
    console.log(e.detail);
  }
}
customElements.define('sample-element', SampleElement);

Installation

git clone https://github.com/advanced-rest-client/anypoint-signin
cd api-url-editor
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm