Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@edwardxyt/gws-components
Advanced tools
用于nodejs 常用工具类。
npm install @edwardxyt/gws-components
const gwsUtils = require('@edwardxyt/gws-components');
createTemporaryDOMNode
import { createTemporaryDOMNode } from '@edwardxyt/gws-components'
let id = '_this_is_a_global_element',
node = createTemporaryDOMNode(id);
showAlert
import { showAlert } from '@edwardxyt/gws-components'
showAlert('Test').then(()=> {
// until user click confirm button, go next step
})
showLoading
hideLoading
showToast
showToast
import { showToast } from '@edwardxyt/gws-components'
showToast('Test').then(()=> {
// until toast disappeared go next step
})
BannerGroup
import { BannerGroup } from '@edwardxyt/gws-components'
// jsx
<BannerGroup images={[img1, img2, img3]}/>
showAreaSelector
import { showAreaSelector } from '@edwardxyt/gws-components/assets/area-selector'
showAreaSelector(['北京', '北京市', '朝阳区'], false)
.then(data => {
console.log(...data) // => 辽宁省, 沈阳市, 皇姑区
})
showAreaSelector(selected, autoComplete)
import { Filter } from '@edwardxyt/gws-components'
// 筛选提交
handleSearch = form => e => {
e.preventDefault();
form.validateFields((err, values) => {
console.log("Received values of form: ", values);
});
};
const filterDate = [
{
type: "text",
label: "姓名",
name: "name",
placeholder: "请输入",
initialValue: "123",
rules: [
{
required: true,
message: "Input something!"
}
]
},
// 。。。。更多不在此展示。
];
<Filter data={filterDate} cb={this.handleSearch} />
asyncComponent, Error
import { asyncComponent, Error } from '@edwardxyt/gws-components'
const userRouter = asyncComponent(() =>
import("./user/index");
.then(module => module.default)
.catch(err => {
window.console.log(err);
return 101;
});
);
<Switch>
<Route exact path="/user" component={userRouter} />
<Route component={Error} />
</Switch>
FAQs
react component
The npm package @edwardxyt/gws-components receives a total of 4 weekly downloads. As such, @edwardxyt/gws-components popularity was classified as not popular.
We found that @edwardxyt/gws-components 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.