Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
department-notifications
Advanced tools
Drop in redux notifications for department.
npm i department-notifications --save
The package is based on redux, so you need to use the notificationsReducer
in your store. Then you need to import the Notifications
component somewhere near the root element.
const reducer = combineReducers({
notifications: notificationsReducer
})
const App = () => (
<section>
<Notifications />
<section className="contents">
<p>App</p>
</section>
</section>
)
You can check the example
directory for a small example.
There is an optional scss
file, it is recommended to import it.
@import '~department-notifications/styles/notifications';
Variable | Value |
---|---|
$notifications-width | 300px |
$notifications-corner-offset | 20px |
$notifications-font-size | 1.3 |
$notifications-font-weight | 600 |
$notifications-padding | 12px 17px |
$notifications-border-radius | 3px |
Colors | |
$notifications-primary-bg-color | #3598CF |
$notifications-primary-color | #FFFFFF |
$notifications-success-bg-color | #1AB342 |
$notifications-success-color | #FFFFFF |
$notifications-warning-bg-color | #FF9800 |
$notifications-warning-color | #FFFFFF |
$notifications-danger-bg-color | #F33534 |
$notifications-danger-color | #FFFFFF |
MIT
FAQs
Drop in redux notifications for department.
We found that department-notifications demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.