express_admin 1.8.1 → 2.0.0.a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/express_admin/screen.sass +63 -63
- data/app/assets/stylesheets/express_admin/sections/_header.sass +1 -1
- data/app/assets/stylesheets/express_admin/sections/_main_content.sass +2 -2
- data/lib/express_admin/commandable.rb +6 -5
- data/lib/express_admin/engine.rb +1 -2
- data/lib/express_admin/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- metadata +11 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9fa4b4791a8a901c9018d9bf93b75ced23dbf02
|
4
|
+
data.tar.gz: 4fb56d2b5d3f7e0724846493d05003ba34d288f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b55bd2b4667162f8811db67232a909142df3b71ba2f0f850f28b1c04c5d01e75337da794096db8503899a9446e50debb46c88b17aeb0e2d9aa7092a1d535d89
|
7
|
+
data.tar.gz: c013542b783ed80b55c5c9ab20d4038b90eb6987cc6e05ed975070c71c9e29e530b5b0066379c873d307cd097df027934cd15c2cab37eb7280bfbf967c630c8f
|
@@ -1,63 +1,63 @@
|
|
1
|
-
@import 'foundation'
|
2
|
-
@import 'select2'
|
3
|
-
|
4
|
-
@import 'globals/variables'
|
5
|
-
@import 'globals/mixins'
|
6
|
-
@import 'globals/typography'
|
7
|
-
@import 'globals/foundation_overrides'
|
8
|
-
|
9
|
-
@import 'sections/header'
|
10
|
-
@import 'sections/main_content'
|
11
|
-
@import 'sections/page_sidebar'
|
12
|
-
@import 'sections/page_body'
|
13
|
-
@import 'sections/main_region'
|
14
|
-
@import 'sections/sidebar_region'
|
15
|
-
|
16
|
-
@import 'components/main_menu'
|
17
|
-
@import 'components/oauth_sign_in_links'
|
18
|
-
@import 'components/sub_menu'
|
19
|
-
@import 'components/module_sidebar'
|
20
|
-
@import 'components/widget_box'
|
21
|
-
@import 'components/pane'
|
22
|
-
@import 'components/definition'
|
23
|
-
@import 'components/v_box'
|
24
|
-
@import 'components/h_box'
|
25
|
-
@import 'components/smart_table'
|
26
|
-
@import 'components/label'
|
27
|
-
@import 'components/image'
|
28
|
-
@import 'components/filter'
|
29
|
-
|
30
|
-
@import 'shared/media_object'
|
31
|
-
@import 'shared/breadcrumbs'
|
32
|
-
@import 'shared/icons'
|
33
|
-
@import 'shared/forms'
|
34
|
-
@import 'shared/tables'
|
35
|
-
@import 'shared/trees'
|
36
|
-
@import 'shared/loading'
|
37
|
-
@import 'shared/messages'
|
38
|
-
@import 'shared/alerts'
|
39
|
-
@import 'shared/progress'
|
40
|
-
@import 'shared/buttons'
|
41
|
-
|
42
|
-
@import 'components/command_button'
|
43
|
-
|
44
|
-
@import 'components/empty_state'
|
45
|
-
|
46
|
-
@import 'plugins/select2'
|
47
|
-
@import 'plugins/tinymce'
|
48
|
-
@import '../ionicons/ionicons'
|
49
|
-
|
50
|
-
.generate-subdomain
|
51
|
-
|
52
|
-
|
53
|
-
.devise-options
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
.hidden
|
58
|
-
|
59
|
-
|
60
|
-
#app_subdomain
|
61
|
-
|
62
|
-
|
63
|
-
|
1
|
+
// @import 'foundation'
|
2
|
+
// @import 'select2'
|
3
|
+
|
4
|
+
// @import 'globals/variables'
|
5
|
+
// @import 'globals/mixins'
|
6
|
+
// @import 'globals/typography'
|
7
|
+
// @import 'globals/foundation_overrides'
|
8
|
+
|
9
|
+
// @import 'sections/header'
|
10
|
+
// @import 'sections/main_content'
|
11
|
+
// @import 'sections/page_sidebar'
|
12
|
+
// @import 'sections/page_body'
|
13
|
+
// @import 'sections/main_region'
|
14
|
+
// @import 'sections/sidebar_region'
|
15
|
+
|
16
|
+
// @import 'components/main_menu'
|
17
|
+
// @import 'components/oauth_sign_in_links'
|
18
|
+
// @import 'components/sub_menu'
|
19
|
+
// @import 'components/module_sidebar'
|
20
|
+
// @import 'components/widget_box'
|
21
|
+
// @import 'components/pane'
|
22
|
+
// @import 'components/definition'
|
23
|
+
// @import 'components/v_box'
|
24
|
+
// @import 'components/h_box'
|
25
|
+
// @import 'components/smart_table'
|
26
|
+
// @import 'components/label'
|
27
|
+
// @import 'components/image'
|
28
|
+
// @import 'components/filter'
|
29
|
+
|
30
|
+
// @import 'shared/media_object'
|
31
|
+
// @import 'shared/breadcrumbs'
|
32
|
+
// @import 'shared/icons'
|
33
|
+
// @import 'shared/forms'
|
34
|
+
// @import 'shared/tables'
|
35
|
+
// @import 'shared/trees'
|
36
|
+
// @import 'shared/loading'
|
37
|
+
// @import 'shared/messages'
|
38
|
+
// @import 'shared/alerts'
|
39
|
+
// @import 'shared/progress'
|
40
|
+
// @import 'shared/buttons'
|
41
|
+
|
42
|
+
// @import 'components/command_button'
|
43
|
+
|
44
|
+
// @import 'components/empty_state'
|
45
|
+
|
46
|
+
// @import 'plugins/select2'
|
47
|
+
// @import 'plugins/tinymce'
|
48
|
+
// @import '../ionicons/ionicons'
|
49
|
+
|
50
|
+
// .generate-subdomain
|
51
|
+
// cursor: pointer
|
52
|
+
|
53
|
+
// .devise-options
|
54
|
+
// margin:
|
55
|
+
// bottom: 30px
|
56
|
+
|
57
|
+
// .hidden
|
58
|
+
// display: none
|
59
|
+
|
60
|
+
// #app_subdomain
|
61
|
+
|
62
|
+
// &:read-only
|
63
|
+
// background-color: #f0f0f0
|
@@ -1,8 +1,8 @@
|
|
1
1
|
.main-container
|
2
|
-
@include grid-frame($orientation: vertical)
|
2
|
+
// @include grid-frame($orientation: vertical)
|
3
3
|
|
4
4
|
> .main-page
|
5
|
-
@include grid-block
|
5
|
+
// @include grid-block
|
6
6
|
@include breakpoint(small)
|
7
7
|
@include grid-orient(vertical)
|
8
8
|
@include breakpoint(medium)
|
@@ -17,20 +17,21 @@ module ExpressAdmin
|
|
17
17
|
scope = mapper.instance_variable_get(:@scope)
|
18
18
|
|
19
19
|
while scope.respond_to?(:parent) && scope = scope.parent
|
20
|
-
possible_module = scope.instance_variable_get(:@hash)[
|
21
|
-
break if possible_module.nil?
|
20
|
+
possible_module = scope.instance_variable_get(:@hash).try(:[],:module)
|
22
21
|
modules << possible_module
|
23
22
|
end
|
24
|
-
modules.compact!
|
23
|
+
modules.uniq!.compact!
|
25
24
|
modules << controller_name
|
26
25
|
|
27
26
|
controller_class = nil
|
28
27
|
begin
|
29
|
-
|
28
|
+
controller_class_name = "#{modules.join("/").classify.pluralize}Controller"
|
29
|
+
controller_class = controller_class_name.constantize
|
30
30
|
rescue NameError => e
|
31
31
|
# if plural fails, use singular
|
32
32
|
begin
|
33
|
-
|
33
|
+
controller_class_name = "#{modules.join("/").classify}Controller"
|
34
|
+
controller_class = controller_class_name.constantize
|
34
35
|
rescue NameError => e2
|
35
36
|
# if we get here, the first exception wasn't what we thought
|
36
37
|
# it was something else and we should politely let the developer know
|
data/lib/express_admin/engine.rb
CHANGED
@@ -4,11 +4,10 @@ require 'express_admin/standard_actions'
|
|
4
4
|
require 'express_admin/search'
|
5
5
|
require 'express_templates'
|
6
6
|
require 'jquery-rails'
|
7
|
-
require 'jquery-ui-rails'
|
7
|
+
# require 'jquery-ui-rails'
|
8
8
|
require 'select2-rails'
|
9
9
|
require 'dropzonejs-rails'
|
10
10
|
require 'sass-rails'
|
11
|
-
require 'foundation_apps_styles'
|
12
11
|
require 'gravatar_image_tag'
|
13
12
|
require 'kaminari'
|
14
13
|
require 'responders'
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: express_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.a
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Talcott Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: express_templates
|
@@ -38,26 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: foundation_apps_styles
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.1'
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 1.1.0
|
51
|
-
type: :runtime
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - "~>"
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '1.1'
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.1.0
|
61
41
|
- !ruby/object:Gem::Dependency
|
62
42
|
name: tinymce-rails
|
63
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,22 +118,16 @@ dependencies:
|
|
138
118
|
name: rails
|
139
119
|
requirement: !ruby/object:Gem::Requirement
|
140
120
|
requirements:
|
141
|
-
- - "
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '4.2'
|
144
|
-
- - ">="
|
121
|
+
- - ">"
|
145
122
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
123
|
+
version: '5.0'
|
147
124
|
type: :runtime
|
148
125
|
prerelease: false
|
149
126
|
version_requirements: !ruby/object:Gem::Requirement
|
150
127
|
requirements:
|
151
|
-
- - "
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '4.2'
|
154
|
-
- - ">="
|
128
|
+
- - ">"
|
155
129
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
130
|
+
version: '5.0'
|
157
131
|
- !ruby/object:Gem::Dependency
|
158
132
|
name: responders
|
159
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,20 +156,6 @@ dependencies:
|
|
182
156
|
- - ">="
|
183
157
|
- !ruby/object:Gem::Version
|
184
158
|
version: '3.5'
|
185
|
-
- !ruby/object:Gem::Dependency
|
186
|
-
name: jquery-ui-rails
|
187
|
-
requirement: !ruby/object:Gem::Requirement
|
188
|
-
requirements:
|
189
|
-
- - ">="
|
190
|
-
- !ruby/object:Gem::Version
|
191
|
-
version: '0'
|
192
|
-
type: :runtime
|
193
|
-
prerelease: false
|
194
|
-
version_requirements: !ruby/object:Gem::Requirement
|
195
|
-
requirements:
|
196
|
-
- - ">="
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '0'
|
199
159
|
- !ruby/object:Gem::Dependency
|
200
160
|
name: coffee-script
|
201
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -573,6 +533,7 @@ files:
|
|
573
533
|
- test/dummy/db/migrate/20150610081204_create_widget_tags.rb
|
574
534
|
- test/dummy/db/migrate/20150812073447_create_parts.rb
|
575
535
|
- test/dummy/db/schema.rb
|
536
|
+
- test/dummy/db/test.sqlite3
|
576
537
|
- test/dummy/public/404.html
|
577
538
|
- test/dummy/public/422.html
|
578
539
|
- test/dummy/public/500.html
|
@@ -645,12 +606,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
645
606
|
version: '0'
|
646
607
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
647
608
|
requirements:
|
648
|
-
- - "
|
609
|
+
- - ">"
|
649
610
|
- !ruby/object:Gem::Version
|
650
|
-
version:
|
611
|
+
version: 1.3.1
|
651
612
|
requirements: []
|
652
613
|
rubyforge_project:
|
653
|
-
rubygems_version: 2.
|
614
|
+
rubygems_version: 2.4.7
|
654
615
|
signing_key:
|
655
616
|
specification_version: 4
|
656
617
|
summary: ExpressAdmin provides an admin menu framework based on Foundation.
|
@@ -712,6 +673,7 @@ test_files:
|
|
712
673
|
- test/dummy/db/migrate/20150610081204_create_widget_tags.rb
|
713
674
|
- test/dummy/db/migrate/20150812073447_create_parts.rb
|
714
675
|
- test/dummy/db/schema.rb
|
676
|
+
- test/dummy/db/test.sqlite3
|
715
677
|
- test/dummy/public/404.html
|
716
678
|
- test/dummy/public/422.html
|
717
679
|
- test/dummy/public/500.html
|