npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rc-editor-jsonschema

v0.2.0

Published

jsonschema for landing in tech

Downloads

5

Readme

rc-editor-jsonschema


React EditorJSON Component for Ant Design Landing Intranet.

NPM version build status codecov npm download

Example

http://localhost:8008/examples/

online example: http://ant-motion.github.io/editor-jsonschema/

install

rc-editor-jsonschema

Usage

var EditorJSON = require('rc-editor-jsonschema');
var React = require('react');
React.render(<EditorJSON />, container);

API

props

| name | type | default | description | |-----------|----------------|-----------|----------------| | data | object | null | ant design landing 的 dataSource. | | dataBasic | object | null | 源数据结构,如果 data 数据里的 array 全部删除后,将参照此数据源再新增 | | schema | object | null | 凤蝶的 schema 简单的解析,以 Object 和 Array 做主类,结合 landing 的数据,子级目前只支持 String(default), Text, Enum, Image, File, Boolean。 | | selected | string[] | null | 默认树状选择器 | | ignore | string[] | null | 不显示 schema 数据里的 key | | className | string | null | className | | prefixCls | string | rc-editor-jsonschema | prefix class. | | useMediumEditor | boolean | true | 输入框的模式,false 为 input 形式,true 为 MediumEditor 模式,产出的 string 将带 html 标签,如 <p>标题文字</p> | | uploadProps | object | null | 上传组件的 props. | | uploadImageSize | number | 1m | 图片上传的大小限制. | | uploadVideoSize | number | 2m | 视频上传的大小限制. | | onChange | (data: object) => void; | null | 数据变更的回调。 | | onSelectedChange | (selected: string[]) => void; | null | 选择器变更的回调。 |

说明

如果是数组形式,请必须将数据里的数值全部添加到 schema 里,并设置默认,用 ignore 隐藏的数值,如 className 数值, 如果不添加,将不会有出现在新增数据里。

License

rc-editor-jsonschema is released under the MIT license.