thecore_ui_rails_admin 2.7.5 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/rails_admin/custom/thecore/ui.js +1 -0
  3. data/app/assets/javascripts/rails_admin/custom/ui.js +6 -9
  4. data/app/assets/stylesheets/rails_admin/custom/mixins.scss +15 -0
  5. data/app/assets/stylesheets/rails_admin/custom/thecore/mixins.scss +1 -0
  6. data/app/assets/stylesheets/rails_admin/custom/thecore/theming.scss +23 -0
  7. data/app/assets/stylesheets/rails_admin/custom/thecore/variables.scss +1 -0
  8. data/app/assets/stylesheets/rails_admin/custom/theming.scss +11 -147
  9. data/app/assets/stylesheets/rails_admin/custom/variables.scss.erb +85 -0
  10. data/app/views/layouts/_navigation.html.erb +20 -0
  11. data/app/views/layouts/_navigation_links.html.erb +7 -0
  12. data/app/views/rails_admin/main/{thecore_sidekiq_monitor.html.erb → active_job_monitor.html.erb} +1 -1
  13. data/{lib/concerns → config/initializers}/thecore_rails_admin_bulk_delete_concern.rb +0 -0
  14. data/{lib/concerns → config/initializers}/thecore_rails_admin_export_concern.rb +0 -0
  15. data/{lib/abilities/thecore_ui_rails_admin.rb → config/initializers/thecore_ui_rails_admin_abilities.rb} +0 -0
  16. data/config/initializers/thecore_ui_rails_admin_after_initialize.rb +71 -0
  17. data/config/initializers/thecore_ui_rails_admin_app_configs.rb +0 -12
  18. data/config/initializers/thecore_ui_rails_admin_assets.rb +9 -0
  19. data/config/initializers/{thecore_concern.rb → thecore_ui_rails_admin_concern.rb} +3 -3
  20. data/{lib/concerns/thecore_ui_rails_admin_used_token.rb → config/initializers/thecore_ui_rails_admin_invisible_models_concern.rb} +2 -2
  21. data/{lib/concerns → config/initializers}/thecore_ui_rails_admin_role.rb +2 -2
  22. data/config/initializers/thecore_ui_rails_admin_settings_concern.rb +14 -0
  23. data/{lib/concerns/thecore_ui_rails_admin_user.rb → config/initializers/thecore_ui_rails_admin_user_concern.rb} +2 -1
  24. data/config/locales/en.index_cards.custom.yml +8 -0
  25. data/config/locales/en.rails_admin.yml +6 -0
  26. data/config/locales/it.index_cards.custom.yml +20 -0
  27. data/config/locales/it.main.yml +0 -4
  28. data/config/locales/it.rails_admin.yml +9 -0
  29. data/config/routes.rb +3 -4
  30. data/lib/thecore_ui_rails_admin/engine.rb +1 -0
  31. data/lib/thecore_ui_rails_admin/version.rb +1 -1
  32. data/lib/thecore_ui_rails_admin.rb +0 -27
  33. metadata +34 -94
  34. data/app/assets/javascripts/rails_admin/custom/thecore-custom-1.js +0 -1
  35. data/app/assets/javascripts/rails_admin/custom/thecore-custom-2.js +0 -1
  36. data/app/assets/javascripts/rails_admin/custom/thecore-custom-3.js +0 -1
  37. data/app/assets/javascripts/rails_admin/custom/thecore-custom-4.js +0 -1
  38. data/app/assets/javascripts/rails_admin/custom/thecore-custom-5.js +0 -1
  39. data/app/assets/javascripts/rails_admin/custom/thecore.js +0 -1
  40. data/app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js +0 -77
  41. data/app/assets/stylesheets/rails_admin/custom/theming-custom-1.scss +0 -1
  42. data/app/assets/stylesheets/rails_admin/custom/theming-custom-2.scss +0 -1
  43. data/app/assets/stylesheets/rails_admin/custom/theming-custom-3.scss +0 -1
  44. data/app/assets/stylesheets/rails_admin/custom/theming-custom-4.scss +0 -1
  45. data/app/assets/stylesheets/rails_admin/custom/theming-custom-5.scss +0 -1
  46. data/app/assets/stylesheets/rails_admin/custom/variables.scss +0 -21
  47. data/app/assets/stylesheets/thecore_ui_rails_admin/animate.css +0 -3458
  48. data/app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss +0 -7
  49. data/app/assets/stylesheets/thecore_ui_rails_admin/common.scss +0 -43
  50. data/app/assets/stylesheets/thecore_ui_rails_admin/devise.scss +0 -241
  51. data/app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss +0 -28
  52. data/app/assets/stylesheets/thecore_ui_rails_admin/mixins.scss +0 -18
  53. data/app/assets/stylesheets/thecore_ui_rails_admin/thecore.scss +0 -45
  54. data/app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss +0 -243
  55. data/app/assets/stylesheets/thecore_ui_rails_admin/togglable-sidebar.scss +0 -89
  56. data/app/views/rails_admin/main/thecore_blazer_bi.html.erb +0 -5
  57. data/app/views/shared/_flash.html.erb +0 -10
  58. data/config/blazer.yml +0 -79
  59. data/config/initializers/rails_admin.rb +0 -105
  60. data/config/initializers/thecore_ui_rails_admin_load_root_actions_for.rb +0 -6
  61. data/lib/concerns/rails_admin_requirements.rb +0 -19
  62. data/lib/concerns/thecore_ui_rails_admin_permission.rb +0 -33
  63. data/lib/iframes/blazer_bi.rb +0 -59
  64. data/lib/iframes/sidekiq_monitor.rb +0 -59
