rails_admin 3.1.0.beta → 3.1.0.rc
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/app/assets/javascripts/rails_admin/{application.js → application.js.erb} +8 -0
- data/app/assets/stylesheets/rails_admin/{application.scss → application.scss.erb} +4 -0
- data/app/controllers/rails_admin/main_controller.rb +2 -1
- data/app/helpers/rails_admin/application_helper.rb +29 -5
- data/app/helpers/rails_admin/main_helper.rb +5 -15
- data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +1 -1
- data/app/views/layouts/rails_admin/application.html.erb +3 -0
- data/app/views/rails_admin/main/_dashboard_history.html.erb +1 -1
- data/app/views/rails_admin/main/_form_action_text.html.erb +2 -1
- data/app/views/rails_admin/main/_form_file_upload.html.erb +1 -1
- data/app/views/rails_admin/main/_form_multiple_file_upload.html.erb +1 -1
- data/app/views/rails_admin/main/dashboard.html.erb +2 -2
- data/app/views/rails_admin/main/history.html.erb +1 -1
- data/app/views/rails_admin/main/index.html.erb +6 -18
- data/config/initializers/active_record_extensions.rb +1 -3
- data/config/locales/rails_admin.en.yml +3 -2
- data/lib/rails_admin/adapters/active_record/association.rb +1 -1
- data/lib/rails_admin/adapters/mongoid/extension.rb +1 -3
- data/lib/rails_admin/adapters/mongoid.rb +1 -1
- data/lib/rails_admin/config/const_load_suppressor.rb +78 -0
- data/lib/rails_admin/config/fields/base.rb +20 -6
- data/lib/rails_admin/config/fields/types/action_text.rb +4 -0
- data/lib/rails_admin/config/fields/types/active_storage.rb +12 -0
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +4 -0
- data/lib/rails_admin/config/fields/types/boolean.rb +4 -0
- data/lib/rails_admin/config/fields/types/datetime.rb +10 -0
- data/lib/rails_admin/config/fields/types/enum.rb +13 -2
- data/lib/rails_admin/config/fields/types/has_one_association.rb +4 -0
- data/lib/rails_admin/config/fields/types/multiple_active_storage.rb +12 -0
- data/lib/rails_admin/config/fields/types/numeric.rb +4 -0
- data/lib/rails_admin/config/fields/types/string_like.rb +4 -0
- data/lib/rails_admin/config/fields/types/time.rb +4 -0
- data/lib/rails_admin/config/lazy_model.rb +74 -0
- data/lib/rails_admin/config/model.rb +3 -1
- data/lib/rails_admin/config/sections/list.rb +4 -0
- data/lib/rails_admin/config.rb +20 -37
- data/lib/rails_admin/engine.rb +8 -17
- data/lib/rails_admin/extensions/cancancan/authorization_adapter.rb +19 -4
- data/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb +46 -26
- data/lib/rails_admin/support/es_module_processor.rb +23 -0
- data/lib/rails_admin/version.rb +1 -1
- data/lib/rails_admin.rb +4 -1
- data/package.json +2 -2
- data/src/rails_admin/filter-box.js +165 -209
- data/src/rails_admin/filtering-select.js +14 -5
- data/src/rails_admin/i18n.js +3 -1
- data/src/rails_admin/nested-form-hooks.js +5 -3
- data/src/rails_admin/remote-form.js +1 -0
- data/src/rails_admin/styles/base/theming.scss +15 -8
- data/src/rails_admin/styles/widgets.scss +1 -1
- data/src/rails_admin/ui.js +44 -17
- data/src/rails_admin/widgets.js +5 -0
- data/vendor/assets/fonts/rails_admin/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/rails_admin/fa-solid-900.woff2 +0 -0
- data/vendor/assets/stylesheets/rails_admin/font-awesome.scss +4531 -2782
- metadata +8 -9
- data/lib/rails_admin/support/esmodule_preprocessor.rb +0 -37
- data/vendor/assets/fonts/rails_admin/fa-solid-900.eot +0 -0
- data/vendor/assets/fonts/rails_admin/fa-solid-900.svg +0 -5034
- data/vendor/assets/fonts/rails_admin/fa-solid-900.woff +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Michaels-Ober
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2022-
|
15
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel-serializers-xml
|
@@ -124,9 +124,9 @@ files:
|
|
124
124
|
- LICENSE.md
|
125
125
|
- README.md
|
126
126
|
- Rakefile
|
127
|
-
- app/assets/javascripts/rails_admin/application.js
|
127
|
+
- app/assets/javascripts/rails_admin/application.js.erb
|
128
128
|
- app/assets/javascripts/rails_admin/custom/ui.js
|
129
|
-
- app/assets/stylesheets/rails_admin/application.scss
|
129
|
+
- app/assets/stylesheets/rails_admin/application.scss.erb
|
130
130
|
- app/assets/stylesheets/rails_admin/custom/mixins.scss
|
131
131
|
- app/assets/stylesheets/rails_admin/custom/theming.scss
|
132
132
|
- app/assets/stylesheets/rails_admin/custom/variables.scss
|
@@ -221,6 +221,7 @@ files:
|
|
221
221
|
- lib/rails_admin/config/actions/show.rb
|
222
222
|
- lib/rails_admin/config/actions/show_in_app.rb
|
223
223
|
- lib/rails_admin/config/configurable.rb
|
224
|
+
- lib/rails_admin/config/const_load_suppressor.rb
|
224
225
|
- lib/rails_admin/config/fields.rb
|
225
226
|
- lib/rails_admin/config/fields/association.rb
|
226
227
|
- lib/rails_admin/config/fields/base.rb
|
@@ -287,6 +288,7 @@ files:
|
|
287
288
|
- lib/rails_admin/config/has_groups.rb
|
288
289
|
- lib/rails_admin/config/hideable.rb
|
289
290
|
- lib/rails_admin/config/inspectable.rb
|
291
|
+
- lib/rails_admin/config/lazy_model.rb
|
290
292
|
- lib/rails_admin/config/model.rb
|
291
293
|
- lib/rails_admin/config/proxyable.rb
|
292
294
|
- lib/rails_admin/config/proxyable/proxy.rb
|
@@ -311,7 +313,7 @@ files:
|
|
311
313
|
- lib/rails_admin/extensions/pundit/authorization_adapter.rb
|
312
314
|
- lib/rails_admin/support/csv_converter.rb
|
313
315
|
- lib/rails_admin/support/datetime.rb
|
314
|
-
- lib/rails_admin/support/
|
316
|
+
- lib/rails_admin/support/es_module_processor.rb
|
315
317
|
- lib/rails_admin/support/hash_helper.rb
|
316
318
|
- lib/rails_admin/version.rb
|
317
319
|
- lib/tasks/rails_admin.rake
|
@@ -335,10 +337,7 @@ files:
|
|
335
337
|
- src/rails_admin/ui.js
|
336
338
|
- src/rails_admin/vendor/jquery_nested_form.js
|
337
339
|
- src/rails_admin/widgets.js
|
338
|
-
- vendor/assets/fonts/rails_admin/fa-solid-900.eot
|
339
|
-
- vendor/assets/fonts/rails_admin/fa-solid-900.svg
|
340
340
|
- vendor/assets/fonts/rails_admin/fa-solid-900.ttf
|
341
|
-
- vendor/assets/fonts/rails_admin/fa-solid-900.woff
|
342
341
|
- vendor/assets/fonts/rails_admin/fa-solid-900.woff2
|
343
342
|
- vendor/assets/images/rails_admin/bootstrap/glyphicons-halflings-white.png
|
344
343
|
- vendor/assets/images/rails_admin/bootstrap/glyphicons-halflings.png
|
@@ -468,7 +467,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
468
467
|
- !ruby/object:Gem::Version
|
469
468
|
version: 1.3.1
|
470
469
|
requirements: []
|
471
|
-
rubygems_version: 3.
|
470
|
+
rubygems_version: 3.3.7
|
472
471
|
signing_key:
|
473
472
|
specification_version: 4
|
474
473
|
summary: Admin for Rails
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RailsAdmin
|
4
|
-
class ESModulePreprocessor
|
5
|
-
def self.instance
|
6
|
-
@instance ||= new
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.call(input)
|
10
|
-
instance.call(input)
|
11
|
-
end
|
12
|
-
|
13
|
-
def initialize; end
|
14
|
-
|
15
|
-
def call(input)
|
16
|
-
return unless RailsAdmin.config.asset_source == :sprockets
|
17
|
-
|
18
|
-
data = input[:data]
|
19
|
-
|
20
|
-
if input[:filename].start_with? RailsAdmin::Engine.root.join('src').to_s
|
21
|
-
data.gsub!(/^(import .+)$/) { "// #{Regexp.last_match(1)}" }
|
22
|
-
data.gsub!(/^(export +default +{)$/) do
|
23
|
-
case File.basename(input[:filename])
|
24
|
-
when 'i18n.js'
|
25
|
-
"/* #{Regexp.last_match(1)} */ window.I18n = {"
|
26
|
-
else
|
27
|
-
raise "Unable to preprocess file: #{input[:filename]}"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
elsif input[:filename] =~ %r{turbo-rails.+/turbo\.js$}
|
31
|
-
data.gsub!(/^(export .+)$/) { "// #{Regexp.last_match(1)}" }
|
32
|
-
end
|
33
|
-
|
34
|
-
{data: data}
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
Binary file
|