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

@bigbinary/neeto-team-members

v2.2.3

Published

To manage team members across neeto products.

Downloads

60

Readme

@bigbinary/neeto-team-members

npm npm

neetoTeamMembers is the library that manages team members across neeto products.

Installation

  1. neetoTeamMembers has a few peer dependencies that are required for the proper functioning of the package. Install all the peer dependencies using the below command:

    yarn add @bigbinary/[email protected] @bigbinary/[email protected] @bigbinary/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
  2. Now install the latest neetoTeamMembers package using the below command:

    yarn add @bigbinary/[email protected]

Usage

import React from "react";

import { Roles, TeamMembers } from "@bigbinary/neeto-team-members";
import { BrowserRouter, Redirect, Route, Switch } from "react-router-dom";
import { ToastContainer } from "react-toastify";

import SideBar from "./components/Common/SideBar";

const App = () => (
  <BrowserRouter>
    <div className="flex">
      <SideBar />
      <Switch>
        <Route exact path="/members">
          <TeamMembers config={MEMBERS_CONFIG} />
        </Route>
        <Route exact path="/roles">
          <Roles config={ROLES_CONFIG} />
        </Route>
      </Switch>
    </div>
    <ToastContainer />
  </BrowserRouter>
);

export default App;

By default TeamMembers and Roles component will render without the config prop.

Configurations

TeamMembers component

Some of the configurations that are available for TeamMembers components are:

  • To toggle the Manage Roles button visibility in the right sub-header, please provide the roles button props as below. It uses the same props as neetoUI Button component.

    const MEMBERS_CONFIG = {
      rolesButtonProps: {
        to: "/roles",
      },
    };
  • To override the activation and deactivation alert box title or message, please use the below configuration.

    const MEMBERS_CONFIG = {
      alert: {
          title: member =>
            member.active ? "Deactivate member" : "Activate member",
          message: member =>
            member.active
              ? `You are deactivating member ${member?.name}. Are you sure you want to proceed?`
              : `You are activating member ${member?.name}. Are you sure you want to proceed?`,
        },
    }

Roles component

Some of the configurations that are available for Roles components are:

  • (Deprecated) To specify the location for the members page in the neetoUI Header component's breadcrumb, use the below configuration.

      const ROLES_CONFIG = {
        membersPageUrl: "/members",
      };
  • To specify the neetoUI Header component's breadcrumb, use the below configuration.

      const ROLES_CONFIG = {
        header: {
          breadcrumbs: [
            {
              text: "Settings",
              link: "/settings",
            },
          ],
        },
      };

Development

  1. Install all the dependencies by executing the following command

    yarn install
  2. See the changes in the example app by executing the following command:

    yarn dev

Building

The neetoTeamMembers package gets auto-published to NPM for every new merge to the master branch. You can checkout the publish workflow in GitHub Actions to get a live update.

Integrations

| Projects | Integrated | Projects | Integrated | |--------------------| :----------------: |-----------------| :----------------: | | neetoAnalytics | :white_check_mark: | neetoQuiz | :white_check_mark: | | neetoCal | :white_check_mark: | neetoReplay | :white_check_mark: | | neetoChangelog | :white_check_mark: | neetoRunner | :white_check_mark: | | neetoCourse | :white_check_mark: | neetoStore | :white_check_mark: | | neetoCRM | :white_check_mark: | neetoTestify | :white_check_mark: | | neetoEngage | :white_check_mark: | neetoWheel | :white_check_mark: | | neetoForm | :white_check_mark: | neetoWireframe | :white_check_mark: | | neetoGrow | :white_check_mark: | neetoAuth | :x: | | neetoInvisible | :white_check_mark: | neetoChat | :x: | | neetoKB | :white_check_mark: | neetoDesk | :x: | | neetoPlanner | :white_check_mark: | neetoInvoice | :x: | | neetoPopups | :white_check_mark: | | |