Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
amazeui-dialog
Advanced tools
Amaze UI Modal 插件 HTML 模板封装。
使用说明:
npm install amazeui-dialog
dist
目录下的 CSS):Amaze UI dialog 依赖 Amaze UI 样式。
<link rel="stylesheet" href="path/to/amazeui.min.css"/>
dist
目录下的 JS):<script src="path/to/jquery.min.js"></script>
<script src="path/to/amazeui.min.js"></script>
<script src="path/to/amazeui.dialog.min.js"></script>
AMUI.dialog.alert({
title: '错误提示',
content: '你的家还好吧',
onConfirm: function() {
console.log('close');
}
});
AMUI.dialog.confirm({
title: '错误提示',
content: '正文内容',
onConfirm: function() {
console.log('onConfirm');
},
onCancel: function() {
console.log('onCancel')
}
});
var $loading = AMUI.dialog.loading();
setTimeout(function() {
$loading.modal('close');
}, 3000);
var $actions = AMUI.dialog.actions({
title: '标题啊',
items: [
{content: '<a href="#"><span class="am-icon-wechat"></span> 分享到微信</a>'},
{content: '<a href="#"><i class="am-icon-mobile"></i> 短信分享</a>'},
{content: '<a href="#"><i class="am-icon-twitter"></i> 分享到 XX 萎跛</a>'}
],
onSelected: function(index, target) {
console.log(index);
$actions.close();
}
});
$actions.show();
AMUI.dialog.popup({title: '标题', content: '正文'});
FAQs
Amaze UI Modal 模板封装。
We found that amazeui-dialog 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.