thecore_ui_rails_admin 3.1.3 → 3.1.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 +4 -4
- data/app/views/layouts/rails_admin/_controller_assets.html.erb +23 -0
- data/app/views/layouts/rails_admin/application.html.erb +28 -0
- data/app/views/rails_admin/main/_dashboard_block.html.erb +1 -1
- data/config/initializers/after_initialize.rb +2 -25
- data/config/locales/en.main.yml +20 -3
- data/lib/root_actions/active_job_monitor.rb +21 -0
- data/lib/thecore_ui_rails_admin/version.rb +2 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c166467e694623e950a02a9514c32949d7ee27ac2f4a2f88dcc97927ef6b336f
|
4
|
+
data.tar.gz: 2aa6bd8505db23176c286d2a87a244b9ce2cc1d049eff1f8bf15056333388b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcff0b719103ba14522f17c07c5aed8c3474dccfa31807d03287de769c2867b9cacccd1e3d7538a32b37509e860a2bcf978b5c5a51547ebb11bc07c25c15deb3
|
7
|
+
data.tar.gz: 405d08f584e86272763fd4a94119406b9ea91ea160566542bac6f2e496d088231c5808cd8ca041218f11245def1646118ab1b9da7009c099747268ac3750049d
|
@@ -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
|
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
|
data/config/locales/en.main.yml
CHANGED
@@ -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:
|
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
|
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.
|
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-
|
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
|