Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ember-app-notice
Advanced tools
Simple app-notice component I use across multiple apps. If you find it useful and want something changed, feel free to make an issue or PR!
Uses ES6 classes and decorators
ember install ember-app-notice
import the scss file
@import 'ember-app-notice'
// contains overridable variables by setting these before you import `ember-app-notice`
$ember-app-notice--text: white;
$ember-app-notice--orange: #FEB14F;
$ember-app-notice--yellow: #EC8213;
$ember-app-notice--green: #8abf54;
$ember-app-notice--menuHeight: 85px;
Include these styles for animations
.animated {
animation-duration: 1.0s;
animation-fill-mode: both;
}
.animated-fast {
animation-duration: 0.4s;
@extend .animated;
}
@keyframes slideInDown {
from {
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
}
.slideInDown {
animation-name: slideInDown;
}
@keyframes slideOutUp {
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(0, -100%, 0);
}
}
.slideOutUp {
animation-name: slideOutUp;
}
anywhere in your app, call the service and pass it a message and level
/**
Action that calls the `session.authenticate` method to authenticate the
user.
@method signin
*/
signin = task(function * ({ username, password }) {
try {
yield get(this, 'session').authenticate('authenticator:jwt', { identification: username, password });
} catch(e) {
const appNotice = get(this, 'emberAppNotice');
appNotice.handleNotification({message: 'login_fail', level: 'error'});
}
})
in application.hbs to handle other errors you want at the application level
{{#if message}}
{{ember-app-notice
message=message
noticeLevel=level
on-dismiss=(action 'dismiss_errors')
}}
{{/if}}
import EmberAppNoticeMixin from 'ember-app-notice/mixins/ember-app-notice';
export default ApplicationController.extends(EmberAppNoticeMixin, {
})
export default class ApplicationController extends EmberAppNoticeController {
git clone <repository-url>
this repositorycd ember-app-notice
npm install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
FAQs
Component, Mixin, Service, and Controller for global app notice
The npm package ember-app-notice receives a total of 1 weekly downloads. As such, ember-app-notice popularity was classified as not popular.
We found that ember-app-notice 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.