thecore_ui_rails_admin 2.4.3 → 2.4.4

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: f742f063e5493a754e1ed5986469072828eab6b56e4010f47a590b14e53788ea
4
- data.tar.gz: d294bf1efcc345e73c919d77e2f41683f5b84740516d216e50f04e544a2d5258
3
+ metadata.gz: 5e2ea2b4ecdff581783f0361437eedd3e52f12f57e3278bc2d4b9d2196a61c96
4
+ data.tar.gz: 667b44bf2c4a71709daff4c08861f4480d77241a2739c80c39f8a12b9375e5d8
5
5
  SHA512:
6
- metadata.gz: 5b2fe54852594f3896777869d9cd17df703b82d143c3f0351f72a67e2848fe6aff35c4156c3c09d1576e91bbe341ad72c3c3e2b1565138db090eda7aab0044b3
7
- data.tar.gz: f185205ca2a05e139d8e5b8d4ccb0f22361ac2feb22f4f02000c54bb3b2be57c54cb3034e45da2511e31ac1571602df843c7c0ad0e5ed92a2ade43b1d421eee7
6
+ metadata.gz: '034695022cad9c9b02a218ce458fcdb31417aa61a405dbcf5c0f66b4654af0b63a0e7e4aaab95a1a1e2cd1020d46504a9c35ae23bffbb87b94e0f4dd7681918b'
7
+ data.tar.gz: 983984c18588850501e2c748a3a928965c59284e6c88c6d49dea9cef29c5a387eec5ddd525640d8666f9de96346d72193f43595878260592ab5b63054f3fff6a
@@ -0,0 +1 @@
1
+ /* Please Override in your application or in a wrapper gem */
@@ -1 +1,2 @@
1
- //= require selectize
1
+ //= require selectize
2
+ //= require rails_admin/custom/thecore
@@ -3,4 +3,4 @@
3
3
 
4
4
  .form-control.selectize-control {
5
5
  width: 62%;
6
- }
6
+ }
@@ -16,8 +16,9 @@
16
16
  *= require rails_admin_selectize/index
17
17
  *= require_self
18
18
  */
19
- @import 'overrides';
20
- @import 'colors';
19
+ @import 'rails_admin/custom/variables';
20
+ @import 'rails_admin/custom/theming';
21
+ @import 'rails_admin/custom/mixins';
21
22
  @import "jquery-ui";
22
23
  @import "jquery-ui/dialog";
23
24
  @import 'bootstrap-sprockets';
@@ -41,14 +41,14 @@
41
41
  }
42
42
  /* Sidebar Styles */
43
43
 
44
- .sidebar-nav {
45
- position: absolute;
46
- top: 0;
47
- width: 250px;
48
- margin: 0;
49
- padding: 0;
50
- list-style: none;
51
- }
44
+ // .sidebar-nav {
45
+ // position: absolute;
46
+ // top: 0;
47
+ // width: 250px;
48
+ // margin: 0;
49
+ // padding: 0;
50
+ // list-style: none;
51
+ // }
52
52
  .sidebar-nav li {
53
53
  text-indent: 20px;
54
54
  line-height: 40px;
@@ -80,9 +80,9 @@
80
80
  background: none;
81
81
  }
82
82
 
83
- body.rails_admin .sidebar-nav {
84
- top: 0px;
85
- }
83
+ // body.rails_admin .sidebar-nav {
84
+ // top: 0px;
85
+ // }
86
86
 
87
87
  .sub-menu a {
88
88
  padding-left: 20px;
@@ -2,6 +2,7 @@ require 'rails_admin'
2
2
  require 'nested_form/builder_mixin'
3
3
 
4
4
  RailsAdmin.config do |config|
5
+ config.main_app_name = Proc.new { |controller| [ ((ENV["APP_NAME"].presence || Settings.app_name.presence) rescue "Thecore"), "" ] }
5
6
  # Link for background Job
6
7
  (config.navigation_static_links ||= {}).merge! "Background Monitor" => "#{ENV['RAILS_RELATIVE_URL_ROOT']}/app/sidekiq"
7
8
 
@@ -33,16 +33,16 @@ module ThecoreConcern
33
33
  action = root_actions.collect(&:action_name).first
34
34
  # REDIRECT TO THAT ACTION
35
35
 
36
- Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path"
36
+ # Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path"
37
37
  stored_location = stored_location_for(resource)
38
38
  if !stored_location.blank? && can?(resource, :all)
39
- Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the IF stored_location_for(resource): #{stored_location}"
39
+ # Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the IF stored_location_for(resource): #{stored_location}"
40
40
  return stored_location
41
41
  elsif action
42
- Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSIF with action name: #{action}"
42
+ # Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSIF with action name: #{action}"
43
43
  return rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
44
44
  else
45
- Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSE with root_path: #{root_path}"
45
+ # Rails.logger.info "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSE with root_path: #{root_path}"
46
46
  sign_out current_user
47
47
  user_session = nil
48
48
  current_user = nil
@@ -105,9 +105,9 @@ module ThecoreConcern
105
105
 
106
106
  # Auto-sign out locked users
107
107
  def reject_locked!
108
- Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB reject_locked"
108
+ # Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB reject_locked"
109
109
  if !current_user.blank? && current_user.locked?
110
- Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB is locked"
110
+ # Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB is locked"
111
111
  sign_out current_user
112
112
  user_session = nil
113
113
  current_user = nil
@@ -115,7 +115,7 @@ module ThecoreConcern
115
115
  flash[:notice] = nil
116
116
  redirect_to root_url
117
117
  end
118
- Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB is not locked = ok"
118
+ # Rails.logger.info "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB is not locked = ok"
119
119
  end
120
120
 
121
121
 
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.4.3
4
+ version: 2.4.4
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-08-25 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -134,13 +134,14 @@ files:
134
134
  - README.md
135
135
  - Rakefile
136
136
  - app/assets/config/thecore_ui_rails_admin_manifest.js
137
+ - app/assets/javascripts/rails_admin/custom/thecore.js
137
138
  - app/assets/javascripts/rails_admin/custom/ui.js
138
139
  - app/assets/javascripts/rails_admin/ra.widgets.coffee
139
140
  - app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js
140
141
  - app/assets/stylesheets/rails_admin/custom/theming.scss
142
+ - app/assets/stylesheets/rails_admin/custom/variables.scss
141
143
  - app/assets/stylesheets/thecore_ui_rails_admin/animate.css
142
144
  - app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss
143
- - app/assets/stylesheets/thecore_ui_rails_admin/colors.scss
144
145
  - app/assets/stylesheets/thecore_ui_rails_admin/common.scss
145
146
  - app/assets/stylesheets/thecore_ui_rails_admin/devise.scss
146
147
  - app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss