![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@xunlei/vue-modal
Advanced tools
Readme
Vue 2.x 模态框组件
https://xunleif2e.github.io/vue-modal/demo/dist/index.html
npm i @xunlei/vue-modal -S
import Vue from 'vue'
import VueModal from '@xunlei/vue-modal'
// import css
import '@xunlei/vue-modal/src/vue-modal.css'
Vue.use(VueModal)
import { component as VueModal } from '@xunlei/vue-modal'
// import css
import '@xunlei/vue-modal/src/vue-modal.css'
export default {
// ...
components: {
'vue-modal': VueModal
}
}
<script>
Include前提是 vue 也是独立版本通过script标签引入 / The premise is that Vue is also use direct
<script>
include.
<link type='text/css' rel="stylesheet" href="https://unpkg.com/@xunlei/vue-modal@latest/src/vue-modal.css">
<script src="https://unpkg.com/@xunlei/vue-modal@latest/dist/vue-modal.js"></script>
<button
@click="showModal = true"
>
Show Modal
</button>
<vue-modal
v-model="showModal"
:backdrop="false"
>
<!-- content here -->
</vue-modal>
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
backdrop | 是否需要背景蒙层,有背景蒙层时为模态,不能操作弹出层后方的UI界面 | Boolean | Y | true |
timeout | 自动关闭弹出层的时间,单位为ms | Number | Y | - |
事件名 | 说明 | 事件参数 |
---|---|---|
show | 模态框显示事件 | - |
hide | 模态框隐藏事件 | - |
after-leave | 模态框离开动画执行完成事件 | - |
如果要定制一些外观和动画效果,可以覆盖以下的class
class | 说明 |
---|---|
.modal-mask | 模态框背景蒙层 |
.modal-content | 模态框内容盒子 |
.modal-mask.modal-transparent | 失去模态的背景蒙层 |
.modal-enter-active | 模态框进入活动状态 |
.modal-leave-active | 模态框离开活动状态 |
.modal-mask-enter-active | 模态框背景蒙层进入活动状态 |
.modal-mask-leave-active | 模态框背景蒙层离开活动状态 |
.modal-mask-enter | 模态框背景蒙层开始进入 |
# install deps
npm install
# serve demo at localhost:8080
npm run dev
# build library and demo
npm run build
# build library
npm run build:library
# build demo
npm run build:demo
# commit use commitizen
npm run commit
# pre publish
npm run prepublish
# generate changelog
npm run changelog
Copyright (c) 2017 赵兵
FAQs
Unknown package
We found that @xunlei/vue-modal 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.