light_admin 1.0.6 → 1.0.8

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: 9da5ee127288f83962335396fdcc2f0373fe64b49e360ee11216fb988dd2cd5e
4
- data.tar.gz: 8f8e011ae25aded3a844bae2e0db0e2e2dbe400f7ea3f1e2da3a641c73cfc5fc
3
+ metadata.gz: 9e17b6013021a1a41aab417b007cdf1be02be25a268c83a54655b2981922b16b
4
+ data.tar.gz: da1de7b57a403e392a401a382539706bee166e32ebeddec1622754c62979a302
5
5
  SHA512:
6
- metadata.gz: fa00cb7ee38c9d93a12de10599f118f9b335a3ecf469a372de411b5a614957ee89b312b55cbecb5994a5ecade4ed9e3c3d8dbf38184ea008b2deafeefa1dc851
7
- data.tar.gz: 35a539c3b15cd9bd93048c1e00333d5b757cb95757f1b77483c36592fac1ce3e6b0ec8bc9cd6f38f9235f5edb9406c79f3f32f1170a5db826b5524ed22bd39d8
6
+ metadata.gz: 313d67c3c85dbe76c738f25c5b000604c488771becdd341abca1a442dec1cd93ddab5bd810c49a8811884ae158345be21ff5ed3c20f2d08781720b2be43a3658
7
+ data.tar.gz: ffd72398196443a79f7e3f0948a6b52913e897027bdf1dd88f52564f548c625795e411eac21a1252de7303abdd84c2aafe3aed815806eeffb3b76780e2052b7d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.8
4
+
5
+ * Add a green border to the header so we can know when we are in a safe environment (staging, development).
6
+
3
7
  ## 1.0.6
4
8
 
5
9
  * Replace some `overflow: scroll` by `auto` to avoid useless scroll bar.
data/Gemfile.lock CHANGED
@@ -1,121 +1,122 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- light_admin (1.0.5)
4
+ light_admin (1.0.8)
5
5
  activeadmin (>= 1.1.0, < 3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (6.1.4.1)
11
- actionview (= 6.1.4.1)
12
- activesupport (= 6.1.4.1)
13
- rack (~> 2.0, >= 2.0.9)
10
+ actionpack (7.0.5)
11
+ actionview (= 7.0.5)
12
+ activesupport (= 7.0.5)
13
+ rack (~> 2.0, >= 2.2.4)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.1.4.1)
18
- activesupport (= 6.1.4.1)
17
+ actionview (7.0.5)
18
+ activesupport (= 7.0.5)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
22
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activeadmin (2.9.0)
23
+ activeadmin (2.13.1)
24
24
  arbre (~> 1.2, >= 1.2.1)
25
25
  formtastic (>= 3.1, < 5.0)
26
26
  formtastic_i18n (~> 0.4)
27
27
  inherited_resources (~> 1.7)
28
28
  jquery-rails (~> 4.2)
29
29
  kaminari (~> 1.0, >= 1.2.1)
30
- railties (>= 5.2, < 6.2)
31
- ransack (~> 2.1, >= 2.1.1)
32
- activemodel (6.1.4.1)
33
- activesupport (= 6.1.4.1)
34
- activerecord (6.1.4.1)
35
- activemodel (= 6.1.4.1)
36
- activesupport (= 6.1.4.1)
37
- activesupport (6.1.4.1)
30
+ railties (>= 6.1, < 7.1)
31
+ ransack (>= 2.1.1, < 4)
32
+ activemodel (7.0.5)
33
+ activesupport (= 7.0.5)
34
+ activerecord (7.0.5)
35
+ activemodel (= 7.0.5)
36
+ activesupport (= 7.0.5)
37
+ activesupport (7.0.5)
38
38
  concurrent-ruby (~> 1.0, >= 1.0.2)
39
39
  i18n (>= 1.6, < 2)
40
40
  minitest (>= 5.1)
41
41
  tzinfo (~> 2.0)
