
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.
@digicatapult/ui-component-library
Advanced tools
React components built for Digital Catapult projects 🧠
See the latest version in our storybook
@digicatapult/ui-component-library
are available as an npm package. This should get installed along with n
In order to use your local version in the project please use npm link
more on it -> here and below in this document
// with npm
npm install @digicatapult/ui-component-library
import React from 'react'
import ReactDOM from 'react-dom'
import { Button } from '@digicatapult/ui-component-library'
function App() {
return <Button onClick={(e) => window.alert(e)}>My Button</Button>
}
ReactDOM.render(<App />, document.querySelector('#app'))
npm run storybook
# and if browser won't open visit http://localhost:9000/ url
Check out our storybook for documentation of individual components.
Read the contributing guide to learn about our development process, how to propose bugfixes and improvements.
This project is licensed under the terms of the Apache License.
React typescript styled-components Storybook Jest
At BUILD time, storybook
is configured using environment variables in a .env
file at root:
variable | required | default | description |
---|---|---|---|
STORYBOOK_MAPBOX_TOKEN | N | - | Required for the Map component. Token for your Mapbox account |
npm install
start storybook
npm run storybook
This will open the browser and will run storybook at localhost:9000
If you want to link @digicatapult/ui-component-library
to your project while developing
run
npm run build:watch
In another terminal, npm link
to your project's react
. This prevents issues arising from two Reacts — one in the project folder and the one in ui-component-library
. Next create a global symlink for ui-component-library
e.g.
npm link ../hii-client/node_modules/react
npm link
Finally, in your project run the following command
npm link "@digicatapult/ui-component-library"
And you should be able to see the changes in your project as you add/change components in this library.
Following this guide
Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes.
PATCH bump examples:
MINOR bump examples:
MAJOR bump examples:
If none of the above (for instance a bump in the package.json and rebuild without changes for a non-exported dependency), it should be a patch release.
Make sure you have installed all dependencies ( If you linked your project locally, npm run prelink
has only installed dependencies, make sure you installed devDependencies before running tests)
npm
npm run test
npm run coverage
npm run test -u
npm run depcheck
FAQs
UI Component Library
The npm package @digicatapult/ui-component-library receives a total of 13 weekly downloads. As such, @digicatapult/ui-component-library popularity was classified as not popular.
We found that @digicatapult/ui-component-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.