tybo 0.3.1 → 0.3.4

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: f868105783b1c54829bbf63a1209da1025504e38a8252782e8839d97a2b0eeb2
4
- data.tar.gz: 21eb809af4c857530d52dec15603b88ac90f442938d8c6b4a1ba1dc8b17520b8
3
+ metadata.gz: b86b92ffa9d1d658ae0eadb90d7ef738757f67e72737cc6d8ed676958762f109
4
+ data.tar.gz: 38d9bebf768cae1335dc860c0191c50a804a26c615e3e390188b66ac84f5b537
5
5
  SHA512:
6
- metadata.gz: 3569dc6485aa60d1d355db5b00e61aed1d045efd2fc782d45c479a494207d4c2b959069becdbeeac0daaabda2ac574352ef0840fb428a0f681dd34247635b63d
7
- data.tar.gz: 5421fefa7316175f47574bd8abeaac34016934e15f7ab75ffb51ec97728bf55188798c35e34851332604164605266a0636b1c998ea965c53692b208ee137db84
6
+ metadata.gz: cad53643fb3a02c31f45651427df9432854650fe7bb029b7bafa02ff8143349bf58af1aeb69a6c795d2e51b90df81e68cce5c9db5bd24ab8264db3b47fc44bb3
7
+ data.tar.gz: 8e584411d7f50bbb3ce11c1d71076f55cf425e45a5725044e56e5399d15e97bb4435e062e2a8eb3512374504725866ac49018956a5bf8d24203d860b198e91a7
data/README.md CHANGED
@@ -57,7 +57,8 @@ add your policy logic in ApplicationController eg:
57
57
 
58
58
  **Customize colors**: Change the `tybo` colors class in `tailwind.config.js`,
59
59
  you can use https://uicolors.app/create to generate complete palette
60
-
60
+ ## Customize trix editor
61
+ https://gist.github.com/dhairyagabha/034f5baefb054b7b960438aaf3d88341
61
62
  ## Contributing
62
63
 
63
64
  Contribution directions go here.
@@ -1,8 +1,8 @@
1
- <div class="relative mt-3 inline-block text-left" data-controller="dropdown">
1
+ <div class="relative inline-block mt-3 text-left" data-controller="dropdown">
2
2
  <div>
3
- <button data-action="click->dropdown#toggle click@window->dropdown#hide" type="button" class="inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none " id="menu-button" aria-expanded="true" aria-haspopup="true">
3
+ <button data-action="click->dropdown#toggle click@window->dropdown#hide" type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none " id="menu-button" aria-expanded="true" aria-haspopup="true">
4
4
  <%%= I18n.t('bo.filters') %>
5
- <svg class="-mr-1 ml-2 h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
5
+ <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
6
6
  <path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd" />
7
7
  </svg>
8
8
  </button>
@@ -22,29 +22,29 @@
22
22
  <%%= f.number_field :<%= col.name %>_eq, placeholder: I18n.t('bo.<%= class_name.underscore %>.attributes.<%= col.name %>'), data: { action: "input->search-form#search" }, class: "block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-tybo-500 focus:ring-tybo-500 sm:max-w-xs sm:text-sm" %>
23
23
  <%% end %>
24
24
  <%- elsif col.type == :boolean -%>
25
- <div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 pt-5">
25
+ <div class="pt-5 sm:grid sm:grid-cols-3 sm:items-start sm:gap-4">
26
26
  <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
27
27
  <%%= I18n.t('bo.<%= class_name.underscore %>.attributes.<%= col.name %>') %>
28
28
  </label>
29
29
  <div class="mt-1 sm:col-span-2 sm:mt-0">
30
- <span class="isolate inline-flex rounded-md shadow-sm">
30
+ <span class="inline-flex rounded-md shadow-sm isolate">
31
31
  <button type="button"
32
32
  data-target-id='q_<%= col.name %>_eq'
33
33
  data-action="click->search-form#setBooleanField"
