Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@jswork/ant-abstract-form
Advanced tools
For curd form based on react.
npm install -S @jswork/ant-abstract-form
@import "~@jswork/ant-abstract-form/dist/style.css";
// or use sass
@import "~@jswork/ant-abstract-form/dist/style.scss";
// customize your styles:
$ant-abstract-form-options: ()
import React from 'react';
import AntAbstractForm from '@jswork/ant-abstract-form';
import styled from 'styled-components';
import nx from '@jswork/next';
const Container = styled.div`
width: 80%;
margin: 30px auto 0;
.is-body {
padding: 20px;
background: #fff;
width: 50%;
min-width: 320px;
margin: 0 auto;
}
.mr-5_ {
> * {
margin-right: 5px;
}
}
.mr-10_ {
> * {
margin-right: 10px;
}
}
`;
// Mock api
nx.$api = {
curds_index: function () {
return Promise.resolve('index');
},
curds_show: function () {
return Promise.resolve('show');
},
curds_update: function () {
return Promise.resolve('update');
}
};
nx.$route = {
back: function () {
console.log('back');
}
};
class App extends AntAbstractForm {
apiService = nx.$api;
routeService = nx.$route;
constructor(props) {
super(props);
this.state = {
meta: {
formItemLayout: [6, 18],
initialValues: {},
fields: [
{
key: 'username',
label: 'User Name',
tooltip: '用户名',
rules: [{ max: 10, min: 5 }]
},
{ key: 'password', label: 'Password', widget: 'password' }
]
}
};
}
componentDidMount() {
const { meta } = this.state;
meta.initialValues = {
username: 'afeiship'
};
this.setState({ meta });
}
render() {
return this.view();
}
}
export default () => {
return (
<Container>
<App />
</Container>
);
};
Code released under the MIT license.
FAQs
For curd form based on react.
The npm package @jswork/ant-abstract-form receives a total of 3 weekly downloads. As such, @jswork/ant-abstract-form popularity was classified as not popular.
We found that @jswork/ant-abstract-form demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.