Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@cpelements/cp-comments

Package Overview
Dependencies
Maintainers
4
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpelements/cp-comments

Comments web component made for Red Hat Customer Portal

npmnpm
Version
0.0.4
Version published
Weekly downloads
2.5K
-10.15%
Maintainers
4
Weekly downloads
 
Created
Source

RHElements Comments Element

The Rh-comments element will allow you to drop in a comments block that provides badges, feedback.

There is an openapi spec in the repo defining expectations for the CRUD endpoints.

Configuration is defined via a manifest file, and must define the following properties

{
  'base_endpoint' => '',
  'create_path' => '',
  'read_path' => '',
  'update_path' => '',
  'delete_path' => '',
  'index_path' => ''
}

Compiling

npm install in root npm run live-demo select cp-comments on localhost:8000/elements this should open automatically when running live-demo

Dependencies

Make sure you have Polyserve and Web Component Tester installed.

npm install -g polyserve web-component-tester

Dev

npm start

Test

npm run test

Build

npm run build

Demo

Run npm start and Polyserve will start a server and open your default browser to the demo page of the element.

Code style

Comments (and all RHElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.

Keywords

web-components

FAQs

Package last updated on 23 Jun 2021

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