@@ -2,6 +2,7 @@ module ThecoreUiRailsAdmin
2
2
  class Engine < ::Rails::Engine
3
3
  initializer 'thecore_ui_rails_admin.add_to_migrations' do |app|
4
4
  Thecore::Base.thecore_engines << self.class
5
+
5
6
  unless app.root.to_s.match root.to_s
6
7
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
7
8
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
2
+ VERSION = "3.0.0" #"#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
@@ -1,37 +1,10 @@
1
1
  require 'thecore_ui_commons'
2
- # Rails Admin
3
- # ENV['RAILS_ADMIN_THEME'] ||= 'rollincode'
4
- # require 'rails_admin_rollincode'
5
2
  require 'rails_admin'
6
3
  require 'rails_admin-i18n'
7
- # require 'safe_yaml'
8
4
  require 'rails_admin_toggleable'
9
- require 'rails_admin_selectize'
10
- require 'concerns/rails_admin_requirements'
11
- # Abilities
12
- require 'abilities/thecore_ui_rails_admin'
13
- # Rails Admin Buildups
14
- # require 'jquery-ui-rails'
15
- require 'bootstrap-sass'
16
-
17
- require 'concerns/thecore_ui_rails_admin_user'
18
- require 'concerns/thecore_ui_rails_admin_used_token'
19
- require 'concerns/thecore_ui_rails_admin_role'
20
- require 'concerns/thecore_ui_rails_admin_permission'
21
- require 'concerns/thecore_rails_admin_export_concern'
22
- require 'concerns/thecore_rails_admin_bulk_delete_concern'
23
-
24
- require 'blazer'
25
5
 
26
6
  require "thecore_ui_rails_admin/engine"
27
7
 
28
8
  module ThecoreUiRailsAdmin
29
- # Rails Admin Settings
30
- # SafeYAML::OPTIONS[:default_mode] = :safe
31
- # SafeYAML::OPTIONS[:deserialize_symbols] = false
32
9
  end
33
10
 
34
- require 'iframes/sidekiq_monitor'
35
-
36
- ## Business Intelligence (must be tested)
37
- # require 'iframes/blazer_bi'
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.7.5
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -16,56 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.5'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.5'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bootstrap-sass
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.4'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.4'
41
- - !ruby/object:Gem::Dependency
42
- name: coffee-rails
28
+ name: rails_admin
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '5.0'
33
+ version: '3.1'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '5.0'
40
+ version: '3.1'
55
41
  - !ruby/object:Gem::Dependency
56
- name: rails_admin
42
+ name: sassc-rails
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - "~>"
45
+ - - ">="
60
46
  - !ruby/object:Gem::Version
61
- version: '2.0'
47
+ version: '0'
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - "~>"
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
- version: '2.0'
54
+ version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rails_admin-i18n
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,34 +80,6 @@ dependencies:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0.7'
97
- - !ruby/object:Gem::Dependency
98
- name: rails_admin_selectize
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '2.0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '2.0'
111
- - !ruby/object:Gem::Dependency
112
- name: blazer
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
83
  description: Holds all base dependencies and configurations to have a thecore integrated
126
84
  with Rails Admin.
127
85
  email:
@@ -134,60 +92,42 @@ files:
134
92
  - README.md
135
93
  - Rakefile
136
94
  - app/assets/config/thecore_ui_rails_admin_manifest.js
137
- - app/assets/javascripts/rails_admin/custom/thecore-custom-1.js
138
- - app/assets/javascripts/rails_admin/custom/thecore-custom-2.js
139
- - app/assets/javascripts/rails_admin/custom/thecore-custom-3.js
140
- - app/assets/javascripts/rails_admin/custom/thecore-custom-4.js
141
- - app/assets/javascripts/rails_admin/custom/thecore-custom-5.js
142
- - app/assets/javascripts/rails_admin/custom/thecore.js
95
+ - app/assets/javascripts/rails_admin/custom/thecore/ui.js
143
96
  - app/assets/javascripts/rails_admin/custom/ui.js
