administrate_tailwind_theme 0.0.2 → 0.0.3

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: 7636dc83af2cd6dbda3d5c69e386af6f5253eb0248371ec4435791a7e55e7b00
4
- data.tar.gz: da4970821671b47d8e6c1c58444d8980aa141dc3009538e639c9440628656799
3
+ metadata.gz: f5c39aeb1af7bfd6a1bc7ce5226dced41b45d1eed58ac5c816ca8de72a46e08c
4
+ data.tar.gz: 43528ce8645b89985f4100f859d98f479ccbd21d88ad6794e3314e99cb326f3d
5
5
  SHA512:
6
- metadata.gz: 0fedacfae9608b0b164b01c96e3c5b2b8a6ada0383e81c7ff61b3e2e5c63b57402c76d54d099b459cffbf494e8b5b2624b2ce01c5ea925d70566bd5121533735
7
- data.tar.gz: 4cc5c054d6cc38407acce1ed7f5faaed9605506b2ea054491b416faa21ed16876844d05f5da60c7c8826376eb9c90d0bb33b125c16d34063cffb5ab4ae7b616d
6
+ metadata.gz: f8d747deba5ac35c1463cb95fbaf2621d11443b2f9e1cf4c78c132ec4e6458c06f6e521d069cac73d3c7a58ae128f6073889af6ca4051ba28fdb673b8c592e66
7
+ data.tar.gz: 2bcdf12751dedf9103dc8bc07b9fda1d7552bc77c895731eaebddbe36547f5ad24e64bcd9453e03094e1d7b46dbe6ea9a153acc8feac162950d2359c321dc110
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # administrate_tailwind_theme Gem
2
+ [![Gem Version](https://badge.fury.io/rb/administrate_tailwind_theme.svg)](https://badge.fury.io/rb/administrate_tailwind_theme)
2
3
  [![AdministrateTailwindTheme CI](https://github.com/Eth3rnit3/administrate-tailwind-theme/actions/workflows/main.yml/badge.svg)](https://github.com/Eth3rnit3/administrate-tailwind-theme/actions/workflows/main.yml)
3
4
  [![Publish on RubyGems](https://github.com/Eth3rnit3/administrate-tailwind-theme/actions/workflows/gem-push.yml/badge.svg)](https://github.com/Eth3rnit3/administrate-tailwind-theme/actions/workflows/gem-push.yml)
4
5
 
@@ -70,6 +71,19 @@ AdministrateTailwindTheme:
70
71
  ./bin/rails g administrate_tailwind_theme:views:kaminari
71
72
  ```
72
73
 
74
+ ### Navigations
75
+ #### Icons
76
+ For customizing the navigation menu with icons, you can include SVG files for each resource. Here's an example for adding an icon for `User` model:
77
+
78
+ ```html
79
+ <!-- app/views/administrate/navigation/icons/_users.html.erb -->
80
+ <svg class="w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
81
+ <!-- SVG path for user icon -->
82
+ </svg>
83
+ ```
84
+
85
+ Place this SVG file in the specified directory, and it will automatically be displayed next to the corresponding resource in the navigation menu.
86
+
73
87
  ### Custom Fields
74
88
  #### BooleanEmoji Field
75
89
  The `BooleanEmoji` field can be used to display boolean values with emojis for a more intuitive representation.
@@ -32,7 +32,7 @@ It renders the `_table` partial to display details about the resources.
32
32
  )
33
33
  %>
34
34
 
35
- <section class="m-5 bg-white shadow overflow-hidden rounded-lg">
35
+ <section class="m-5 bg-white shadow overflow-hidden overflow-x-scroll rounded-lg">
36
36
  <%= render(
37
37
  "collection",
38
38
  collection_presenter: page,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdministrateTailwindTheme
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate_tailwind_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eth3rnit3
@@ -125,7 +125,7 @@ files:
125
125
  - app/views/administrate/application/show.html.erb
126
126
  - app/views/administrate/navigation/icons/_comments.html.erb
127
127
  - app/views/administrate/navigation/icons/_messages.html.erb
128
- - app/views/administrate/navigation/icons/_users.erb
128
+ - app/views/administrate/navigation/icons/_users.html.erb
129
129
  - app/views/fields/belongs_to/_form.html.erb
130
130
  - app/views/fields/belongs_to/_index.html.erb
131
131
  - app/views/fields/belongs_to/_show.html.erb