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

volkeno-react-messenger

v1.0.1

Published

The 'volkeno-react-messenger' module is a powerful and flexible messaging solution designed specifically for Volkeno's internal needs. Seamlessly integrating with Volkeno's internal data structure, this module provides a smooth and intuitive messaging exp

Downloads

9

Readme

volkeno-react-messenger

The 'volkeno-react-messenger' module is a powerful and flexible messaging solution designed specifically for Volkeno's internal needs. Seamlessly integrating with Volkeno's internal data structure, this module provides a smooth and intuitive messaging experience for users.

NPM JavaScript Style Guide

Install

npm install --save volkeno-react-messenger

Usage

import VolkenoReactMessenger from 'volkeno-react-messenger'
import 'volkeno-react-messenger/dist/index.css'

class Example extends Component {
  render() {
    return (
      <VolkenoReactMessenger
        user={user}
        token={'token'}
        apiBaseUrl={'api_base_url'}
        setApiPostEndpoint={'/api/messages'}
        setApiListUsersEndpoint={'/api/List_user_url'}
        setApiConversationUserEndpoint={'/api/List_conversation_user_url'}
     />
    )
  }
}

Configuration - Props

Props require

| Property | Type | Required | Value | Default | Description | | ------------------------------- | :------: | :------: | :---: | :------: | ---------------------------------------------------------------------- | | user | object | true | - | { } | Provide logged in user data | | token | string | true | - | ' ' | Provide logged in user token | | apiBaseUrl | string | true | - | ' ' | Provide api base url | | setApiPostEndpoint | string | false | - | '/api/messages' | Provide the endpoint to post messages | | setApiListUsersEndpoint | string | true | - | ' ' | Provide an endpoint for the first list or list of all users the user can chat with | | setApiConversationUserEndpoint | string | true | - | ' ' | Provide the endpoint for the user's list of all conversations |

Other props

| Property | Type | Required | Value | Default | Description | | ------------------------------- | :------: | :------: | :---: | :------: | ---------------------------------------------------------------------- | | title | string | false | - | 'Messagerie' | Set the name of the chat | | newMessageTitle | string | false | - | 'Nouvelle discussion' | Set the name of new discussion modal | | setStyle | string | false | 'yad' | 'dag' | 'yad' | Set the messaging style | | isMultiList | boolean | false | - | 'false' | Define whether the list of users for chat is multiple or not | | setSecondListUsersEndpoint | string | false | - | ' ' | Provide an endpoint for the second list the user can chat with | | setFirstListLabel | string | false | - | 'Liste utilisateurs' | Set label for first user list | | setSecondListLabel | string | false | - | 'Liste utilisateur 2' | Set label for second user list |

Styles

Some attribute for custom css

| Attribute ('yad' / 'dag') | Target | Description | | ------------------------------- | :------: | ------------------------------------------------------------------------------------------------ | | ._3oISP / ._Ib6zq | Text block of messages send | To be used to customize the style of the block for messages sent by the user | | ._N0eEV /  ._3PC7- | Text block of received messages | Use to customize the style of the block for messages received by the user | | ._3-4mn /  ._2RbgV | Input textarea | Use to customize the style of the textarea input | | ._3rDVm /  ._3kpUp | Input search | Use to customize the style of the conversations input search | | ._yBqpy /  ._13Qr- | Button new conversation | Use to customize the style of the add new conversation button | | ._3sqmx /  ._300kl | Conversation item | Use to customize the style of conversation items (list-group-item) | | ._3nSUg /  ._2o4zq | Conversation (user name) | Use to customize the username style in conversation item | | ._P9G0Y /  ._35Req | Conversation (time) | Use to customize the style of the sending date in conversation item | | ._1RfSY /  ._1RfSY | Conversation (last message preview) | Use to customize the style of the preview of the last message in conversation item | | ._1wrfJ | Modal (user item) | To be used to customize the style of the user list of the new discussion modal |

Troubleshoot

After installing the module, you may notice a style problem regarding the active conversation. This is due to the default style of bootstrap | react bootstrap. Add these lines of css code to your index.css file and that should solve the problem :)

Yad style

._3sqmx {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
._3sqmx.active,
._3sqmx:hover {
  background-color: #F5F6FD;
  border-color: #F5F6FD;
  color: #102844;
  cursor: pointer !important;
}

Dag style

._300kl {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
._300kl.active,
._300kl:hover {
  background-color: #00C2CB1A;
  border: none;
  color: #1D2026;
  cursor: pointer !important;
}

License

MIT © Papaul-msibiii