tybo 0.0.28 → 0.0.30

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: 56d9b9272e6d6e14af97820f335b1bfd160f8ced2ab89070b876d6d7eb09a6d9
4
- data.tar.gz: ea7200353d860966cb53ff565bcc237a5c2333c5e3ca287f0b913f939a9c78f6
3
+ metadata.gz: ba87b228afc0fbf8d86b0e7a131014e3b3ea48dc2371b1683370a84abfc325b0
4
+ data.tar.gz: e74cb37337e05ec1cb5ab8b2c58b68aa481c351c639c5ef2bcb547e5308fafd8
5
5
  SHA512:
6
- metadata.gz: 81f4a59eb16a72c4909bbd1647fabf616f5672cb5acb888ad5a562a666fe314f735a7ac7309d5f5a828d244796c088b3cdfb8ed288355f85847d467d0d426478
7
- data.tar.gz: 8a36ec0b899ff2300f56826d779ff717a70d233154708dbaeb93d32e64406f5ff51321577073d65e4771c9abeb16e032cde0e906a508d89eee4659583d01c47c
6
+ metadata.gz: ebe56be83770dc24bc3a86df204b1706b8c877f35b9c75730400976381dc57d92e84d2c39080076099db1b06f3cc90c5cb6c896b7d243e7bed9d89b5f9d4b347
7
+ data.tar.gz: 5deda09e96c218454755eb4b9bfa0b8cb151fdf32b4f54dcf39f1a961d2e7700d2564ee57ef20aa4e389f2eadcfc5e385aab61e2252b3fba37c810b83a91f592
@@ -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="mr-3 flex-shrink-0 h-6 w-6 text-white text-sidebar-50">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" />
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icons
4
+ class UsersTwoComponent < ViewComponent::Base
5
+ end
6
+ end
@@ -20,7 +20,7 @@ class BoGenerator < Rails::Generators::NamedBase
20
20
  template 'show.html.erb', File.join("app/views/#{options[:namespace]}", "#{plural_name}/show.html.erb")
21
21
  template 'controller.rb', File.join("app/controllers/#{options[:namespace]}", "#{plural_name}_controller.rb")
22
22
  template 'policy.rb', File.join("app/policies/bo/#{options[:namespace]}", "#{file_name.underscore}_policy.rb")
23
- unless File.exists?("app/policies/bo/#{options[:namespace]}.rb")
23
+ unless File.exists?("app/policies/bo/#{options[:namespace]}_policy.rb")
24
24
  template 'namespace_policy.rb', "app/policies/bo/#{options[:namespace]}_policy.rb"
25
25
  end
26
26
  create_translations
@@ -64,7 +64,7 @@ class BoGenerator < Rails::Generators::NamedBase
64
64
  end
65
65
 
66
66
  def excluded_columns
67
- %i[id created_at updated_at]
67
+ %i[id created_at updated_at encrypted_password]
68
68
  end
69
69
 
70
70
  def permited_params
@@ -19,7 +19,7 @@
19
19
  <%%= tr.with_td do %>
20
20
  <%%= link_to <%="#{options[:namespace]}_#{class_name.underscore}_path(#{class_name.underscore})"%>,
21
21
  class: "text-tybo-600 hover:text-tybo-900",
22
- data: {turbo_method: :delete, turbo_confirm: "êtes vous sur ?"} do %>
22
+ data: {turbo_method: :delete, turbo_confirm: "êtes-vous sûr ?"} do %>
23
23
  <%%= render(Icons::TrashComponent.new) %>
24
24
  <%% end %>
25
25
  <%% end %>
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bo
2
4
  class <%= options[:namespace].camelize %>Policy < ActionPolicy::Base
3
5
  def show?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bo
2
4
  module <%= options[:namespace].camelize %>
3
5
  class <%= class_name %>Policy < Bo::<%= options[:namespace].camelize %>Policy
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.28'
2
+ VERSION = '0.0.30'
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.28
4
+ version: 0.0.30
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-15 00:00:00.000000000 Z
12
+ date: 2023-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -173,6 +173,8 @@ files:
173
173
  - app/components/icons/trash_component.rb
174
174
  - app/components/icons/users_component.html.erb
175
175
  - app/components/icons/users_component.rb
176
+ - app/components/icons/users_two_component.html.erb
177
+ - app/components/icons/users_two_component.rb
176
178
  - app/components/index_component.html.erb
177
179
  - app/components/index_component.rb
178
180
  - app/components/index_header_add_component.html.erb