144
- - app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js
145
- - app/assets/stylesheets/rails_admin/custom/theming-custom-1.scss
146
- - app/assets/stylesheets/rails_admin/custom/theming-custom-2.scss
147
- - app/assets/stylesheets/rails_admin/custom/theming-custom-3.scss
148
- - app/assets/stylesheets/rails_admin/custom/theming-custom-4.scss
149
- - app/assets/stylesheets/rails_admin/custom/theming-custom-5.scss
97
+ - app/assets/stylesheets/rails_admin/custom/mixins.scss
98
+ - app/assets/stylesheets/rails_admin/custom/thecore/mixins.scss
99
+ - app/assets/stylesheets/rails_admin/custom/thecore/theming.scss
100
+ - app/assets/stylesheets/rails_admin/custom/thecore/variables.scss
150
101
  - app/assets/stylesheets/rails_admin/custom/theming.scss
151
- - app/assets/stylesheets/rails_admin/custom/variables.scss
152
- - app/assets/stylesheets/thecore_ui_rails_admin/animate.css
153
- - app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss
154
- - app/assets/stylesheets/thecore_ui_rails_admin/common.scss
155
- - app/assets/stylesheets/thecore_ui_rails_admin/devise.scss
156
- - app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss
157
- - app/assets/stylesheets/thecore_ui_rails_admin/mixins.scss
158
- - app/assets/stylesheets/thecore_ui_rails_admin/thecore.scss
159
- - app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss
160
- - app/assets/stylesheets/thecore_ui_rails_admin/togglable-sidebar.scss
102
+ - app/assets/stylesheets/rails_admin/custom/variables.scss.erb
161
103
  - app/controllers/pages_controller.rb
162
104
  - app/helpers/devise_bootstrap_errors_helper.rb
163
105
  - app/helpers/thecore_helper.rb
164
- - app/views/rails_admin/main/thecore_blazer_bi.html.erb
165
- - app/views/rails_admin/main/thecore_sidekiq_monitor.html.erb
166
- - app/views/shared/_flash.html.erb
167
- - config/blazer.yml
168
- - config/initializers/rails_admin.rb
169
- - config/initializers/thecore_concern.rb
106
+ - app/views/layouts/_navigation.html.erb
107
+ - app/views/layouts/_navigation_links.html.erb
108
+ - app/views/rails_admin/main/active_job_monitor.html.erb
109
+ - config/initializers/thecore_rails_admin_bulk_delete_concern.rb
110
+ - config/initializers/thecore_rails_admin_export_concern.rb
111
+ - config/initializers/thecore_ui_rails_admin_abilities.rb
112
+ - config/initializers/thecore_ui_rails_admin_after_initialize.rb
170
113
  - config/initializers/thecore_ui_rails_admin_app_configs.rb
171
- - config/initializers/thecore_ui_rails_admin_load_root_actions_for.rb
114
+ - config/initializers/thecore_ui_rails_admin_assets.rb
115
+ - config/initializers/thecore_ui_rails_admin_concern.rb
116
+ - config/initializers/thecore_ui_rails_admin_invisible_models_concern.rb
117
+ - config/initializers/thecore_ui_rails_admin_role.rb
118
+ - config/initializers/thecore_ui_rails_admin_settings_concern.rb
119
+ - config/initializers/thecore_ui_rails_admin_user_concern.rb
120
+ - config/locales/en.index_cards.custom.yml
172
121
  - config/locales/en.main.yml
173
122
  - config/locales/en.rails_admin.yml
174
123
  - config/locales/en.rollincode.yml
124
+ - config/locales/it.index_cards.custom.yml
175
125
  - config/locales/it.main.yml
176
126
  - config/locales/it.rails_admin.yml
177
127
  - config/locales/it.rollincode.yml
178
128
  - config/routes.rb
179
129
  - db/migrate/20220124113739_install_blazer.rb
180
130
  - db/seeds.rb
181
- - lib/abilities/thecore_ui_rails_admin.rb
182
- - lib/concerns/rails_admin_requirements.rb
183
- - lib/concerns/thecore_rails_admin_bulk_delete_concern.rb
184
- - lib/concerns/thecore_rails_admin_export_concern.rb
185
- - lib/concerns/thecore_ui_rails_admin_permission.rb
186
- - lib/concerns/thecore_ui_rails_admin_role.rb
187
- - lib/concerns/thecore_ui_rails_admin_used_token.rb
188
- - lib/concerns/thecore_ui_rails_admin_user.rb
189
- - lib/iframes/blazer_bi.rb
190
- - lib/iframes/sidekiq_monitor.rb
191
131
  - lib/tasks/thecore_ui_rails_admin_tasks.rake
