pg_rails 7.0.8.pre.alpha.33 → 7.0.8.pre.alpha.35

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: ec868e572a9977046d6767cf26f5864820b964653f16ec9e1ea70db275172eb4
4
- data.tar.gz: fa57743d6079fce5d55f50f602c3d0008d26d39e098c958da35592e660916b88
3
+ metadata.gz: 93eefb2a65a83f488ee2d3cc62e955844b5eb497aa3425714ca9ff1ad0e63f2f
4
+ data.tar.gz: ec802a0a627d82d7f6abe4afed70bb08a764a93c29941657d3a8e9056a635ad1
5
5
  SHA512:
6
- metadata.gz: 42ab16460b70800db32ea4d25f734810ba46cf7316bfd55116febd672e218c9ca0dde03c68ff5a61b6cf3720752d8843cd196d6b47f7ba891ac3fd9c16fa4310
7
- data.tar.gz: f8a5b4b75f39f4d6becb8d6690a95b0579a2331c8b4ed4e32e8fe82b44b2982f307946f0463334d12354b89b654f0509c1455515ffa7476954ba0ff2b1d4dd45
6
+ metadata.gz: b5dc96061a84f93538f5357b4d4638580101c65b338310f619e26436d096788bef33d923549872148da73d1fe05b560cbb8f3eede283576a3bc160380b1f0bb6
7
+ data.tar.gz: 437c2837c6595cf6df6d2e9fb05b446bc1e65c22743a89dae9f5fb4b7eb9ac2be71f4892854ab5a7d29f69fdfdcc943ec79683cdfb3261f1d8e49d2cf4f4244e
@@ -10,6 +10,9 @@ table.table.table-borderless.table-sm.w-auto.mb-0.m-3
10
10
  tr
11
11
  th = @clase_modelo.human_attribute_name(att)
12
12
  td = @user.send(att)
13
+ tr
14
+ th = t('attributes.confirmed_at')
15
+ td = @user.confirmed_at
13
16
  / tr
14
17
  th = t('attributes.creado_por')
15
18
  td = @user.creado_por
@@ -8,6 +8,7 @@ es:
8
8
  created_at: Fecha de creación
9
9
  updated_at: Fecha de actualización
10
10
  discarded_at: Fecha de borrado
11
+ confirmed_at: Fecha de confirmación
11
12
  actualizado_por: Actualizado por
12
13
  creado_por: Creado por
13
14
  form:
@@ -18,7 +19,7 @@ es:
18
19
  "yes": 'Sí'
19
20
  "no": 'No'
20
21
  required:
21
- text: 'required'
22
+ text: 'Obligatorio'
22
23
  mark: '*'
23
24
  # You can uncomment the line below if you need to overwrite the whole required html.
24
25
  # When using html, text and mark won't be used.
@@ -3,6 +3,10 @@
3
3
 
4
4
  import { createConsumer } from '@anycable/web'
5
5
 
6
+ let cableProtocol = document.head.querySelector('meta[name=actioncable-protocol]')
7
+ cableProtocol = cableProtocol && cableProtocol.content
8
+ cableProtocol = cableProtocol || 'actioncable-v1-ext-json'
9
+
6
10
  export default createConsumer({
7
- protocol: 'actioncable-v1-ext-json'
11
+ protocol: cableProtocol
8
12
  })
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".resend_confirmation_instructions") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
  <%= f.full_error :confirmation_token %>
6
6
 
7
7
  <div class="form-inputs">
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".change_your_password") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <%= f.input :reset_password_token, as: :hidden %>
7
7
  <%= f.full_error :reset_password_token %>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".forgot_your_password") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <div class="form-inputs">
7
7
  <%= f.input :email,
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".title", resource: devise_i18n_fix_model_name_case(resource.model_name.human, i18n_key: "registrations.edit.title")) %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <div class="form-inputs">
7
7
  <%= f.input :email, required: true, autofocus: true %>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".resend_unlock_instructions") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
  <%= f.full_error :unlock_token %>
6
6
 
7
7
  <div class="form-inputs">
@@ -16,10 +16,14 @@ html
16
16
 
17
17
  = stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
18
18
  = javascript_include_tag 'application', 'data-turbo-track': 'reload', type: 'module'
19
+ meta(name="actioncable-protocol"
20
+ content="#{Rails.env.test? ? 'actioncable-v1-json' : 'actioncable-v1-ext-json'}")
19
21
  - if @rollbar_token.present?
20
22
  meta name="rollbar-token" content="#{@rollbar_token}"
21
23
  meta name="rollbar-env" content="#{Rails.env}"
22
24
  body
25
+ = render partial: 'pg_layout/sidebar_mobile'
26
+
23
27
  div class="#{ @sidebar == false ? '' : 'with-sidebar' }"
24
28
  - unless @sidebar == false
