pg_rails 7.0.8.pre.alpha.45 → 7.0.8.pre.alpha.46
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 +2 -0
- data/pg_layout/app/views/devise/sessions/new.html.erb +2 -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: a1e4e3139105e25550f96fb070d8b6865ea23130b5ad7c61aed0b22d21cdb39e
|
4
|
+
data.tar.gz: 91a244f8ea19edd7cb3ce65c2f96637bcc3f587244cd467d8dcaa0a397872d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f91dce89ccaf0133ce33b0ad1443448bf5566109628acd6a543520df6cea054062b66c039f620f65d3fea1382ac38b756e032f599295c4a54b90472fb350f1
|
7
|
+
data.tar.gz: 6975014f00c8a5c56c8df7f763957ebbb93a1007e4f1da944dd1baabab46f598e7d2c52270e02c3bc4a136024338905c186cc743a7ea976be7a1567542d32413
|
@@ -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
@@ -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