
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
suanpan-web-renderer
Advanced tools
用于渲染算盘页面
更新内容详见 Release Notes 或者 Github Release
组件 | 参数: 类型 | 说明 |
---|---|---|
Graph | domain | 算盘服务域名/IP 地址 |
appId | 待渲染的算盘项目 id | |
token | 用于访问算盘后台接口的 token | |
isInsightEdit | 是否为insight编辑页面 true为编辑页 false为详情页 | |
onChange | 当算盘项目数据变更后,触发回调,入参为 DataSystem 类型的组件列表 | |
onBeforeRun | 运行算盘项目前,触发的回调。返回值为布尔类型,如果返回false,则不会运行算盘项目 | |
Map | url | 地图组件数据的地址 |
import { Graph, Map } from 'suanpan-web-renderer';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<React.StrictMode>
<div style={{width: '50%', height: '50%'}}>
<Graph domain={"https://www.xuelangyun.com"} appId={3109} token={'some_token'} isInsightEdit={true}/>
</div>
<div style={{width: '50%', height: '50%'}}>
<Map url={'some_url'}/>
</div>
</React.StrictMode>);
FAQs
We found that suanpan-web-renderer 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.