
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.
@amber-engine/amber-components
Advanced tools
A wonderful place for all of our shareable components! :information_desk_person:
A wonderful place for all of our shareable components! :information_desk_person:
Install amber-components
using yarn
:
yarn add @amber-engine/amber-components
There's some additional webpack
configuration necessary noted in the Webpack Configuration section.
Need a Button
component that adheres to our brand standard?
import { components } from '@amber-engine/amber-components';
const { Button } = components;
Sweet!
The amber-lib-js
project should have all of its dependencies included in the project, but the library is simply transpiled by babel
rather than completely bundlec by webpack
(usually you'll be doing this in your project).
Make sure you have a way to load the following:
type | notes |
---|---|
scss | For loading styles referenced in shared components |
svg | For loading icons! |
Rather than including a specific path to resolve content included in amber-lib-js
, you'll need to include these files via a regex in the Webpack loader.
{
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, /\.svg/],
loader: require.resolve('url-loader'),
exclude: [
/icons/,
],
},
{
test: /\.svg$/,
include: [
/icons/,
],
use: [
{ loader: 'babel-loader' },
{
loader: 'react-svg-loader',
options: { jsx: true },
},
],
},
To see how things are being used in a real project, check out the Apollo project!
A standard, styled button.
Properties
name | type | notes |
---|---|---|
onClick | function | For loading styles referenced in shared components |
type | string | For loading styles referenced in shared components. Can be ['login', 'export', 'import', 'importNew', 'logout'] |
className | string optional | The class to apply to the button element. |
Example:
<Button
onClick={this.executeThing}
type="import"
className={stylesheet.extraBigText}
>
Import!
</Button>
FAQs
A wonderful place for all of our shareable components! :information_desk_person:
We found that @amber-engine/amber-components 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.
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.