
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@websanova/vue-modal
Advanced tools
A simple, light weight and intuitive modal control for Vue.js.
$ sudo npm install @websanova/vue-modal
The script is self installing if Vue
is available.
import 'vue';
import '@websanova/vue-modal';
Vue.modal.options.transition = 'modal-scale';
...
Otherwise install it manually.
import VueModal from '@websanova/vue-modal';
import Vue from `vue`;
Vue.use(VueModal, {
// options
});
Available on jsdelivr.
<script src="https://cdn.jsdelivr.net/npm/@websanova/vue-modal@0.1.0"></script>
It's best to just take a look at the sample components for usage.
First include the modal component.
Vue.use('el-modal', '@websanova/vue-modal/components/ModalBootstrap.3.x.vue');
Then create a modal.
<template>
<el-modal
:name="'test-one'"
:transition="'modal-scale'"
:on-show="onShow"
>
<template slot="body">
modal body content
</template>
<template slot="footer">
<button
@click="$modal.hide('test-one')"
>
Cancel
</button>
</template>
</el-modal>
</template>
<script>
export default {
methods: {
onShow(data) {
// do something
}
}
};
</script>
Then include and trigger the modal.
<template>
<div>
<button
@click="$modal.show('test-one')"
>
Test One
</button>
<modal-test-one></modal-test-one>
</div>
</template>
<script>
import ModalTestOne from '/path/to/modal/TestOne.vue';
export default {
components: {
ModalTestOne
}
}
</script>
show
Show the modal.
onShow
method.$modal.show('modal-name', data);
hide
Hide the modal.
onHide
method.$modal.hide('modal-name', data);
dismiss
Dismiss the modal.
onDismiss
method.onHide
callback if set.$modal.dismiss('modal-name', data);
visible
Returns binded property for modal visibility.
$modal.visible('modal-name');
option
Set options for a modal.
$modal.option('modal-name', 'onShow', onShow);
onShow
Default null
Callback that can be set to trigger when modal shows.
onHide
Default null
Callback that can be set to trigger when modal hides.
onDismiss
Default null
Callback that can be set to trigger when modal dismisses.
dismissable
Default: false
Enable / disable dismissing of modals.
transition
Default: modal-fade
Set the main transition for modal content.
transitionBg
Default: modal-fade
Set the main transition for modal background / backdrop.
FAQs
A simple, light weight and intuitive modal control for Vue.js.
We found that @websanova/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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.