tybo 0.3.6 → 0.3.7

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: 6ce933e9c12666d9a41a6ce852b44bd00e6d85da879cd4cc726470cbdadcb574
4
- data.tar.gz: f953f447677b353bb44ff5936fd0c7a5b2ff8c95cb6a8676db9e1bd24e725965
3
+ metadata.gz: 74fa667d39f65ff4a807cfcec3f8dd1080e93642b849c911359ccc4ee347e574
4
+ data.tar.gz: d7f5f977ddc9c4ebbfe322f28d5401ee3f6e5aa20e324d3ba163a4535ac9e934
5
5
  SHA512:
6
- metadata.gz: d91e5af863b3e2b8c2c9cabe47c39a500d8573732f9fa77e630a78a73b8e5973693ff9debf77639239aa029da59755b795e7007a1f968244f93984ed06b68741
7
- data.tar.gz: 4aec757423dc661e48558f035991536ac1499b11ef0b6d00d7ae856b09010edc1910e7de030f5a5652af81ffaa2180ac123d54591db739d9cc2894208e076b38
6
+ metadata.gz: d5137191ee8a0dea3642ae28da38e3a3c18af93a9742905db8ae8abd2fa0e5b4db7fe84c94b284b7562c70ebbc01c88d851b5b415539cafda4d3ef5788a6a93e
7
+ data.tar.gz: 20084dbeeea3ef9e661ff40beaf5ec611109ee00d4f88f5aa2976f385c3a99ef52f93c92b0730ff709aeec7b51ee7d3bc91748cfa0c2f8cfcc5dca33b494b8fc
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="flex-shrink-0 w-6 h-6 mr-3 text-white text-sidebar-50">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z" />
3
+ <path stroke-linecap="round" stroke-linejoin="round" d="M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z" />
4
+ </svg>
5
+
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icons
4
+ class DashboardComponent < ViewComponent::Base
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
- <svg class="mr-3 flex-shrink-0 h-6 w-6 text-tybo" xmlns="http://www.w3.org/2000/svg" className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
1
+ <svg class="flex w-6 h-6 text-red-alert" xmlns="http://www.w3.org/2000/svg" className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
2
2
  <path strokeLinecap="round" strokeLinejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
3
3
  </svg>
@@ -1,3 +1,3 @@
1
- <div class="mt-4 mr-2 sm:flex-none">
2
- <%= link_to '+', @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
1
+ <div class="mt-4 sm:flex-none">
2
+ <%= link_to I18n.t('bo.add_ressource_btn'), @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
3
3
  </div>
@@ -73,7 +73,7 @@ class BoGenerator < Rails::Generators::NamedBase
73
73
  end
74
74
 
75
75
  def excluded_columns
76
- %i[id created_at updated_at encrypted_password]
76
+ %i[id created_at updated_at encrypted_password reset_password_token reset_password_sent_at remember_created_at remember_token confirmation_token]
77
77
  end
78
78
 
79
79
  def permited_params
@@ -14,7 +14,7 @@
14
14
  <%- end -%>
15
15
  <!-- RichText Associations -->
16
16
  <%- rich_text_assoc.each do |association| -%>
17
- <label class="block my-5 block text-sm font-medium text-gray-700 string optional text-sm font-medium text-gray-600">
17
+ <label class="block my-5 text-sm font-medium text-gray-600 text-gray-700 string optional">
18
18
  <%%= I18n.t('bo.<%= class_name.underscore %>.attributes.<%=- association.name.to_s.singularize.to_s.remove('rich_text_') -%>') %>
19
19
  </label>
20
20
  <%%= f.rich_text_area :<%= association.name.to_s.singularize.to_s.remove('rich_text_')%> %>
@@ -12,6 +12,7 @@
12
12
  <!-- columns -->
13
13
  <%- bo_model.columns.group_by(&:type).each do |type| -%>
14
14
  <%- type.second.sort_by(&:type).each do |col| -%>
15
+ <%- next if excluded_columns.include?(col.name.to_sym) || bo_model.reflect_on_all_associations.map(&:foreign_key).include?(col.name) -%>
15
16
  <%- next if bo_model.reflect_on_all_associations.map(&:foreign_key).include?(col.name) -%>
16
17
  <%- if col.type == :string || col.type == :text -%>
17
18
  <%%= render(Forms::SearchInputComponent.new(label: I18n.t('bo.<%= class_name.underscore %>.attributes.<%= col.name %>'))) do %>
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
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.3.6
4
+ version: 0.3.7
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-11-21 00:00:00.000000000 Z
12
+ date: 2023-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -153,6 +153,8 @@ files:
153
153
  - app/components/forms/title_component.rb
154
154
  - app/components/icons/collection_component.html.erb
155
155
  - app/components/icons/collection_component.rb
156
+ - app/components/icons/dashboard_component.html.erb
157
+ - app/components/icons/dashboard_component.rb
156
158
  - app/components/icons/home_component.html.erb
157
159
  - app/components/icons/home_component.rb
158
160
  - app/components/icons/mic_component.html.erb