tybo 0.3.12 → 0.3.14
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 +4 -4
- data/app/components/form_component.html.erb +2 -2
- data/app/components/icons/categories_component.html.erb +3 -0
- data/app/components/icons/categories_component.rb +6 -0
- data/app/components/icons/drag_and_drop_component.html.erb +1 -1
- data/app/components/tag/category_component.html.erb +3 -0
- data/app/components/tag/category_component.rb +10 -0
- data/lib/generators/bo/templates/_table.html.erb +2 -0
- data/lib/generators/bo/templates/index.html.erb +9 -9
- data/lib/tybo/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbf875c20d7f2d0f4478390c1a71cebd6a71eae76eae4b0e003fbaa7c81faa59
|
4
|
+
data.tar.gz: a1a3b084939755ea0b13e005136e9d061f9f68b05f417be1e983184349bba4fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162c45a2160b0fde884972c2dc2bc8269a59fa180ae569ed963071a8abb75bad5cefe757614a9c6eed0b90d57e24981dfc4b51c934ef1010ed5f382283803666
|
7
|
+
data.tar.gz: 8547eb59a2a0288aaa8aaf3a5bd6e373833e3f71574a72ed1014acaf97f8a087ef3ee198c1be246e3938aa9166e5b7f8a820491977b949d0a09c4be87099cf17
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="px-4 mx-auto max-w-7xl sm:px-6 lg:px-8">
|
2
2
|
<div class="max-w-2xl mx-auto ">
|
3
3
|
|
4
4
|
<% if breadcrumb? %>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
</div>
|
30
30
|
<% end %>
|
31
31
|
|
32
|
-
<div class="px-4 bg-white sm:p-6
|
32
|
+
<div class="px-4 bg-white shadow sm:p-6 sm:rounded-md">
|
33
33
|
<%= content %>
|
34
34
|
</div>
|
35
35
|
</div>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="flex-shrink-0 w-6 h-6 mr-3 text-white text-sidebar-50">
|
2
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z" />
|
3
|
+
</svg>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 cursor-grabbing <%= @text_color %>">
|
2
2
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5" />
|
3
3
|
</svg>
|
@@ -3,6 +3,8 @@
|
|
3
3
|
<%- bo_model.column_names.each do |column| -%>
|
4
4
|
<%%= thead.with_active_record_th(column_name: '<%= column %>', ransack_object: @q) %>
|
5
5
|
<%- end -%>
|
6
|
+
<%%= thead.with_active_record_th(column_name: '', ransack_object: @q) %>
|
7
|
+
<%%= thead.with_active_record_th(column_name: '', ransack_object: @q) %>
|
6
8
|
<%% end %>
|
7
9
|
|
8
10
|
<%% table.with_tbody do |tbody| %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<%%= render(IndexComponent.new) do |index| %>
|
2
2
|
<!-- Header -->
|
3
|
-
<%%=
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<%% end %>
|
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, params: {q: params.permit!['q']})"%>)%>
|
9
|
+
<%% end %>
|
11
10
|
|
12
11
|
<!-- Search Bar -->
|
13
|
-
|
12
|
+
<%%= render('search_bar') %>
|
14
13
|
<!-- Table -->
|
14
|
+
<%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top' 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
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tybo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Delpierre
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -151,6 +151,8 @@ files:
|
|
151
151
|
- app/components/forms/subtitle_component.rb
|
152
152
|
- app/components/forms/title_component.html.erb
|
153
153
|
- app/components/forms/title_component.rb
|
154
|
+
- app/components/icons/categories_component.html.erb
|
155
|
+
- app/components/icons/categories_component.rb
|
154
156
|
- app/components/icons/collection_component.html.erb
|
155
157
|
- app/components/icons/collection_component.rb
|
156
158
|
- app/components/icons/dashboard_component.html.erb
|
@@ -205,6 +207,8 @@ files:
|
|
205
207
|
- app/components/tables/thead_component.rb
|
206
208
|
- app/components/tables/tr_component.html.erb
|
207
209
|
- app/components/tables/tr_component.rb
|
210
|
+
- app/components/tag/category_component.html.erb
|
211
|
+
- app/components/tag/category_component.rb
|
208
212
|
- app/controllers/tybo/application_controller.rb
|
209
213
|
- app/controllers/tybo/login_controller.rb
|
210
214
|
- app/helpers/tybo/application_helper.rb
|