tybo 0.0.22 → 0.0.24

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: 0a943af65b2b8a0e6b24bb8f92b5441c6961a3e0de0a2481279f8f5fb2bfdae2
4
- data.tar.gz: aa7d8f6ca729c389a689bf18ae0c9b256a3ca6f53bc1f6ba45c364b3b6af1f84
3
+ metadata.gz: 1f138be56ff33db2fcedafd153fc1cee963e47d792dbe0c4ee17bc754e66ee66
4
+ data.tar.gz: 2bf0ce49099e0634292b659c228a18b3abec4045dade3126e29897b8d8c43989
5
5
  SHA512:
6
- metadata.gz: e11ba92239a7c2fcc6aa805bbf4066b82b8e2e52f7dcd02d3f6d33468b2fabce4a4bd60018f422659e7c68d06887a89e9739c8160df87b71ee6d5ebf9d919749
7
- data.tar.gz: 1fe0a4a36f7dae72a2bf2bce6c392a7d698be67c68daf8870006194689000ffdae37397e32a86fc6034528cfd6278b0217b4d82019dbd50039588116904e598b
6
+ metadata.gz: d069473a8f19c67a1247364b82ae0c2063e46204e51a64b6067107c0d9569e9434e4b142449d345845217672a233edd3b7297f5b6b9b9c8a633ca9396bbe79e8
7
+ data.tar.gz: 632f6ba0d1ca819621414385afcabe9b32ee77513a419bf4bfc857b397e36edd0d4cedf9857a8f1f1bb6e17974a03ab3910d52206b51f9ffc0060ec2f695c369
@@ -1,3 +1,3 @@
1
- <div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
1
+ <div class="mt-4 mr-2 sm:flex-none">
2
2
  <%= link_to '+', @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
3
3
  </div>
@@ -8,8 +8,11 @@
8
8
  </p>
9
9
  </div>
10
10
 
11
- <% if add_button? %>
12
- <%= add_button %>
11
+ <% if export_button? %>
12
+ <%= export_button %>
13
13
  <% end %>
14
14
 
15
+ <% if add_button? %>
16
+ <%= add_button %>
17
+ <% end %>
15
18
  </div>
@@ -2,6 +2,7 @@
2
2
 
3
3
  class IndexHeaderComponent < ViewComponent::Base
4
4
  renders_one :add_button, IndexHeaderAddComponent
5
+ renders_one :export_button, IndexHeaderExportComponent
5
6
 
6
7
  def initialize(title:, subtitle:)
7
8
  @title = title
@@ -0,0 +1,3 @@
1
+ <div class="mt-4 mr-2 sm:flex-none">
2
+ <%= link_to I18n.t('bo.btn.export'), @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
3
+ </div>
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexHeaderExportComponent < ViewComponent::Base
4
+ def initialize(path:)
5
+ @path = path
6
+ end
7
+
8
+ end
@@ -13,7 +13,7 @@ module Input
13
13
  end
14
14
 
15
15
  def label
16
- I18n.t("#{@item.class.name.downcase}.attributes.#{@field}")
16
+ I18n.t("bo.#{@item.class.name.downcase}.attributes.#{@field}")
17
17
  end
18
18
 
19
19
  def picture
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.22'
2
+ VERSION = '0.0.24'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
8
8
  - Julien Camblan
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-06 00:00:00.000000000 Z
12
+ date: 2023-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -179,6 +179,8 @@ files:
179
179
  - app/components/index_header_add_component.rb
180
180
  - app/components/index_header_component.html.erb
181
181
  - app/components/index_header_component.rb
182
+ - app/components/index_header_export_component.html.erb
183
+ - app/components/index_header_export_component.rb
182
184
  - app/components/input/file_component.html.erb
183
185
  - app/components/input/file_component.rb
184
186
  - app/components/sidebar_component.html.erb
@@ -269,7 +271,7 @@ licenses:
269
271
  - MIT
270
272
  metadata:
271
273
  homepage_uri: https://rubygems.org/gems/tybo
272
- post_install_message:
274
+ post_install_message:
273
275
  rdoc_options: []
274
276
  require_paths:
275
277
  - lib
@@ -285,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
287
  version: '0'
286
288
  requirements: []
287
289
  rubygems_version: 3.0.3.1
288
- signing_key:
290
+ signing_key:
289
291
  specification_version: 4
290
292
  summary: A tailwind custom admin engine for Ruby on Rails
291
293
  test_files: []