thecore_ui_rails_admin 3.1.2 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e75c34df88567c95a7d7f3e237ea7fbc0bad27bcd39886582ff517cfb1ea7c3b
4
- data.tar.gz: 13b0dc0e88a87d59570d6d8a7b5496413425594999e36661d5469bf454efb336
3
+ metadata.gz: c166467e694623e950a02a9514c32949d7ee27ac2f4a2f88dcc97927ef6b336f
4
+ data.tar.gz: 2aa6bd8505db23176c286d2a87a244b9ce2cc1d049eff1f8bf15056333388b1a
5
5
  SHA512:
6
- metadata.gz: 42da27ddad28d3ad6ab6bcded18a52dc6e4f07d83cf5a9666c3a7a61b6a5c0aa39cfa8d12e44598bfaccd21a951be7bc7a7ed9b840e8165067590e6a97f3c7a4
7
- data.tar.gz: bd3db964423416a420e7670ab494375253596fe22b0b55086b432b709094d3c4c53bcb2e946324e12b044869fb6b04a433cebfef65750c4ae8ce8d5954d4911b
6
+ metadata.gz: bcff0b719103ba14522f17c07c5aed8c3474dccfa31807d03287de769c2867b9cacccd1e3d7538a32b37509e860a2bcf978b5c5a51547ebb11bc07c25c15deb3
7
+ data.tar.gz: 405d08f584e86272763fd4a94119406b9ea91ea160566542bac6f2e496d088231c5808cd8ca041218f11245def1646118ab1b9da7009c099747268ac3750049d
@@ -0,0 +1,13 @@
1
+ // Expose action cable
2
+ //= require actioncable
3
+ //= require_self
4
+ //= require_tree ../channels
5
+
6
+ import * as ActionCable from '@rails/actioncable'
7
+
8
+ ActionCable.logger.enabled = false;
9
+
10
+ window.App || (window.App = {});
11
+ window.App.cable = ActionCable.createConsumer();
12
+
13
+ console.log("Action Cable Exposed");
@@ -3,6 +3,7 @@
3
3
  //= require 'selectize.min'
4
4
  //= require 'thecore_ui_commons'
5
5
  //= require 'rails_admin/custom/thecore/ui'
6
+ //= require 'channels/index'
6
7
 
7
8
  const adjustIframe = function (obj) {
8
9
  console.log("Resizing");
@@ -62,4 +63,4 @@ function sideClose() {
62
63
  sidepanel).style.display = "none";
63
64
  // document.querySelector(
64
65
  // "openNav").style.display = "inline-block";
65
- }
66
+ }
@@ -0,0 +1,23 @@
1
+ <!-- Loads assets specific to the current action, works with Turbo, also //-->
2
+ <% case RailsAdmin::config.asset_source
3
+ when :webpacker %>
4
+ <%= stylesheet_pack_tag "#{controller_name}_#{action_name}", data: {'turbo-track': 'reload'} rescue nil %>
5
+ <%= javascript_pack_tag "#{controller_name}_#{action_name}", defer: true, data: {'turbo-track': 'reload'} rescue nil %>
6
+ <% when :sprockets %>
7
+ <%= stylesheet_link_tag "#{controller_name}_#{action_name}.css", media: :all, data: {'turbo-track': 'reload'} rescue nil %>
8
+ <%= javascript_include_tag "#{controller_name}_#{action_name}.js", defer: true, data: {'turbo-track': 'reload'} rescue nil %>
9
+ <% when :webpack %>
10
+ <%= stylesheet_link_tag "#{controller_name}_#{action_name}.css", media: :all, data: {'turbo-track': 'reload'} rescue nil %>
11
+ <%= javascript_include_tag "#{controller_name}_#{action_name}.js", defer: true, data: {'turbo-track': 'reload'} rescue nil %>
12
+ <% when :importmap %>
13
+ <%= stylesheet_link_tag "rails_admin.css", media: :all, data: {'turbo-track': 'reload'} %>
14
+ <%= javascript_inline_importmap_tag(RailsAdmin::Engine.importmap.to_json(resolver: self)) %>
15
+ <%= javascript_importmap_module_preload_tags(RailsAdmin::Engine.importmap) %>
16
+ <%= javascript_importmap_shim_nonce_configuration_tag %>
17
+ <%= javascript_importmap_shim_tag %>
18
+ <%= # Preload jQuery and make it global, unless jQuery UI fails to initialize
19
+ tag.script "import jQuery from 'jquery'; window.jQuery = jQuery;".html_safe, type: "module" %>
20
+ <%= javascript_import_module_tag "#{controller_name}_#{action_name}" rescue nil %>
21
+ <% else
22
+ raise "Unknown asset_source: #{RailsAdmin::config.asset_source}"
23
+ end %>
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html>
2
+ <html lang="<%= I18n.locale %>">
3
+ <head>
4
+ <%= render "layouts/rails_admin/head" %>
5
+ <%= render "layouts/rails_admin/controller_assets" %>
6
+ </head>
7
+ <body class="rails_admin">
8
+ <div data-i18n-options="<%= I18n.t("admin.js").to_json %>" id="admin-js"></div>
9
+ <div class="badge bg-warning" id="loading" style="display:none; position:fixed; right:20px; bottom:20px; z-index:100000">
10
+ <%= t('admin.loading') %>
11
+ </div>
12
+ <nav class="navbar navbar-expand-md fixed-top <%= RailsAdmin::Config.navbar_css_classes.join(' ') %>">
13
+ <%= render "layouts/rails_admin/navigation" %>
14
+ </nav>
15
+ <div class="container-fluid">
16
+ <div class="row">
17
+ <div class="col-sm-3 col-md-2 flex-wrap p-0">
18
+ <%= render "layouts/rails_admin/sidebar_navigation" %>
19
+ </div>
20
+ <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2">
21
+ <div class="container-fluid">
22
+ <%= render template: 'layouts/rails_admin/content' %>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </body>
28
+ </html>
@@ -10,7 +10,7 @@
10
10
  <% index = 0 %>