192
132
  - lib/thecore_ui_rails_admin.rb
193
133
  - lib/thecore_ui_rails_admin/engine.rb
@@ -212,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
152
  - !ruby/object:Gem::Version
213
153
  version: '0'
214
154
  requirements: []
215
- rubygems_version: 3.0.3.1
155
+ rubygems_version: 3.3.26
216
156
  signing_key:
217
157
  specification_version: 4
218
158
  summary: Thecore2 Backend UI based on Rails Admin.
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1 +0,0 @@
1
- /* Please Override in your application or in a wrapper gem */
@@ -1,77 +0,0 @@
1
- //= require thecore_ui_commons/thecore
2
- //= require selectize
3
-
4
- $(document).on('ready pjax:success', function(e) {
5
- handleActiveBase();
6
-
7
- function handleActiveBase() {
8
- $('.sub-menu').each(function() {
9
- if ($(this).hasClass('active')) {
10
- $(this).parent().prev().addClass('active');
11
- $(this).parent().prev().addClass('open');
12
- $(this).parent().slideDown();
13
- }
14
- });
15
- }
16
- // home dashboard dark theme
17
- if ((new RegExp('app/$').test(e.currentTarget.URL) || new RegExp('app$').test(e.currentTarget.URL)) && !new RegExp('app/app').test(e.currentTarget.URL)) {
18
- $('.page-header, .content').addClass('dashboard');
19
- } else {
20
- $('.page-header, .content').removeClass('dashboard');
21
- }
22
- });
23
-
24
- $(function() {
25
- var array_menu = [];
26
- var lvl_1 = null;
27
- var count = 0;
28
-
29
- $('.sidebar-nav li').each(function(index, item) {
30
- if ($(item).hasClass('dropdown-header')) {
31
- lvl_1 = count++;
32
- array_menu[lvl_1] = []
33
- } else {
34
- $(item).addClass('sub-menu sub-menu-' + lvl_1);
35
- }
36
- });
37
-
38
- for (var i = 0; i <= array_menu.length; i++) {
39
- $('.sub-menu-' + i).wrapAll("<div class='sub-menu-container' />");
40
- }
41
-
42
- $('.sub-menu-container').hide();
43
-
44
- handleActiveBase();
45
-
46
- function handleActiveBase() {
47
- $('.sub-menu').each(function() {
48
- if ($(this).hasClass('active')) {
49
- $(this).parent().prev().addClass('active');
50
- $(this).parent().slideDown();
51
- }
52
- });
53
- }
54
-
55
- $('.dropdown-header').bind('click', function() {
56
- $('.dropdown-header').removeClass('open'); //Rimuove tutte le classi open
57
- $(this).toggleClass('open'); // Apre la corrente
58
- // Se la corrente è già aperta, allora la chiude
59
-
60
- $('.dropdown-header').removeClass('active');
61
- $('.sub-menu-container').stop().slideUp();
62
- $(this).toggleClass('active');
63
- $(this).next('.sub-menu-container').stop().slideDown();
64
- });
65
- });
66
-
67
- $(document).ready(function () {
68
- // All pjax in sidebar-nav make the menu disappear when clicked
69
- $(".sidebar-nav a[class=pjax]").on("click", function(){
70
- $('#wrapper').toggleClass('toggled');
71
- });
72
-
73
- $('#sidebar-collapse').on('click', function() {
74
- $('#wrapper').toggleClass('toggled');
75
- });
76
-
77
- });
@@ -1 +0,0 @@
1
- // Please override in your application or wrapper engine
@@ -1 +0,0 @@
1
- // Please override in your application or wrapper engine
@@ -1 +0,0 @@
1
- // Please override in your application or wrapper engine
@@ -1 +0,0 @@
1
- // Please override in your application or wrapper engine
@@ -1 +0,0 @@
1
- // Please override in your application or wrapper engine
@@ -1,21 +0,0 @@
1
- $primary: #1f4068 !default;
2
-
3
- $background: lighten($primary, 51%) !default;
4
- $shadows: darken($primary, 10%) !default;
5
-
6
- $text: darken($primary, 40%) !default;
7
- $text-highlight: lighten($text, 80%) !default;
8
-
9
- $link: $text !default;
10
- $link-highlight: lighten($link, 10%) !default;
11
-
12
- $element: $primary !default;
13
- $element-text: lighten($element, 40%) !default;
14
- $element-text-highlight: lighten($element-text, 10%) !default;
15
- $element-border: darken($element, 10%) !default;
16
-
17
- $neutral: #706f6f !default;
18
- $success: #37BC9B !default;
19
- $info: #3BAFDA !default;
20
- $danger: #E9573F !default;
21
- $warning: #F6BB42 !default;