pg_rails 7.0.8.pre.alpha.46 → 7.0.8.pre.alpha.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/pg_engine/app/assets/stylesheets/pg_rails_b5.scss +8 -0
- data/pg_engine/app/controllers/users/confirmations_controller.rb +0 -1
- data/pg_engine/app/controllers/users/registrations_controller.rb +1 -1
- data/pg_engine/config/locales/es.yml +154 -0
- data/pg_layout/app/assets/stylesheets/sidebar.scss +0 -20
- data/pg_layout/app/javascript/application.js +3 -0
- data/pg_layout/app/views/devise/registrations/new.html.erb +5 -1
- data/pg_layout/app/views/devise/sessions/new.html.erb +6 -1
- data/pg_layout/app/views/layouts/pg_layout/base.html.slim +6 -7
- data/pg_layout/app/views/pg_layout/_flash.html.slim +17 -9
- data/pg_layout/app/views/pg_layout/_flash_container.html.slim +3 -0
- data/pg_layout/app/views/pg_layout/_navbar.html.erb +1 -1
- data/pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb +1 -1
- data/pg_rails/lib/version.rb +1 -1
- data/pg_rails/scss/bootstrap_overrides.scss +9 -0
- data/pg_rails/scss/bootstrap_post.scss +44 -0
- data/pg_rails/scss/bootstrap_pre.scss +8 -0
- data/pg_rails/scss/pg_rails.scss +15 -0
- metadata +6 -3
- data/pg_layout/app/views/pg_layout/_flash_alert.html.slim +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd2215c2cd625cb421bb011d5aae40984f62da6bd82fd20d49ed7c2dd549277
|
4
|
+
data.tar.gz: d11c67006f4c071171978fe755446eb9ae86d45e439d7c2bca6619ebb32f1682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64a4d32cbeb0e683feb65621db9d3d52c98eb8d24f991317e511374130e210ec3b63b2118bda817518edff7a610e6d4de1040a06a297a4df738b65484402888b
|
7
|
+
data.tar.gz: a7b407911c5cd00995557ee5a11440795559616699c2839e3b61f0bd546f229eaecd1814e5446126da21af5e18d3893af3d303136ba00a625a9a32da8d295506
|
@@ -86,6 +86,7 @@ input[type=datetime-local], input[type=datetime] {
|
|
86
86
|
@extend .bg-primary;
|
87
87
|
}
|
88
88
|
|
89
|
+
// Root variables
|
89
90
|
:root {
|
90
91
|
--bs-border-radius-sm: 0.06rem;
|
91
92
|
--bs-border-radius: 0.1rem;
|
@@ -95,3 +96,10 @@ input[type=datetime-local], input[type=datetime] {
|
|
95
96
|
--bs-border-color: #a7b7bb;
|
96
97
|
--bs-body-bg: #{$light};
|
97
98
|
}
|
99
|
+
|
100
|
+
// Alerts
|
101
|
+
.alert-dismissible {
|
102
|
+
.btn-close {
|
103
|
+
padding: 0.725rem $alert-padding-x;
|
104
|
+
}
|
105
|
+
}
|
@@ -54,6 +54,8 @@ es:
|
|
54
54
|
sign_in: ¿Ya tenés una cuenta? Iniciar sesión
|
55
55
|
sign_out: Cerrar sesión
|
56
56
|
sign_up: Crear una cuenta
|
57
|
+
confirmations:
|
58
|
+
confirmed: ¡Tu cuenta está confirmada! Ya podés iniciar sesión
|
57
59
|
sessions:
|
58
60
|
signed_in: ''
|
59
61
|
signed_out: ''
|
@@ -75,3 +77,155 @@ es:
|
|
75
77
|
sign_up: Crear una cuenta
|
76
78
|
forgot_your_password: ¿Olvidaste tu contraseña?
|
77
79
|
didn_t_receive_confirmation_instructions: ¿No recibiste las instrucciones para confirmar tu cuenta?
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
# es:
|
86
|
+
# activerecord:
|
87
|
+
# attributes:
|
88
|
+
# user:
|
89
|
+
# confirmation_sent_at: Confirmación enviada a
|
90
|
+
# confirmation_token: Código de confirmación
|
91
|
+
# confirmed_at: Confirmado en
|
92
|
+
# created_at: Creado en
|
93
|
+
# current_password: Contraseña actual
|
94
|
+
# current_sign_in_at: Fecha del ingreso actual
|
95
|
+
# current_sign_in_ip: IP del ingreso actual
|
96
|
+
# email: Email
|
97
|
+
# encrypted_password: Contraseña cifrada
|
98
|
+
# failed_attempts: Intentos fallidos
|
99
|
+
# last_sign_in_at: Fecha del último ingreso
|
100
|
+
# last_sign_in_ip: IP del último inicio
|
101
|
+
# locked_at: Fecha de bloqueo
|
102
|
+
# password: Contraseña
|
103
|
+
# password_confirmation: Confirmación de la contraseña
|
104
|
+
# remember_created_at: Fecha de 'Recordarme'
|
105
|
+
# remember_me: Recordarme
|
106
|
+
# reset_password_sent_at: Fecha de envío de código para contraseña
|
107
|
+
# reset_password_token: Código para restablecer contraseña
|
108
|
+
# sign_in_count: Cantidad de ingresos
|
109
|
+
# unconfirmed_email: Email no confirmado
|
110
|
+
# unlock_token: Código de desbloqueo
|
111
|
+
# updated_at: Actualizado en
|
112
|
+
# models:
|
113
|
+
# user:
|
114
|
+
# one: Usuario
|
115
|
+
# other: Usuarios
|
116
|
+
# devise:
|
117
|
+
# confirmations:
|
118
|
+
# confirmed: Tu cuenta ha sido confirmada satisfactoriamente.
|
119
|
+
# new:
|
120
|
+
# resend_confirmation_instructions: Reenviar instrucciones de confirmación
|
121
|
+
# send_instructions: Vas a recibir un correo con instrucciones sobre cómo confirmar tu cuenta en unos minutos.
|
122
|
+
# send_paranoid_instructions: Si tu correo existe en nuestra base de datos, en unos minutos recibirás un correo con instrucciones sobre cómo confirmar tu cuenta.
|
123
|
+
# failure:
|
124
|
+
# already_authenticated: Ya has iniciado sesión.
|
125
|
+
# inactive: Tu cuenta aún no ha sido activada.
|
126
|
+
# invalid: "%{authentication_keys} o contraseña inválidos."
|
127
|
+
# last_attempt: Tienes un intento más antes de que tu cuenta sea bloqueada.
|
128
|
+
# locked: Tu cuenta está bloqueada.
|
129
|
+
# not_found_in_database: "%{authentication_keys} o contraseña inválidos."
|
130
|
+
# timeout: Tu sesión expiró. Por favor, inicia sesión nuevamente para continuar.
|
131
|
+
# unauthenticated: Tienes que iniciar sesión o registrarte para poder continuar.
|
132
|
+
# unconfirmed: Tienes que confirmar tu cuenta para poder continuar.
|
133
|
+
# mailer:
|
134
|
+
# confirmation_instructions:
|
135
|
+
# action: Confirmar mi cuenta
|
136
|
+
# greeting: "¡Bienvenido %{recipient}!"
|
137
|
+
# instruction: 'Usted puede confirmar el correo electrónico de su cuenta a través de este enlace:'
|
138
|
+
# subject: Instrucciones de confirmación
|
139
|
+
# email_changed:
|
140
|
+
# greeting: "¡Hola %{recipient}! "
|
141
|
+
# message: Estamos contactando contigo para notificarte que tu email ha sido cambiado a %{email}.
|
142
|
+
# message_unconfirmed: Nos estamos contactando contigo para notificarte que tu correo se está cambiando a %{email}.
|
143
|
+
# subject: Email cambiado
|
144
|
+
# password_change:
|
145
|
+
# greeting: "¡Hola %{recipient}!"
|
146
|
+
# message: Lo estamos contactando para notificarle que su contraseña ha sido cambiada.
|
147
|
+
# subject: Contraseña cambiada
|
148
|
+
# reset_password_instructions:
|
149
|
+
# action: Cambiar mi contraseña
|
150
|
+
# greeting: "¡Hola %{recipient}!"
|
151
|
+
# instruction: Alguien ha solicitado un enlace para cambiar su contraseña, lo que se puede realizar a través del siguiente enlace.
|
152
|
+
# instruction_2: Si usted no lo ha solicitado, por favor ignore este correo electrónico.
|
153
|
+
# instruction_3: Su contraseña no será cambiada hasta que usted acceda al enlace y cree una nueva.
|
154
|
+
# subject: Instrucciones de recuperación de contraseña
|
155
|
+
# unlock_instructions:
|
156
|
+
# action: Desbloquear mi cuenta
|
157
|
+
# greeting: "¡Hola %{recipient}!"
|
158
|
+
# instruction: 'Haga click en el siguiente enlace para desbloquear su cuenta:'
|
159
|
+
# message: Su cuenta ha sido bloqueada debido a una cantidad excesiva de intentos infructuosos para ingresar.
|
160
|
+
# subject: Instrucciones para desbloquear
|
161
|
+
# omniauth_callbacks:
|
162
|
+
# failure: No has sido autorizado en la cuenta %{kind} porque "%{reason}".
|
163
|
+
# success: Has sido autorizado satisfactoriamente en la cuenta %{kind}.
|
164
|
+
# passwords:
|
165
|
+
# edit:
|
166
|
+
# change_my_password: Cambiar mi contraseña
|
167
|
+
# change_your_password: Cambie su contraseña
|
168
|
+
# confirm_new_password: Confirme la nueva contraseña
|
169
|
+
# new_password: Nueva contraseña
|
170
|
+
# new:
|
171
|
+
# forgot_your_password: "¿Ha olvidado su contraseña?"
|
172
|
+
# send_me_reset_password_instructions: Envíeme las instrucciones para resetear mi contraseña
|
173
|
+
# no_token: No puedes acceder a esta página si no es a través de un enlace para resetear tu contraseña. Si has llegado hasta aquí desde el email para resetear tu contraseña, por favor asegúrate de que la URL introducida está completa.
|
174
|
+
# send_instructions: Recibirás un correo con instrucciones sobre cómo resetear tu contraseña en unos pocos minutos.
|
175
|
+
# send_paranoid_instructions: Si tu correo existe en nuestra base de datos, recibirás un correo con instrucciones sobre cómo resetear tu contraseña en tu bandeja de entrada.
|
176
|
+
# updated: Se ha cambiado tu contraseña. Ya iniciaste sesión.
|
177
|
+
# updated_not_active: Tu contraseña fue cambiada.
|
178
|
+
# registrations:
|
179
|
+
# destroyed: "¡Adiós! Tu cuenta ha sido cancelada correctamente. Esperamos verte pronto."
|
180
|
+
# edit:
|
181
|
+
# are_you_sure: "¿Está usted seguro?"
|
182
|
+
# cancel_my_account: Anular mi cuenta
|
183
|
+
# currently_waiting_confirmation_for_email: 'Actualmente esperando la confirmacion de: %{email} '
|
184
|
+
# leave_blank_if_you_don_t_want_to_change_it: dejar en blanco si no desea cambiarla
|
185
|
+
# title: Editar %{resource}
|
186
|
+
# unhappy: "¿Disconforme?"
|
187
|
+
# update: Actualizar
|
188
|
+
# we_need_your_current_password_to_confirm_your_changes: necesitamos su contraseña actual para confirmar los cambios
|
189
|
+
# new:
|
190
|
+
# sign_up: Registrarse
|
191
|
+
# signed_up: Bienvenido. Tu cuenta fue creada.
|
192
|
+
# signed_up_but_inactive: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque tu cuenta aún no está activada.
|
193
|
+
# signed_up_but_locked: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque que tu cuenta está bloqueada.
|
194
|
+
# signed_up_but_unconfirmed: Se ha enviado un mensaje con un enlace de confirmación a tu correo electrónico. Abre el enlace para activar tu cuenta.
|
195
|
+
# update_needs_confirmation: Has actualizado tu cuenta correctamente, pero es necesario confirmar tu nuevo correo electrónico. Por favor, comprueba tu correo y sigue el enlace de confirmación para finalizar la comprobación del nuevo correo electrónico.
|
196
|
+
# updated: Tu cuenta se ha actualizado.
|
197
|
+
# updated_but_not_signed_in: Su cuenta se ha actualizado correctamente, pero como se cambió su contraseña, debe iniciar sesión nuevamente
|
198
|
+
# sessions:
|
199
|
+
# already_signed_out: Sesión finalizada.
|
200
|
+
# new:
|
201
|
+
# sign_in: Iniciar sesión
|
202
|
+
# signed_in: Sesión iniciada.
|
203
|
+
# signed_out: Sesión finalizada.
|
204
|
+
# shared:
|
205
|
+
# links:
|
206
|
+
# back: Atrás
|
207
|
+
# didn_t_receive_confirmation_instructions: "¿No ha recibido las instrucciones de confirmación?"
|
208
|
+
# didn_t_receive_unlock_instructions: "¿No ha recibido instrucciones para desbloquear?"
|
209
|
+
# forgot_your_password: "¿Ha olvidado su contraseña?"
|
210
|
+
# sign_in: Iniciar sesión
|
211
|
+
# sign_in_with_provider: Iniciar sesión con %{provider}
|
212
|
+
# sign_up: Registrarse
|
213
|
+
# minimum_password_length:
|
214
|
+
# one: "(%{count} caracter como mínimo)"
|
215
|
+
# other: "(%{count} caracteres como mínimo)"
|
216
|
+
# unlocks:
|
217
|
+
# new:
|
218
|
+
# resend_unlock_instructions: Reenviar instrucciones para desbloquear
|
219
|
+
# send_instructions: Vas a recibir instrucciones para desbloquear tu cuenta en unos pocos minutos.
|
220
|
+
# send_paranoid_instructions: Si tu cuenta existe, vas a recibir instrucciones para desbloquear tu cuenta en unos pocos minutos.
|
221
|
+
# unlocked: Tu cuenta ha sido desbloqueada. Ya puedes iniciar sesión.
|
222
|
+
# errors:
|
223
|
+
# messages:
|
224
|
+
# already_confirmed: ya ha sido confirmado, por favor intenta iniciar sesión
|
225
|
+
# confirmation_period_expired: necesita confirmarse dentro de %{period}, por favor solicita una nueva
|
226
|
+
# expired: ha expirado, por favor solicita una nueva
|
227
|
+
# not_found: no se ha encontrado
|
228
|
+
# not_locked: no estaba bloqueada
|
229
|
+
# not_saved:
|
230
|
+
# one: 'Ocurrió un error al tratar de guardar %{resource}:'
|
231
|
+
# other: 'Ocurrieron %{count} errores al tratar de guardar %{resource}:'
|
@@ -115,23 +115,3 @@ $chevron-color: 200,200,200,.5;
|
|
115
115
|
.btn-toggle[aria-expanded="true"]::before {
|
116
116
|
transform: rotate(90deg);
|
117
117
|
}
|
118
|
-
|
119
|
-
// FLASH
|
120
|
-
#flash-wrapper {
|
121
|
-
position: fixed;
|
122
|
-
right: 0;
|
123
|
-
left: 0;
|
124
|
-
z-index: 1030;
|
125
|
-
}
|
126
|
-
|
127
|
-
@include media-breakpoint-up(md) {
|
128
|
-
#flash-wrapper {
|
129
|
-
top: 0;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
@include media-breakpoint-down(md) {
|
134
|
-
#flash-wrapper {
|
135
|
-
bottom: 0;
|
136
|
-
}
|
137
|
-
}
|
@@ -40,6 +40,9 @@ document.addEventListener('turbo:before-cache', () => {
|
|
40
40
|
document.querySelectorAll('.offcanvas-backdrop').forEach((el) => {
|
41
41
|
el.remove()
|
42
42
|
})
|
43
|
+
document.querySelectorAll('.offcanvas').forEach((el) => {
|
44
|
+
el.classList.remove('show')
|
45
|
+
})
|
43
46
|
})
|
44
47
|
|
45
48
|
function bindToasts () {
|
@@ -1,4 +1,8 @@
|
|
1
|
-
|
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 %>
|
2
6
|
|
3
7
|
<h2><%= t(".sign_up") %></h2>
|
4
8
|
<div id="form-signup" data-controller="pg_form">
|
@@ -1,7 +1,12 @@
|
|
1
|
-
|
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 %>
|
2
6
|
|
3
7
|
<h2><%= t(".sign_in") %></h2>
|
4
8
|
|
9
|
+
<%= render partial: 'pg_layout/flash_container' %>
|
5
10
|
<%= pg_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
6
11
|
<div class="form-inputs">
|
7
12
|
<%= f.input :email,
|
@@ -5,8 +5,8 @@ html
|
|
5
5
|
meta name="viewport" content="width=device-width,initial-scale=1"
|
6
6
|
- if @turbo_no_cache
|
7
7
|
meta name="turbo-cache-control" content="no-cache"
|
8
|
-
|
9
|
-
|
8
|
+
meta name="turbo-refresh-method" content="morph"
|
9
|
+
meta name="turbo-refresh-scroll" content="preserve"
|
10
10
|
meta name="turbo-prefetch" content="false"
|
11
11
|
meta name="view-transition" content="same-origin"
|
12
12
|
meta name="cable-history-timestamp" content="#{Time.now.to_i}"
|
@@ -22,9 +22,6 @@ html
|
|
22
22
|
meta name="rollbar-token" content="#{@rollbar_token}"
|
23
23
|
meta name="rollbar-env" content="#{Rails.env}"
|
24
24
|
body
|
25
|
-
#flash-wrapper.d-flex.justify-content-around
|
26
|
-
#flash.flash.z-1 style="margin-top: 3px"
|
27
|
-
= render partial: 'pg_layout/flash'
|
28
25
|
= render partial: 'pg_layout/sidebar_mobile'
|
29
26
|
|
30
27
|
div class="#{ @sidebar == false ? '' : 'with-sidebar' }"
|
@@ -42,7 +39,9 @@ html
|
|
42
39
|
.btn-toolbar
|
43
40
|
= yield(:actions)
|
44
41
|
hr.my-0
|
45
|
-
=
|
46
|
-
|
42
|
+
- content = content_for?(:content) ? yield(:content) : yield
|
43
|
+
- unless content.include? 'flash-wrapper'
|
44
|
+
= render partial: 'pg_layout/flash_container'
|
45
|
+
= content
|
47
46
|
div style="width:100%; height: 10em"
|
48
47
|
= render_turbo_stream_title
|
@@ -1,12 +1,20 @@
|
|
1
|
-
/ Flash messages que se muestran en el HTML
|
2
1
|
/ slim-lint:disable LineLength
|
3
2
|
- flash_to_show = flash.select { |fm| fm[0].to_sym.in?(ApplicationController._flash_types) && fm[1].present? }
|
4
3
|
/ slim-lint:enable LineLength
|
5
|
-
-
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
- flash_to_show.each do |flash_type, message|
|
5
|
+
.alert.alert-dismissible[
|
6
|
+
class="mt-2 d-flex align-items-center alert-#{flash_type_to_class(flash_type)}"
|
7
|
+
data-turbo-temporary="true"
|
8
|
+
aria-live="assertive" aria-atomic="true" role="alert"
|
9
|
+
]
|
10
|
+
- case flash_type_to_class(flash_type)
|
11
|
+
- when 'danger'
|
12
|
+
.bi.bi-exclamation-triangle-fill.me-2
|
13
|
+
- when 'warning'
|
14
|
+
.bi.bi-exclamation-circle.me-2
|
15
|
+
- when 'success'
|
16
|
+
.bi.bi-check-lg.me-2
|
17
|
+
- when 'info'
|
18
|
+
.bi.bi-info-circle.me-2
|
19
|
+
= message
|
20
|
+
button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<nav class="navbar navbar-expand-<%= @breakpoint_navbar_expand %>">
|
1
|
+
<nav class="navbar navbar-expand-<%= @breakpoint_navbar_expand %>" data-bs-theme="dark">
|
2
2
|
<div class="container-fluid">
|
3
3
|
<% unless @sidebar == false %>
|
4
4
|
<button data-controller="navbar" data-action="navbar#expandNavbar" class="btn btn-outline-light me-2 d-none d-<%= @breakpoint_navbar_expand %>-inline-block">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="offcanvas offcanvas-start"
|
1
|
+
<div class="offcanvas offcanvas-start" 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
@@ -0,0 +1,9 @@
|
|
1
|
+
// $success-bg-subtle: tint-color($success, 80%);
|
2
|
+
// $info-bg-subtle: tint-color($info, 80%);
|
3
|
+
// $warning-bg-subtle: tint-color($warning, 80%);
|
4
|
+
$danger-bg-subtle: tint-color($danger, 98%);
|
5
|
+
|
6
|
+
// $success-border-subtle: tint-color($success, 60%);
|
7
|
+
// $info-border-subtle: tint-color($info, 60%);
|
8
|
+
$warning-border-subtle: tint-color($warning, 20%);
|
9
|
+
// $danger-border-subtle: tint-color($danger, 60%);
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
@import "bootstrap/scss/maps";
|
3
|
+
@import "bootstrap/scss/mixins";
|
4
|
+
@import "bootstrap/scss/utilities";
|
5
|
+
|
6
|
+
// Layout & components
|
7
|
+
@import "bootstrap/scss/root";
|
8
|
+
@import "bootstrap/scss/reboot";
|
9
|
+
@import "bootstrap/scss/type";
|
10
|
+
@import "bootstrap/scss/images";
|
11
|
+
@import "bootstrap/scss/containers";
|
12
|
+
@import "bootstrap/scss/grid";
|
13
|
+
@import "bootstrap/scss/tables";
|
14
|
+
@import "bootstrap/scss/forms";
|
15
|
+
@import "bootstrap/scss/buttons";
|
16
|
+
@import "bootstrap/scss/transitions";
|
17
|
+
@import "bootstrap/scss/dropdown";
|
18
|
+
@import "bootstrap/scss/button-group";
|
19
|
+
@import "bootstrap/scss/nav";
|
20
|
+
@import "bootstrap/scss/navbar";
|
21
|
+
@import "bootstrap/scss/card";
|
22
|
+
@import "bootstrap/scss/accordion";
|
23
|
+
@import "bootstrap/scss/breadcrumb";
|
24
|
+
@import "bootstrap/scss/pagination";
|
25
|
+
@import "bootstrap/scss/badge";
|
26
|
+
@import "bootstrap/scss/alert";
|
27
|
+
@import "bootstrap/scss/progress";
|
28
|
+
@import "bootstrap/scss/list-group";
|
29
|
+
@import "bootstrap/scss/close";
|
30
|
+
@import "bootstrap/scss/toasts";
|
31
|
+
@import "bootstrap/scss/modal";
|
32
|
+
@import "bootstrap/scss/tooltip";
|
33
|
+
@import "bootstrap/scss/popover";
|
34
|
+
@import "bootstrap/scss/carousel";
|
35
|
+
@import "bootstrap/scss/spinners";
|
36
|
+
@import "bootstrap/scss/offcanvas";
|
37
|
+
@import "bootstrap/scss/placeholders";
|
38
|
+
|
39
|
+
// Helpers
|
40
|
+
@import "bootstrap/scss/helpers";
|
41
|
+
|
42
|
+
// Utilities
|
43
|
+
@import "bootstrap/scss/utilities/api";
|
44
|
+
// scss-docs-end import-stack
|
data/pg_rails/scss/pg_rails.scss
CHANGED
@@ -1,4 +1,19 @@
|
|
1
|
+
$red: #a70101;
|
2
|
+
$yellow: #f4a815;
|
3
|
+
$font-size-base: 0.9rem;
|
4
|
+
|
5
|
+
$enable-validation-icons: false;
|
6
|
+
$focus-ring-width: .05rem;
|
7
|
+
$alert-padding-y: 0.5rem;
|
8
|
+
$alert-margin-bottom: 0.5rem;
|
9
|
+
|
10
|
+
@import 'bootstrap_pre';
|
11
|
+
@import 'bootstrap_overrides';
|
12
|
+
@import 'bootstrap_post';
|
13
|
+
|
1
14
|
@import './../../pg_engine/app/assets/stylesheets/pg_rails_b5';
|
2
15
|
@import './../../pg_associable/app/assets/stylesheets/pg_associable';
|
3
16
|
@import './../../pg_layout/app/assets/stylesheets/sidebar';
|
4
17
|
@import './../../pg_layout/app/assets/stylesheets/animations';
|
18
|
+
|
19
|
+
@import 'bootstrap-icons/font/bootstrap-icons';
|
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.
|
4
|
+
version: 7.0.8.pre.alpha.48
|
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-
|
11
|
+
date: 2024-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -997,7 +997,7 @@ files:
|
|
997
997
|
- pg_layout/app/views/layouts/pg_layout/containerized.html.slim
|
998
998
|
- pg_layout/app/views/layouts/pg_layout/devise.html.slim
|
999
999
|
- pg_layout/app/views/pg_layout/_flash.html.slim
|
1000
|
-
- pg_layout/app/views/pg_layout/
|
1000
|
+
- pg_layout/app/views/pg_layout/_flash_container.html.slim
|
1001
1001
|
- pg_layout/app/views/pg_layout/_navbar.html.erb
|
1002
1002
|
- pg_layout/app/views/pg_layout/_sidebar.html.erb
|
1003
1003
|
- pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
|
@@ -1011,6 +1011,9 @@ files:
|
|
1011
1011
|
- pg_rails/lib/pg_rails/dotenv_support.rb
|
1012
1012
|
- pg_rails/lib/pg_rails/vcr_support.rb
|
1013
1013
|
- pg_rails/lib/version.rb
|
1014
|
+
- pg_rails/scss/bootstrap_overrides.scss
|
1015
|
+
- pg_rails/scss/bootstrap_post.scss
|
1016
|
+
- pg_rails/scss/bootstrap_pre.scss
|
1014
1017
|
- pg_rails/scss/pg_rails.scss
|
1015
1018
|
- pg_scaffold/lib/generators/pg_active_record/model/model_generator.rb
|
1016
1019
|
- pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/ Flash messages que se muestran en el HTML
|
2
|
-
/ slim-lint:disable LineLength
|
3
|
-
- flash_to_show = flash.select { |flash_message| flash_message[0].to_sym.in? ApplicationController._flash_types }
|
4
|
-
/ slim-lint:enable LineLength
|
5
|
-
- toast = flash[:toast].nil? ? true : flash[:toast]
|
6
|
-
- unless toast
|
7
|
-
/ TODO: data-turbo-temporary, setear al activar toast?
|
8
|
-
.text-center
|
9
|
-
- flash_to_show.each do |flash_type, message|
|
10
|
-
div(class="alert alert-#{flash_type_to_class(flash_type)}" role="alert"
|
11
|
-
data-xturbo-temporary="true" aria-live="assertive" aria-atomic="true")
|
12
|
-
= message
|