34
- class="relative inline-flex items-center rounded-l-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">
34
+ class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-l-md hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">
35
35
  -
36
36
  </button>
37
37
  <button type="button"
38
38
  data-action="click->search-form#setBooleanField"
39
39
  data-value='true'
40
40
  data-target-id='q_<%= col.name %>_eq'
41
- class="relative inline-flex items-center rounded-l-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">ON
41
+ class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-l-md hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">ON
42
42
  </button>
43
43
  <button type="button"
44
44
  data-action="click->search-form#setBooleanField"
45
45
  data-value='false'
46
46
  data-target-id='q_<%= col.name %>_eq'
47
- class="relative inline-flex items-center rounded-l-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">OFF</button>
47
+ class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-l-md hover:bg-gray-50 focus:z-10 focus:border-tybo-500 focus:outline-none focus:ring-1 focus:ring-tybo-500">OFF</button>
48
48
  </span>
49
49
  <%%= f.hidden_field :<%= col.name %>_eq, value: nil, data: { action: "change->search-form#search"}%>
50
50
  </div>
@@ -60,7 +60,7 @@
60
60
  <%- end -%>
61
61
  <!-- belongs_to Associations -->
62
62
  <%- belongs_to_assoc.each do |association| -%>
63
- <div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 pt-5">
63
+ <div class="pt-5 sm:grid sm:grid-cols-3 sm:items-start sm:gap-4">
64
64
  <label for="<%=association.name%>" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
65
65
  <%%= I18n.t('bo.<%=association.klass.name.underscore%>.one') %>
66
66
  </label>
@@ -25,6 +25,5 @@
25
25
  "show": "Détails",
26
26
  "showing": "Affichage de",
27
27
  "of": "de",
28
- "results": "résultats",
29
- "export_btn": "Export CSV"
28
+ "results": "résultats"
30
29
  }
@@ -11,7 +11,6 @@ def create_translations
11
11
  'new' => find_existing_translation(nil, locale),
12
12
  'subtitle' => find_existing_translation("list of #{bo_model.to_s.pluralize.downcase}", locale),
13
13
  'attributes' => model_attributes(data, locale)
14
-
15
14
  }
16
15
  output = YAML.dump data
17
16
  File.write(locale_file, output)
@@ -30,5 +30,6 @@
30
30
  "save": "Save",
31
31
  "showing": "Showing",
32
32
  "of": "of",
33
- "results": "results"
33
+ "results": "results",
34
+ "export_btn": "CSV export"
34
35
  }
@@ -30,5 +30,6 @@
30
30
  "save": "Sauvegarder",
31
31
  "showing": "Affichage de",
32
32
  "of": "de",
33
- "results": "resultats"
33
+ "results": "résultats",
34
+ "export_btn": "Export CSV"
34
35
  }
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.4'
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.1
4
+ version: 0.3.4
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-10-10 00:00:00.000000000 Z
12
+ date: 2023-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -57,22 +57,16 @@ dependencies:
57
57
  name: ransack
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '3.2'
63
60
  - - ">="
64
61
  - !ruby/object:Gem::Version
65
- version: 3.2.1
62
+ version: '0'
66
63
  type: :runtime
67
64
  prerelease: false
68
65
  version_requirements: !ruby/object:Gem::Requirement
69
66
  requirements:
70
- - - "~>"
71
- - !ruby/object:Gem::Version
72
- version: '3.2'
73
67
  - - ">="
74
68
  - !ruby/object:Gem::Version
75
- version: 3.2.1
69
+ version: '0'
76
70
  - !ruby/object:Gem::Dependency
77
71
  name: pagy
78
72
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
290
  - !ruby/object:Gem::Version
297
291
  version: '0'
298
292
  requirements: []
299
- rubygems_version: 3.4.10
293
+ rubygems_version: 3.3.7
300
294
  signing_key:
301
295
  specification_version: 4
302
296
  summary: A tailwind custom admin engine for Ruby on Rails