11
11
  <% end %>
12
12
  <div class="col-sm-4 dashboard-element">
13
- <a class="box pjax <%= colors[index] %>" href="<%= index_path %>">
13
+ <a class="box <%= colors[index] %>" href="<%= index_path %>">
14
14
  <div class="text-center">
15
15
  <p class="model">
16
16
  <%= abstract_model.config.label_plural %>
@@ -26,37 +26,6 @@ Rails.application.configure do
26
26
  RailsAdmin::Config.excluded_models << ActiveStorage::VariantRecord
27
27
  RailsAdmin::Config.excluded_models << ActionMailbox::InboundEmail
28
28
  RailsAdmin::Config.excluded_models << UsedToken rescue puts "No UsedToken Model it could be normal: maybe model_driven_api is not installed"
29
- # RailsAdmin::Config.excluded_models << RoleUser
30
- # RailsAdmin::Config.excluded_models << Predicate
31
- # RailsAdmin::Config.excluded_models << Target
32
- # RailsAdmin::Config.excluded_models << Action
33
- # RailsAdmin::Config.excluded_models << PermissionRole
34
- # RailsAdmin::Config.excluded_models << Permission
35
-
36
- RailsAdmin::Config::Actions.add_action "active_job_monitor", :base, :root do
37
- show_in_sidebar true
38
- show_in_navigation false
39
- breadcrumb_parent [nil]
40
- # This ensures the action only shows up for Users
41
- # visible? authorized?
42
- # Not a member action
43
- member false
44
- # Not a colleciton action
45
- collection false
46
-
47
- link_icon 'fas fa-eye'
48
-
49
- # You may or may not want pjax for your action
50
- # pjax? true
51
-
52
- http_methods [:get]
53
- # Adding the controller which is needed to compute calls from the ui
54
- controller do
55
- proc do # This is needed because we need that this code is re-evaluated each time is called
56
- puts "Loading Active Job Monitor Controller"
57
- end
58
- end
59
- end
60
29
 
61
30
  RailsAdmin::Config::Actions::Export.send(:include, ExportConcern)
62
31
  RailsAdmin::Config::Actions::BulkDelete.send(:include, BulkDeleteConcern)
@@ -69,5 +38,7 @@ Rails.application.configure do
69
38
  Predicate.send :include, ThecoreUiRailsAdminPredicateConcern
70
39
  Target.send :include, ThecoreUiRailsAdminTargetConcern
