
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@agility/plenum-ui
Advanced tools
[](https://agilitycms.com/)
Welcome to Plenum, the definitive UI library for working within the Agility CMS ecosystem. Built with Next.js 13 and Storybook 7.1, Plenum is a comprehensive collection of components and patterns designed for building user interfaces in Agility CMS, as well as your own applications within the Agility CMS ecosystem.
The Plenum library is designed to encourage and facilitate building applications for the Agility CMS Marketplace. Use the rich selection of components and patterns to build consistent, robust, and user-friendly applications for the Agility ecosystem.
Contributions to extend and improve this library are welcome! Feel free to fork the repository and submit pull requests.
Before you begin, ensure that Tailwind CSS is installed in your project. Follow the instructions here: Install Tailwind CSS with Next.js
In your app entry point (i.e. `_app.tsx`), import the `globals.css` file from the previous step, and the `tailwind.css` file from Plenum:
import "<RELATIVE_PATH>/globals.css"
import "@agility/plenum-ui/dist/lib/tailwind.css"
Make sure to add any additional styles before these two import statements to prevent overwriting the Plenum styling.
You can install the Plenum library using npm or yarn:
# Using npm:
npm install @agility/plenum-ui
# Using yarn:
yarn add @agility/plenum-ui
Import and use the Plenum components in your React components:
import { Component } from "@agility/plenum-ui"
;<Component {...{ ComponentProps }} />
npm run dev
# or
yarn dev
npm run build
# or
yarn build
This will create symlinks for the current project and its necessary dependencies, so that it can be connected to other projects. It will also start the watch server, so it will automatically rebuild on any local changes.
yarn start:local
In the Plenum project directory after having run a build, run:
yarn link.
You should see the following in your terminal:
yarn link v1.22.10
success Registered "@agility/plenum-ui".
You can now run
yarn link "@agility/plenum-ui"
in the projects where you want to consume this package and it will be used instead. It should output a message like
yarn link v1.22.10
success Using linked package for "@agility/plenum-ui".
npm run clean
# or
yarn clean
npm run lint
# or
yarn lint
npm run build:tw
# or
yarn build:tw
npm run build-storybook
# or
yarn build-storybook
npm run storybook:dev
# or
yarn storybook:dev
npm run storybook:tw
# or
yarn storybook:tw
# Build Storybook
npm run sb-build:storybook
# or
yarn sb-build:storybook
# Build Tailwind CSS for Storybook
npm run sb-build:tw
# or
yarn sb-build:tw
npm run build:tsc
# or
yarn build:tsc
These scripts cover various tasks related to development, build processes, linting, and handling specific aspects like Storybook and Tailwind CSS. Make sure to run the appropriate script for the task you want to perform.
We have a Node.js script that automates the creation of new components for our Storybook library. This script generates a component directory, along with the necessary files like `Component.tsx`, `Component.stories.tsx`, and `index.tsx`.
To use the script, you should have Node.js installed. From the terminal, you can create a new component by running the following command:
node create-component.js ComponentName DestinationDirectory
This command takes two arguments:
The script will create a new directory with the given component name inside the specified destination directory (under the 'stories' directory). Then, it will generate three files in the new directory:
To create a new component named "Button" in the "atoms" directory, you would run:
node create-component.js Button atoms
This would create a directory structure like:
- stories
- atoms
- Button
- Button.tsx
- Button.stories.tsx
- index.tsx
Each of the generated files will contain basic boilerplate code that you can start with.
This script does prompt the user before overwriting existing directories, so you can run it with confidence. Always use PascalCase for component names, and ensure the destination directory exists or can be created. If you encounter any issues, you can create the component and its files manually
Old School Yarn Link Instructions :)
cd THIS_PACKAGE
yarn link
yarn install
cd node_modules/react
yarn link
cd ../../node_modules/react-dom
yarn link
cd YOUR_PROJECT
yarn link PACKAGE_YOU_DEBUG_LOCALLY
yarn link react
yarn link react-dom
Then, when you are done
cd YOUR_PROJECT
yarn unlink "@agility/plenum-ui"
yarn unlink react
yarn link react-dom
cd THIS_PACKAGE
yarn unlink
cd node_modules/react
yarn unlink
cd ../../node_modules/react-dom
yarn unlink
FAQs
[](https://agilitycms.com/)
The npm package @agility/plenum-ui receives a total of 304 weekly downloads. As such, @agility/plenum-ui popularity was classified as not popular.
We found that @agility/plenum-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.