npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rebelmail-inputs

v1.1.0

Published

rebel-inputs ==============================================================================

Downloads

39

Readme

rebel-inputs

Collection of reusable inputs for the rebelmail-dashboard

Installation

npm install rebel-inputs

Usage

  1. Input Checkbox
  • checked - Boolean value if the checkbox should display as checked or unchecked
  • text - Optional display Text
  • {{input/input-checkbox text='Open' checked=subscriptions.open}}
  1. Input Color
  • title - Optional display title
  • color - path to json value to be displayed and updated
  • {{input/input-color title="Color" color=settings.styles.background.color updateAction=updateAction}}
  1. Input Dropdown
  • title - Optional display title
  • type - the type of dropdown, acceptable fields are in dropdownBuilder.js
  • acctDrop - Boolean value, pass true to display the list of accounts
  • dropdownItem - path to json value to be displayed and updated
  • options - path to json object that the dropdownItem is in
  • {{input/input-dropdown title="Content Type" dropdownItem=account.integrations.webhooks.contentType type='webhookContentType' class="webhook-content-type"}}
  1. Input Number
  • title - Optional display title
  • value - number to be displayed and updated
  • {{input/input-number title="Image Height" value=product.content.img.style.height updateAction=updateAction}}
  1. Input Text
  • title - Optional display title
  • value - text to be displayed and updated
  • placeholder - Optional input placeholder
  • disabled - boolean to disable input
  • helper - Optional input helper text that appears beneath the input
  • {{input/input-text title="Title" value=product.content.h3 updateAction=updateAction}}
  1. Input Toggle Caret
  • more - text that displays when extra content is hidden
  • less - text that displays when extra content is visible
  • {{#input/input-toggle-caret data-test-id="advanced options" more="Advanced Options" less="Advanced Options"}}
  • {{#nested-card title="Thumbnail" advancedOpt=true leftOpt="Color" rightOpt="Image" as |imageColorToggle|}}
  • {{/input/input-toggle-caret}}
  1. Input Toggle
  • checked - bboolean value if the toggle should display as checked or unchecked
  • disabled - boolean to disable input
  • items - items to toggle
  • leftOpt - text that displays to the left of the toggle switch
  • rightOpt - text that displays to the right of the toggle switch
  • class - class name for styling
  • {{input/input-toggle class="ui-card-toggle export" rightOpt='All Events' checked=reportEvents.all toggleOpt='setReportEvents' items='reportEvents.all'}}
  1. Input Upload Field
  • title - Optional display title
  • signURL - upload url from environment.js file
  • src - path to json object for the image src
  • option - path to json object for the image
  • removeImage - passed down function, required
  • removeItem - the key of the object to remove the image from
  • {{input/input-upload-field signURL=signURL removeItem='src' src=product.content.img.src option=product.content.img removeImage=removeImage updateAction=updateAction}}

Contributing

Installation

  • git clone <repository-url>
  • cd rebel-inputs
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.