-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Enable and use import maps #3209
Merged
Merged
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
33d8492
WIP: Enable and use import maps
heyapricot e0e2e78
Fix issue sidenav with nested options not opening
edwinthinks f09e678
Fix issue in which line items UI supported by cocoon was not working
edwinthinks fa0582e
Migrate turbo from webpack to importmaps
edwinthinks cf854ca
Fix dropdown not working
edwinthinks 13fe042
Enabled Stimulus controllers via importmaps
heyapricot 61fb082
Merge branch 'main' into implement-import-maps
edwinthinks aa197d9
Remove all webpacker steps in favor of importmaps
edwinthinks e9acb69
Merge branch 'main' into implement-import-maps
edwinthinks 5ca5af3
Remove adding controller that does not exist
edwinthinks 86f0b7e
Update to load stimulus controllers
edwinthinks 16f681d
Fixes for fontawesome, select2, litepicker
14ed05d
Fixes for modals etc.
e1f458e
Update other layouts
24c0cdc
Fix precompile / remove JS
d541c86
More fixes!
166dfd4
Fix barcodes!
312abdc
Add filterrific
fc0ba8d
Add tab navigation
d2b60a0
Fix lint
f594a06
Merge branch 'main' into implement-import-maps
e68559b
Merge remote-tracking branch 'origin/main' into implement-import-maps
awwaiid 12db666
Fix Gemfile.lock
7f726bc
Merge branch 'main' into implement-import-maps
87a8abc
Fix spec
a43f355
Hack to fix the close button not working.
28d2de5
add comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,3 +213,5 @@ end | |
|
||
# Use Redis for Action Cable | ||
gem "redis", "~> 5.0" | ||
|
||
gem "importmap-rails", "~> 1.1" |
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | ||
|
||
/** | ||
* Load all javascript needed to run the AdminLTE theme and | ||
* all the interactions. | ||
*/ | ||
import 'admin-lte' | ||
|
||
console.log("Hello from importmap-rails!") |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require_relative "../config/application" | ||
require "importmap/commands" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Pin npm packages by running ./bin/importmap | ||
|
||
pin "application", preload: true | ||
pin "admin-lte", to: "https://ga.jspm.io/npm:[email protected]/dist/js/adminlte.min.js" |
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heyapricot i was able to make the sidenav work again by importing it here after pinning it.