tybo 0.0.21 → 0.0.23

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: 74bb5b582010bb0181564c54726c59d809207be9be11d21d401a75e6dfec1d49
4
- data.tar.gz: 5baf8341ca26741ce38cecfa8eeac0cdacf8e9ac38de2ab225b9a8a5a7136d02
3
+ metadata.gz: 4bb11bc17c58d699178e7692aa1175590c996cbd037673265227ce9790f03acd
4
+ data.tar.gz: 3c8c5e21053ef6d946b284d945aaef82628e1ff4d5a8f9f9b9654b94a822a2ea
5
5
  SHA512:
6
- metadata.gz: cb918064435897debc472a373f9731eac14b2ba3f6adf6ed384a0df2b242276162c2d5e455d3a4afc2ed2340f5245b284822e474f60b01af309745bf5a4a80c5
7
- data.tar.gz: 7fc148dc7209afdb269270835c978c8c725ab0fcf9150f76cba3a4ff1750f65474a518f04b55018fadb6d3db77d1328c00bf77e48739595947b02093b8b17ca9
6
+ metadata.gz: ae087d419989b538a17571972b1fbb0a216ff4caa487928cdf45d35742f156545cd2214e179b106e5120bccf3049518a50c656ffe03e5cedd488c165729fdb91
7
+ data.tar.gz: 0fc955fa6c5768f8f3c845500803fa0a0e9870e772b8431d98f6b7f4cc36b18837b0b3f19f074f5a03cd4e719ee975f774bbda17076ef6edbc0828c253c40a47
@@ -1,7 +1,7 @@
1
1
  <div class="flex-shrink-0 flex justify-between items-center border-t border-sidebar-200 p-4">
2
2
  <div class="flex items-center">
3
3
  <p class="text-sm ml-3 font-medium text-white">
4
- <%= @user.email %>
4
+ <%= @user.email.truncate(27) %>
5
5
  </p>
6
6
  </div>
7
7
  <%= render(SignOutButtonComponent.new(resource: @user.class.name.underscore)) %>
@@ -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
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.21'
2
+ VERSION = '0.0.23'
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.21
4
+ version: 0.0.23
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-08 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: []