activeadmin_blaze_theme 0.5.12 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +13 -27
- data/activeadmin_blaze_theme.gemspec +21 -10
- data/lib/activeadmin_blaze_theme/version.rb +3 -1
- metadata +134 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68d7d7b562bdffd55efd278288f3391cae039c58cfb277c87918e39f86e6d9db
|
4
|
+
data.tar.gz: 49e68e847645f14004ca6d9405fc1adc84a959611b3c9d7062856de196d0b49c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4ab0ae384a9b3787b09244c794aa4ef4ce0e3a93753983028bb7835f591eb7b4664be9264c65c09c622686093a30c0c3bb74d0c13a44b91cfbc6ffb84c39e2f
|
7
|
+
data.tar.gz: '09b8619df3a899802d293ce7ae36ef6c029507e80a188b7a46bf5ba36bce76c2454ec2817280d6e22ab5d154effbb371ac0889d61378024b199e7a55dc3d6b6a'
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# Active Admin Blaze Theme [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme)
|
2
2
|
|
3
|
-
A theme for Active Admin using [Blaze CSS](http://blazecss.com/)
|
3
|
+
A theme for Active Admin using [Blaze CSS](http://blazecss.com/).
|
4
4
|
|
5
5
|
Features:
|
6
|
-
|
7
6
|
- CSS only theme with clean UI
|
8
7
|
- compact nested forms
|
9
8
|
- [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
|
@@ -11,20 +10,12 @@ Features:
|
|
11
10
|
- Blaze CSS [widgets](#blaze-widgets)
|
12
11
|
|
13
12
|
## Install
|
14
|
-
|
15
|
-
- Add to your Gemfile:
|
16
|
-
|
17
|
-
`gem 'activeadmin_blaze_theme'`
|
18
|
-
|
13
|
+
- Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
|
19
14
|
- Execute bundle
|
20
|
-
|
21
|
-
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
|
22
|
-
|
23
|
-
`@import "activeadmin_blaze_theme/theme";`
|
15
|
+
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): `@import "activeadmin_blaze_theme/theme";`
|
24
16
|
|
25
17
|
## Customize
|
26
|
-
|
27
|
-
- To change colors add before your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
|
18
|
+
- To change colors add before your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
|
28
19
|
|
29
20
|
```css
|
30
21
|
// blaze colors
|
@@ -58,7 +49,7 @@ $height-titlebar: 38px !default;
|
|
58
49
|
$text-shadow: #000 !default;
|
59
50
|
```
|
60
51
|
|
61
|
-
- To move sidebar on the left add to your
|
52
|
+
- To move sidebar on the left add to your Active Admin styles (after blaze theme import):
|
62
53
|
|
63
54
|
```css
|
64
55
|
#active_admin_content.with_sidebar {
|
@@ -93,7 +84,6 @@ body.active_admin .cke {
|
|
93
84
|
## Custom fields / components
|
94
85
|
|
95
86
|
### Toggle
|
96
|
-
|
97
87
|
In *form* \ *inputs* block:
|
98
88
|
|
99
89
|
`f.input :boolean, as: :blaze_toggle`
|
@@ -109,7 +99,6 @@ Standard checkbox with label on the left:
|
|
109
99
|
`f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }`
|
110
100
|
|
111
101
|
### Sidebar menu
|
112
|
-
|
113
102
|
A sidebar menu (*priority* option permit to put the sidebar above the filters):
|
114
103
|
|
115
104
|
```rb
|
@@ -131,7 +120,6 @@ end
|
|
131
120
|
![menu](extra/screenshot4.jpg)
|
132
121
|
|
133
122
|
### Accordion
|
134
|
-
|
135
123
|
An accordion group in a form:
|
136
124
|
|
137
125
|
```rb
|
@@ -152,7 +140,6 @@ end
|
|
152
140
|
```
|
153
141
|
|
154
142
|
### Readonly field
|
155
|
-
|
156
143
|
Some readonly fields in a form:
|
157
144
|
|
158
145
|
`f.readonly :position`
|
@@ -164,7 +151,6 @@ Some readonly fields in a form:
|
|
164
151
|
`f.readonly nil, 'Value only, no label'`
|
165
152
|
|
166
153
|
### Styled table
|
167
|
-
|
168
154
|
Table styles:
|
169
155
|
|
170
156
|
```ruby
|
@@ -174,8 +160,7 @@ end
|
|
174
160
|
```
|
175
161
|
|
176
162
|
## Blaze widgets
|
177
|
-
|
178
|
-
See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
|
163
|
+
See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
|
179
164
|
|
180
165
|
Badge example:
|
181
166
|
|
@@ -197,8 +182,10 @@ div class: 'c-progress' do
|
|
197
182
|
end
|
198
183
|
```
|
199
184
|
|
200
|
-
##
|
185
|
+
## Notes
|
186
|
+
- To use this plugins with Active Admin 1.x please use the version [0.5.12](https://github.com/blocknotes/activeadmin_blaze_theme/releases/tag/v0.5.12)
|
201
187
|
|
188
|
+
## Screenshots
|
202
189
|
Index:
|
203
190
|
|
204
191
|
![index](extra/screenshot1.jpg)
|
@@ -212,13 +199,12 @@ Show - sidebar on the left:
|
|
212
199
|
![edit](extra/screenshot3.jpg)
|
213
200
|
|
214
201
|
## Do you like it? Star it!
|
215
|
-
|
216
202
|
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
|
217
203
|
|
218
|
-
|
204
|
+
Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
|
219
205
|
|
220
|
-
|
206
|
+
## Contributors
|
207
|
+
- [Mattia Roccoberton](http://blocknot.es): author
|
221
208
|
|
222
209
|
## License
|
223
|
-
|
224
|
-
[MIT](LICENSE.txt)
|
210
|
+
The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
|
@@ -1,22 +1,33 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'activeadmin_blaze_theme/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'activeadmin_blaze_theme'
|
8
9
|
spec.version = ActiveAdminBlazeTheme::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
10
|
+
spec.authors = ['Mattia Roccoberton']
|
11
|
+
spec.email = ['mat@blocknot.es']
|
12
|
+
spec.summary = 'ActiveAdmin Blaze Theme'
|
13
|
+
spec.description = 'An ActiveAdmin theme which use Blaze CSS UI toolkit'
|
14
|
+
spec.homepage = 'https://github.com/blocknotes/activeadmin_blaze_theme'
|
15
|
+
spec.license = 'MIT'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_runtime_dependency 'activeadmin', '~> 2.0'
|
20
23
|
|
21
|
-
spec.
|
24
|
+
spec.add_development_dependency 'activestorage', '~> 6.0.3.2'
|
25
|
+
spec.add_development_dependency 'capybara', '~> 3.33.0'
|
26
|
+
spec.add_development_dependency 'pry', '~> 0.13.1'
|
27
|
+
spec.add_development_dependency 'puma', '~> 4.3.5'
|
28
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
|
29
|
+
spec.add_development_dependency 'rspec-rails', '~> 4.0.1'
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0.90.0'
|
31
|
+
spec.add_development_dependency 'selenium-webdriver', '~> 3.142.7'
|
32
|
+
spec.add_development_dependency 'sqlite3', '~> 1.4.2'
|
22
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_blaze_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -16,14 +16,140 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activestorage
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 6.0.3.2
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 6.0.3.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.33.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.33.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.13.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.13.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: puma
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 4.3.5
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.3.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec_junit_formatter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.4.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.4.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.90.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.90.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: selenium-webdriver
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.142.7
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.142.7
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sqlite3
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.4.2
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.4.2
|
27
153
|
description: An ActiveAdmin theme which use Blaze CSS UI toolkit
|
28
154
|
email:
|
29
155
|
- mat@blocknot.es
|
@@ -116,7 +242,7 @@ homepage: https://github.com/blocknotes/activeadmin_blaze_theme
|
|
116
242
|
licenses:
|
117
243
|
- MIT
|
118
244
|
metadata: {}
|
119
|
-
post_install_message:
|
245
|
+
post_install_message:
|
120
246
|
rdoc_options: []
|
121
247
|
require_paths:
|
122
248
|
- lib
|
@@ -131,9 +257,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
257
|
- !ruby/object:Gem::Version
|
132
258
|
version: '0'
|
133
259
|
requirements: []
|
134
|
-
|
135
|
-
|
136
|
-
signing_key:
|
260
|
+
rubygems_version: 3.0.3
|
261
|
+
signing_key:
|
137
262
|
specification_version: 4
|
138
263
|
summary: ActiveAdmin Blaze Theme
|
139
264
|
test_files: []
|