pg_rails 7.0.8.pre.alpha.44 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24ba4e7696371a6111d27203476e573c6ea9d0a182f8495a9109effa3ea310e7
4
- data.tar.gz: ff5baec88b8d412bd3cf462c51afeddaa457ded9c999f47d14d350951f2a1497
3
+ metadata.gz: a1e4e3139105e25550f96fb070d8b6865ea23130b5ad7c61aed0b22d21cdb39e
4
+ data.tar.gz: 91a244f8ea19edd7cb3ce65c2f96637bcc3f587244cd467d8dcaa0a397872d69
5
5
  SHA512:
6
- metadata.gz: 90fe56d611f0804685215c9624d6eeae554c8caae3904e224d6a8904623753fc51e47b12eb3208060c9f6194719ec5ba064b643d0b92c59d7cea36cf81799bdd
7
- data.tar.gz: c633ac8e64af14d6ae0afb11c53d6944c1358e081e871656c9490f2184d3488e565c80217b5f78fdf0a91af6ccb38d43cde746335fe97b2916734b7fb21d6d01
6
+ metadata.gz: 35f91dce89ccaf0133ce33b0ad1443448bf5566109628acd6a543520df6cea054062b66c039f620f65d3fea1382ac38b756e032f599295c4a54b90472fb350f1
7
+ data.tar.gz: 6975014f00c8a5c56c8df7f763957ebbb93a1007e4f1da944dd1baabab46f598e7d2c52270e02c3bc4a136024338905c186cc743a7ea976be7a1567542d32413
@@ -8,6 +8,7 @@ ActiveAdmin.register User do
8
8
  column :email
9
9
  column :current_sign_in_at
10
10
  column :created_at
11
+ column :confirmed_at
11
12
  column :developer
12
13
  actions
13
14
  end
@@ -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
@@ -58,6 +58,7 @@ es:
58
58
  signed_in: ''
59
59
  signed_out: ''
60
60
  already_signed_out: ''
61
+ failure:
61
62
  already_authenticated: ''
62
63
  timeout: ''
63
64
  unauthenticated: ''
@@ -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())
@@ -2,7 +2,7 @@ class Navbar
2
2
  include Rails.application.routes.url_helpers
3
3
 
4
4
  attr_reader :extensiones
5
- attr_accessor :logo
5
+ attr_accessor :logo, :logo_xl, :logo_xl_url
6
6
 
7
7
  def initialize(user)
8
8
  @user = user
@@ -1,3 +1,5 @@
1
+ <%= @navbar.logo_xl if @navbar.logo_xl.present? %>
2
+
1
3
  <h2><%= t(".sign_up") %></h2>
2
4
  <div id="form-signup" data-controller="pg_form">
3
5
  <%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
@@ -1,3 +1,5 @@
1
+ <%= @navbar.logo_xl if @navbar.logo_xl.present? %>
2
+
1
3
  <h2><%= t(".sign_in") %></h2>
2
4
 
3
5
  <%= 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 { |flash_message| flash_message[0].to_sym.in? ApplicationController._flash_types }
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>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.44'
4
+ VERSION = '7.0.8-alpha.46'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.44
4
+ version: 7.0.8.pre.alpha.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso