tybo 0.3.6 → 0.3.8

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: 3146afbd660b1e22f3df65b1ae586daa8ad9b307fa48f2beb3865ec61ba41246
4
+ data.tar.gz: 1243d4eca2924b4a807fea42283ceb0885b2afa5a50eb14455eedeb867632bc3
5
5
  SHA512:
6
- metadata.gz: d91e5af863b3e2b8c2c9cabe47c39a500d8573732f9fa77e630a78a73b8e5973693ff9debf77639239aa029da59755b795e7007a1f968244f93984ed06b68741
7
- data.tar.gz: 4aec757423dc661e48558f035991536ac1499b11ef0b6d00d7ae856b09010edc1910e7de030f5a5652af81ffaa2180ac123d54591db739d9cc2894208e076b38
6
+ metadata.gz: 481ef90ab0a27aaa9ed7497275972d343658df2ed9f502d09015f1672b21a238eb9f3f5db765543644c817e9931f42ce2958542676134e2269ef17144690e0d4
7
+ data.tar.gz: 1cbd63171472f1fd3cdfa1983cdf6d6b98565ef7d1906cbcbd0f52e80d46b0d98c1c6f1513a5e47d26fa78d7f0619fa2c48d1d6677a09a58447f6bfdab40843b
@@ -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
@@ -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="w-6 h-6 cursor-grabbing #{@text_color}">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5" />
3
+ </svg>
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icons
4
+ class DragAndDropComponent < ViewComponent::Base
5
+ def initialize(text_color: 'text-tybo-800')
6
+ @text_color = text_color
7
+ end
8
+ end
9
+ 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.8'
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.8
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-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -153,6 +153,10 @@ 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
158
+ - app/components/icons/drag_and_drop_component.html.rb
159
+ - app/components/icons/drag_and_drop_component.rb
156
160
  - app/components/icons/home_component.html.erb
157
161
  - app/components/icons/home_component.rb
158
162
  - app/components/icons/mic_component.html.erb