light_admin 1.0.5 → 1.0.6

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: 3eb9571e65a2f3ae314251f008e7ea059face2eba0a2321171b581fb5758472f
4
- data.tar.gz: 642d2877aaf62e5aeeb7184c7128242c3630b2ed7faaf7022907f6e17b7bac4b
3
+ metadata.gz: 9da5ee127288f83962335396fdcc2f0373fe64b49e360ee11216fb988dd2cd5e
4
+ data.tar.gz: 8f8e011ae25aded3a844bae2e0db0e2e2dbe400f7ea3f1e2da3a641c73cfc5fc
5
5
  SHA512:
6
- metadata.gz: 3ea1cfec7c8895d86479fddc8fa91d5ba6c26cf713888caea181869c10e8cbc66a7a51b1c003e0b17b5fbee799f7595ab35e500485c1835881d2578d9bfeb043
7
- data.tar.gz: e53a064841b05f04dfa901614e8c7ef59ab166a8a3e421921c17fa1fcd5697738a947b540b238c572d226bfdc3b52bc5f2fa97108cf94b108787225afe07ae57
6
+ metadata.gz: fa00cb7ee38c9d93a12de10599f118f9b335a3ecf469a372de411b5a614957ee89b312b55cbecb5994a5ecade4ed9e3c3d8dbf38184ea008b2deafeefa1dc851
7
+ data.tar.gz: 35a539c3b15cd9bd93048c1e00333d5b757cb95757f1b77483c36592fac1ce3e6b0ec8bc9cd6f38f9235f5edb9406c79f3f32f1170a5db826b5524ed22bd39d8
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ working_directory: ~/light_admin
5
+ docker:
6
+ - image: capsens/ruby-node-yarn:2.7.1
7
+ steps:
8
+ - checkout
9
+ - run:
10
+ name: "Audit Securité du Gemfile"
11
+ command: |
12
+ gem install bundler-audit
13
+ bundle audit --update
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.6
4
+
5
+ * Replace some `overflow: scroll` by `auto` to avoid useless scroll bar.
6
+ * Run bundler-audit with circleci.
7
+
3
8
  ## 1.0.5 [☰](https://github.com/Capsens/light_admin/tree/v1.0.5)
4
9
 
5
10
  * First release of light_admin gem
data/Gemfile.lock CHANGED
@@ -7,15 +7,15 @@ PATH
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (6.1.3.1)
11
- actionview (= 6.1.3.1)
12
- activesupport (= 6.1.3.1)
10
+ actionpack (6.1.4.1)
11
+ actionview (= 6.1.4.1)
12
+ activesupport (= 6.1.4.1)
13
13
  rack (~> 2.0, >= 2.0.9)
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.3.1)
18
- activesupport (= 6.1.3.1)
17
+ actionview (6.1.4.1)
18
+ activesupport (= 6.1.4.1)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
@@ -29,12 +29,12 @@ GEM
29
29
  kaminari (~> 1.0, >= 1.2.1)
30
30
  railties (>= 5.2, < 6.2)
31
31
  ransack (~> 2.1, >= 2.1.1)
32
- activemodel (6.1.3.1)
33
- activesupport (= 6.1.3.1)
34
- activerecord (6.1.3.1)
35
- activemodel (= 6.1.3.1)
36
- activesupport (= 6.1.3.1)
37
- activesupport (6.1.3.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)
38
38
  concurrent-ruby (~> 1.0, >= 1.0.2)
39
39
  i18n (>= 1.6, < 2)
40
40
  minitest (>= 5.1)
@@ -44,18 +44,18 @@ GEM
44
44
  activesupport (>= 3.0.0, < 6.2)
45
45
  ruby2_keywords (>= 0.0.2, < 1.0)
46
46
  builder (3.2.4)
47
- concurrent-ruby (1.1.8)
47
+ concurrent-ruby (1.1.9)
48
48
  crass (1.0.6)
49
49
  erubi (1.10.0)
50
50
  formtastic (4.0.0)
51
51
  actionpack (>= 5.2.0)
52
- formtastic_i18n (0.6.0)
52
+ formtastic_i18n (0.7.0)
53
53
  has_scope (0.8.0)
54
54
  actionpack (>= 5.2)
55
55
  activesupport (>= 5.2)
