
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
dd-rc-nstree
Advanced tools
基于 react + antd + zTree 定制的节点树。
import { Nstree } from 'dd-rc-nstree';
const App = React.createClass({
nstreeBeforeInit(treeData) {
return treeData.children[0];
},
render() {
return (
<div className="nsTree-sidebar">
<Nstree
beforeInit={this.nstreeBeforeInit}
treeApi="http://127.0.0.1:8848/rig/worldtree/tree"
/>
</div>
);
}
});
ReactDOM.render(<App />, document.getElementById('react-content'));
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
width | 宽度 | string、number | 200 |
height | 高度度 | string、number | 500 |
treeId | 节点树ID | string | 'nstree' |
treeApi | 数据接口 | string | '' |
zTreeObjSetting | zTree配置 | object | {} |
beforeInit | 初始化前回调 | function(treeData) | noop |
afterInit | 初始化后回调 | function(zTreeObj) | noop |
search | search模块配置 | object |
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
enabled | 是否开启搜索模块 | boolean | |
searchTypes | 搜索类型 | array |
searchTypes = [{
name: '搜索节点',
type: 'ns'
}, {
name: '搜索机器',
type: 'machine'
}, {
name: '搜索监控',
type: 'collect'
}, {
name: '初始化策略',
type: 'init'
}, {
name: '部署策略',
type: 'deploy'
}]
$(document).trigger('refreshTree');
MIT
FAQs
---
The npm package dd-rc-nstree receives a total of 2 weekly downloads. As such, dd-rc-nstree popularity was classified as not popular.
We found that dd-rc-nstree 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.