pg_rails 7.6.44 → 7.6.46
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_associable/app/javascript/modal_controller.js +23 -4
- data/pg_engine/app/assets/stylesheets/pg_engine.scss +0 -2
- data/pg_engine/app/controllers/pg_engine/health_controller.rb +2 -2
- data/pg_layout/app/views/layouts/pg_layout/base.html.slim +4 -0
- data/pg_rails/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 983b0ac59ee7841a5c1a686e35ef35d2e838b012baceecfd1c42cba5e46ff6bf
|
|
4
|
+
data.tar.gz: a39c0e76e39a29df881f56528e92b02e0f3ea6273eb37ea7e21d7825158dcfe2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b63d7df8af9c3cdb15c041679855fd2040a3db1b5669a7d57017e63111580aedb6c75fffad3c46f008b3a4fb6575ad6753273c599eecb793bdc1a89ad6cbc77b
|
|
7
|
+
data.tar.gz: 62d566279fbe3a8aa05dffed007a35b078aeb3215900f8a3e6f8efb015df302c6ea43c321e9ccfbf1ec0218e77e7e8493f072d17b58e35cbcb29a4677fef271e
|
|
@@ -9,7 +9,9 @@ export default class extends Controller {
|
|
|
9
9
|
history = []
|
|
10
10
|
|
|
11
11
|
connect (e) {
|
|
12
|
-
this.modalPuntero = new bootstrap.Modal(this.element
|
|
12
|
+
this.modalPuntero = new bootstrap.Modal(this.element, {
|
|
13
|
+
keyboard: false
|
|
14
|
+
})
|
|
13
15
|
if (this.element.dataset.removeOnHide === 'true') {
|
|
14
16
|
this.element.addEventListener('hidden.bs.modal', (e) => {
|
|
15
17
|
this.element.remove()
|
|
@@ -18,10 +20,25 @@ export default class extends Controller {
|
|
|
18
20
|
if (this.element.dataset.autoShow === 'true') {
|
|
19
21
|
this.modalPuntero.show()
|
|
20
22
|
}
|
|
23
|
+
document.addEventListener('keydown', (event) => {
|
|
24
|
+
if (event.key === 'Escape') {
|
|
25
|
+
// Sin este timeout crashea boostrap: Uncaught TypeError: can't access
|
|
26
|
+
// property "classList", this._element is null
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
this.back()
|
|
29
|
+
}, 100)
|
|
30
|
+
}
|
|
31
|
+
})
|
|
21
32
|
|
|
22
33
|
this.element.addEventListener('turbo:frame-render', (ev) => {
|
|
23
34
|
if (ev.detail.fetchResponse.response.ok && ev.target.id === 'modal_content') {
|
|
24
|
-
|
|
35
|
+
const repeatedLink =
|
|
36
|
+
this.history.length > 0 &&
|
|
37
|
+
this.history[this.history.length - 1] === ev.target.src
|
|
38
|
+
|
|
39
|
+
if (!repeatedLink) {
|
|
40
|
+
this.history.push(ev.target.src)
|
|
41
|
+
}
|
|
25
42
|
}
|
|
26
43
|
})
|
|
27
44
|
|
|
@@ -114,9 +131,11 @@ export default class extends Controller {
|
|
|
114
131
|
frame.src = url
|
|
115
132
|
frame.innerHTML = '<div style="min-height: 30em">Cargando...</div>'
|
|
116
133
|
} else {
|
|
117
|
-
this.
|
|
134
|
+
this.remove()
|
|
135
|
+
}
|
|
136
|
+
if (ev) {
|
|
137
|
+
ev.stopPropagation()
|
|
118
138
|
}
|
|
119
|
-
ev.stopPropagation()
|
|
120
139
|
this.reloadTop()
|
|
121
140
|
}
|
|
122
141
|
|
|
@@ -121,14 +121,12 @@ input[type=datetime-local], input[type=datetime] {
|
|
|
121
121
|
.filter label {
|
|
122
122
|
font-size: 0.8em;
|
|
123
123
|
font-weight: bold;
|
|
124
|
-
max-width: 5em;
|
|
125
124
|
text-align: right;
|
|
126
125
|
line-height: 1.2em;
|
|
127
126
|
vertical-align: middle;
|
|
128
127
|
opacity: 0.5;
|
|
129
128
|
min-width: 1em!important;
|
|
130
129
|
padding-left: 0.5em;
|
|
131
|
-
width: min-content;
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
// Popover
|
|
@@ -74,10 +74,10 @@ module PgEngine
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
def check_site_ssl(sites, url)
|
|
77
|
-
raise PgEngine::Error, "SSL record not present: #{url}" if sites[url].blank?
|
|
77
|
+
raise PgEngine::Error, "SSL record not present: #{url}. Forgot to run PgEngine::SslVerifier ?" if sites[url].blank?
|
|
78
78
|
|
|
79
79
|
if Time.zone.parse(sites[url]['verified_at']) < 2.days.ago
|
|
80
|
-
raise PgEngine::Error, "The SSL info is outdated: #{url}"
|
|
80
|
+
raise PgEngine::Error, "The SSL info is outdated: #{url}. PgEngine::SslVerifier is down?"
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
return unless Time.zone.parse(sites[url]['expires_at']) < 7.days.from_now
|
|
@@ -89,6 +89,10 @@ html
|
|
|
89
89
|
|
|
90
90
|
- if using_modal?
|
|
91
91
|
.px-2.d-flex.align-items-center.border.border-start-0
|
|
92
|
+
= button_tag type: :button, class: 'btn btn-sm btn-link',
|
|
93
|
+
data: { action: 'modal#back',
|
|
94
|
+
controller: :tooltip, 'bs-title': 'Volver' } do
|
|
95
|
+
i.bi-arrow-left
|
|
92
96
|
= button_tag type: :button, class: 'btn btn-sm btn-link',
|
|
93
97
|
data: { action: 'modal#maximize',
|
|
94
98
|
controller: :tooltip, 'bs-title': 'Maximizar' } do
|
data/pg_rails/lib/version.rb
CHANGED
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.6.
|
|
4
|
+
version: 7.6.46
|
|
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:
|
|
11
|
+
date: 2026-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|