Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-modals
Advanced tools
Readme
Simple modal plugin with some nice hooks for toggling modal.
The plugin will self install. However it also comes with some additional pre made modals.
import {modalSlide} from 'vue-modal';
Vue.component('modal-slide-show', modalSlide);
For now it's just a slide show.
Plain Modal:
<template>
<div v-on:click="$modal.show('login')">login</div>
<div v-on:click="$modal.show('register', {boo: 'yaa'})">register</div>
<modal name="login">
<div slot="content">
// login html
</div>
</modal>
</template>
<script>
export default {
modals: {
login: {
onShow: function () {
console.log('show');
},
onHide: function () {
console.log('hide');
}
},
register: {
onShow: function () {
console.log(this.$modal.data('register'));
}
}
}
}
</script>
Slideshow:
If no index is provided it will just go to 0
on start.
<template>
<div v-for="(index, video) in videos" v-on:click="$modal.show('videos-slide-show', {index: index})">{{ video.name }}</div>
<modal-slide-show name="videos-slide-show" :data="videos"></modal-slide-show>
</template>
<script>
export default {
data: function () {
return {
videos: [{
url: 'http://somelink.com/123',
name: 'zero'
}, {
url: 'http://somelink.com/456',
name: 'one'
}]
};
}
}
</script>
There are also some other methods available. Probably they will not be required unless building a more generic style plugin.
$modal.show(name, data, overlap)
$modal.hide(name, reset)
$modal.data(name)
$modal.visible(name)
$modal.register(name)
FAQs
Vue.js Modal plugin.
The npm package vue-modals receives a total of 28 weekly downloads. As such, vue-modals popularity was classified as not popular.
We found that vue-modals 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.