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.
moblee-icons
Advanced tools
yarn add moblee-icons
import MenuIcon from 'moblee-icons/Menu';
<Menu />
Suppose your icon is going to be called myIcon
.
src
create a new file myIcon.js
;src/Pin.js
to your new file and replace all instances of Pin
to myIcon
;<path>
tag, copy the content of it's d
attribute. This string describes de shape of the icon;myIcon.js
replace d
content with the string you copied from the original SVG;d
, to do so, follow this rule: Enter new lines before letters, commas or spaces (a-Z
, ,
or
), NEVER split numbers and dots (0-9
and .
). Pin.js
is a good example;src/index.js
and add the export: export { default as myIcon } from './myIcon';
. Then sort lines (on Atom use: ⌘+⇧+P
> "Sort Lines: Sort");stories/mobleeIcons.js
and add 'myIcon',
to the array. (in alphabetical order!)That's it!! 🎉
You can now check out your brand new icon on the storybook! 😃
git clone git@gitlab.com:mobLee/icons
cd icons
yarn
git checkout -b feature-nyan-cat
yarn storybook
git add -A . && git commit -m "Add NyanCat icon"
git checkout master
git pull
package.json
versiongit commit -am "vX.X.X"
npm run deploy
git tag vX.X.X
git push && git push --tags
FAQs
mobLee UI components
We found that moblee-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
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.