light_admin 1.1.0 → 1.1.1

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: 907cfde1fd60e341b7bc98935f8a05601b9cd9508d35753fb61fa3bcb0aec2e3
4
- data.tar.gz: bc968e31f7d407f3e317f3c269f5ab8f1428ddfcff3946bc91857d1383954376
3
+ metadata.gz: 59222f68842369668e39e3c51ec1676168a6c9a3f00f3ddb925dd7fd8a6c1402
4
+ data.tar.gz: 4207678d090ea138f2214f7aafff365253f59f1e837e78adeb0ac71c3ba52346
5
5
  SHA512:
6
- metadata.gz: 7e52d74e6bce62f0d2cdab3904ff178f71df03f74802a00905b599aaa193cd74627888b74491d471afa7e0486aa4dd70beda425c2b47e17de3731243cf26bf44
7
- data.tar.gz: a94b46988b007ea0a626260d33fb62ca94a45e603bb6ea89cff4ddba2611e74702d93ead61657fa765c8d606c36f953f19d17a5048dc2f91e78b263269890dca
6
+ metadata.gz: afa02afc6daf024b3684716ca78cd793c01703fff51787dd944dd3cfeea1d35dddf4d80d293a80c5dbc1fbf110282eb4d735cf67e29aba5765937d21f953c86e
7
+ data.tar.gz: d4431d5b4c579d256d89b5db3a47603d81c3f57e1ea0b070b4e99daaa4659ac81eed6947e81d61e069566490e938664afe9725f243a97e2677d0726b008c8f77
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ * Hide `Filters` button if they are disabled.
6
+
7
+ ## 1.1.0
8
+
9
+ * Bump activeadmin max version to < 4.0
10
+
11
+ ## 1.0.9
12
+
13
+ * Correctly apply styling to action_items dropdown_menu buttons.
14
+
15
+ ## 1.0.8
16
+
17
+ * Add a green border to the header so we can know when we are in a safe environment (staging, development).
18
+
3
19
  ## 1.0.6
4
20
 
5
21
  * Replace some `overflow: scroll` by `auto` to avoid useless scroll bar.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- light_admin (1.0.7)
4
+ light_admin (1.1.0)
5
5
  activeadmin (>= 1.1.0, < 4.0)
6
6
 
7
7
  GEM
@@ -96,11 +96,11 @@ GEM
96
96
  loofah (2.22.0)
97
97
  crass (~> 1.0.2)
98
98
  nokogiri (>= 1.12.0)
99
- mini_portile2 (2.8.5)
100
99
  minitest (5.20.0)
101
100
  mutex_m (0.2.0)
102
- nokogiri (1.16.0)
103
- mini_portile2 (~> 2.8.2)
101
+ nokogiri (1.16.0-arm64-darwin)
102
+ racc (~> 1.4)
103
+ nokogiri (1.16.0-x86_64-darwin)
104
104
  racc (~> 1.4)
105
105
  psych (5.1.2)
106
106
  stringio
@@ -150,7 +150,7 @@ GEM
150
150
  zeitwerk (2.6.12)
151
151
 
152
152
  PLATFORMS
153
- ruby
153
+ arm64-darwin-22
154
154
  x86_64-darwin-20
155
155
 
156
156
  DEPENDENCIES
@@ -158,4 +158,4 @@ DEPENDENCIES
158
158
  rake (~> 12.0)
159
159
 
160
160
  BUNDLED WITH
161
- 2.1.4
161
+ 2.4.15
@@ -1,5 +1,7 @@
1
1
  $(document).ready(function () {
2
- $('#active_admin_content .table_tools').append('<a id="toggleFilters" href="#" class=\'epon\'>Filtres</a>');
2
+ if ($("#filters_sidebar_section").length !== 0) {
3
+ $('#active_admin_content .table_tools').append('<a id="toggleFilters" href="#" class=\'epon\'>Filtres</a>');
4
+ };
3
5
 
4
6
  if (!window.location.search.includes('Filter') && $('body').hasClass('index')) {
5
7
  $('div#sidebar').hide();
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  /* GROUPED ACTIONS BUTTON */
94
- a.table_tools_button, .table_tools .dropdown_menu_button {
94
+ a.table_tools_button, .table_tools .dropdown_menu_button, #title_bar div.action_items span.action_item .dropdown_menu a.dropdown_menu_button {
95
95
  box-shadow: none;
96
96
  text-shadow: none;
97
97
  border: none;
@@ -107,7 +107,7 @@ a.table_tools_button, .table_tools .dropdown_menu_button {
107
107
  color: $text-buttons;
108
108
  }
109
109
 
110
- .dropdown_menu {
110
+ .dropdown_menu, #title_bar div.action_items span.action_item .dropdown_menu {
111
111
  .dropdown_menu_button {
112
112
  &:not(.disabled) {
113
113
  &:hover {
@@ -14,6 +14,10 @@
14
14
  z-index: unset;
15
15
  backdrop-filter: unset;
16
16
 
17
+ &[data-env="development"], &[data-env="staging"] {
18
+ border: 10px solid $success;
19
+ }
20
+
17
21
  h1 {
18
22
  img {
19
23
  top: 0;
@@ -1,6 +1,6 @@
1
1
  ActiveAdmin::Views::Header.class_eval do
2
2
  def build(namespace, menu)
3
- super(id: 'header')
3
+ super(id: 'header', 'data-env': Rails.env)
4
4
 
5
5
  @namespace = namespace
6
6
  @menu = menu
@@ -1,3 +1,3 @@
1
1
  module LightAdmin
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: light_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marie Ishihara
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-01-07 00:00:00.000000000 Z
13
+ date: 2024-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activeadmin