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

@codedungeon/vue-messenger

v0.4.3

Published

Vue Messenger provides an expressive suite of features and customization

Downloads

14

Readme

vue-messenger

Description

Vue Messenger is the vue partner to Codedungeon messenger suite

Installation

Using npm

npm i @codedungeon/vue-messenger

Using yarn

yarn @codedungeon/vue-messenger

Usage

  • Vue Messenger requires at least the title or description prop
  • If title and description are supplied, title will be bold
  • If only title is supplied, it will be moved to description attribute (no title displayed)

Minimal

<crm-message type="info" description="Message Title" description="Message Description">

Success Message with icon

<crm-message type="success" description="Success" description="Contact Updated Successfully" :icon="true">

Warning Message with auto close

<crm-message type="warning" description="Warning" description="The light is turning red soon" :auto-close="true" auto-close-delay="2000" :icon="true">
...
errors from parent data
errors = ["error message one","error message two"]
...
<crm-message type="error" description="Validation Failed" description="There were 2 errors" :more="errors" :icon="true">

Props

Vue Messenger provides the following props

| Prop | Type | Description | | ------------------ | -------------------------------------------- | ----------------------------------------------------- | | type | String (default: "info") | Message type | | options | alert, danger, error, info, success, warning | Available types | | title | String (default: "") | Message title | | description | String (default: "") | Message description | | icon | [Boolean] (default: false) | Message icon | | auto-close | Boolean (default: false) | Message auto close | | auto-close-delay | Number (default: 7500) | Number of milliseconds | | more | [String, Array] (default: "") | Additional text to display when show more displayed | | more-link-text | [String] (default: "show more") | Message displayed when more supplied | | debug | [Boolean] (default: false) | Console log debug information |

Events

Vue Messenger provides the following events

| Event | Description | | -------------- | ------------------------------- | | close | Event fired when message closed | | closeMessage | alias to close event |

Methods

Vue Messenger provides the following methods You can procedurally update message from parent component using an the component updateMessage method which accepts on object of message options

Note: All options will override default component options

| Event | Description | | --------------- | -------------------------------------------------------------------------- | | updateMessage | Updates message (receives messasge config which may contain one or more) | | config | type (options): message type | | | title: message title | | | description: message description | | | autoClose (false): message autoClose | | | autoCloseDelay (7500): message autoCloseDelay | | | more ([]): array of more messages | | | moreLinkText ('show more'): message displayed when more items supplied | | | icon (false): message icon | | | debug (false): use message debug mode |

let msgOptions = { type: "success", title: "Success", description: "Contact Updated Successfully" }
this.$refs["crm-message"].updateMessage(msgOptions)

Contributing

Please see CONTRIBUTING for details.

Changelog

Please see CHANGELOG for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

vue-messenger written by Mike Erickson

E-Mail: [email protected]

Twitter: @codedungeon

Website: codedungeon.io

License

Copyright © 2020 Mike Erickson Released under the MIT License