-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to use our own initialize and some other improvements
A couple of improvements are introduced here. - Be able to pin what version of StimulusReflex we are using. The tradeoff is that we need to maintain a fork that is lightly touched to allow for that functionality. - Be able to decouple from how rails expect the identifier would look like - The javascript code for actioncable is no longer a dependency.
- Loading branch information
1 parent
23f5bf4
commit dcb85e2
Showing
7 changed files
with
62 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { Application } from 'stimulus' | ||
import StimulusReflex from 'stimulus_reflex' | ||
// because travis had issues with 'sockpuppet-js' we had to do this. | ||
import WebsocketConsumer from '../../javascript/stimulus-websocket/index' | ||
import { Sockpuppet } from '../../javascript/stimulus-websocket/index' | ||
|
||
const application = Application.start() | ||
const consumer = new WebsocketConsumer( | ||
`${location.protocol=='https:'?'wss':'ws'}://${window.location.host}/ws/sockpuppet-sync`, {debug: false} | ||
) | ||
|
||
StimulusReflex.initialize(application, { consumer }) | ||
Sockpuppet.initialize(application, { consumer }) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters