
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.
@zestia/ember-modal-dialog
Advanced tools
This addon provides a simple Modal Dialog component.
ember install @zestia/ember-modal-dialog
https://zestia.github.io/ember-modal-dialog/
The modal dialog component isn't designed to be used on its own, but rather used to compose a new modal dialog component... in this example it's called "my-modal"
// my-modal/component.js
export default class MyModal extends Component {
@tracked person;
@tracked loadingError;
@action
loaded(person) {
this.person = person;
}
@action
failedToLoad(error) {
this.loadingError = error.message;
}
}
{{! my-modal/template.hbs }}
<ModalDialog
@onClose={{@onClose}}
@onLoad={{@onFetchPerson}}
@onLoaded={{this.loaded}}
@onLoadError={{this.failedToLoad}} as |modal|
>
<modal.Header>
Welcome
</modal.Header>
<modal.Content>
{{#if modal.isLoading}}
Loading person…
{{else if this.loadingError}}
Unable to load person because {{this.loadingError}}
{{else}}
Hello {{this.person.name}}
{{/if}}
</modal.Content>
<modal.Footer>
<button {{on "click" modal.close}}>
Close
</button>
</modal.Footer>
</ModalDialog>
// application/route.js
export default class ApplicationRoute extends Route {
@action
loadPerson() {
// Fetch remote data
}
}
{{! application/route.hbs }}
{{#if this.showMyModal}}
<MyModal
@onClose={{this.hideMyModal}}
@onFetchPerson={{fn this.loadPerson 123}}
/>
{{/if}}
2.0.1
FAQs
A simple modal dialog component for Ember apps
The npm package @zestia/ember-modal-dialog receives a total of 1 weekly downloads. As such, @zestia/ember-modal-dialog popularity was classified as not popular.
We found that @zestia/ember-modal-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.