administrate_tailwind_theme 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5c39aeb1af7bfd6a1bc7ce5226dced41b45d1eed58ac5c816ca8de72a46e08c
|
|
4
|
+
data.tar.gz: 43528ce8645b89985f4100f859d98f479ccbd21d88ad6794e3314e99cb326f3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8d747deba5ac35c1463cb95fbaf2621d11443b2f9e1cf4c78c132ec4e6458c06f6e521d069cac73d3c7a58ae128f6073889af6ca4051ba28fdb673b8c592e66
|
|
7
|
+
data.tar.gz: 2bcdf12751dedf9103dc8bc07b9fda1d7552bc77c895731eaebddbe36547f5ad24e64bcd9453e03094e1d7b46dbe6ea9a153acc8feac162950d2359c321dc110
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# administrate_tailwind_theme Gem
|
|
2
|
+
[](https://badge.fury.io/rb/administrate_tailwind_theme)
|
|
2
3
|
[](https://github.com/Eth3rnit3/administrate-tailwind-theme/actions/workflows/main.yml)
|
|
3
4
|
[](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,
|
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.
|
|
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
|
|
File without changes
|