Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@canonical/maas-react-components
Advanced tools
Library of React components for use in MAAS UI projects.
It contains components that are either specific to, or only used in MAAS.
General purpose components should be added to
@canonical/react-components instead.
Storybook | Philosophy and guidelines
npm install @canonical/maas-react-components
or using yarn:
yarn add @canonical/maas-react-components
Add styles import to your app:
@import "@canonical/maas-react-components/dist/style.css";
maas-react-components
To see the changes you make to maas-react-components
reflected in a consuming app immediately, follow these steps:
In the maas-react-components
directory, run the following command to create a symlink:
yarn link
In the consuming repository (e.g., maas-ui
), run the following command to use the local version of maas-react-components
:
yarn link "@canonical/maas-react-components"
Go back to maas-react-components
directory and run the following command to start the build process with the watch flag:
npm run build:watch
As you make changes to maas-react-components
they will be automatically built and reflected in the consuming app.
Make sure to read our React Components Guidelines before you proceed.
Run the following command from the root of the project:
npm run create-component
The script will prompt you to enter details of the new component.
It will create a new directory and files based on the details you provided. New files will contain a basic setup for your new component, including a basic test and a storybook story.
FAQs
React components for use in MAAS UI projects.
We found that @canonical/maas-react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.