light_admin 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +13 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +54 -49
- data/README.md +5 -4
- data/app/assets/javascripts/light_admin/filters_toggle.js +1 -1
- data/app/assets/stylesheets/light_admin/_rules.scss +8 -0
- data/app/assets/stylesheets/light_admin/components/_buttons.scss +1 -0
- data/app/assets/stylesheets/light_admin/components/_comments.scss +13 -0
- data/app/assets/stylesheets/light_admin/components/_datepicker_calendar.scss +9 -1
- data/app/assets/stylesheets/light_admin/components/_forms.scss +11 -9
- data/app/assets/stylesheets/light_admin/components/_sidebars.scss +6 -0
- data/app/assets/stylesheets/light_admin/components/_tables.scss +1 -1
- data/lib/light_admin/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8be03ffa763a72b30d42c93c07d71ce105e3bc4d38c2ae04d86f0c9dd054c94
|
4
|
+
data.tar.gz: 8eef2d4ebbe06530e2cc15b375ea15fc7c06ba42b2de56ee9bc19728a91b3f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c1068d2b49676b9eb0290fc79581b7b14ed3fe6eadb991ed397f9d1681ff3be59e47aa4c8ad2171bdbeaa815f22ee9a303524ba740559457a2521e69c458a0
|
7
|
+
data.tar.gz: e3b9bcb6b142dc58c2d1d455d3fd2571bcb596b0f681f83c9470e1f27f60810670653b430242573dd6ec4326bcdae2c62b18b325d0af3f9c08ecc3aa141253df
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,119 +1,124 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
light_admin (1.0.
|
4
|
+
light_admin (1.0.6)
|
5
5
|
activeadmin (>= 1.1.0, < 3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (
|
11
|
-
actionview (=
|
12
|
-
activesupport (=
|
13
|
-
rack (~> 2.0, >= 2.0
|
10
|
+
actionpack (7.0.2.4)
|
11
|
+
actionview (= 7.0.2.4)
|
12
|
+
activesupport (= 7.0.2.4)
|
13
|
+
rack (~> 2.0, >= 2.2.0)
|
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 (
|
18
|
-
activesupport (=
|
17
|
+
actionview (7.0.2.4)
|
18
|
+
activesupport (= 7.0.2.4)
|
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.
|
23
|
+
activeadmin (2.12.0)
|
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 (>=
|
31
|
-
ransack (
|
32
|
-
activemodel (
|
33
|
-
activesupport (=
|
34
|
-
activerecord (
|
35
|
-
activemodel (=
|
36
|
-
activesupport (=
|
37
|
-
activesupport (
|
30
|
+
railties (>= 6.0, < 7.1)
|
31
|
+
ransack (>= 2.1.1, < 4)
|
32
|
+
activemodel (7.0.2.4)
|
33
|
+
activesupport (= 7.0.2.4)
|
34
|
+
activerecord (7.0.2.4)
|
35
|
+
activemodel (= 7.0.2.4)
|
36
|
+
activesupport (= 7.0.2.4)
|
37
|
+
activesupport (7.0.2.4)
|
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
|
-
|
43
|
-
|
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.
|
46
|
+
concurrent-ruby (1.1.10)
|
48
47
|
crass (1.0.6)
|
49
48
|
erubi (1.10.0)
|
50
49
|
formtastic (4.0.0)
|
51
50
|
actionpack (>= 5.2.0)
|
52
|
-
formtastic_i18n (0.
|
51
|
+
formtastic_i18n (0.7.0)
|
53
52
|
has_scope (0.8.0)
|
54
53
|
actionpack (>= 5.2)
|
55
54
|
activesupport (>= 5.2)
|
56
|
-
i18n (1.
|
55
|
+
i18n (1.10.0)
|
57
56
|
concurrent-ruby (~> 1.0)
|
58
|
-
inherited_resources (1.
|
59
|
-
actionpack (>= 5.2, <
|
57
|
+
inherited_resources (1.13.1)
|
58
|
+
actionpack (>= 5.2, < 7.1)
|
60
59
|
has_scope (~> 0.6)
|
61
|
-
railties (>= 5.2, <
|
60
|
+
railties (>= 5.2, < 7.1)
|
62
61
|
responders (>= 2, < 4)
|
63
62
|
jquery-rails (4.4.0)
|
64
63
|
rails-dom-testing (>= 1, < 3)
|
65
64
|
railties (>= 4.2.0)
|
66
65
|
thor (>= 0.14, < 2.0)
|
67
|
-
kaminari (1.2.
|
66
|
+
kaminari (1.2.2)
|
68
67
|
activesupport (>= 4.1.0)
|
69
|
-
kaminari-actionview (= 1.2.
|
70
|
-
kaminari-activerecord (= 1.2.
|
71
|
-
kaminari-core (= 1.2.
|
72
|
-
kaminari-actionview (1.2.
|
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.
|
75
|
-
kaminari-activerecord (1.2.
|
73
|
+
kaminari-core (= 1.2.2)
|
74
|
+
kaminari-activerecord (1.2.2)
|
76
75
|
activerecord
|
77
|
-
kaminari-core (= 1.2.
|
78
|
-
kaminari-core (1.2.
|
79
|
-
loofah (2.
|
76
|
+
kaminari-core (= 1.2.2)
|
77
|
+
kaminari-core (1.2.2)
|
78
|
+
loofah (2.16.0)
|
80
79
|
crass (~> 1.0.2)
|
81
80
|
nokogiri (>= 1.5.9)
|
82
81
|
method_source (1.0.0)
|
83
|
-
|
84
|
-
|
82
|
+
mini_portile2 (2.8.0)
|
83
|
+
minitest (5.15.0)
|
84
|
+
nokogiri (1.13.4)
|
85
|
+
mini_portile2 (~> 2.8.0)
|
85
86
|
racc (~> 1.4)
|
86
|
-
|
87
|
+
nokogiri (1.13.4-x86_64-darwin)
|
88
|
+
racc (~> 1.4)
|
89
|
+
racc (1.6.0)
|
87
90
|
rack (2.2.3)
|
88
91
|
rack-test (1.1.0)
|
89
92
|
rack (>= 1.0, < 3)
|
90
93
|
rails-dom-testing (2.0.3)
|
91
94
|
activesupport (>= 4.2.0)
|
92
95
|
nokogiri (>= 1.6)
|
93
|
-
rails-html-sanitizer (1.
|
96
|
+
rails-html-sanitizer (1.4.2)
|
94
97
|
loofah (~> 2.3)
|
95
|
-
railties (
|
96
|
-
actionpack (=
|
97
|
-
activesupport (=
|
98
|
+
railties (7.0.2.4)
|
99
|
+
actionpack (= 7.0.2.4)
|
100
|
+
activesupport (= 7.0.2.4)
|
98
101
|
method_source
|
99
|
-
rake (>=
|
102
|
+
rake (>= 12.2)
|
100
103
|
thor (~> 1.0)
|
104
|
+
zeitwerk (~> 2.5)
|
101
105
|
rake (12.3.3)
|
102
|
-
ransack (
|
103
|
-
activerecord (>=
|
104
|
-
activesupport (>=
|
106
|
+
ransack (3.1.0)
|
107
|
+
activerecord (>= 6.0.4)
|
108
|
+
activesupport (>= 6.0.4)
|
105
109
|
i18n
|
106
110
|
responders (3.0.1)
|
107
111
|
actionpack (>= 5.0)
|
108
112
|
railties (>= 5.0)
|
109
|
-
ruby2_keywords (0.0.
|
110
|
-
thor (1.1
|
113
|
+
ruby2_keywords (0.0.5)
|
114
|
+
thor (1.2.1)
|
111
115
|
tzinfo (2.0.4)
|
112
116
|
concurrent-ruby (~> 1.0)
|
113
|
-
zeitwerk (2.4
|
117
|
+
zeitwerk (2.5.4)
|
114
118
|
|
115
119
|
PLATFORMS
|
116
120
|
ruby
|
121
|
+
x86_64-darwin-20
|
117
122
|
|
118
123
|
DEPENDENCIES
|
119
124
|
light_admin!
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Gem by CapSens
|
|
10
10
|
|
11
11
|
- Add this line to your application's Gemfile:
|
12
12
|
```ruby
|
13
|
-
gem 'light_admin'
|
13
|
+
gem 'light_admin'
|
14
14
|
```
|
15
15
|
|
16
16
|
- And then run:
|
@@ -18,17 +18,18 @@ gem 'light_admin', git: 'git@github.com:CapSens/light_admin.git'
|
|
18
18
|
$ bundle install
|
19
19
|
```
|
20
20
|
|
21
|
-
- Make sure you have no other ActiveAdmin
|
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
|
```
|
@@ -1,7 +1,7 @@
|
|
1
1
|
$(document).ready(function () {
|
2
2
|
$('#active_admin_content .table_tools').append('<a id="toggleFilters" href="#" class=\'epon\'>Filtres</a>');
|
3
3
|
|
4
|
-
if (!window.location.search.includes('Filter')) {
|
4
|
+
if (!window.location.search.includes('Filter') && $('body').hasClass('index')) {
|
5
5
|
$('div#sidebar').hide();
|
6
6
|
$('#main_content').css({ 'margin-right': '0px' });
|
7
7
|
$('a#toggleFilters').removeClass('epon');
|
@@ -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
|
|
@@ -41,6 +45,10 @@ body {
|
|
41
45
|
border-top: $border-style-light;
|
42
46
|
border-radius: $global-border-radius-bottom;
|
43
47
|
}
|
48
|
+
|
49
|
+
.blank_slate {
|
50
|
+
margin-bottom: 80px;
|
51
|
+
}
|
44
52
|
}
|
45
53
|
|
46
54
|
.index {
|
@@ -32,6 +32,19 @@
|
|
32
32
|
margin-bottom: 24px;
|
33
33
|
}
|
34
34
|
}
|
35
|
+
|
36
|
+
.comments {
|
37
|
+
.empty {
|
38
|
+
position: relative;
|
39
|
+
padding: 1.5rem;
|
40
|
+
top: 1.25rem;
|
41
|
+
font-weight: bold;
|
42
|
+
}
|
43
|
+
|
44
|
+
.active_admin_comment {
|
45
|
+
max-width: 100%;
|
46
|
+
}
|
47
|
+
}
|
35
48
|
}
|
36
49
|
|
37
50
|
div.active_admin_comment {
|
@@ -42,7 +42,7 @@ form {
|
|
42
42
|
|
43
43
|
ol > li {
|
44
44
|
border-bottom: none;
|
45
|
-
padding: 0 0
|
45
|
+
padding: 0 0 .5rem 0 !important;
|
46
46
|
|
47
47
|
label {
|
48
48
|
width: 100% !important;
|
@@ -127,12 +127,15 @@ form {
|
|
127
127
|
transition: unset;
|
128
128
|
|
129
129
|
&:after {
|
130
|
-
|
131
|
-
|
132
|
-
|
130
|
+
position: absolute;
|
131
|
+
border: solide $white;
|
132
|
+
border-width: 0 2px 2px 0;
|
133
|
+
height: 8px;
|
134
|
+
width: 2px;
|
135
|
+
left: 5px;
|
136
|
+
bottom: 3px;
|
133
137
|
transition: unset;
|
134
|
-
|
135
|
-
color: $text-white;
|
138
|
+
transform: rotate(45deg);
|
136
139
|
}
|
137
140
|
}
|
138
141
|
}
|
@@ -179,8 +182,7 @@ form {
|
|
179
182
|
}
|
180
183
|
|
181
184
|
.filter_form_field.select_and_search input[type=text] {
|
182
|
-
margin-left:
|
183
|
-
width: inherit;
|
185
|
+
margin-left: 10px;
|
184
186
|
}
|
185
187
|
|
186
188
|
.filter_form_field + .filter_form_field {
|
@@ -190,7 +192,7 @@ form {
|
|
190
192
|
|
191
193
|
.filter_form_field.select_and_search
|
192
194
|
input[type='text'] {
|
193
|
-
width: calc(50% -
|
195
|
+
width: calc(50% - 22px);
|
194
196
|
height: 20px;
|
195
197
|
}
|
196
198
|
|
data/lib/light_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: light_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marie Ishihara
|
8
8
|
- Antoine Goeuriot
|
9
9
|
- CapSens
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activeadmin
|
@@ -34,11 +34,12 @@ dependencies:
|
|
34
34
|
version: '3.0'
|
35
35
|
description: At CapSens - Paris-based RoR agency - we like ActiveAdmin very much.
|
36
36
|
So we made this theme.
|
37
|
-
email:
|
37
|
+
email:
|
38
38
|
executables: []
|
39
39
|
extensions: []
|
40
40
|
extra_rdoc_files: []
|
41
41
|
files:
|
42
|
+
- ".circleci/config.yml"
|
42
43
|
- ".gitignore"
|
43
44
|
- CHANGELOG.md
|
44
45
|
- CODE_OF_CONDUCT.md
|
@@ -91,11 +92,11 @@ files:
|
|
91
92
|
- lib/light_admin/panel_with_link.rb
|
92
93
|
- lib/light_admin/version.rb
|
93
94
|
- light_admin.gemspec
|
94
|
-
homepage:
|
95
|
+
homepage:
|
95
96
|
licenses:
|
96
97
|
- MIT
|
97
98
|
metadata: {}
|
98
|
-
post_install_message:
|
99
|
+
post_install_message:
|
99
100
|
rdoc_options: []
|
100
101
|
require_paths:
|
101
102
|
- lib
|
@@ -110,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
111
|
- !ruby/object:Gem::Version
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
114
|
+
rubygems_version: 3.3.7
|
115
|
+
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: Simple, minimal theme for activeadmin.
|
117
118
|
test_files: []
|