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

ember-messenger

v0.0.9

Published

Use Hubspot Messenger inside your Ember App for stylish & simple transactional messages.

Downloads

14

Readme

Ember-messenger

Messenger is a simple way to display stylish transactional messages in your app.

Ember-messenger is an ember-cli addon for Hubspot Messenger that allows you to easily add Hubspot Messenger to your Ember App.

Demo

http://ember-messenger.divshot.io/

Source code for this app is located in the demo-app directory of this repository.

Installation

If you are running ember-cli >= 0.2.3, From within your application you can run:

ember install ember-messenger

ember-cli 0.1.5 - 0.2.2 Installation

If you are running ember-cli 0.1.5 - 0.2.2 , From within your application you can run:

ember install:addon ember-messenger

Installation without ember-cli

  • git clone this repository
  • npm install
  • bower install

Usage

The ember-messenger addon adds hubspot messenger via bower, then injects a service into all of your routes and controllers.

ember-messenger exposes several methods on the Messenger() object inside this.Messenger. You can mostly use the same syntax as you see in the Hubspot documentation, however you do not need the set of parenthesis after this.Messenger.

After installing, you can access any of the following methods from inside your application's routes and controllers:

this.Messenger.setup()

Changes or initializes Messenger settings. Optional.

Example:

this.Messenger.setup({
    extraClasses: 'messenger-fixed messenger-on-top messenger-on-right',
    theme: 'flat'
});

See http://github.hubspot.com/messenger/#messenger-object

this.Messenger.post([object or string])

Creates a new Messenger message.

Example:

this.Messenger.post("I am a happy little duckling.");

Advanced Example:

this.Messenger.post({
    message: 'ERROR: There was an explosion while processing your quack.',
    type: 'error',
    showCloseButton: true
});

See http://github.hubspot.com/messenger/#messenger-object

this.Messenger.hideAll()

Hides all Messenger messages currently being displayed.

Example:

this.Messenger.hideAll();

Development

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

More Information

Hubspot Messenger: http://github.hubspot.com/messenger/