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.
ember-cli-lightbox
Advanced tools
A lightbox component for ember using Lightbox2.
ember install ember-cli-lightbox
Preview image on image click
{{light-box
href=imageUrl
data-lightbox=name
data-title=title
data-alt=alt
data-class=imgClassName}}
Preview image on some DOM click
{{#light-box
href=imageUrl
data-lightbox=name
data-title=title
data-alt=alt
inlineImage=false}}
<!-- DOM Element here -->
{{/light-box}}
Setting global lightbox options:
// config/enironment.js
module.exports = function(environment) {
var ENV = {
//...
'ember-cli-lightbox': {
lightboxOptions: {
alwaysShowNavOnTouchDevices: false,
albumLabel: "Image %1 of %2",
disableScrolling: false,
fadeDuration: 500,
fitImagesInViewport: true,
maxWidth: 1000,
maxHeight: 1000,
positionFromTop: 50,
resizeDuration: 700,
showImageNumberLabel: true
}
}
};
//...
return ENV;
};
Ember Version | Ember-Cli-Lightbox Version |
---|---|
1.8 through 1.10 | 0.2.0 |
1.11 through 1.13 | 0.3.0 =< x < 1.0.0 |
2.0 and beyond | >=1.0.0 |
Addons | >=2.0.0 |
Check out the demo on github pages. Alternatively you can clone this repo and run the app
$ npm install -g ember-cli
$ git clone git@github.com:ramybenaroya/ember-cli-lightbox
$ cd ember-cli-lightbox
# install dependencies
$ npm i
# fire up local server
$ ember serve
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
Ember Cli Addon for Lightbox2
The npm package ember-cli-lightbox receives a total of 52 weekly downloads. As such, ember-cli-lightbox popularity was classified as not popular.
We found that ember-cli-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.