42
- zeitwerk (~> 2.3)
43
- arbre (1.4.0)
44
- activesupport (>= 3.0.0, < 6.2)
42
+ arbre (1.5.0)
43
+ activesupport (>= 3.0.0, < 7.1)
45
44
  ruby2_keywords (>= 0.0.2, < 1.0)
46
45
  builder (3.2.4)
47
- concurrent-ruby (1.1.9)
46
+ concurrent-ruby (1.2.2)
48
47
  crass (1.0.6)
49
- erubi (1.10.0)
48
+ erubi (1.12.0)
50
49
  formtastic (4.0.0)
51
50
  actionpack (>= 5.2.0)
52
51
  formtastic_i18n (0.7.0)
53
- has_scope (0.8.0)
52
+ has_scope (0.8.1)
54
53
  actionpack (>= 5.2)
55
54
  activesupport (>= 5.2)
56
- i18n (1.8.10)
55
+ i18n (1.13.0)
57
56
  concurrent-ruby (~> 1.0)
58
- inherited_resources (1.13.0)
59
- actionpack (>= 5.2, < 6.2)
57
+ inherited_resources (1.13.1)
58
+ actionpack (>= 5.2, < 7.1)
60
59
  has_scope (~> 0.6)
61
- railties (>= 5.2, < 6.2)
60
+ railties (>= 5.2, < 7.1)
62
61
  responders (>= 2, < 4)
63
- jquery-rails (4.4.0)
62
+ jquery-rails (4.5.1)
64
63
  rails-dom-testing (>= 1, < 3)
65
64
  railties (>= 4.2.0)
66
65
  thor (>= 0.14, < 2.0)
67
- kaminari (1.2.1)
66
+ kaminari (1.2.2)
68
67
  activesupport (>= 4.1.0)
69
- kaminari-actionview (= 1.2.1)
70
- kaminari-activerecord (= 1.2.1)
71
- kaminari-core (= 1.2.1)
72
- kaminari-actionview (1.2.1)
68
+ kaminari-actionview (= 1.2.2)
69
+ kaminari-activerecord (= 1.2.2)
70
+ kaminari-core (= 1.2.2)
71
+ kaminari-actionview (1.2.2)
73
72
  actionview
74
- kaminari-core (= 1.2.1)
75
- kaminari-activerecord (1.2.1)
73
+ kaminari-core (= 1.2.2)
74
+ kaminari-activerecord (1.2.2)
76
75
  activerecord
77
- kaminari-core (= 1.2.1)
78
- kaminari-core (1.2.1)
79
- loofah (2.12.0)
76
+ kaminari-core (= 1.2.2)
77
+ kaminari-core (1.2.2)
78
+ loofah (2.21.3)
80
79
  crass (~> 1.0.2)
81
- nokogiri (>= 1.5.9)
80
+ nokogiri (>= 1.12.0)
82
81
  method_source (1.0.0)
83
- mini_portile2 (2.6.1)
84
- minitest (5.14.4)
85
- nokogiri (1.12.5)
86
- mini_portile2 (~> 2.6.1)
82
+ mini_portile2 (2.8.2)
83
+ minitest (5.18.0)
84
+ nokogiri (1.15.2)
85
+ mini_portile2 (~> 2.8.2)
87
86
  racc (~> 1.4)
88
- racc (1.5.2)
89
- rack (2.2.3)
90
- rack-test (1.1.0)
91
- rack (>= 1.0, < 3)
87
+ racc (1.6.2)
88
+ rack (2.2.7)
89
+ rack-test (2.1.0)
90
+ rack (>= 1.3)
92
91
  rails-dom-testing (2.0.3)
93
92
  activesupport (>= 4.2.0)
94
93
  nokogiri (>= 1.6)
95
- rails-html-sanitizer (1.4.2)
96
- loofah (~> 2.3)
97
- railties (6.1.4.1)
98
- actionpack (= 6.1.4.1)
99
- activesupport (= 6.1.4.1)
94
+ rails-html-sanitizer (1.5.0)
95
+ loofah (~> 2.19, >= 2.19.1)
96
+ railties (7.0.5)
97
+ actionpack (= 7.0.5)
98
+ activesupport (= 7.0.5)
100
99
  method_source
