-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from hedgeye-sdeming/188347131-fix-storybook-js
[#188347131] fix: embrace stimulus-loading, with workaround for non-importmap applications
- Loading branch information
Showing
5 changed files
with
47 additions
and
15 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
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,5 +1,3 @@ | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | ||
import "@hotwired/turbo-rails" | ||
import "controllers" | ||
// import TurboPower from 'turbo_power' | ||
// TurboPower.initialize(Turbo.StreamActions) |
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,6 +1,11 @@ | ||
pin "phlex_storybook", to: "phlex_storybook/application.js", preload: true | ||
pin 'monaco-editor', to: 'https://cdn.jsdelivr.net/npm/[email protected]/+esm' | ||
|
||
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true | ||
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true | ||
pin 'monaco-editor', to: 'https://cdn.jsdelivr.net/npm/[email protected]/+esm' | ||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true | ||
|
||
pin_all_from PhlexStorybook::Engine.root.join("app/javascript/phlex_storybook/controllers"), under: "controllers", to: "phlex_storybook/controllers" | ||
pin "phlex_storybook", to: "phlex_storybook/application.js", preload: true | ||
pin_all_from PhlexStorybook::Engine.root.join("app/javascript/phlex_storybook/controllers"), | ||
under: "controllers", | ||
to: "phlex_storybook/controllers", | ||
preload: true |
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