Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
mottled-core
Advanced tools
A tree-shakeable library containing common reusable components for substrate based chains
A tree-shakeable library containing common reusable components for substrate based chains
Package is using workspaces for custom build/bundle the library. Core components exist under dir packages/library
.
For documentation and development purposes Storybook was the tool of choice. This way contributors can catch up to speed with current components and also develop faster new ones.
In order to install all required packages and execute in watch
mode the library and storybook just run the command below:
yarn && yarn run dev
Principle followed in the library is to carry components and styling in different packages. This way the user of the library can decide if wants to style the components using his own css (overwrite classNames or using tailwind) or using default css.
In order to use default css see the following example:
import React, { Component } from "react"
// importing css for specific component
import 'mottled-library/css/SpecificComponent.css'
// importing the specific component
import { SpecificComponent } from "mottled-library"
class Example extends Component {
render() {
return (
<>
<SpecificComponent />
</>
}
}
In addition to components exists the core
of the library that contains reusable variables and functions that are used from almost all components but can also be useful stand alone.
As mentioned above, Storybook is used for documentation and development. In order to see a showcase of current components and recipes see here(Implementation pending)
An error:0308010C:digital envelope routines::unsupported
occurs with the Node.js version 17 as it’s not the LTS version, and there is a breaking change in the OpenSSL. Use LTS version 16.14.0 for not facing the issue. NODE_OPTIONS could also be set, as an alternative, but is not a recommended approach (you can still try this on your local machine as a quick fix).
FAQs
A tree-shakeable library containing common reusable components for substrate based chains
We found that mottled-core 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.