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

tocco-login

v1.1.48-hotfix33.39

Published

Login dialog with password-update dialog that can run independently

Downloads

210

Readme

#Login App to authenticate with nice2 services and request or update passwords.

##Development

###Users The following users can be entered to simulate different scenarios

| Login | Effect | |---------------- |---------------------------------------- | | succ | Successful login | | fail | Authentication failure | | two | TwoWay Login simulation | | reset | Password update enforced | | before_blocked | Last attempt before login gets blocked | | blocked | Login is blocked | | error | Server error (status 500) |

##Embedding

React-registry name: login

Input parameters

| Name | Mandatory | Description |------------------------|:---------:|------------- | showTitle | | Display a title above the dialog. | locale | | ISO Language Code | passwordRequest | | Boolean to open login app in reset mode. | username | | Open login app with pre-filled username. | backendUrl | | Set backend url dynamic to point to nice2 installation. If not set it fallbacks to the build time environment BACKEND_URL.

Methods

| Name | Params | Description |------------------------|----------------|------------- | setLocale | locale (string)| Change locale on the fly

Events

| Name | Description |------------------------|------------ | loginSuccess | This event is fired after successful login attempt | resize | This event is fired whenever the app size has changed

Password-Update

Password-update can be embedded independently and works without login dialog.

##Development To run password-update dialog separately, uncomment line 91 in main.js

###Passwords The following passwords can be entered to simulate different scenarios

| Password | Effect | |---------------------------------|---------------------------------------- | | old password equals wrong | Invalid credentials error | | old password equals error | 500 error on change | | new password containing tocco | Validation error should not contain word| | new password containing error | 500 error on serverside validation |

##Embedding

React-registry name: password-update

Input parameters

| Name | Mandatory | Description |------------------------|:---------:|------------- | username | x | The primary key of the principal (as string) | showOldPasswordField | | By default, there is no input field for the old password. Set this property to true to render the input field. | | oldPassword | | Unless the user which submits the dialog is login manager, you must either provide the old password of the user with this property or enable the old-password input (see showOldPasswordField) so that the user is able to enter his current password | showTitle | | Display a title above the dialog. | backendUrl | | Set backend url dynamic to point to nice2 installation. If not set it fallbacks to the build time environment BACKEND_URL.

Events

| Name | Description |------------------------|------------ | success | This event is fired after password has been updated successfully | resize | This event is fired whenever the app size has changed