Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
json-vision
Advanced tools
Readme
inspirited by dat.GUI
based on React
work in progress... (really not ready)
will be renamed to QuickInterface
Generates rich user interface fully automatically for any JavaScript object and let it customise quickly and efficiently. ####Basic Useage
<QuickInterface
value: {object}
settings: {[optional, custom, settings]}
onChange: {handleOnUserChangeAnyValue}/>
In the settings property you can give an array of settings node like this:
var settings = [{
//select all the value with the key 'foo'
// and set a slider input for them
selector: {key: 'foo'},
input: {
type: 'slider',
min: 0,
max: 100
}
},{
//select the values with matching path
// and set a string input for the with hints
selector: {glob: '**/bar/*.string'},
input: {
type: 'string',
hits: ['foo', 'bar', 'qux']
}
}, {
//qux will be a dropdown
selector: {key: 'qux'},
input: {
options: ['baz', 'bar']
},
}]
To make the setting dynamic you can replace any parameter with a function.
The function called with one argument (connect
) which lets you easily access to current value. Example:
connect.value, connect.key, connect.fullPath, connect.delete()
{
//hide when qux = 'baz'
selector: {inscaneOf: SomeClass},
hidden: connect => connect.parent.qux === 'baz',
label: connect => capitalise(connect.key)
}
There is a lot of more settings option like:
{
selector: {key, value, function, instanceOf, glob, path, regex}
children: [],
highlighted: true,
label: 'Prop',
labelStyle: {color: style.palette.red}
draggable: true,
canDrop: (targetUtils, itemUtils, idx) => {},
acceptDrop: (targetUtils, itemUtils, idx) => {},
getDragPreview: connect => connect.value.getClonedDOMNode(),
whitelist: ['foo', 'bar'],
blacklist: ['qux', 'baz'],
order: ['tux', 'baz'],
onClick: connect => {}
hidden: true,
Component: ReactComponent //use custom component
input: {
type: 'number',
dragSpeed: 0.1,
...input settings
},
extraInputs: [
{
type: 'string'
value: 8,
dragSpeed: 0.1,
options: ['first', 'secound', 'third'],
types: [
{--//--}
],
chooseType: connect => return 0;
//... input settings
}
],
buttons: [
{
kind: 'colored'
label: 'Push'
icon: 'github'
onClick: connect => {},
hideWhenLeaved: true,
}
]
}
FAQs
> inspirited by [dat.GUI]
The npm package json-vision receives a total of 2 weekly downloads. As such, json-vision popularity was classified as not popular.
We found that json-vision 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.