thecore_ui_rails_admin 3.1.1 → 3.1.3

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: c7951663f1f903cad6c911ce8e22c4e8dedfa818ecc0caf3bbd5c84efb848f0f
4
- data.tar.gz: 7513283285501954b0b83c538d3a00066b9b0079b98d64af7f2ee61abfd8f802
3
+ metadata.gz: de21bd3095fe590f84a28f76e3d2375ae7a312dc3d634d4195558b8288844b83
4
+ data.tar.gz: 4179f75cbc74ac5dcdf80f23fdc2c1261cf1603906027cb10c869cb624ed12ac
5
5
  SHA512:
6
- metadata.gz: 808ab00cbd3c999d14a154c6976d62734782837a84f174fb3c08fed242fdd1bcbec2a51d7901107b7e7ec7d8dc7123031fd9b200aa4d0550e31f33cb19ce1a79
7
- data.tar.gz: f6d7dd9ad71727ce6c9eb97dab5cb585c62447ac4058c88a3a58cddd3edddc6d27024487785631bd9e009368965f1319160c53a3667f4480f04c1ead1ae8dc0e
6
+ metadata.gz: cdb0c666a88c9b7b9285c5fb8c16eee91eb46517497311d37622b602c688d401fc54df84d330b7d20cbe980240e4513c3f1163367e77936eeecf445141d52494
7
+ data.tar.gz: ab8cd617434e1785e531877a7f0fe0817b825f12b5ccc358c277ba7f00fdefc8ebdea7499b85962db6dc231d5d55030b8ef1c7a6665d7af2c1ba20bc52934258
@@ -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,10 @@
1
+ <%-cases={'1': [true, 'btn-outline-success'], '0': [false, 'btn-outline-danger']}%>
2
+ <%-cases[''] = [nil, 'btn-outline-secondary'] if field.nullable? %>
3
+ <div class="btn-group" role="group">
4
+ <% cases.each do |text, (value, btn_class)| %>
5
+ <%= form.radio_button field.method_name, text, field.html_attributes.reverse_merge({ checked: field.form_value == value, required: field.required, class: 'btn-check' }) %>
6
+ <label for="<%= form.object_name %>_<%= field.method_name %>_<%= text %>" class="<%= field.css_classes[value] %> btn <%= btn_class %>">
7
+ <%= field.labels[value].html_safe %>
8
+ </label>
9
+ <% end %>
10
+ </div>
@@ -26,12 +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
29
 
36
30
  RailsAdmin::Config::Actions.add_action "active_job_monitor", :base, :root do
37
31
  show_in_sidebar true
@@ -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
  )
@@ -6,16 +6,15 @@ module ThecoreUiRailsAdminUserConcern
6
6
 
7
7
  included do
8
8
 
9
- def admin_enum
10
- [["✔",true],['✘',false]]
11
- end
9
+ # def admin_enum
10
+ # [["✔",true],['✘',false]]
11
+ # end
12
12
 
13
- def locked_enum
14
- [["✔",true],['✘',false]]
15
- end
13
+ # def locked_enum
14
+ # [["✔",true],['✘',false]]
15
+ # end
16
16
 
17
17
  rails_admin do
18
- # rails_admin do
19
18
  navigation_label I18n.t("admin.settings.label")
20
19
  navigation_icon 'fa fa-user-circle'
21
20
  parent Role
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.1
4
+ version: 3.1.3
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-04-04 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
@@ -78,6 +79,7 @@ files:
78
79
  - app/assets/stylesheets/rails_admin/custom/theming.scss
79
80
  - app/assets/stylesheets/rails_admin/custom/variables.scss
80
81
  - app/views/rails_admin/main/_dashboard_block.html.erb
82
+ - app/views/rails_admin/main/_form_boolean.html.erb
81
83
  - app/views/rails_admin/main/active_job_monitor.html.erb
82
84
  - app/views/rails_admin/main/dashboard.html.erb
83
85
  - config/initializers/abilities.rb