lato 0.1.63 → 0.2.0
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/README.md +1 -7
- data/app/assets/javascripts/lato/application.js +10 -0
- data/lib/lato/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: 97957e5c077e1eb2c5fc2f543ccd910e3c9e20c31a032f1caddf6d8f367f65d5
|
|
4
|
+
data.tar.gz: ff14d933bc169b717bc6383b384f5b88454d5d74149b3c2c8d35843f0d9e2c3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f07d0df90a8c54f90eb3f8a12410a4d226710eaaaca16a63a0a9329dee6fb09e13e2abf8258555a4f45abeffc914328f5aec8c70aacb7778e70b34cd2f8e43d
|
|
7
|
+
data.tar.gz: bcc45846cac8cf85cbe29cb2ffc5f7b90602148ab3a25f805d9d9f3414a2d6b6cce94167f57509d5e146d6df2887f7462e76bf3a0cbdcd75c71e837286e9814c
|
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Add required dependencies to your application's Gemfile:
|
|
|
9
9
|
gem "importmap-rails" # NOTE: Probably already installed in default rails 7 project
|
|
10
10
|
|
|
11
11
|
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
|
|
12
|
-
gem "turbo-rails"
|
|
12
|
+
gem "turbo-rails"
|
|
13
13
|
|
|
14
14
|
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
|
|
15
15
|
gem "stimulus-rails" # NOTE: Probably already installed in default rails 7 project
|
|
@@ -97,9 +97,3 @@ $ ruby ./bin/publish.rb
|
|
|
97
97
|
## License
|
|
98
98
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
99
99
|
|
|
100
|
-
## Problems with turbo-rails 1.4.0
|
|
101
|
-
|
|
102
|
-
There is an issue with turbo-rails >= 1.4.0 related to the usage of redirects from a request with a turbo_frame not present on the redirect page.
|
|
103
|
-
|
|
104
|
-
Problem: https://github.com/hotwired/turbo-rails/issues/440
|
|
105
|
-
Possible solution: https://github.com/hotwired/turbo-rails/pull/367
|
|
@@ -5,6 +5,16 @@ import "bootstrap"
|
|
|
5
5
|
// Import controllers (stimulus rails)
|
|
6
6
|
import "controllers"
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Fix form inside turbo-frame tag with redirect
|
|
10
|
+
* https://github.com/hotwired/turbo-rails/issues/440
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
document.addEventListener("turbo:frame-missing", event => {
|
|
14
|
+
event.preventDefault()
|
|
15
|
+
event.detail.visit(event.detail.response)
|
|
16
|
+
})
|
|
17
|
+
|
|
8
18
|
/**
|
|
9
19
|
* Manage page transitions
|
|
10
20
|
*/
|
data/lib/lato/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lato
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gregorio Galante
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-10-
|
|
11
|
+
date: 2023-10-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|