![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
fh-wfm-user-angular
Advanced tools
This module is an AngularJS implementation of User functionality for the Raincatcher project.s
angular.module('app', [
...
, require('fh-wfm-user-angular')({
templates: {
//Optional template for the login screen
//Note: This will be loaded from the angular template cache.
login: 'mycustomlogintempalateid'
}
})
...
])
A custom html template can be passed in when rendering the login
directive.
This template has access to the Controller as ctrl
.
The Login Controller is assigned the following properties that are accessible to the custom template if required.
Property | Type | Description | Example |
---|---|---|---|
login | function | Authenticates the user with a username and password parameters | ctrl.login("someusername", "somepassowrd") |
logout | function | Logs out the currently logged out user | ctrl.logout() |
hasSession | boolean | Identifies if the currently logged in user has a valid session | ctrl.hasSession |
loginErrorMessage | string | A message to display to the user if there is an error message | ctrl.loginErrorMessage = "Invalid Credentials" |
As part of rendering Users, this module publishes and subscribes to several topics. These topics can be implemented in your application or you can use the fh-wfm-user module that already has implementations for these topics.
Each of the following topics subscribes to the error
and done
topics. If the parameter includes a topicUid
, the error topic should have the topicUid
appended to the done
or error
topic.
Topic | Parameters |
---|---|
wfm:workorders:list | NONE |
wfm:membership:list | NONE |
wfm:users:list | NONE |
wfm:users:create | {userToCreate: userToCreate} |
wfm:users:update | {userToUpdate: userToUpdate} |
wfm:users:read | {id: "USERID"} |
wfm:users:remove | {userToRemove: {id: "USERID"}} |
wfm:users:has_session | NONE |
wfm:users:clear_session | NONE |
wfm:users:read_profile | NONE |
wfm:users:authenticate | {username: "user1234", password: "pass1234"} |
wfm:groups:list | NONE |
wfm:groups:create | {groupToCreate: groupToCreate} |
wfm:groups:update | {groupToUpdate: groupToUpdate} |
wfm:groups:read | {id: "GROUPID"} |
wfm:groups:remove | {groupToRemove: {id: "GROUPID"}} |
FAQs
An AngularJS module for viewing User details.
The npm package fh-wfm-user-angular receives a total of 6 weekly downloads. As such, fh-wfm-user-angular popularity was classified as not popular.
We found that fh-wfm-user-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.