tybo 0.0.35 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/attachment_card_component.html.erb +1 -1
- data/app/components/attachment_card_component.rb +2 -1
- data/app/components/forms/breadcrumb_component.html.erb +1 -1
- data/lib/generators/bo/templates/index.html.erb +1 -1
- data/lib/generators/bo/utils/translations.rb +2 -0
- data/lib/generators/bo_namespace/templates/admin_controller.rb +1 -1
- data/lib/tybo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb27c0217c847522c9b2f2838da8ce68de06c2e06d93521a9f8840acac27c906
|
4
|
+
data.tar.gz: b0b6846623771f80677ffd93dc3ac22e5d7ec373a13e1f268cb9911ae82698f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540695bbd7ec31b2c6828e3f24673ec77358efd64d8a141dda3ea8879cf0aeb576e51acf1ef316ddde973a2c43f59c9e442682edbadd62acd5bb4b0f858c6132
|
7
|
+
data.tar.gz: 5e82e5399d5407e5519c59025b9ca5421f3413a8a499aa0552bf7884182d2076a04f6e907a1951e88dc3f7507a7b780e55dd0ca396c54ad986962ac29ec25361
|
@@ -17,7 +17,7 @@
|
|
17
17
|
</div>
|
18
18
|
|
19
19
|
<div class="flex-shrink-0 pr-2">
|
20
|
-
<%= button_tag type: :button, data: { controller: "attachments", attachments_method_value: 'delete', attachments_url_value:
|
20
|
+
<%= button_tag type: :button, data: { controller: "attachments", attachments_method_value: 'delete', attachments_url_value: @url, attachments_attachment_id_value: @attachment.id, action: "click->attachments#toggle" } do %>
|
21
21
|
<span class="sr-only">Delete</span>
|
22
22
|
<%= render(Icons::TrashComponent.new) %>
|
23
23
|
<% end %>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
10
10
|
</svg>
|
11
11
|
<% end %>
|
12
|
-
<a href="<%= item[:path] %>" class="<%= 'ml-4' unless i.zero? %> text-sm font-medium text-gray-500 hover:text-gray-700">
|
12
|
+
<a href="<%= item[:path] %>" data-turbo-frame="_top" class="<%= 'ml-4' unless i.zero? %> text-sm font-medium text-gray-500 hover:text-gray-700">
|
13
13
|
<%= item[:label] %>
|
14
14
|
</a>
|
15
15
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<!-- Search Bar -->
|
11
11
|
<%%= render('search_bar') %>
|
12
12
|
<!-- Table -->
|
13
|
-
<%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
|
13
|
+
<%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top', class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
|
14
14
|
<%%= render('table') %>
|
15
15
|
<div class="py-2">
|
16
16
|
<%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
|
@@ -25,8 +25,10 @@ def create_translations
|
|
25
25
|
data[local]['bo'][file_name.underscore] = {
|
26
26
|
'one' => find_existing_translation(bo_model.to_s.downcase, local),
|
27
27
|
'others' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
|
28
|
+
'new' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
|
28
29
|
'subtitle' => find_existing_translation("list of #{bo_model.to_s.pluralize.downcase}", local),
|
29
30
|
'attributes' => model_attributes(data, local)
|
31
|
+
|
30
32
|
}
|
31
33
|
output = YAML.dump data
|
32
34
|
File.write(locale_file, output)
|
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.0.
|
4
|
+
version: 0.0.37
|
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: 2023-03-
|
12
|
+
date: 2023-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|