Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
prg-editor
Advanced tools
React Table Editor for REST API and Bulma.css.
There is API Documentation.
import React, { PropTypes, Component } from 'react';
import { Input, Checkbox } from 'prg-form';
import { TableBuilder, TableEditor, Editor, AjaxResource } from 'prg-editor';
class EditorView extends Component {
constructor (props) {
super(props);
this.validator = new Validator();
this.validator.add('text')
.isRequired();
/**
* @type {TableEditor}
*/
this.tableEditor = null;
const tb = new TableBuilder();
const { t } = props;
tb.addText('text', 'Title')
.orderBy()
.orderByDefault();
tb.addAction('id', t('Remove'))
.onClick((e, data) => this.tableEditor.delete(data))
.condition((id, data) => data.isAdministrable);
const resource = new AjaxResource('/api/users/:id');
resource.mapInput = (...args) => this.mapInput(...args);
this.state = {
colsConfig: tb.getColsConfig(),
resource
};
}
mapInput (data) {
return Object.assign(data, {
groups: data.groups
.filter(group => group.group)
});
}
render () {
const { t } = this.props;
const { colsConfig, resource } = this.state;
return (<TableEditor
colsConfig={colsConfig}
resource={resource}
ref={(c) => { this.tableEditor = c; }}
t={this.props.t}
>
<Editor
validator={validator}
>
<Input name="text" />
</Editor>
</TableEditor>);
}
}
EditorView.propTypes = {
t: PropTypes.func
};
EditorView.defaultProps = {
t: w => w
};
export default EditorView;
FAQs
Data Table and Editor for use with Prg-Form
We found that prg-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.