
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.
coffeekraken-s-dialog-component
Advanced tools
Powerful, fully featured and easy to use dialog component
Powerful, fully featured and easy to use dialog component
npm install coffeekraken-s-dialog-component --save
First, import the component into your javascript file like so:
import SDialogComponent from 'coffeekraken-s-dialog-component'
Then simply use it inside your html like so:
<!-- inline content -->
<s-dialog id="my-cool-dialog">
<template><!-- optional template tag -->
<h1>Hello World</h1>
<p>Phasellus nec dictum arcu, finibus semper tellus. Aliquam mattis dictum.</p>
</template>
</s-dialog>
<a href="#my-cool-dialog">Click to open the dialog</a>
<!-- automatically opened dialog -->
<s-dialog opened content="data/my-cool-dialog.html"></s-dialog>
This webcomponent offers you multiple way to instanciate a dialog. Here's the list:
Open a dialog using a dom component present in the page.
This dom element can be a template
tag too.
Open a content inside an iframe. Usefull to load for example youtube/vimeo/etc... content
Open a dialog in modal mode. This mean that the user cannot close the dialog by clicking outside or by the escape key and your in full control of it's state
Open a dialog and load his content through an ajax request
Open a dialog fully programatically
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari |
---|---|---|---|
IE11+ | last 2 versions | last 2 versions | last 2 versions |
As browsers are automatically updated, we will keep as reference the last two versions of each but this component can work on older ones as well.
The webcomponent API (custom elements, shadowDOM, etc...) is not supported in some older browsers like IE10, etc... In order to make them work, you will need to integrate the corresponding polyfill.
This is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day. To do so, you have several possibilities:
We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.
The code is available under the MIT license. This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to contribute instead of sharing your frustrations on social networks like an asshole...
FAQs
Powerful, fully featured and easy to use dialog component
The npm package coffeekraken-s-dialog-component receives a total of 1 weekly downloads. As such, coffeekraken-s-dialog-component popularity was classified as not popular.
We found that coffeekraken-s-dialog-component 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.