Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back support for Sprockets-based asset pipeline
- Loading branch information
Showing
6 changed files
with
74 additions
and
45 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,18 +1,21 @@ | ||
//= require 'jquery3' | ||
//= require 'rails-ujs' | ||
//= require 'rails_admin/jquery-ui' | ||
//= require 'rails_admin/moment-with-locales' | ||
//= require 'rails_admin/bootstrap-datetimepicker' | ||
//= require 'rails_admin/ra.filter-box' | ||
//= require 'rails_admin/ra.filtering-multiselect' | ||
//= require 'rails_admin/ra.filtering-select' | ||
//= require 'rails_admin/ra.remote-form' | ||
//= require 'rails_admin/jquery.pjax' | ||
//= require 'jquery_nested_form' | ||
//= require 'rails_admin/ra.nested-form-hooks' | ||
//= require 'rails_admin/ra.i18n' | ||
//= require 'jquery-ui/effect' | ||
//= require 'jquery-ui/widgets/sortable' | ||
//= require 'jquery-ui/widgets/autocomplete' | ||
//= require 'rails_admin/moment-with-locales' | ||
//= require 'rails_admin/bootstrap-datetimepicker' | ||
//= require 'rails_admin/bootstrap/bootstrap' | ||
//= require 'rails_admin/ra.widgets' | ||
//= require 'rails_admin/ra.sidescroll' | ||
|
||
//= require 'rails_admin/filter-box' | ||
//= require 'rails_admin/filtering-multiselect' | ||
//= require 'rails_admin/filtering-select' | ||
//= require 'rails_admin/remote-form' | ||
//= require 'rails_admin/nested-form-hooks' | ||
//= require 'rails_admin/i18n' | ||
//= require 'rails_admin/widgets' | ||
//= require 'rails_admin/sidescroll' | ||
//= require 'rails_admin/ui' | ||
//= require 'rails_admin/custom/ui' |
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 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,32 @@ | ||
module RailsAdmin | ||
class ESModulePreprocessor | ||
def self.instance | ||
@instance ||= new | ||
end | ||
|
||
def self.call(input) | ||
instance.call(input) | ||
end | ||
|
||
def initialize; end | ||
|
||
def call(input) | ||
data = input[:data] | ||
|
||
# only process files under rails_admin/src | ||
if input[:filename].start_with? RailsAdmin::Engine.root.join('src').to_s | ||
data.gsub!(/^(import .+)$/) { "// #{Regexp.last_match(1)}" } | ||
data.gsub!(/^(export +default +{)$/) do | ||
case File.basename(input[:filename]) | ||
when 'i18n.js' | ||
"/* #{Regexp.last_match(1)} */ window.I18n = {" | ||
else | ||
raise "Unable to preprocess file: #{input[:filename]}" | ||
end | ||
end | ||
end | ||
|
||
{data: data} | ||
end | ||
end | ||
end |
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 |
---|---|---|
|
@@ -64,3 +64,7 @@ | |
border-radius: 0; | ||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); | ||
} | ||
|
||
.ui-helper-hidden-accessible { | ||
display: none; | ||
} |