lato 3.7.2 → 3.8.1
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: d798ee21a2e9f1ebb6667f39ce4de775fa45ab1e4f31769dadf7699ed3bc902c
|
4
|
+
data.tar.gz: 60876444bb2a4c459913b529c333b1053890c9289875b58ac9167a8909c5c821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c14287d5f9366e89a72c4b3c8a7849567218fe143899a3dffe30128f51247831d25834a95dfe6757c2665ff301d0daf0553fae6f6e131efb2f3fea9cf64c351
|
7
|
+
data.tar.gz: 35a7b17307b370392d54be93cdf509b480f4901dc3a45f4ca37bcba50cb3109dbc5f5daf6fd4138cd3a41d27cdec8062dddc296a30d644cf6bc8088f273ffbbf
|
@@ -30,31 +30,12 @@ document.addEventListener("turbo:frame-missing", event => {
|
|
30
30
|
})
|
31
31
|
|
32
32
|
/**
|
33
|
-
* Manage page
|
33
|
+
* Manage page caching clean
|
34
34
|
*/
|
35
35
|
|
36
|
-
const PAGE_TRANSITION_TIME = 50
|
37
|
-
|
38
|
-
document.addEventListener('DOMContentLoaded', () => {
|
39
|
-
// add is-loaded class
|
40
|
-
document.body.classList.add('is-loaded')
|
41
|
-
})
|
42
|
-
|
43
|
-
document.addEventListener('turbo:load', () => {
|
44
|
-
setTimeout(() => {
|
45
|
-
// add is-loaded class
|
46
|
-
document.body.classList.add('is-loaded')
|
47
|
-
}, PAGE_TRANSITION_TIME)
|
48
|
-
})
|
49
|
-
|
50
36
|
document.addEventListener('turbo:before-cache', (e) => {
|
51
|
-
console.log('turbo:before-cache')
|
52
|
-
|
53
37
|
e.preventDefault()
|
54
38
|
|
55
|
-
// remove is-loaded class
|
56
|
-
document.body.classList.remove('is-loaded')
|
57
|
-
|
58
39
|
// hide aside menu (for mobile)
|
59
40
|
document.body.classList.remove('aside-open')
|
60
41
|
|
@@ -70,7 +51,9 @@ document.addEventListener('turbo:before-cache', (e) => {
|
|
70
51
|
document.body.style.paddingRight = ''
|
71
52
|
document.body.style.overflow = ''
|
72
53
|
|
73
|
-
|
74
|
-
|
75
|
-
|
54
|
+
// close nav menu (for mobile)
|
55
|
+
document.querySelector('.navbar-toggler').classList.add('collapsed')
|
56
|
+
document.querySelector('.navbar-collapse').classList.remove('show')
|
57
|
+
|
58
|
+
e.detail.resume()
|
76
59
|
})
|
@@ -41,20 +41,9 @@ $gray-900: #1f262c !default;
|
|
41
41
|
|
42
42
|
/** Custom style */
|
43
43
|
|
44
|
-
body {
|
45
|
-
&.is-loaded {
|
46
|
-
main {
|
47
|
-
opacity: 1;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
44
|
main {
|
53
45
|
width: 100%;
|
54
46
|
|
55
|
-
opacity: 0;
|
56
|
-
transition: opacity 0.05s ease-in-out;
|
57
|
-
|
58
47
|
&.layout_sidebar {
|
59
48
|
width: calc(100% - 280px);
|
60
49
|
|
@@ -37,7 +37,13 @@ module Lato
|
|
37
37
|
if collection.respond_to?(:lato_index_search)
|
38
38
|
collection = collection.lato_index_search(search)
|
39
39
|
else
|
40
|
-
query = @_lato_index[key][:searchable_columns].map
|
40
|
+
query = @_lato_index[key][:searchable_columns].map do |key|
|
41
|
+
if collection.column_for_attribute(key).type == :string
|
42
|
+
"LOWER(#{key}) LIKE :search"
|
43
|
+
else
|
44
|
+
"CAST(#{key} AS TEXT) LIKE :search"
|
45
|
+
end
|
46
|
+
end
|
41
47
|
collection = collection.where(query.join(' OR '), search: "%#{search.downcase.strip}%")
|
42
48
|
end
|
43
49
|
end
|
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: 3.
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|