Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bruit/component

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bruit/component

send your feedbacks with bruit.io

  • 0.2.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Bruit.io

BRuit is a User Issues Tool

NPM Version License Built With Stencil

Bruit is a webComponent for user review ...

Getting started

start on bruit.io

Table of Contents

Install
Usage
Configuration
    BrtConfig
    BrtField
    BrtLabels
    BrtColors
    BrtLogLevels
    BrtData
    BrtError
Contributing
Having troubles ?

Install

npm install @moventes/bruit --save

or

<script src="https://unpkg.com/@moventes/bruit/dist/bruit.js"></script>

Usage

<bruit-io> element to click </bruit-io>

with properties :

  • config (required)
  • data (optional)
  • dataFn (optional)
  • onError (event) (optional)

Integration frameworks :

html/js Angular React Ember

Configuration

bruit-io webComponent has a config property.

config property take a BrtConfig value.

BrtConfig

BrtConfig is a JSON for configure and customize bruit component

attributetypedescriptionrequireddefault value
apiKeystringyour personal api keyyes-
formarrayyour personal api keyyes-
closeModalOnSubmitbooleantrue for close modal directly on submit form and send feedback in backgroundnofalse
durationBeforeClosingnumbertime ( milliseconds ) before closing modal after sendingno1500
labelsBrtLabelslabels of the modal (title/button/...)nosee
logLevelsBrtLogLevelstype and number of log to sendnosee
maxLogLinesnumbernumber of log to sendno100
colorsBrtColorsmodal themingnosee
apiUrlstringif you want use your own api for send feedbacknohttps://api.bruit.io/feedback
  • import if using Typescript :
import { BrtConfig } from '@moventes/bruit';

BrtField

  • description

  • format

  • default value :

  • import if using Typescript :

import { BrtField } from '@moventes/bruit';

BrtLabels

  • default value :
{
  "title": "bruit.io",
  "introduction": "send a feedback",
  "button": "send"
}
  • import if using Typescript :
import { BrtLabels } from '@moventes/bruit';

BrtColors

  • default value :
{
  "header": "#2D8297",
  "body": "#eee",
  "background": "#444444ee",
  "errors": "#c31313",
  "focus": "#1f5a69"
}
  • import if using Typescript :
import { BrtColors } from '@moventes/bruit';

BrtLogLevels

  • default value :
{
  "log": true,
  "debug": true,
  "info": true,
  "warn": true,
  "error": true,
  "network": true,
  "click": true,
  "url": true
}
  • import if using Typescript :
import { BrtLogLevels } from '@moventes/bruit';

BrtData

  • import if using Typescript :
import { BrtData } from '@moventes/bruit';

BrtError

  • import if using Typescript :
import { BrtError } from '@moventes/bruit';

Integration frameworks

HTML

Angular

React

Ember

Contributing

xxx

Having troubles ?

  • issues Github
  • stackoverflow

FAQs

Package last updated on 07 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc