lato 0.1.44 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 560743ac91d34285c3a1a14369638483ca28d3d2bc6d22227f648c794d7bd61e
4
- data.tar.gz: 92b1bfe12065f7f84bbba9b71f451881c59329da2057b7780697a199a871693a
3
+ metadata.gz: 1204c0f4f11643453ea8559142d0d766a9d2dded036c36c70f12561488431358
4
+ data.tar.gz: 63c6ac5ad05b64e373ba7700e27a9a338fe0c060e73e833569b58e95b58136db
5
5
  SHA512:
6
- metadata.gz: 723a1c8ea05d63e3e6c4f1f8b1fb50fbdfa86062627c78da29e2b11cfa0d6a3347aaab1278253a9e03cc0067d88873d0dd3c07138a51f8388c72a0539c948f32
7
- data.tar.gz: d71032b716971f96ca2d8309c1863e1c6a17388ff45ed3af39c35ef2b03896f27a5965f3470d97dc59e4ca7c7b9302515c540ff7be914d364d1328469a0252aa
6
+ metadata.gz: '019091bbe49d0479b679b79bb013c5d6ff2668a08f5a28e790e8fb481eee3b3e1224b954b2941334df1fa04285203e99f4e66d541bc08931ee614e866a6e48f8'
7
+ data.tar.gz: 4adbe1e81145ba4a84b22d47c8655ecb068dcafe58ae600cb213ece7fd4d6099d876cd1d3a1e7d0b26c714572fae8bbb3096db31548ec026823411c1c37f23e5
data/README.md CHANGED
@@ -84,6 +84,7 @@ $ git clone https://github.com/Lato-GAM/lato
84
84
  $ cd lato
85
85
  $ bundle
86
86
  $ rails db:migrate
87
+ $ rails db:seed
87
88
  $ foreman start -f Procfile.dev
88
89
  ```
89
90
 
@@ -84,10 +84,7 @@ export default class extends Controller {
84
84
  this.modalBodyTargets[index].innerHTML = `
85
85
  <turbo-frame id="${options.turboFrame}">
86
86
  <div class="placeholder-glow">
87
- <span class="placeholder placeholder-lg col-12"></span>
88
- <span class="placeholder placeholder-lg col-12"></span>
89
- <span class="placeholder placeholder-lg col-12"></span>
90
- <span class="placeholder placeholder-lg col-12"></span>
87
+ ${Array(options.actionRows).fill().map(() => `<span class="placeholder placeholder-lg col-12"></span>`).join('')}
91
88
  </div>
92
89
  </turbo-frame>
93
90
  `
@@ -115,6 +112,8 @@ export default class extends Controller {
115
112
  options.turboFrame = element.getAttribute('data-turbo-frame')
116
113
  options.actionTitle = element.getAttribute('data-action-title')
117
114
  options.actionSize = element.getAttribute('data-action-size')
115
+ options.actionRows = element.getAttribute('data-action-rows')
116
+ options.actionRows = options.actionRows ? parseInt(options.actionRows) : 4
118
117
  return options
119
118
  }
120
119
 
@@ -1,6 +1,6 @@
1
1
  <nav id="nav" class="navbar <%= Lato.btstrap.navbar %>">
2
2
  <div class="<%= Lato.btstrap.navbar_container %>">
3
- <%= link_to root_path, class: "navbar-brand" do %>
3
+ <%= link_to main_app.root_path, class: "navbar-brand" do %>
4
4
  <%= render 'layouts/lato/navbar-brand_content' %>
5
5
  <% end %>
6
6
 
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.44"
2
+ VERSION = "0.1.46"
3
3
  end
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.1.44
4
+ version: 0.1.46
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-03-21 00:00:00.000000000 Z
11
+ date: 2023-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails