
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@graphistry/share-component
Advanced tools
node_modules/
, for liveWe follow CRA for standalone (storybook, ...). CRA does not support library output nor in UMD (script-tag-friendly), so for integration scenarios like Nexus, we do an ejected version.
If using from another container, it should "just work" by autobuilding a local copy. Watchers take more work:
docker compose build
docker compose up
=> localhost:6006
docker compose run --service-ports frontend npm run storybook
docker compose run --service-ports frontend npm start
=> localhost:3000
docker compose down -v
and restart, or page refresh.env
in the host with FAST_REFRESH=false
./live.sh
(docker compose run frontend npm run watch
)
./nc up
=> localhost:8000
build/js/share.js
(volume mounted)
watch-cra
, except currently not publishing symbols some reason
docker compose run frontend npm run build-dev
build/js/share.js
(volume mounted)We use webpack.config.js
+ .babelrc
as CRA currently does root index as entrypoint
Build:
docker compose build # => npm i
docker compose run frontend npm run build-prod # => emits build/ on host
Import:
build/index.link.html
, build/index.scripts.html
import React from "react";
import ShareModal from '@graphistry/share-component';
import 'bootstrap/dist/css/bootstrap.css';
export const widget = <ShareModal/>;
FAQs
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.