
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@marek.libra/plugin-notifications
Advanced tools
Frontend part of the notifications providing the Notifications API, Notifications page, left-side menu item and other REACT components.
This Backstage front-end plugin provides:
Notifications
page listing notifications from the logged-in user's perspectiveHave @janus-idp/plugin-notifications-backend
installed and running.
The sections below are relevant for static plugins. If the plugin is expected to be installed as a dynamic one:
app-config.janus-idp.yaml
into app-config.local.yaml
.There is polling used to check for new notifications. It can be tuned via pollingIntervalMs
config property (see app-config.janus-idp.yaml
). When set to 0, the polling is turned off.
cd packages/app
yarn add @janus-idp/plugin-notifications
In the packages/app/src/components/Root/Root.tsx
:
import { NotificationsActiveIcon } from '@janus-idp/plugin-notifications';
...
export const Root = ({ children }: PropsWithChildren<{}>) => (
...
{/* New code: */}
<SidebarDivider />
<SidebarItem icon={NotificationsActiveIcon} to="notifications" text="Notifications" />
{/* Existing code for reference: */}
<SidebarSpace />
<SidebarSpace />
<SidebarDivider />
<SidebarDivider />
<SidebarGroup
<SidebarGroup label="Settings"
In the packages/app/src/App.tsx
:
import { NotificationsPage } from '@janus-idp/plugin-notifications';
...
export const AppBase = () => {
...
{/* New code: */}
<Route path="/notifications" element={<NotificationsPage />} />
Once installed as either static or dynamic plugin, a 3rd party frontend plugin can access the notifications via its frontend API:
import { notificationsApiRef, Notification } from '@janus-idp/plugin-notifications';
...
const notificationsApi = useApi(notificationsApiRef);
const notifications: Notification[] = await notificationsApi.getNotifications(params);
See src/api/notificationsApi.ts
for more details.
FAQs
Frontend part of the notifications providing the Notifications API, Notifications page, left-side menu item and other REACT components.
We found that @marek.libra/plugin-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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.