Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ale-rainbow/rainbow-notification
Advanced tools
Readme
Shared notification component for Rainbow's Web and Electron clients
This component provide a vanilla JS implementation and an associated css file. It is intended to be used by both the Web client and the Electron container.
Two classes in this module the RainbowNotification class and the RainbowNotificationAction class.
These two class are essentially "model" class which stored the notification data. But the RainbowNotification class also provided rendering ang event binding methods.
###RainbowNotification : the main class which describes the notification###
public id: string; // The notif identifier
public type: string; // The notif type 'info' or 'call'
// Originator info
public origin: string; // The notification originator (most often a contact name)
// Content stuff
public message: string; // The notification message
public mdMessage: string; // A markdown isued message (with appropriate css styling)
public avatarURL: string; // The avatarURL of the oginator
public infoTitle: string; // Additional information title
public infoMessage: string; // Additional information message
public callSubject: string; // Another additional message (used for call subject)
// AutoClose stuff
public delay: number; // The automatic close delay in ms (default : 15000ms);
public delayTimeout; // Private data to store the delay timeout object
public autoCloseAction; // The handler funct called when notif automatically close
// Action buttons
public actions: RainbowNotificationAction[]; // Array of actions
// Rendering and event binding methods
public getHTMLContent(): string; // Return the html code of the notification
public attachActionHandlers(attach: boolean = true): void // Bind/Unbind event to actions
###RainbowNotificationAction : describe a notification action###
// Action button description
public label: string; // The action button label
public color: string; // The button color ("grren", "red" or null)
public icon: string; // The icon identifier
// Multiple choice stuff
public choice: any[]; // List of choices
public choiceTitleLabel: string; // Title label choice action (optional)
public choiceCloseLabel: string; // Label for close choice action
public choiceHandler: any; // handler function for choice
Change version number in package
npm login mcordebard the pwd
npm run build
npm publish --access public
FAQs
Alcatel-Lucent Enterprise Rainbow Notification
The npm package @ale-rainbow/rainbow-notification receives a total of 29 weekly downloads. As such, @ale-rainbow/rainbow-notification popularity was classified as not popular.
We found that @ale-rainbow/rainbow-notification demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.