pg_rails 7.0.8.pre.alpha.45 → 7.0.8.pre.alpha.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/admin/users.rb +1 -0
- data/pg_engine/app/assets/stylesheets/pg_rails_b5.scss +19 -8
- data/pg_engine/app/controllers/admin/users_controller.rb +2 -2
- data/pg_layout/app/javascript/application.js +6 -0
- data/pg_layout/app/lib/navbar.rb +1 -1
- data/pg_layout/app/views/devise/registrations/new.html.erb +6 -0
- data/pg_layout/app/views/devise/sessions/new.html.erb +6 -0
- data/pg_layout/app/views/layouts/pg_layout/base.html.slim +1 -1
- data/pg_layout/app/views/pg_layout/_flash.html.slim +1 -1
- data/pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb +1 -1
- data/pg_rails/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d00b1bbbfee181b3b277407e4f0c47f6ae4e46c3320843cd584c59f8f26e1923
|
4
|
+
data.tar.gz: 4b7333ebed2f3e2b38c66d61d1f62cca791417e39ac172262462519048f446c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b458f61a8143f3726da5ebefc6d05a8b83bd9ad0663804aa2b8cdbce3be6d2843564362c6aa15160ec75e4ce8eb932bfc6eae5166275fa32c8ab672b5a4dc8
|
7
|
+
data.tar.gz: 60ae139cd51262e8bdcd7bb687e0810f3eda3e0bcb32b3bb511b428a9153d7d5e24654c96e460ac9428861804db28d1770c63931f110c716f90e99b400066c93
|
@@ -21,14 +21,6 @@ form label {
|
|
21
21
|
font-weight: bold;
|
22
22
|
}
|
23
23
|
|
24
|
-
.form-control,
|
25
|
-
.form-select {
|
26
|
-
border: 1px solid #a7b7bb;
|
27
|
-
|
28
|
-
&:focus, &:focus-visible {
|
29
|
-
outline: 1px solid color.adjust(#a7b7bb, $saturation: +30%);
|
30
|
-
}
|
31
|
-
}
|
32
24
|
select[multiple] {
|
33
25
|
height: inherit;
|
34
26
|
}
|
@@ -84,3 +76,22 @@ input[type=datetime-local], input[type=datetime] {
|
|
84
76
|
border-radius: var(--bs-border-radius);
|
85
77
|
padding: 0.6em 0.4em;
|
86
78
|
}
|
79
|
+
|
80
|
+
|
81
|
+
.navbar {
|
82
|
+
@extend .bg-primary;
|
83
|
+
}
|
84
|
+
|
85
|
+
.offcanvas {
|
86
|
+
@extend .bg-primary;
|
87
|
+
}
|
88
|
+
|
89
|
+
:root {
|
90
|
+
--bs-border-radius-sm: 0.06rem;
|
91
|
+
--bs-border-radius: 0.1rem;
|
92
|
+
--bs-border-radius-lg: 0.25rem;
|
93
|
+
--bs-border-radius-xl: 0.45rem;
|
94
|
+
--bs-border-radius-xxl: 0.6rem;
|
95
|
+
--bs-border-color: #a7b7bb;
|
96
|
+
--bs-body-bg: #{$light};
|
97
|
+
}
|
@@ -51,11 +51,11 @@ module Admin
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def atributos_para_listar
|
54
|
-
%i[email nombre apellido developer]
|
54
|
+
%i[email nombre apellido confirmed_at developer]
|
55
55
|
end
|
56
56
|
|
57
57
|
def atributos_para_mostrar
|
58
|
-
%i[email nombre apellido developer]
|
58
|
+
%i[email nombre apellido confirmed_at developer]
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -36,6 +36,12 @@ Rollbar.configure({
|
|
36
36
|
document.addEventListener('turbo:load', bindToasts)
|
37
37
|
document.addEventListener('turbo:render', bindToasts)
|
38
38
|
|
39
|
+
document.addEventListener('turbo:before-cache', () => {
|
40
|
+
document.querySelectorAll('.offcanvas-backdrop').forEach((el) => {
|
41
|
+
el.remove()
|
42
|
+
})
|
43
|
+
})
|
44
|
+
|
39
45
|
function bindToasts () {
|
40
46
|
const toastElList = document.querySelectorAll('.toast:not(.hide):not(.show)')
|
41
47
|
Array.from(toastElList).map(toastEl => new bootstrap.Toast(toastEl).show())
|
data/pg_layout/app/lib/navbar.rb
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
<% if @navbar.logo_xl_url.present? %>
|
2
|
+
<div class="mx-3 my-4 m-md-5">
|
3
|
+
<%= image_tag @navbar.logo_xl_url, class: 'img-fluid' %>
|
4
|
+
</div>
|
5
|
+
<% end %>
|
6
|
+
|
1
7
|
<h2><%= t(".sign_up") %></h2>
|
2
8
|
<div id="form-signup" data-controller="pg_form">
|
3
9
|
<%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
@@ -1,3 +1,9 @@
|
|
1
|
+
<% if @navbar.logo_xl_url.present? %>
|
2
|
+
<div class="mx-3 my-4 m-md-5">
|
3
|
+
<%= image_tag @navbar.logo_xl_url, class: 'img-fluid' %>
|
4
|
+
</div>
|
5
|
+
<% end %>
|
6
|
+
|
1
7
|
<h2><%= t(".sign_in") %></h2>
|
2
8
|
|
3
9
|
<%= pg_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
@@ -23,7 +23,7 @@ html
|
|
23
23
|
meta name="rollbar-env" content="#{Rails.env}"
|
24
24
|
body
|
25
25
|
#flash-wrapper.d-flex.justify-content-around
|
26
|
-
#flash.flash.z-1
|
26
|
+
#flash.flash.z-1 style="margin-top: 3px"
|
27
27
|
= render partial: 'pg_layout/flash'
|
28
28
|
= render partial: 'pg_layout/sidebar_mobile'
|
29
29
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/ Flash messages que se muestran en el HTML
|
2
2
|
/ slim-lint:disable LineLength
|
3
|
-
- flash_to_show = flash.select { |
|
3
|
+
- flash_to_show = flash.select { |fm| fm[0].to_sym.in?(ApplicationController._flash_types) && fm[1].present? }
|
4
4
|
/ slim-lint:enable LineLength
|
5
5
|
- toast = flash[:toast].nil? ? true : flash[:toast]
|
6
6
|
- if toast
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
|
1
|
+
<div class="offcanvas offcanvas-start" data-turbo-temporary="true" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
|
2
2
|
<div class="offcanvas-header" data-bs-theme="dark">
|
3
3
|
<h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
|
4
4
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
data/pg_rails/lib/version.rb
CHANGED