esridc / hub-components-archive

Embeddable Web Components for ArcGIS Hub

Home Page:https://esridc.github.io/hub-components-archive/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Built With Stencil

ArcGIS Hub Web Components

Use

  1. Register a new application.
  2. copy the <script> tag and <html> below into your existing website
<script src='https://unpkg.com/@esri/hub-components@0.0.1/dist/arcgishub.js'></script>
<hub-follow-initiative
  clientid="[insert]"
  initiativeid="dda4e76677604838bf5718eda40b1cc0"
  orgurl="https://cityx.maps.arcgis.com">
</hub-follow-initiative>
<hub-event-details
  clientid="[insert your clientid here]"
  eventtitle="Project Groundbreaking"
  orgurl="https://cityx.maps.arcgis.com">
</hub-event-details>

demo

Browser Support

  • Chrome
  • Safari
  • Firefox
  • Edge
  • IE11

Custom Development

Clone this repo to a new directory:

git clone https://github.com/esridc/hub-components.git
cd hub-components

and run:

npm install && npm start

To build the component for production, run:

npm run build

To run the unit tests, run:

npm test

Stencil

This is a starter project for building a standalone Web Component using Stencil. Stencil is a compiler for building fast web apps using Web Components.

Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components.

Stencil components are just Web Components, so they work in any major framework or with no framework at all.

Need help? Check out the docs here.

About

Embeddable Web Components for ArcGIS Hub

https://esridc.github.io/hub-components-archive/

License:MIT License


Languages

Language:TypeScript 84.9%Language:HTML 9.8%Language:CSS 5.3%