2.3.1 • Published 4 years ago

pie-catalog-client v2.3.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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 contentsisLoading(true|false)
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