25
29
  = render partial: 'pg_layout/sidebar'
@@ -4,12 +4,17 @@
4
4
  <button data-controller="navbar" data-action="navbar#expandNavbar" class="btn btn-outline-primary me-2 d-none d-<%= @breakpoint_navbar_expand %>-inline-block">
5
5
  <i class="bi bi-list"></i>
6
6
  </button>
7
+
8
+ <button class="btn btn-outline-primary d-inline-block d-<%= @breakpoint_navbar_expand %>-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
9
+ <i class="bi bi-list"></i>
10
+ </button>
11
+
7
12
  <% end %>
8
13
  <!-- <a class="navbar-brand" href="#">Navbar</a> -->
9
- <button class="navbar-toggler btn btn-outline-primary me-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
14
+ <%# <button class="navbar-toggler btn btn-outline-primary me-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
10
15
  <i class="bi bi-list"></i>
11
16
  <!-- <span class="navbar-toggler-icon"></span> -->
12
- </button>
17
+ </button> %>
13
18
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
14
19
  <ul class="navbar-nav mb-2 mb-lg-0">
15
20
  <% @navbar.bar('topbar.before').each do |entry| %>
@@ -44,16 +49,6 @@
44
49
  </li>
45
50
  </ul>
46
51
  </li>
47
- <%# Los item de sidebar en mobile %>
48
- <% @navbar.bar('sidebar').each do |entry| %>
49
- <% next if @navbar.hide_entry?(entry) %>
50
- <% random_id = rand(99999).to_s %>
51
- <li class="nav-item d-md-none">
52
- <a class="nav-link" href="<%= entry[:path] %>" role="button">
53
- <%= entry[:title] %>
54
- </a>
55
- </li>
56
- <% end %>
57
52
  <% end %>
58
53
  </ul>
59
54
  <% unless user_signed_in? %>
@@ -0,0 +1,97 @@
1
+ <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
2
+ <div class="offcanvas-header">
3
+ <h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
4
+ <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
5
+ </div>
6
+ <div class="offcanvas-body">
7
+ <ul class="navbar-nav mb-2 mb-lg-0">
8
+ <% @navbar.bar('topbar.before').each do |entry| %>
9
+ <li class="nav-item">
10
+ <a class="nav-link" href="<%= entry[:path] %>">
11
+ <%= entry[:title] %>
12
+ </a>
13
+ </li>
14
+ <% end %>
15
+ <% if user_signed_in? %>
16
+ <li class="nav-item dropdown">
17
+ <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
18
+ <%= current_user %>
19
+ </a>
20
+ <ul class="dropdown-menu">
21
+ <% if policy(current_user).edit? %>
22
+ <li>
23
+ <%= link_to "Mi perfil", edit_user_registration_path, class: 'dropdown-item' %>
24
+ </li>
25
+ <% end %>
26
+ <% @navbar.bar('topbar.dropdown_user').each do |entry| %>
27
+ <% next if @navbar.hide_entry?(entry) %>
28
+ <li>
29
+ <a class="dropdown-item" href="<%= entry[:path] %>">
30
+ <%= entry[:title] %>
31
+ </a>
32
+ </li>
33
+ <% end %>
34
+
35
+ <li>
36
+ <%= link_to t("devise.sign_out"), destroy_user_session_path, data: { 'turbo-method': 'delete' }, class: 'dropdown-item' %>
37
+ </li>
38
+ </ul>
39
+ </li>
40
+ <% end %>
41
+ </ul>
42
+ <% unless user_signed_in? %>
43
+ <%= link_to t("devise.sign_up"), new_user_registration_path, class: 'btn btn-success' %>
44
+ <ul class="navbar-nav mb-2 mb-lg-0">
45
+ <li class="nav-item">
46
+ <%= link_to t("devise.sign_in"), new_user_session_path, class: 'nav-link' %>
47
+ </li>
48
+ </ul>
49
+ <% end %>
50
+ <% @navbar.extensiones.each do |extension| %>
51
+ <%= extension %>
52
+ <% end %>
53
+
54
+
55
+ <% if user_signed_in? %>
56
+ <div class="sidebar--large-items">
57
+ <hr>
58
+ <%# <div class="sidebar--small-items">
59
+ <ul class="list-unstyled ps-0">
60
+ <li class="mb-1 text-center">
61
+ <a href="javascript:void(0)" class="nav-link" data-bs-toggle="tooltip" data-bs-title="Agenda">
62
+ <i class="bi bi-calendar"></i>
63
+ </a>
64
+ </li>
65
+ </ul>
66
+ </div> %>
67
+ <div class="sidebar--large-items">
68
+ <ul class="list-unstyled ps-0">
69
+ <% @navbar.bar('sidebar').each do |entry| %>
70
+ <% next if @navbar.hide_entry?(entry) %>
71
+ <% random_id = rand(99999).to_s %>
72
+ <li class="mb-1">
73
+ <% if entry[:children].present? %>
74
+ <button class="btn btn-toggle d-inline-flex align-items-center rounded border-0 collapsed" data-bs-toggle="collapse" data-bs-target="#<%= 'collapse-' + random_id %>" aria-expanded="true">
75
+ <%= entry[:title] %>
76
+ </button>
77
+ <div class="collapse <%= @navbar.any_children_active?(entry, request) ? 'show' : '' %>" id="<%= 'collapse-' + random_id %>">
78
+ <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
79
+ <% entry[:children].each do |child| %>
80
+ <% next if @navbar.hide_entry?(child) %>
81
+ <li><a href="<%= child[:path] %>" class="<%= @navbar.active_entry?(child, request) ? 'active' : '' %> d-inline-flex text-decoration-none rounded"><%= child[:title] %></a></li>
82
+ <% end %>
83
+ </ul>
84
+ </div>
85
+ <% else %>
86
+ <a href="<%= entry[:path] %>" class="<%= @navbar.active_entry?(entry, request) ? 'active' : '' %> d-inline-flex text-decoration-none ms-4"><%= entry[:title] %></a>
87
+ <% end %>
88
+ </li>
89
+ <% end %>
90
+ </ul>
91
+ <hr>
92
+ </div>
93
+ </div>
94
+ <% end %>
95
+
96
+ </div>
97
+ </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.33'
4
+ VERSION = '7.0.8-alpha.35'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.33
4
+ version: 7.0.8.pre.alpha.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-10 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -332,20 +332,6 @@ dependencies:
332
332
  - - "~>"
