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 +4 -4
- data/app/components/icons/users_two_component.html.erb +3 -0
- data/app/components/icons/users_two_component.rb +6 -0
- data/lib/generators/bo/bo_generator.rb +2 -2
- data/lib/generators/bo/templates/_table.html.erb +1 -1
- data/lib/generators/bo/templates/namespace_policy.rb +2 -0
- data/lib/generators/bo/templates/policy.rb +2 -0
- data/lib/tybo/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba87b228afc0fbf8d86b0e7a131014e3b3ea48dc2371b1683370a84abfc325b0
|
4
|
+
data.tar.gz: e74cb37337e05ec1cb5ab8b2c58b68aa481c351c639c5ef2bcb547e5308fafd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
@@ -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
|
22
|
+
data: {turbo_method: :delete, turbo_confirm: "êtes-vous sûr ?"} do %>
|
23
23
|
<%%= render(Icons::TrashComponent.new) %>
|
24
24
|
<%% end %>
|
25
25
|
<%% end %>
|
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.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-
|
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
|