
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@entando/pages
Advanced tools
Pages is a collection of react components used in Entando projects.
run npm i @entando/pages
Every component is imported in the following manner:
import { <component> } from '@entando/pages'
The module also has its own css that can be loaded into a react application with a simple import:
import '@entando/pages/dist/css/index.css';
This component is used to render the login form.
The component expects the following props:
{
performLogin: PropTypes.func.isRequired,
setLanguage: PropTypes.func.isRequired,
loginErrorMessage: PropTypes.string, // defaults to empty string
currentLanguage: PropTypes.string, // defaults to "en"
}
the performLogin function will receive two arguments:
the setLanguage function will receive one argument:
Renders the login page and just accepts any children. It is common to pass the LoginForm as a child component.
Renders the 404 page.
The component expects the following props:
{
gotoHome: PropTypes.func, // defaults to null
}
if the gotoHome function is passed the page will render a button that will call the given function when the user clicks on it.
This package also exports locales for the labels used within it.
To add these labels to an existing project merge them with the project labels:
import { locales } from '@entando/pages';
// enLocale and itLocale are the project own locales.
enLocale.messages = { ...enLocale.messages, ...locales.en.messages };
itLocale.messages = { ...itLocale.messages, ...locales.it.messages };
FAQs
react components used to render common pages in Entando projects
We found that @entando/pages 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.