333
333
  - !ruby/object:Gem::Version
334
334
  version: 3.1.0
335
- - !ruby/object:Gem::Dependency
336
- name: faker
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - "~>"
340
- - !ruby/object:Gem::Version
341
- version: 3.2.3
342
- type: :runtime
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - "~>"
347
- - !ruby/object:Gem::Version
348
- version: 3.2.3
349
335
  - !ruby/object:Gem::Dependency
350
336
  name: puma
351
337
  requirement: !ruby/object:Gem::Requirement
@@ -570,6 +556,34 @@ dependencies:
570
556
  - - "~>"
571
557
  - !ruby/object:Gem::Version
572
558
  version: 3.2.0
559
+ - !ruby/object:Gem::Dependency
560
+ name: web-console
561
+ requirement: !ruby/object:Gem::Requirement
562
+ requirements:
563
+ - - "~>"
564
+ - !ruby/object:Gem::Version
565
+ version: 4.2.1
566
+ type: :development
567
+ prerelease: false
568
+ version_requirements: !ruby/object:Gem::Requirement
569
+ requirements:
570
+ - - "~>"
571
+ - !ruby/object:Gem::Version
572
+ version: 4.2.1
573
+ - !ruby/object:Gem::Dependency
574
+ name: stimulus-rails
575
+ requirement: !ruby/object:Gem::Requirement
576
+ requirements:
577
+ - - "~>"
578
+ - !ruby/object:Gem::Version
579
+ version: 1.3.3
580
+ type: :development
581
+ prerelease: false
582
+ version_requirements: !ruby/object:Gem::Requirement
583
+ requirements:
584
+ - - "~>"
585
+ - !ruby/object:Gem::Version
586
+ version: 1.3.3
573
587
  - !ruby/object:Gem::Dependency
574
588
  name: bullet
575
589
  requirement: !ruby/object:Gem::Requirement
@@ -794,6 +808,20 @@ dependencies:
794
808
  - - "~>"
795
809
  - !ruby/object:Gem::Version
796
810
  version: 1.0.5
811
+ - !ruby/object:Gem::Dependency
812
+ name: faker
813
+ requirement: !ruby/object:Gem::Requirement
814
+ requirements:
815
+ - - "~>"
816
+ - !ruby/object:Gem::Version
817
+ version: 3.2.3
818
+ type: :development
819
+ prerelease: false
820
+ version_requirements: !ruby/object:Gem::Requirement
821
+ requirements:
822
+ - - "~>"
823
+ - !ruby/object:Gem::Version
824
+ version: 3.2.3
797
825
  description: Rails goodies.
798
826
  email:
799
827
  - mrosso10@gmail.com
@@ -971,6 +999,7 @@ files:
971
999
  - pg_layout/app/views/pg_layout/_flash_alert.html.slim
972
1000
  - pg_layout/app/views/pg_layout/_navbar.html.erb
973
1001
  - pg_layout/app/views/pg_layout/_sidebar.html.erb
1002
+ - pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
974
1003
  - pg_layout/lib/pg_layout.rb
975
1004
  - pg_layout/lib/pg_layout/engine.rb
976
1005
  - pg_layout/spec/lib/navbar_spec.rb