Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
ember-cli-foundation-modal
Advanced tools
ember-cli addon that provides a simple zurb foundation 5.5 modal for ember.js web applications
npm install ember-cli-foundation-modal --save-dev
bower install zurb foundation 5.5
bower install foundation --save
add the css file to your Brocfile
app.import('bower_components/foundation/css/foundation.css');
add the modal bg div to your application.hbs
<div class="reveal-modal-bg" {{bind-attr style=modalBackgroundStyle}}></div>
add the mixin to your application controller
import ApplicationModalMixin from "ember-cli-foundation-modal/mixins/foundation-app-modal";
export default Ember.Controller.extend(ApplicationModalMixin);
add the html for the modal to any template and a button to toggle it
<div {{bind-attr style=modalStyle}} id="resolveModal" class="modal reveal-modal medium" data-reveal>
<button id="close-btn" {{action "toggleModal"}}>Close</button>
</div>
<button id="open-btn" {{action "toggleModal"}}>Open</button>
add the mixin to the controller backing the above template
import ModalMixin from "ember-cli-foundation-modal/mixins/foundation-modal";
export default Ember.Controller.extend(ModalMixin);
npm install
bower install
ember test
Copyright © 2015 Toran Billups http://toranbillups.com
Licensed under the MIT License
FAQs
A modal mixin for zurb foundation 5.5
The npm package ember-cli-foundation-modal receives a total of 8 weekly downloads. As such, ember-cli-foundation-modal popularity was classified as not popular.
We found that ember-cli-foundation-modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.