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-at-js
Advanced tools
A thin wrapper around At.js.
ember install ember-cli-at-js
This addon wraps At.js and gives you an Ember.TextArea
with an extra property called settings
. This property is handled over to At.js constructor.
// /app/controller/application.js
import Ember from 'ember';
export default Ember.Controller.extend({
settings: {
data: ['juan', 'pedro']
},
value: null
});
// /app/templates/application.hbs
{{at-who-textarea settings=settings value=value}}
Maybe you are creating your own component and want to drop off support for At.js, in that case you may want to use the AtWhoSupport class that has everything the TextArea does but without subclassing it.
// /app/components/my-component.js
import Ember from 'ember';
import AtWhoSupport from 'ember-cli-at-js/mixins/at-who-support';
export default Ember.Component.extend(AtWhoSupport, {
});
By default this component ships with no styles but you can easily add them in
your ember-cli.build.js
file.
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
});
// Linking to At.js default styles
app.import(app.bowerDirectory + '/At.js/dist/css/jquery.atwho.css');
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/
return app.toTree();
};
FAQs
A thin wrapper around At.js
We found that ember-cli-at-js 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.