56
56
  i18n (1.8.10)
57
57
  concurrent-ruby (~> 1.0)
58
- inherited_resources (1.12.0)
58
+ inherited_resources (1.13.0)
59
59
  actionpack (>= 5.2, < 6.2)
60
60
  has_scope (~> 0.6)
61
61
  railties (>= 5.2, < 6.2)
@@ -76,12 +76,14 @@ GEM
76
76
  activerecord
77
77
  kaminari-core (= 1.2.1)
78
78
  kaminari-core (1.2.1)
79
- loofah (2.9.0)
79
+ loofah (2.12.0)
80
80
  crass (~> 1.0.2)
81
81
  nokogiri (>= 1.5.9)
82
82
  method_source (1.0.0)
83
+ mini_portile2 (2.6.1)
83
84
  minitest (5.14.4)
84
- nokogiri (1.11.2-x86_64-linux)
85
+ nokogiri (1.12.5)
86
+ mini_portile2 (~> 2.6.1)
85
87
  racc (~> 1.4)
86
88
  racc (1.5.2)
87
89
  rack (2.2.3)
@@ -90,13 +92,13 @@ GEM
90
92
  rails-dom-testing (2.0.3)
91
93
  activesupport (>= 4.2.0)
92
94
  nokogiri (>= 1.6)
93
- rails-html-sanitizer (1.3.0)
95
+ rails-html-sanitizer (1.4.2)
94
96
  loofah (~> 2.3)
95
- railties (6.1.3.1)
96
- actionpack (= 6.1.3.1)
97
- activesupport (= 6.1.3.1)
97
+ railties (6.1.4.1)
98
+ actionpack (= 6.1.4.1)
99
+ activesupport (= 6.1.4.1)
98
100
  method_source
99
- rake (>= 0.8.7)
101
+ rake (>= 0.13)
100
102
  thor (~> 1.0)
101
103
  rake (12.3.3)
102
104
  ransack (2.4.2)
@@ -106,7 +108,7 @@ GEM
106
108
  responders (3.0.1)
107
109
  actionpack (>= 5.0)
108
110
  railties (>= 5.0)
109
- ruby2_keywords (0.0.4)
111
+ ruby2_keywords (0.0.5)
110
112
  thor (1.1.0)
111
113
  tzinfo (2.0.4)
112
114
  concurrent-ruby (~> 1.0)
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', git: 'git@github.com:CapSens/light_admin.git'
13
+ gem 'light_admin'
14
14
  ```
15
15
 
16
16
  - And then run:
@@ -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');
@@ -41,6 +41,10 @@ body {
41
41
  border-top: $border-style-light;
42
42
  border-radius: $global-border-radius-bottom;
43
43
  }
44
+
45
+ .blank_slate {
46
+ margin-bottom: 80px;
47
+ }
44
48
  }
45
49
 
46
50
  .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 2rem 0 !important;
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
- border-color: unset;
131
- left: 1.5px;
132
- right: unset;
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
- content: '\2714';
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: 0;
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% - 7px);
195
+ width: calc(50% - 22px);
194
196
  height: 20px;
195
197
  }
196
198
 
@@ -6,6 +6,12 @@
6
6
  label {
7
7
  margin-bottom: 5px;
8
8
  }
9
+
10
+ .attributes_table {
11
+ th {
12
+ min-width: 0
13
+ }
14
+ }
9
15
  }
10
16
 
11
17
  /* FILTER STATUS LIST STYLE */
@@ -108,7 +108,7 @@ table.index_table {
108
108
  .attributes_table {
109
109
  border-radius: $global-border-radius;
110
110
  box-shadow: $global-shadow;
111
- overflow: scroll;
111
+ overflow: auto;
112
112
 
113
113
  table {
114
114
  tr {
@@ -1,3 +1,3 @@
1
1
  module LightAdmin
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
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.5
4
+ version: 1.0.6
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: 2021-05-03 00:00:00.000000000 Z
13
+ date: 2021-10-27 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
@@ -111,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
112
  version: '0'
112
113
  requirements: []
113
114
  rubygems_version: 3.1.2
114
- signing_key:
115
+ signing_key:
115
116
  specification_version: 4
116
117
  summary: Simple, minimal theme for activeadmin.
117
118
  test_files: []