tybo 0.0.35 → 0.0.36
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/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: 036cdcc280ede0327d1bcbe692a18d1569265fc78292805d28a4dfbdd65ee9ef
|
4
|
+
data.tar.gz: 8fc3de9a562d1e81cd41193fd229182eacbfed5f1f5ab8dbcaa183b53d84a364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b6e068ca9110bc095adbff483c08710ff87e7987d372723c1f2a38ef7b86d35585bdd34f7520caafcb0e8c5fa6add2620725c8cf2c3887c550147bef641fcb8
|
7
|
+
data.tar.gz: 04ef441ff6cb1d0a89b736b2191a91b5bc8c9c73414a7f1a85d6f3d7962b38297ea70a09677a6aa378196a7016da51313d3353066103d866e4a5f837cd8b4739
|
@@ -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.36
|
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
|