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.
@hammerstone/refine-stimulus
Advanced tools
Refine is a flexible query builder for your apps. It lets your users filter down to exactly what they're looking for. Completely configured on the backend.
Short description and motivation.
How to use my plugin.
Add this line to your application's Gemfile:
gem "refine-rails"
And then execute:
$ bundle
Or install it yourself as:
$ gem install refine-rails
Installing the JavaScript package:
$ yarn add @hammerstone/refine-stimulus
Also, make sure that your project uses jquery
and binds it as window.$
. Required for catching events dispatched by select2
dropdowns.
Also note that there's currently a bug with esbuild and stimulus 3.0 compatibility.
Where you normally import your Stimulus controllers, add the following lines:
// import { Application } from "stimulus"
import { controllerDefinitions as refineControllers } from "@hammerstone/refine-stimulus"
// window.Stimulus = Application.start()
Stimulus.load(refineControllers)
To manually register (or extend or provide your own replacement for) each Stimulus controller:
// import { Application } from "stimulus"
import {
AddController,
DefaultsController,
DeleteController,
FormController,
StateController,
StoredFilterController,
UpdateController
} from "@hammerstone/refine-stimulus"
// window.Stimulus = Application.start()
Stimulus.register('refine--add', AddController)
Stimulus.register('refine--defaults', DefaultsController)
Stimulus.register('refine--delete', DeleteController)
Stimulus.register('refine--form', FormController)
Stimulus.register('refine--state', StateController)
Stimulus.register('refine--stored-filter', StoredFilterController)
Stimulus.register('refine--update', UpdateController)
Contribution directions go here.
From this repo's directory:
# install dependencies
$ yarn
# prepare for having a symbolic link to this directory
$ yarn link
# build and update as you work on the javascript
$ yarn build --watch
From the directory of the project including this package:
# create a symbolic link in node_modules/ to this package
yarn link @hammerstone/refine-stimulus
Running yarn
again from your project's directory will revert back to the published version of the package on npm.
Note: Because of a weird behavior in how yarn link
works, you might have to make sure the project including this package includes a few of this package's dependencies (e.g. lodash, stimulus, etc)
yarn release
The gem is available as open source under the terms of the MIT License.
FAQs
Refine is a flexible query builder for your apps. It lets your users filter down to exactly what they're looking for. Completely configured on the backend.
The npm package @hammerstone/refine-stimulus receives a total of 78 weekly downloads. As such, @hammerstone/refine-stimulus popularity was classified as not popular.
We found that @hammerstone/refine-stimulus demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.