101
- rake (>= 0.13)
100
+ rake (>= 12.2)
102
101
  thor (~> 1.0)
102
+ zeitwerk (~> 2.5)
103
103
  rake (12.3.3)
104
- ransack (2.4.2)
105
- activerecord (>= 5.2.4)
106
- activesupport (>= 5.2.4)
104
+ ransack (3.2.1)
105
+ activerecord (>= 6.1.5)
106
+ activesupport (>= 6.1.5)
107
107
  i18n
108
- responders (3.0.1)
109
- actionpack (>= 5.0)
110
- railties (>= 5.0)
108
+ responders (3.1.0)
109
+ actionpack (>= 5.2)
110
+ railties (>= 5.2)
111
111
  ruby2_keywords (0.0.5)
112
- thor (1.1.0)
113
- tzinfo (2.0.4)
112
+ thor (1.2.2)
113
+ tzinfo (2.0.6)
114
114
  concurrent-ruby (~> 1.0)
115
- zeitwerk (2.4.2)
115
+ zeitwerk (2.6.8)
116
116
 
117
117
  PLATFORMS
118
118
  ruby
119
+ x86_64-darwin-20
119
120
 
120
121
  DEPENDENCIES
121
122
  light_admin!
data/README.md CHANGED
@@ -18,17 +18,18 @@ gem 'light_admin'
18
18
  $ bundle install
19
19
  ```
20
20
 
21
- - Make sure you have no other ActiveAdmin them installed before installing this gem!
21
+ - Make sure you have no other ActiveAdmin theme installed before installing this gem!
22
+ *(non-exhaustive list of themes you may have : https://github.com/paladini/activeadmin-themes, if you have some, don't forget to remove associated @import too)*
22
23
 
23
24
  ## Pre-requisites
24
25
  - This gem requires the activeadmin gem.
25
26
 
26
27
  ## Set-up
27
- - In `app/assets/javascripts/active_admin`, add the line:
28
+ - In `app/assets/javascripts/active_admin.js`, add the line:
28
29
  ```
29
30
  //= require light_admin/filters_toggle
30
31
  ```
31
- - In `app/assets/stylesheets`, add the line:
32
+ - In `app/assets/stylesheets/active_admin.scss`, add the line:
32
33
  ```
33
34
  @import 'light_admin/base';
34
35
  ```
@@ -4,6 +4,10 @@ body {
4
4
  color: $global-text-color;
5
5
  background-color: $bg-light;
6
6
 
7
+ *, *::before, *::after {
8
+ box-sizing: unset;
9
+ }
10
+
7
11
  #active_admin_content {
8
12
  padding: 0 15px;
9
13
 
@@ -205,6 +205,7 @@ a.table_tools_button, .table_tools .dropdown_menu_button {
205
205
  justify-content: center;
206
206
  margin: 25px 0 25px 0;
207
207
  list-style: none;
208
+ flex-wrap: wrap;
208
209
 
209
210
  li {
210
211
  padding: 1rem;
@@ -1,6 +1,14 @@
1
1
  .ui-datepicker {
2
2
  box-shadow: $dropdown-shadow;
3
- left: 1192px !important;
3
+
4
+ .ui-datepicker-header {
5
+ height: auto;
6
+ width: 10.938rem;
7
+ }
8
+
9
+ table.ui-datepicker-calendar {
10
+ width: 10.938rem;
11
+ }
4
12
  }
5
13
 
6
14
  .ui-datepicker-calendar {
@@ -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.0.6"
2
+ VERSION = "1.0.8"
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.0.6
4
+ version: 1.0.8
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: 2021-10-27 00:00:00.000000000 Z
13
+ date: 2023-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activeadmin
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubygems_version: 3.1.2
114
+ rubygems_version: 3.3.7
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Simple, minimal theme for activeadmin.