thecore_ui_rails_admin 3.1.3 → 3.1.5

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: de21bd3095fe590f84a28f76e3d2375ae7a312dc3d634d4195558b8288844b83
4
- data.tar.gz: 4179f75cbc74ac5dcdf80f23fdc2c1261cf1603906027cb10c869cb624ed12ac
3
+ metadata.gz: 932c2c207c20a0407a56b004d23f628b356abe71aa2c0e9682edff3b61debf7c
4
+ data.tar.gz: 0366f9a04430794cf6768db1a8b7178742d3f6d5132c72e5efda859ae8892b52
5
5
  SHA512:
6
- metadata.gz: cdb0c666a88c9b7b9285c5fb8c16eee91eb46517497311d37622b602c688d401fc54df84d330b7d20cbe980240e4513c3f1163367e77936eeecf445141d52494
7
- data.tar.gz: ab8cd617434e1785e531877a7f0fe0817b825f12b5ccc358c277ba7f00fdefc8ebdea7499b85962db6dc231d5d55030b8ef1c7a6665d7af2c1ba20bc52934258
6
+ metadata.gz: 9b75bb9eee35607a56e3258be9fbf163e03002ed85b2c10b3658932b1259c5564af6a622b9c618b4b87c787d5e8f721bfedc91bac5555542e6407ea507fb8615
7
+ data.tar.gz: 9dcf9c4710ba55f884ba349a6d18acdd9ef396f4fa886bd1c067fddab46da320013b7ed2e93c807696e8151e211312b1619169157e1e2fb378ec4ca10132ce92
@@ -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 %>
@@ -27,31 +27,6 @@ Rails.application.configure do
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
29
 
30
- RailsAdmin::Config::Actions.add_action "active_job_monitor", :base, :root do
31
- show_in_sidebar true
32
- show_in_navigation false
33
- breadcrumb_parent [nil]
34
- # This ensures the action only shows up for Users
35
- # visible? authorized?
36
- # Not a member action
37
- member false
38
- # Not a colleciton action
39
- collection false
40
-
41
- link_icon 'fas fa-eye'
42
-
43
- # You may or may not want pjax for your action
44
- # pjax? true
45
-
46
- http_methods [:get]
47
- # Adding the controller which is needed to compute calls from the ui
48
- controller do
49
- proc do # This is needed because we need that this code is re-evaluated each time is called
50
- puts "Loading Active Job Monitor Controller"
51
- end
52
- end
53
- end
54
-
55
30
  RailsAdmin::Config::Actions::Export.send(:include, ExportConcern)
56
31
  RailsAdmin::Config::Actions::BulkDelete.send(:include, BulkDeleteConcern)
57
32
  Role.send :include, ThecoreUiRailsAdminRoleConcern
@@ -63,5 +38,7 @@ Rails.application.configure do
63
38
  Predicate.send :include, ThecoreUiRailsAdminPredicateConcern
64
39
  Target.send :include, ThecoreUiRailsAdminTargetConcern
65
40
  ThecoreSettings::Setting.send :include, ThecoreUiRailsAdminSettingsConcern
41
+
42
+ require 'root_actions/active_job_monitor'
66
43
  end
67
44
  end
@@ -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.5".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.3
4
+ version: 3.1.5
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-04-04 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
@@ -78,6 +78,8 @@ files:
78
78
  - app/assets/stylesheets/rails_admin/custom/thecore/variables.scss
79
79
  - app/assets/stylesheets/rails_admin/custom/theming.scss
80
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
81
83
  - app/views/rails_admin/main/_dashboard_block.html.erb
82
84
  - app/views/rails_admin/main/_form_boolean.html.erb
83
85
  - app/views/rails_admin/main/active_job_monitor.html.erb
@@ -106,6 +108,7 @@ files:
106
108
  - config/locales/it.rails_admin.yml
107
109
  - config/locales/it.rollincode.yml
108
110
  - db/seeds.rb
111
+ - lib/root_actions/active_job_monitor.rb
109
112
  - lib/tasks/thecore_ui_rails_admin_tasks.rake
110
113
  - lib/thecore_ui_rails_admin.rb
111
114
  - lib/thecore_ui_rails_admin/engine.rb
@@ -132,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
135
  - !ruby/object:Gem::Version
133
136
  version: '0'
134
137
  requirements: []
135
- rubygems_version: 3.3.26
138
+ rubygems_version: 3.4.10
136
139
  signing_key:
137
140
  specification_version: 4
138
141
  summary: Thecore Backend UI based on Rails Admin.