71
40
  ThecoreSettings::Setting.send :include, ThecoreUiRailsAdminSettingsConcern
41
+
42
+ require 'root_actions/active_job_monitor'
72
43
  end
73
44
  end
@@ -1,11 +1,3 @@
1
1
  Rails.application.config.assets.precompile += %w(
2
- rails_admin/custom/thecore/selectize.default.min.css
3
- selectize.min.js
4
- rails_admin/custom/thecore/mixins.css
5
- rails_admin/custom/thecore/variables.css
6
- rails_admin/custom/thecore/theming.css
7
- rails_admin/custom/ui.js
8
- rails_admin/custom/thecore/ui.js
9
- rails_admin/custom/dashboard.css
10
- devise/custom/thecore/sessions.scss
2
+ channels/index.js
11
3
  )
@@ -1,13 +1,30 @@
1
1
  en:
2
+ export: Export
3
+ export_all: Export All
4
+ export_found: Export Found
5
+ export_selected: Export Selected
6
+ delete_selected: Delete Selected
2
7
  yes: "Yes"
3
8
  no: "No"
4
9
  error: Error
5
10
  question: Question
6
- root_actions: Root Actions
11
+ root_actions: "Actions"
7
12
  admin:
13
+ misc:
14
+ root_navigation: Actions
15
+ advanced:
16
+ label: Advanced
17
+ logging:
18
+ label: Logging
19
+ registries:
20
+ label: Registries
21
+ operations:
22
+ label: Operations
23
+ master_data_set:
24
+ label: Registries
8
25
  js:
9
- true: True
10
- false: False
26
+ true: "True"
27
+ false: "False"
11
28
  is_present: Is present
12
29
  is_blank: Is blank
13
30
  date: Date ...
@@ -0,0 +1,21 @@
1
+ RailsAdmin::Config::Actions.add_action "active_job_monitor", :base, :root do
2
+ show_in_sidebar true
3
+ show_in_navigation false
4
+ breadcrumb_parent [nil]
5
+ # This ensures the action only shows up for Users
6
+ # visible? authorized?
7
+ # Not a member action
8
+ member false
9
+ # Not a colleciton action
10
+ collection false
11
+
12
+ link_icon 'fas fa-eye'
13
+
14
+ http_methods [:get]
15
+ # Adding the controller which is needed to compute calls from the ui
16
+ controller do
17
+ proc do # This is needed because we need that this code is re-evaluated each time is called
18
+ puts "Loading Active Job Monitor Controller"
19
+ end
20
+ end
21
+ end
@@ -1,3 +1,4 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
2
+ VERSION = "3.1.4".freeze
3
+ # "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
4
  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: 3.1.2
4
+ version: 3.1.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: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -63,6 +63,7 @@ files:
63
63
  - README.md
64
64
  - Rakefile
65
65
  - app/assets/config/thecore_ui_rails_admin_manifest.js
66
+ - app/assets/javascripts/channels/index.js
66
67
  - app/assets/javascripts/devise/sessions.js
67
68
  - app/assets/javascripts/rails_admin/custom/thecore/ui.js
68
69
  - app/assets/javascripts/rails_admin/custom/ui.js.erb
@@ -77,6 +78,8 @@ files:
77
78
  - app/assets/stylesheets/rails_admin/custom/thecore/variables.scss
78
79
  - app/assets/stylesheets/rails_admin/custom/theming.scss
79
80
  - app/assets/stylesheets/rails_admin/custom/variables.scss
81
+ - app/views/layouts/rails_admin/_controller_assets.html.erb
82
+ - app/views/layouts/rails_admin/application.html.erb
80
83
  - app/views/rails_admin/main/_dashboard_block.html.erb
81
84
  - app/views/rails_admin/main/_form_boolean.html.erb
82
85
  - app/views/rails_admin/main/active_job_monitor.html.erb
@@ -105,6 +108,7 @@ files:
105
108
  - config/locales/it.rails_admin.yml
106
109
  - config/locales/it.rollincode.yml
107
110
  - db/seeds.rb
111
+ - lib/root_actions/active_job_monitor.rb
108
112
  - lib/tasks/thecore_ui_rails_admin_tasks.rake
109
113
  - lib/thecore_ui_rails_admin.rb
110
114
  - lib/thecore_ui_rails_admin/engine.rb