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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f1a040c49efef7ae924cde3a0bc4cd77622fc8920bd8d376d891c015859c4fa
4
- data.tar.gz: 2236e0ffe3cf5ff30613aa801c00f341abd8786872ba92ed379c1f196d167869
3
+ metadata.gz: cb27c0217c847522c9b2f2838da8ce68de06c2e06d93521a9f8840acac27c906
4
+ data.tar.gz: b0b6846623771f80677ffd93dc3ac22e5d7ec373a13e1f268cb9911ae82698f1
5
5
  SHA512:
6
- metadata.gz: 293a5d9bd5d672671cf4f8cee78a6c641df9bf105e7b262221bfcac4bec6c0961d7b3e982061bbef2e7d5373d69deb3ac10b2496ec43f2e2df6c80aee8df732f
7
- data.tar.gz: a992ebe8fd5f0bc3bedb135402c126db152f33bcc21a26503398ba05f8320b9ca6748c442d40b7e514685213b75d82236d255c4d12181cf254e2fb9ff77a4ec8
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: remove_attachment_admin_thematic_path(@attachment.record), attachments_attachment_id_value: @attachment.id, action: "click->attachments#toggle" } do %>
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 %>
@@ -3,7 +3,8 @@
3
3
  include Turbo::FramesHelper, Turbo::Streams::StreamName, Turbo::Streams::Broadcasts
4
4
 
5
5
  class AttachmentCardComponent < ViewComponent::Base
6
- def initialize(attachment:)
6
+ def initialize(attachment:, url:)
7
7
  @attachment = attachment
8
+ @url = url
8
9
  end
9
10
  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)
@@ -9,6 +9,6 @@ class <%= class_name %>Controller < ApplicationController
9
9
  private
10
10
 
11
11
  def namespace
12
- @namespace ||= Bo::<%= class_name %>.pluralize
12
+ @namespace ||= Bo::<%= class_name.pluralize %>
13
13
  end
14
14
  end
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.35'
2
+ VERSION = '0.0.37'
3
3
  end
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.35
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-28 00:00:00.000000000 Z
12
+ date: 2023-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails