thecore_ui_rails_admin 2.2.7 → 2.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e2d7885b8d6422f66e1e98777a22cd8eb360239dc7e3cc261b2c25afdc5e8b2
4
- data.tar.gz: 1750df12a02b490c783572d7ad33852c0c2573434b44e4ec39e3f8f6bd25d383
3
+ metadata.gz: 6a407f5a91c34dd296f20d5ef9f4d3092a4fd67b5be28b7f52decb4ef44b5f1c
4
+ data.tar.gz: 95cb42313e3057668c60fbd0cd53d5759df314567a716e19fc139e5a37c78ec2
5
5
  SHA512:
6
- metadata.gz: cb880f6fb37505ed66af4007dc762a0b2ae1879f9b3be7f6487f518f461bd677394e50212469caef194a7c701c0aeee53bff79d9ea32280f985efe8fe11c8c51
7
- data.tar.gz: b8f7088fe428c1867f11040010bd5128358346ebc639be57c04deace79330300b44752534377379654364f3f88d3d05ee932ba7132add61507c548b9421080f7
6
+ metadata.gz: d0e3ff9b4dee3b64494007b4e90380b250ed40f2370bc9cd09c56b252226a748c5487ef00ac05c80a328ab89a37f190efa05f8cff813a5ed0d26b16b86f3a53b
7
+ data.tar.gz: 69a5018c9b47518b61303c7e07ce56e650b8481912403c66f4621f3b78fb8b8dc1a07aa9ba73d221f01367dff38c05da7d3db6cca57db142b8cfc6729886c1a6
@@ -312,4 +312,12 @@ a.btn[data-action="incrementMinutes"],
312
312
  a.btn[data-action="decrementMinutes"] {
313
313
  background-color: transparent !important;
314
314
  border-style: none !important;
315
+ }
316
+
317
+ trix-editor {
318
+ background-color: white;
319
+ }
320
+
321
+ .trix-button {
322
+ background-color: lightgray;
315
323
  }
@@ -1,6 +1,6 @@
1
1
  module DeviseBootstrapErrorsHelper
2
2
  def devise_bootstrap_error_messages!
3
- return '' if resource.errors.empty?
3
+ return '' if resource.errors.blank?
4
4
 
5
5
  messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
6
6
  sentence = I18n.t('errors.messages.not_saved',
@@ -45,7 +45,7 @@
45
45
  #list
46
46
  = form_tag(index_path(params.except(*%w[page f query])), method: :get, class: "pjax-form form-inline") do
47
47
  %span#filters_box{data: {options: ordered_filter_options.to_json}}
48
- %hr.filters_box{style: "display:#{ordered_filters.empty? ? 'none' : 'block'}"}
48
+ %hr.filters_box{style: "display:#{ordered_filters.blank? ? 'none' : 'block'}"}
49
49
  .input-group
50
50
  %input.form-control.input-small{name: "query", type: "search", value: query, placeholder: t("admin.misc.filter")}
51
51
  %span.input-group-btn
@@ -57,7 +57,7 @@
57
57
  - if export_action
58
58
  %span{style: 'float:right'}= link_to wording_for(:link, export_action), export_path(params.except('set').except('page')), class: 'btn btn-info'
59
59
 
60
- - unless @model_config.list.scopes.empty?
60
+ - unless @model_config.list.scopes.blank?
61
61
  %ul.nav.nav-tabs.nav-justified#scope_selector
62
62
  - @model_config.list.scopes.each do |scope|
63
63
  - scope = '_all' if scope.nil?
@@ -1,4 +1,5 @@
1
1
  require 'rails_admin'
2
+ require 'nested_form/builder_mixin'
2
3
 
3
4
  RailsAdmin.config do |config|
4
5
  # Link for background Job
@@ -38,6 +39,10 @@ RailsAdmin.config do |config|
38
39
  end
39
40
 
40
41
  config.model "ActiveStorage::Attachment" do
42
+ visible false
43
+ end
44
+
45
+ config.model "ActiveStorage::VariantRecord" do
41
46
  visible false
42
47
  end
43
48
 
@@ -11,6 +11,7 @@ Rails.application.configure do
11
11
  RailsAdmin::Config::Actions::BulkDelete.send(:include, BulkDeleteConcern)
12
12
  RailsAdminSettings::Setting.send(:include, RailsAdminSettings::RailsAdminExtensionConfig)
13
13
  User.send(:include, ThecoreUiRailsAdminUser)
14
+ UsedToken.send(:include, ThecoreUiRailsAdminUsedToken)
14
15
  Role.send(:include, ThecoreUiRailsAdminRole)
15
16
  Permission.send(:include, ThecoreUiRailsAdminPermission)
16
17
  end
@@ -11,7 +11,7 @@ module ThecoreUiRailsAdminRole
11
11
  desc I18n.t("activerecord.descriptions.role")
12
12
 
13
13
  field :name
14
- field :permissions, :selectize
14
+ field :permissions#, :selectize
15
15
  list do
16
16
  field :created_at
17
17
  exclude_fields :lock_version
@@ -0,0 +1,11 @@
1
+ require 'active_support/concern'
2
+
3
+ module ThecoreUiRailsAdminUsedToken
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ rails_admin do
8
+ visible false
9
+ end
10
+ end
11
+ end
@@ -28,7 +28,7 @@ module ThecoreUiRailsAdminUser
28
28
  bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id
29
29
  end
30
30
  end
31
- field :roles, :selectize
31
+ field :roles#, :selectize
32
32
  # include UserRailsAdminConcern
33
33
 
34
34
  # Fields only in lists and forms
@@ -15,6 +15,7 @@ require 'jquery-ui-rails'
15
15
  require 'bootstrap-sass'
16
16
 
17
17
  require 'concerns/thecore_ui_rails_admin_user'
18
+ require 'concerns/thecore_ui_rails_admin_used_token'
18
19
  require 'concerns/thecore_ui_rails_admin_role'
19
20
  require 'concerns/thecore_ui_rails_admin_permission'
20
21
  require 'concerns/thecore_rails_admin_export_concern'
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -208,6 +208,7 @@ files:
208
208
  - lib/concerns/thecore_rails_admin_export_concern.rb
209
209
  - lib/concerns/thecore_ui_rails_admin_permission.rb
210
210
  - lib/concerns/thecore_ui_rails_admin_role.rb
211
+ - lib/concerns/thecore_ui_rails_admin_used_token.rb
211
212
  - lib/concerns/thecore_ui_rails_admin_user.rb
212
213
  - lib/tasks/thecore_ui_rails_admin_tasks.rake
213
214
  - lib/thecore_ui_rails_admin.rb
@@ -233,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
234
  - !ruby/object:Gem::Version
234
235
  version: '0'
235
236
  requirements: []
236
- rubygems_version: 3.0.3
237
+ rubygems_version: 3.0.3.1
237
238
  signing_key:
238
239
  specification_version: 4
239
240
  summary: Thecore2 Backend UI based on Rails Admin.