
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@gavant/ember-bootstrap-dropdown
Advanced tools
Dropdown menus built on ember-basic-dropdown, and styled by Bootstrap 4.
Dropdown menus built on ember-basic-dropdown, and styled by Bootstrap 4.
ember install @gavant/ember-bootstrap-dropdown
IMPORTANT: ember-basic-dropdown will be installed along with the addon, and added to your app's package.json. However, if your app already has ember-basic-dropdown as a dependency via another addon, such as ember-power-select, this should be removed from your package.json via yarn remove ember-basic-dropdown
.
This addon assumes that the project already has Bootstrap 4 installed, as by default, it applies CSS classes that are compatible with bootstrap's components. However, these classes can be customized if needed.
To use the addon styles, you must use SASS:
ember install ember-cli-sass
Upon addon installation, an @import
statement will be added to your app.scss
:
@import "ember-basic-dropdown";
@import "@gavant/ember-bootstrap-dropdown";
IMPORTANT: If your app already has ember-basic-dropdown as a dependency via another addon, such as ember-power-select, the @import "ember-basic-dropdown";
line should be removed.
This addon is simply an extension of ember-basic-dropdown, so you can use the exact same API, with a couple additional components:
{{#dropdown-menu as |dd|}}
{{#dd.trigger class="btn btn-primary"}}Trigger{{/dd.trigger}}
{{#dd.content}}
{{#dropdown-action dd=dd action=(action "myAction")}}
Dropdown Action
{{/dropdown-action}}
{{#dropdown-link "some.route" dd=dd}}
Dropdown Link
{{/dropdown-link}}
{{/dd.content}}
{{/dropdown-menu}}
{{dropdown-menu}}
Just an alias of {{basic-dropdown}}
, it maintains the exact same API. It may be extended with additional behaviors/functionality in the future, so its preferred to use this component for all dropdown menus.
{{dropdown-link}}
Extends Ember.LinkComponent
, so provides the same API as {{link-to}}
. It adds additional classes to style it correctly in a bootstrap dropdown, and its dd
attribute MUST be passed the {{#dropdown-menu as |dd|}}
's yielded dd
object (e.g. {{#dropdown-link "route" dd=dd}}Foo{{/dropdown-link}}
), in order for the dropdown to close when clicked.
{{dropdown-action}}
A button element that adds additional classes to style it correctly in a bootstrap dropdown. Link dropdown-link
, its dd
attribute MUST be passed the {{#dropdown-menu as |dd|}}
's yielded dd
object (e.g. {{#dropdown-link "route" dd=dd}}Foo{{/dropdown-link}}
), in order for the dropdown to close when clicked.
Additionally, the component may be passed an action via its action
attribute, which will be invoked on click, and the click event object will be sent up as an action param. You may also prevent action bubbling by passing in bubbles=false
.
git clone <repository-url>
cd gavant-ember-bootstrap-dropdown
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
Dropdown menus built on ember-basic-dropdown, and styled by Bootstrap 4.
The npm package @gavant/ember-bootstrap-dropdown receives a total of 3 weekly downloads. As such, @gavant/ember-bootstrap-dropdown popularity was classified as not popular.
We found that @gavant/ember-bootstrap-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.