
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
j-vue-modal
Advanced tools
For Vue3 use this.
$ npm install j-vue-mdoal
import ModalTest1 from "./components/ModalTest1";
import ModalTest2 from "./components/ModalTest2";
const modals = {
"_ModalTest1": ModalTest1,
"NameForFunction": ModalTest2
};
Vue.use(modal, {
modals: modals,
css:{
class: {
main: "modal-main-1",
back: "modal-back-1",
},
animation: "zoom"
}
});
modals - object of Modal components.
Name of Field ("_ModalTest1", "NameForFunction") use for activate modal.
css - set style of Modal
css > main - set style for div that will be containe your components css > back - set style for background div.
For example: you should add this css class in your object
.modal-main-1{
display: flex;
align-items: center;
justify-content: center;
position: fixed;
height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: 9999;
}
.modal-back-1{
position: absolute;
height: 100%;
width: 100%;
z-index: -1;
background: rgba(62, 62, 62, 0.5);
}
animations - set animations name of transition
.fade-enter .modal-a {
transform: translateY(100px);
}
css: {
class: {
main: "test-2-main",
back: ""
},
animation: "fade"
},
this.$modal.open(NameComponent, ParamsForComponent, Config)
NameComponent is name of filed if modals object.
ParamsForComponent is object of value for youe component.
You can get params by this.$modal.params
Config is config object of onlye this modal iteration
return key of modal
this.$modal.close(NameComponent = undefined)
Close Modal. if NameComponent is not undefined, function will close modal only when NameComponent === last name of opened component.
this.$modal.update(params)
Update params for your modal
When you open some component this value is increment.
Params for your modal
Name of current Modal
FAQs
Simple modal
We found that j-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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.