Socket
Book a DemoInstallSign in
Socket

pie-catalog-client

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pie-catalog-client

The client code for the catalog

latest
npmnpm
Version
2.3.1
Version published
Maintainers
1
Created
Source

catalog client

The client side app to render a pie element in a catalog view

Usage

This package contains a set of custom elements that make up the ui. Below is a of notable elements:

namedescriptionapi
catalog-containerThis contains a header/footer and a slot for contents`isLoading(true
catalog-entrydisplays tabs, one with a demo and one with informationset element
catalog-demorenders a demo of the elementset controllers, config, markup

bootstrapping

For your convenience there are some modules that you can import that will bootstrap related elements for you:

  • src/bootstrap/repo - all the elements for a repo view
  • src/bootstrap/index - all the elements for an index page view
  • src/bootstrap/org - all the elements for an org view

All these export common which is a promise that will resolve once the main elements have been defined. In repo we use webpack's require.ensure to load additional logic asynchronously, keeping the initial load small. When this logic is loaded the elementsDefined promise will resolve.

See the example for a demo.

Browser support

  • Chrome
  • Safari +10.1

polyfills

These elements provide no additional browser support (with the exception of shadycss, which is baked into the source). You are expected to load the polyfills you need yourself.

Demo

npm install 
cd demo
../node_modules/.bin/webpack-dev-server --hot --inline

# then go to localhost:8080

Test

Warning: Tests are currently failing - selenium is failing to boot chrome. It may be that we have to move away from web-component-tester.

You'll need to bower install Polymer/web-component-tester --save to install wct bower deps.

npm install -g web-component-tester

Once it's released we can just add it to the devDependencies, and update the npm test cmd.

Release

npm run release

FAQs

Package last updated on 19 Nov 2019

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