Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@crystalui/angular-lightbox
Advanced tools
A simple, responsive lightbox component.
http://crystalui.org/components/lightbox
Install the npm package.
npm i @crystalui/angular-lightbox
Import module:
import {CrystalLightboxModule} from '@crystalui/angular-lightbox';
@NgModule({
imports: [CrystalLightboxModule]
})
You can cluster images into group.
<div lightbox-group>
<img src="path_to_image" lightbox [fullImage]="{path: 'path_to_fullimage'}" />
</div>
Or keep them as separate images.
<img src="path_to_image" lightbox [fullImage]="{path: 'path_to_fullimage'}" />
You don’t need to specify the path to the large image, it’ll work either way.
<img src="path_to_image" lightbox />
imageMaxHeight: string = "100%"
// Maximum image height.
imageMaxWidth: string = "100%"
// Maximum image width.
counter: boolean = false
// Image counter.
counterSeparator: string = "/"
// The text separator counter.
backgroundColor: "black" | "white" = "black"
// Background color. Inverts the black and white colors of the controls and the background.
backgroundOpacity: number = "0.85"
// Lightbox background opacity.
animationDuration: number = "400"
// Speed of opening and closing animation.
animationTimingFunction: string = "cubic-bezier(0.475, 0.105, 0.445, 0.945)"
// Smooth opening and closing animation function.
closeButtonText: string = "Close"
// The Close button text.
hideThumbnail: boolean = true
// Hide the thumbnail when opening the lightbox.
disable: boolean = false
// Disable the lightbox.
thumbnail:click
{type: "thumbnail:click"}
// Click on the thumbnail.
show-state:initial
{type: "show-state:initial"}
// Preparing styles for starting the lightbox display animation and the preloader display.
show-state:animation
{type: "show-state:animation"}
// Starting the lightbox display animation.
show-state:animation-end
{type: "show-state:animation-end"}
// Ending the lightbox display animation.
closing-state:initial
{type: "closing-state:initial"}
// Preparing styles for starting the lightbox closing animation.
closing-state:animation
{type: "closing-state:animation"}
// Starting the lightbox closing animation.
closing-state:animation-end
{type: "closing-state:animation-end"}
// Ending the lightbox closing animation.
NAME | VERSION |
---|---|
Chrome / Chrome for Android | 50+ / Android 4.4+ |
FireFox | 48+ |
Opera | 44+ |
Safari / iOS Safari | 10.1, 11.1 / iOS 9+ |
Internet Explorer | Edge 15+ |
FAQs
Angular library for viewing images in a pop-up window with touch screen support.
The npm package @crystalui/angular-lightbox receives a total of 258 weekly downloads. As such, @crystalui/angular-lightbox popularity was classified as not popular.
We found that @crystalui/angular-lightbox 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.