tybo 0.3.4 → 0.3.6

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: b86b92ffa9d1d658ae0eadb90d7ef738757f67e72737cc6d8ed676958762f109
4
- data.tar.gz: 38d9bebf768cae1335dc860c0191c50a804a26c615e3e390188b66ac84f5b537
3
+ metadata.gz: 6ce933e9c12666d9a41a6ce852b44bd00e6d85da879cd4cc726470cbdadcb574
4
+ data.tar.gz: f953f447677b353bb44ff5936fd0c7a5b2ff8c95cb6a8676db9e1bd24e725965
5
5
  SHA512:
6
- metadata.gz: cad53643fb3a02c31f45651427df9432854650fe7bb029b7bafa02ff8143349bf58af1aeb69a6c795d2e51b90df81e68cce5c9db5bd24ab8264db3b47fc44bb3
7
- data.tar.gz: 8e584411d7f50bbb3ce11c1d71076f55cf425e45a5725044e56e5399d15e97bb4435e062e2a8eb3512374504725866ac49018956a5bf8d24203d860b198e91a7
6
+ metadata.gz: d91e5af863b3e2b8c2c9cabe47c39a500d8573732f9fa77e630a78a73b8e5973693ff9debf77639239aa029da59755b795e7007a1f968244f93984ed06b68741
7
+ data.tar.gz: 4aec757423dc661e48558f035991536ac1499b11ef0b6d00d7ae856b09010edc1910e7de030f5a5652af81ffaa2180ac123d54591db739d9cc2894208e076b38
@@ -1,17 +1,17 @@
1
1
  <%%= render(IndexComponent.new) do |index| %>
2
2
  <!-- Header -->
3
- <%%= index.with_header(
4
- title: I18n.t('bo.<%= class_name.underscore %>.others').capitalize,
5
- subtitle: I18n.t('bo.<%= class_name.underscore %>.subtitle').capitalize,
6
- ) do |header| %>
7
- <%%= header.with_add_button(path: <%="new_#{options[:namespace]}_#{class_name.underscore}_path" %>) %>
8
- <%%= header.with_export_button(path: <%= "export_csv_#{options[:namespace]}_#{class_name.pluralize.underscore}_path(format: :csv)"%>)%>
9
- <%% end %>
3
+ <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top' do %>
4
+ <%%= index.with_header(
5
+ title: I18n.t('bo.<%= class_name.underscore %>.others').capitalize,
6
+ subtitle: I18n.t('bo.<%= class_name.underscore %>.subtitle').capitalize,
7
+ ) do |header| %>
8
+ <%%= header.with_add_button(path: <%="new_#{options[:namespace]}_#{class_name.underscore}_path" %>) %>
9
+ <%%= header.with_export_button(path: <%= "export_csv_#{options[:namespace]}_#{class_name.pluralize.underscore}_path(format: :csv, params: {q: params.permit!['q']})"%>)%>
10
+ <%% end %>
10
11
 
11
12
  <!-- Search Bar -->
12
- <%%= render('search_bar') %>
13
+ <%%= render('search_bar') %>
13
14
  <!-- Table -->
14
- <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top', class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
15
15
  <%%= render('table') %>
16
16
  <div class="py-2">
17
17
  <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.6'
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.3.4
4
+ version: 0.3.6
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-11-06 00:00:00.000000000 Z
12
+ date: 2023-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -57,16 +57,16 @@ dependencies:
57
57
  name: ransack
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: 3.2.1
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: 3.2.1
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: pagy
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -275,7 +275,7 @@ licenses:
275
275
  - MIT
276
276
  metadata:
277
277
  homepage_uri: https://rubygems.org/gems/tybo
278
- post_install_message:
278
+ post_install_message:
279
279
  rdoc_options: []
280
280
  require_paths:
281
281
  - lib
@@ -290,8 +290,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  - !ruby/object:Gem::Version
291
291
  version: '0'
292
292
  requirements: []
293
- rubygems_version: 3.3.7
294
- signing_key:
293
+ rubygems_version: 3.0.3.1
294
+ signing_key:
295
295
  specification_version: 4
296
296
  summary: A tailwind custom admin engine for Ruby on Rails
297
297
  test_files: []