pg_rails 7.0.8.pre.alpha.66 → 7.0.8.pre.alpha.67
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b10c0027abbd150b13c0151f1c00fc808867db2507c392ae1553584ccc54c7fa
|
4
|
+
data.tar.gz: c839f6004a12b70d8c28e19719185eb9a883290ee53f1b2da159138f9fff5021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2046f277cc5103994b1c5f4d260fced6db73cf6ba8a46f03e9807aac59cbe535004fcbefeac65c6823ea0a71e756f1aa266870776a840fabe50b7678715b2ac1
|
7
|
+
data.tar.gz: d3efc68090305c1214135747e7fa9dabe9a8478c4dc654c24a6be14d58130e296a575400468688168c96a96c09c749cec2cbd238db7217670e58276d16d58b83
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Controller } from '@hotwired/stimulus'
|
2
|
+
|
3
|
+
// Connects to data-controller="clear-timeout"
|
4
|
+
export default class extends Controller {
|
5
|
+
connect () {
|
6
|
+
const timeoutId = parseInt(this.element.dataset.timeoutId)
|
7
|
+
clearTimeout(timeoutId)
|
8
|
+
console.log(`clearedTimeout: ${timeoutId}`)
|
9
|
+
this.element.remove()
|
10
|
+
}
|
11
|
+
}
|
@@ -4,8 +4,10 @@ import NavbarController from './navbar_controller'
|
|
4
4
|
import NestedController from './nested_controller'
|
5
5
|
import PgFormController from './pg_form_controller'
|
6
6
|
import FadeinOnloadController from './fadein_onload_controller'
|
7
|
+
import ClearTimeoutController from './clear_timeout_controller'
|
7
8
|
|
8
9
|
application.register('navbar', NavbarController)
|
9
10
|
application.register('nested', NestedController)
|
10
11
|
application.register('pg_form', PgFormController)
|
11
12
|
application.register('fadein_onload', FadeinOnloadController)
|
13
|
+
application.register('clear-timeout', ClearTimeoutController)
|
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.0.8.pre.alpha.
|
4
|
+
version: 7.0.8.pre.alpha.67
|
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-05-
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -1054,6 +1054,7 @@ files:
|
|
1054
1054
|
- pg_layout/app/javascript/config/cable_ready.js
|
1055
1055
|
- pg_layout/app/javascript/config/index.js
|
1056
1056
|
- pg_layout/app/javascript/controllers/application.js
|
1057
|
+
- pg_layout/app/javascript/controllers/clear_timeout_controller.js
|
1057
1058
|
- pg_layout/app/javascript/controllers/fadein_onload_controller.js
|
1058
1059
|
- pg_layout/app/javascript/controllers/index.js
|
1059
1060
|
- pg_layout/app/javascript/controllers/navbar_controller.js
|