administrador 0.0.30.pre → 0.0.32.pre

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: 8d0d8000ae9288c26f8ac3a7fc8d21285abd251da3615ac1a878edd84ea83631
4
- data.tar.gz: 6ca07e3d122594f25b115d4e963d03964024770549b29b42aea4a24470f16cc9
3
+ metadata.gz: 9a795afc995a27ab9be96b39852589b1c37b3a7403cace8eb7b1f621fac1e180
4
+ data.tar.gz: 9162001d323c54f072bfef31848d045b0ae1cf4f2433bf9bb6f6983c1f0a3efe
5
5
  SHA512:
6
- metadata.gz: c08bf0cfac988d8c3966274567a9611cf0d14c2d765f275a5374de8e6c8dcc70eb24012fe72316b2c497f09eaa0102d17904593cb1f6821ac73a3415f74b1799
7
- data.tar.gz: a0eaced5fad91caae9fb2e4c93a846c8d52846416707cfc0661cb9d52424c6029d1bdf190741cf584d22a7fc78cd9bdb974ab44f19f71d6dcc48a2a809e1ff5a
6
+ metadata.gz: a83c5bb99c258d50ca62bb2b82150b49ae4dd7af16a6d2a3b158989d51c8be9484b4d1eded17b4d9ff45d58b8a437a4c5901baae1c7acd271f484f676eba0fb4
7
+ data.tar.gz: 467ee89df77b2b3debc1c8aaa11a318041b51e6f650c4a60e30b1eb7e93acb40b4f5fc048a7dba507997ba9d328b25d5f572ecab56636ca5413e647ef82ba4cd
@@ -31,7 +31,7 @@ module Administrador
31
31
 
32
32
  def body_html
33
33
  css_classes = ['administrador', 'd-flex flex-column h-100', c.controller.class.name.underscore.gsub('/', '-').chomp('_controller'), c.action_name].compact.join(' ')
34
- { class: css_classes }
34
+ { class: css_classes, "data-turbo": "false" }
35
35
  end
36
36
 
37
37
  def render_registered_engine_widget(registered_engine)
@@ -3,7 +3,7 @@
3
3
  .row
4
4
  .col-12
5
5
  - administrador_helper(self).registered_engines.each_with_index do |(engine), index|
6
- - next unless engine.options[:show_in_engine_sidebar]
6
+ - next unless engine.options[:show].respond_to?(:call) ? instance_exec(&engine.options[:show]) : engine.options[:show]
7
7
  .administrador-engine.mb-4.text-secondary{ id: dom_id(engine), class: dom_class(engine) }
8
8
  %h6.administrador-engine-name.d-flex.text-uppercase
9
9
  %i.fas.fa-home.mr-1
@@ -0,0 +1,5 @@
1
+ .row
2
+ - administrador_helper(self).registered_engines.each do |engine|
3
+ - next unless engine.options[:show].respond_to?(:call) ? instance_exec(&engine.options[:show]) : engine.options[:show]
4
+ .col-lg-6.col-xl-4
5
+ = administrador_helper(self).render_registered_engine_widget(engine)
@@ -32,6 +32,7 @@
32
32
  = csp_meta_tag
33
33
  = stylesheet_link_tag "administrador", media: "all"
34
34
  = javascript_include_tag "administrador"
35
+ = turbo_include_tags if respond_to?(:turbo_include_tags)
35
36
 
36
37
  = render partial: 'html_head_extras'
37
38
  %body{ administrador_helper(self).body_html }
@@ -42,6 +42,8 @@ de:
42
42
  base:
43
43
  create:
44
44
  title: "%{service_name} ausgeführt"
45
+ create_actions:
46
+ back: "Zurück"
45
47
  new:
46
48
  title: "%{service_name} ausführen"
47
49
  new_actions:
@@ -42,6 +42,8 @@ en:
42
42
  base:
43
43
  create:
44
44
  title: "Ran %{service_name}"
45
+ create_actions:
46
+ back: "Zurück"
45
47
  new:
46
48
  title: "Run %{service_name}"
47
49
  new_actions:
@@ -66,7 +66,7 @@ module Administrador
66
66
  def initialize(attributes = {})
67
67
  options = attributes.delete(:options)
68
68
  options.reverse_merge!(
69
- show_in_engine_sidebar: true
69
+ show: true
70
70
  )
71
71
  attributes.merge(options: options).each do |key, value|
72
72
  send("#{key}=", value)
@@ -1,3 +1,3 @@
1
1
  module Administrador
2
- VERSION = '0.0.30.pre'.freeze
2
+ VERSION = '0.0.32.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrador
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30.pre
4
+ version: 0.0.32.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-27 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -477,8 +477,8 @@ files:
477
477
  - app/views/administrador/application_view_helper/_render_engine_sidebars.html.haml
478
478
  - app/views/administrador/application_view_helper/_render_registered_engine_widget.html.haml
479
479
  - app/views/administrador/home/_html_head_extras.html.haml
480
- - app/views/administrador/home/index.de.html.haml
481
- - app/views/administrador/home/index.en.html.haml
480
+ - app/views/administrador/home/index.en.html.haml~
481
+ - app/views/administrador/home/index.html.haml
482
482
  - app/views/administrador/home_controller/base/_html_head_extras.html.haml
483
483
  - app/views/administrador/home_controller/base/_index_extras.html.haml
484
484
  - app/views/administrador/home_controller/base/index.html.haml
@@ -1,4 +0,0 @@
1
- .row
2
- - administrador_helper(self).registered_engines.each do |registered_engine|
3
- .col-lg-6.col-xl-4
4
- = administrador_helper(self).render_registered_engine_widget(registered_engine)