chr 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coffeescript-style.json +98 -0
- data/.hound.yml +16 -0
- data/.ruby-style.yml +239 -0
- data/.scss-style.yml +145 -0
- data/.travis.yml +2 -2
- data/README.md +10 -3
- data/app/assets/javascripts/chr/chr.coffee +4 -25
- data/app/assets/javascripts/chr/chr_router.coffee +2 -14
- data/app/assets/javascripts/chr/item.coffee +2 -19
- data/app/assets/javascripts/chr/list.coffee +6 -18
- data/app/assets/javascripts/chr/list_config.coffee +3 -10
- data/app/assets/javascripts/chr/list_pagination.coffee +1 -9
- data/app/assets/javascripts/chr/list_reorder.coffee +1 -8
- data/app/assets/javascripts/chr/list_search.coffee +2 -10
- data/app/assets/javascripts/chr/list_tabs.coffee +42 -0
- data/app/assets/javascripts/chr/module-categories.coffee +0 -2
- data/app/assets/javascripts/chr/module.coffee +1 -19
- data/app/assets/javascripts/chr/utils.coffee +0 -6
- data/app/assets/javascripts/chr/view.coffee +37 -36
- data/app/assets/javascripts/chr/view_tabs.coffee +19 -8
- data/app/assets/javascripts/stores/rest-array.coffee +23 -36
- data/app/assets/stylesheets/chr/layout.scss +17 -13
- data/app/assets/stylesheets/chr/themes/basic.scss +13 -13
- data/lib/chr/version.rb +1 -1
- data/templates/character_admin.coffee.erb +1 -1
- data/test/integration/article_fullsize_test.rb +5 -5
- data/test/integration/article_test.rb +2 -2
- data/test/integration/magazine_article_test.rb +5 -5
- data/test/integration/restricted_article_test.rb +3 -3
- data/test/integration/sport_article_test.rb +2 -2
- data/test/rails_app/.gitignore +15 -0
- data/test/rails_app/.ruby-version +1 -0
- data/test/rails_app/.sample.env +6 -0
- data/test/rails_app/Procfile +1 -0
- data/test/rails_app/README.md +45 -0
- data/test/rails_app/Rakefile +1 -1
- data/test/rails_app/app/assets/images/.keep +0 -0
- data/test/rails_app/app/assets/javascripts/admin.coffee +82 -102
- data/test/rails_app/app/assets/javascripts/application.coffee +2 -0
- data/test/rails_app/app/assets/stylesheets/admin.scss +4 -1
- data/test/rails_app/app/assets/stylesheets/application.scss +1 -0
- data/test/rails_app/app/controllers/admin/base_controller.rb +5 -0
- data/test/rails_app/app/controllers/admin/devise_overrides/passwords_controller.rb +9 -0
- data/test/rails_app/app/controllers/admin/devise_overrides/sessions_controller.rb +11 -0
- data/test/rails_app/app/controllers/concerns/.keep +0 -0
- data/test/rails_app/app/helpers/body_class_helper.rb +15 -0
- data/test/rails_app/app/mailers/.keep +0 -0
- data/test/rails_app/app/models/.keep +0 -0
- data/test/rails_app/app/models/article.rb +0 -4
- data/test/rails_app/app/models/concerns/.keep +0 -0
- data/test/rails_app/app/uploaders/article_image_uploader.rb +0 -4
- data/test/rails_app/app/views/admin/devise_overrides/passwords/edit.html.erb +31 -0
- data/test/rails_app/app/views/admin/devise_overrides/passwords/new.html.erb +19 -0
- data/test/rails_app/app/views/admin/devise_overrides/sessions/new.html.erb +29 -0
- data/test/rails_app/app/views/admin/index.html.erb +1 -3
- data/test/rails_app/app/views/application/_analytics.html.erb +9 -0
- data/test/rails_app/app/views/application/_flashes.html.erb +7 -0
- data/test/rails_app/app/views/application/_javascript.html.erb +12 -0
- data/test/rails_app/app/views/layouts/admin.html.erb +13 -11
- data/test/rails_app/app/views/layouts/application.html.erb +22 -7
- data/test/rails_app/bin/rails +3 -2
- data/test/rails_app/bin/rake +3 -2
- data/test/rails_app/bin/setup +28 -22
- data/test/rails_app/bin/spring +6 -6
- data/test/rails_app/config/application.rb +12 -1
- data/test/rails_app/config/boot.rb +1 -2
- data/test/rails_app/config/environments/development.rb +2 -0
- data/test/rails_app/config/environments/production.rb +16 -1
- data/test/rails_app/config/environments/staging.rb +9 -0
- data/test/rails_app/config/environments/test.rb +1 -3
- data/test/rails_app/config/initializers/assets.rb +2 -3
- data/test/rails_app/config/initializers/carrierwave.rb +23 -4
- data/test/rails_app/config/initializers/devise.rb +265 -0
- data/test/rails_app/config/initializers/errors.rb +34 -0
- data/test/rails_app/config/initializers/json_encoding.rb +1 -0
- data/test/rails_app/config/locales/devise.en.yml +62 -0
- data/test/rails_app/config/mongoid.yml +131 -8
- data/test/rails_app/config/newrelic.yml +34 -0
- data/test/rails_app/config/puma.rb +18 -0
- data/test/rails_app/config/routes.rb +86 -0
- data/test/rails_app/config/secrets.yml +8 -16
- data/test/rails_app/config/smtp.rb +9 -0
- data/test/rails_app/lib/assets/.keep +0 -0
- data/test/rails_app/lib/tasks/.keep +0 -0
- data/test/rails_app/lib/tasks/bundler_audit.rake +12 -0
- data/test/rails_app/lib/tasks/dev.rake +12 -0
- data/test/rails_app/public/404.html +4 -2
- data/test/rails_app/public/422.html +4 -2
- data/test/rails_app/public/500.html +4 -2
- data/test/rails_app/vendor/assets/javascripts/.keep +0 -0
- data/test/rails_app/vendor/assets/stylesheets/.keep +0 -0
- data/test/support/character_front_end.rb +10 -9
- data/test/support/chr/list_pagination.rb +8 -8
- data/test/support/chr/list_reorder.rb +4 -1
- data/test/support/chr/view.rb +4 -3
- data/test/support/stores/rest-array.rb +3 -3
- data/test/test_helper.rb +13 -7
- metadata +77 -6
- data/test/rails_app/app/assets/javascripts/application.js +0 -1
- data/test/rails_app/app/assets/stylesheets/application.css +0 -1
@@ -94,22 +94,27 @@ a { text-decoration: none; }
|
|
94
94
|
|
95
95
|
|
96
96
|
.item.has-subtitle { padding: 0.6em 2em 0.6em 1em; }
|
97
|
-
.item.has-thumbnail { padding-left: 4.
|
97
|
+
.item.has-thumbnail { padding-left: 4.5em; }
|
98
98
|
.item.has-thumbnail .item-title { line-height: 2.15; }
|
99
|
-
.item.has-thumbnail.has-subtitle { padding: 1em 2em .75em
|
99
|
+
.item.has-thumbnail.has-subtitle { padding: 1em 2em .75em 4em; }
|
100
100
|
.item.has-thumbnail.has-subtitle .item-title { line-height : 1.2; }
|
101
101
|
|
102
|
+
.item-title { @include ellipsis; display: block; }
|
103
|
+
.item-subtitle { @include ellipsis; font-size: 0.8em; }
|
104
|
+
.item-thumbnail {
|
105
|
+
@include position(absolute, 0.75em null null 0.8em);
|
106
|
+
width: 2.5em;
|
107
|
+
height: 2.5em;
|
108
|
+
}
|
109
|
+
.item-thumbnail img { width: 100%; border-radius: 1.55em; }
|
110
|
+
|
102
111
|
.item.reorderable {
|
103
112
|
padding-left: 2em;
|
104
|
-
&:after {
|
105
|
-
left: 2em;
|
106
|
-
}
|
107
|
-
}
|
108
113
|
|
109
|
-
.item-
|
110
|
-
.
|
111
|
-
|
112
|
-
|
114
|
+
.item-thumbnail { left: 1.8em; }
|
115
|
+
&.has-thumbnail.has-subtitle { padding-left: 5em; }
|
116
|
+
&:after { left: 2em; }
|
117
|
+
}
|
113
118
|
|
114
119
|
/* Search ------------------------------------------------------------------ */
|
115
120
|
.search {
|
@@ -160,9 +165,8 @@ a { text-decoration: none; }
|
|
160
165
|
.header-tabs {
|
161
166
|
@include position(relative, 0.45em null null null);
|
162
167
|
border-radius : 4px;
|
163
|
-
overflow
|
164
|
-
display
|
165
|
-
z-index : 1;
|
168
|
+
overflow: hidden;
|
169
|
+
display: inline-block;
|
166
170
|
|
167
171
|
a { display : inline-block; }
|
168
172
|
}
|
@@ -37,10 +37,6 @@ html {
|
|
37
37
|
color: $base-font-color;
|
38
38
|
}
|
39
39
|
|
40
|
-
body {
|
41
|
-
background-color: $bg-color;
|
42
|
-
}
|
43
|
-
|
44
40
|
a {
|
45
41
|
color: $positive-color;
|
46
42
|
}
|
@@ -58,8 +54,7 @@ a {
|
|
58
54
|
font-size: .9em;
|
59
55
|
}
|
60
56
|
|
61
|
-
.header .title
|
62
|
-
.header .save {
|
57
|
+
.header .title {
|
63
58
|
font-weight : $semibold;
|
64
59
|
}
|
65
60
|
|
@@ -125,6 +120,7 @@ a {
|
|
125
120
|
border : 1px solid $positive-color;
|
126
121
|
|
127
122
|
a {
|
123
|
+
background-color: $white-color;
|
128
124
|
border-right : 1px solid $positive-color;
|
129
125
|
font-weight : $regular;
|
130
126
|
line-height : 1;
|
@@ -137,10 +133,10 @@ a {
|
|
137
133
|
}
|
138
134
|
|
139
135
|
&.active {
|
140
|
-
background-color
|
141
|
-
color
|
136
|
+
background-color: $positive-color;
|
137
|
+
color: $white-color;
|
142
138
|
&:hover {
|
143
|
-
color
|
139
|
+
color: $white-color;
|
144
140
|
}
|
145
141
|
}
|
146
142
|
}
|
@@ -159,10 +155,6 @@ a {
|
|
159
155
|
padding : 0 1em;
|
160
156
|
}
|
161
157
|
|
162
|
-
.alert {
|
163
|
-
color : $assertive-color;
|
164
|
-
}
|
165
|
-
|
166
158
|
h2 {
|
167
159
|
text-align : center;
|
168
160
|
font-size : 1em;
|
@@ -207,13 +199,21 @@ a {
|
|
207
199
|
|
208
200
|
.header .back,
|
209
201
|
.header .close {
|
202
|
+
color: $secondary-font-color;
|
210
203
|
&:before {
|
211
204
|
content: 'Close';
|
212
205
|
}
|
206
|
+
&:hover {
|
207
|
+
color: $base-font-color;
|
208
|
+
}
|
213
209
|
}
|
214
210
|
|
215
211
|
/* Layouts ----------------------------------------------------------------- */
|
216
212
|
@media #{$tablet} {
|
213
|
+
body {
|
214
|
+
background-color: $bg-color;
|
215
|
+
}
|
216
|
+
|
217
217
|
.sidebar {
|
218
218
|
background-color: $sidebar-bg-color;
|
219
219
|
}
|
data/lib/chr/version.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
#-------------------------------------------------------------------------------------
|
2
|
-
|
2
|
+
|
3
3
|
## Config
|
4
4
|
|
5
5
|
# disableNewItems: true - do not show new item button in list header
|
6
6
|
# showWithParent: true - show list on a aside from parent
|
7
|
-
# disableFormCache: true
|
7
|
+
# disableFormCache: true
|
8
8
|
# searchable: true - add search button
|
9
9
|
# reorderable: true - permit reorder items
|
10
10
|
# disableDelete: true - do not add delete button below the form
|
11
|
-
# disableSave: true - do not add save button in header
|
11
|
+
# disableSave: true - do not add save button in header
|
12
12
|
# fullsizeView: true - use fullsize layout in desktop mode
|
13
13
|
# urlParams: Article.sport_articles - additional parameter to be included into request
|
14
14
|
# sortReverse: true - reverse objects sorting (descending order), default: false
|
15
|
-
|
15
|
+
|
16
16
|
# compoundModule: true - add this, if module is compound (add extra test)
|
17
17
|
# pagination: true - add this, if there are many objects (add extra test)
|
18
18
|
# uploaderImage: true - run tests, for checking uploader
|
19
|
-
|
19
|
+
|
20
20
|
#-------------------------------------------------------------------------------------
|
21
21
|
|
22
22
|
require 'test_helper'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#-------------------------------------------------------------------------------------
|
2
|
-
|
2
|
+
|
3
3
|
## Config
|
4
4
|
|
5
5
|
# disableNewItems: true - do not show new item button in list header
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# searchable: true - add search button
|
9
9
|
# reorderable: true - permit reorder items
|
10
10
|
# disableDelete: true - do not add delete button below the form
|
11
|
-
# disableSave: true - do not add save button in header
|
11
|
+
# disableSave: true - do not add save button in header
|
12
12
|
# fullsizeView: true - use fullsize layout in desktop mode
|
13
13
|
# urlParams: Article.sport_articles - additional parameter to be included into request
|
14
14
|
# sortReverse: true - reverse objects sorting (descending order), default: false
|
@@ -1,14 +1,14 @@
|
|
1
1
|
#-------------------------------------------------------------------------------------
|
2
|
-
|
2
|
+
|
3
3
|
## Config
|
4
4
|
|
5
5
|
# disableNewItems: true - do not show new item button in list header
|
6
6
|
# showWithParent: true - show list on a aside from parent
|
7
|
-
# disableFormCache: true
|
7
|
+
# disableFormCache: true
|
8
8
|
# searchable: true - add search button
|
9
9
|
# reorderable: true - permit reorder items
|
10
10
|
# disableDelete: true - do not add delete button below the form
|
11
|
-
# disableSave: true - do not add save button in header
|
11
|
+
# disableSave: true - do not add save button in header
|
12
12
|
# fullsizeView: true - use fullsize layout in desktop mode
|
13
13
|
# urlParams: Article.sport_articles - additional parameter to be included into request
|
14
14
|
# sortReverse: true - reverse objects sorting (descending order), default: false
|
@@ -23,11 +23,11 @@ require 'test_helper'
|
|
23
23
|
class MagazineArticleFrontEndTest < ActionDispatch::IntegrationTest
|
24
24
|
|
25
25
|
factory_name = 'article'
|
26
|
-
class_name = Article
|
26
|
+
class_name = Article
|
27
27
|
list_of_modules = ['magazine', 'pages', 'articles']
|
28
28
|
config = {compoundModule: true, sortReverse: true}
|
29
29
|
character_front_end(factory_name, class_name, list_of_modules, config)
|
30
|
-
|
30
|
+
|
31
31
|
end
|
32
32
|
|
33
33
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
#-------------------------------------------------------------------------------------
|
2
|
-
|
2
|
+
|
3
3
|
## Config
|
4
4
|
|
5
5
|
# disableNewItems: true - do not show new item button in list header
|
6
6
|
# showWithParent: true - show list on a aside from parent
|
7
|
-
# disableFormCache: true
|
7
|
+
# disableFormCache: true
|
8
8
|
# searchable: true - add search button
|
9
9
|
# reorderable: true - permit reorder items
|
10
10
|
# disableDelete: true - do not add delete button below the form
|
11
|
-
# disableSave: true - do not add save button in header
|
11
|
+
# disableSave: true - do not add save button in header
|
12
12
|
# fullsizeView: true - use fullsize layout in desktop mode
|
13
13
|
# urlParams: Article.sport_articles - additional parameter to be included into request
|
14
14
|
# sortReverse: true - reverse objects sorting (descending order), default: false
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#-------------------------------------------------------------------------------------
|
2
|
-
|
2
|
+
|
3
3
|
## Config
|
4
4
|
|
5
5
|
# disableNewItems: true - do not show new item button in list header
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# searchable: true - add search button
|
9
9
|
# reorderable: true - permit reorder items
|
10
10
|
# disableDelete: true - do not add delete button below the form
|
11
|
-
# disableSave: true - do not add save button in header
|
11
|
+
# disableSave: true - do not add save button in header
|
12
12
|
# fullsizeView: true - use fullsize layout in desktop mode
|
13
13
|
# urlParams: Article.sport_articles - additional parameter to be included into request
|
14
14
|
# sortReverse: true - reverse objects sorting (descending order), default: false
|
@@ -0,0 +1 @@
|
|
1
|
+
2.2.3
|
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec puma -p $PORT -C ./config/puma.rb
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Rails app
|
2
|
+
|
3
|
+
|
4
|
+
## Getting Started
|
5
|
+
|
6
|
+
After you have cloned this repo, run this setup script to set up your machine
|
7
|
+
with the necessary dependencies to run and test this app:
|
8
|
+
|
9
|
+
% ./bin/setup
|
10
|
+
|
11
|
+
It assumes you have a machine equipped with Ruby, Postgres, etc. If not, set up
|
12
|
+
your machine with [this script].
|
13
|
+
|
14
|
+
[this script]: https://github.com/thoughtbot/laptop
|
15
|
+
|
16
|
+
After setting up, you can run the application using [foreman]:
|
17
|
+
|
18
|
+
% foreman start
|
19
|
+
|
20
|
+
If you don't have `foreman`, see [Foreman's install instructions][foreman]. It
|
21
|
+
is [purposefully excluded from the project's `Gemfile`][exclude].
|
22
|
+
|
23
|
+
[foreman]: https://github.com/ddollar/foreman
|
24
|
+
[exclude]: https://github.com/ddollar/foreman/pull/437#issuecomment-41110407
|
25
|
+
|
26
|
+
|
27
|
+
## Deploying to Heroku
|
28
|
+
|
29
|
+
This project is ready to deploy to [Heroku](https://heroku.com), still before that
|
30
|
+
please install plugins for mongodb, email & make sure these variables are set
|
31
|
+
in your app ENV:
|
32
|
+
|
33
|
+
MONGODB_URI
|
34
|
+
ASSET_HOST
|
35
|
+
AWS_ACCESS_KEY_ID
|
36
|
+
AWS_SECRET_ACCESS_KEY
|
37
|
+
FOG_DIRECTORY
|
38
|
+
HOST
|
39
|
+
SMTP_ADDRESS
|
40
|
+
SMTP_DOMAIN
|
41
|
+
SMTP_PASSWORD
|
42
|
+
SMTP_USERNAME
|
43
|
+
|
44
|
+
|
45
|
+
Good luck, have fun, program well and program in style!
|
data/test/rails_app/Rakefile
CHANGED
File without changes
|
@@ -1,133 +1,113 @@
|
|
1
1
|
#= require jquery
|
2
2
|
#= require jquery_ujs
|
3
|
-
#= require chr
|
4
|
-
|
5
|
-
# ----------------------------------------------------------------------------------------
|
6
|
-
# TEST NOTES
|
7
|
-
# ----------------------------------------------------------------------------------------
|
8
|
-
|
9
|
-
## Module
|
10
|
-
# showNestedListsAside - We don`t use it anymore? — Yes, we do, please add to tests.
|
11
|
-
|
12
|
-
## List
|
13
|
-
# disableNewItems: true tested
|
14
|
-
# showWithParent: true tested
|
15
|
-
|
16
|
-
## View
|
17
|
-
# disableDelete - do not add delete button below the form tested
|
18
|
-
# disableSave - do not add save button in header tested
|
19
|
-
# fullsizeView — use fullsize layout in desktop mode tested
|
20
|
-
# onViewShow - on show callback
|
21
|
-
# defaultNewObject - used to generate new form
|
22
3
|
|
23
|
-
|
24
|
-
# urlParams: true tested
|
25
|
-
# searchable: true tested
|
26
|
-
|
27
|
-
## Array
|
28
|
-
# sortBy — objects field name which is used for sorting, does not sort
|
29
|
-
# when parameter is not provided, default: nil
|
30
|
-
# sortReverse — reverse objects sorting (descending order), default: false
|
31
|
-
# reorderable tested
|
4
|
+
#= require chr
|
32
5
|
|
33
|
-
|
6
|
+
@getConfig = (data) ->
|
7
|
+
modules =
|
8
|
+
fullsize_articles:
|
9
|
+
fullsizeView: true
|
34
10
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
fullsizeView: true
|
11
|
+
arrayStore: new RailsArrayStore({
|
12
|
+
resource: 'article'
|
13
|
+
path: '/admin/articles'
|
14
|
+
})
|
40
15
|
|
41
|
-
arrayStore: new RailsArrayStore({
|
42
|
-
resource: 'article'
|
43
|
-
path: '/admin/articles'
|
44
|
-
})
|
45
16
|
|
17
|
+
formSchema:
|
18
|
+
title: { type: 'string' }
|
19
|
+
description: { type: 'text' }
|
20
|
+
body_html: { type: 'text' }
|
46
21
|
|
47
|
-
|
48
|
-
title: { type: 'string' }
|
49
|
-
description: { type: 'text' }
|
50
|
-
body_html: { type: 'text' }
|
22
|
+
restricted_articles:
|
51
23
|
|
52
|
-
|
24
|
+
disableNewItems: true
|
25
|
+
disableDelete: true
|
26
|
+
disableSave: true
|
53
27
|
|
54
|
-
|
55
|
-
|
56
|
-
|
28
|
+
arrayStore: new RailsArrayStore({
|
29
|
+
resource: 'article'
|
30
|
+
path: '/admin/articles'
|
31
|
+
})
|
57
32
|
|
58
|
-
arrayStore: new RailsArrayStore({
|
59
|
-
resource: 'article'
|
60
|
-
path: '/admin/articles'
|
61
|
-
})
|
62
33
|
|
34
|
+
formSchema:
|
35
|
+
title: { type: 'string' }
|
36
|
+
description: { type: 'text' }
|
37
|
+
body_html: { type: 'text' }
|
63
38
|
|
64
|
-
formSchema:
|
65
|
-
title: { type: 'string' }
|
66
|
-
description: { type: 'text' }
|
67
|
-
body_html: { type: 'text' }
|
68
39
|
|
40
|
+
articles:
|
69
41
|
|
70
|
-
|
42
|
+
arrayStore: new RailsArrayStore({
|
43
|
+
resource: 'article'
|
44
|
+
path: '/admin/articles'
|
45
|
+
searchable: true
|
46
|
+
reorderable: { positionFieldName: '_position' }
|
47
|
+
})
|
71
48
|
|
72
|
-
arrayStore: new RailsArrayStore({
|
73
|
-
resource: 'article'
|
74
|
-
path: '/admin/articles'
|
75
|
-
searchable: true
|
76
|
-
reorderable: { positionFieldName: '_position' }
|
77
|
-
})
|
78
49
|
|
50
|
+
formSchema:
|
51
|
+
title: { type: 'string' }
|
52
|
+
description: { type: 'text' }
|
53
|
+
_position: { type: 'float' }
|
54
|
+
body_html: { type: 'text' }
|
55
|
+
image: { type: 'image', label: 'Image <small>(600x375)</small>', thumbnail: (o) -> o.image.thumbnail_2x.url }
|
79
56
|
|
80
|
-
formSchema:
|
81
|
-
title: { type: 'string' }
|
82
|
-
description: { type: 'text' }
|
83
|
-
_position: { type: 'float' }
|
84
|
-
body_html: { type: 'text' }
|
85
|
-
image: { type: 'image', label: 'Image <small>(600x375)</small>', thumbnail: (o) -> o.image.thumbnail_2x.url }
|
86
57
|
|
58
|
+
magazine:
|
59
|
+
title: 'Magazine'
|
60
|
+
items:
|
61
|
+
pages:
|
62
|
+
title: 'Pages'
|
63
|
+
showWithParent: true
|
64
|
+
items:
|
65
|
+
articles:
|
87
66
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
articles:
|
67
|
+
arrayStore: new RailsArrayStore({
|
68
|
+
resource: 'article'
|
69
|
+
path: '/admin/articles'
|
70
|
+
sortBy: '_position'
|
71
|
+
sortReverse: true
|
72
|
+
searchable: true
|
73
|
+
})
|
96
74
|
|
97
|
-
arrayStore: new RailsArrayStore({
|
98
|
-
resource: 'article'
|
99
|
-
path: '/admin/articles'
|
100
|
-
sortBy: '_position'
|
101
|
-
sortReverse: true
|
102
|
-
searchable: true
|
103
|
-
})
|
104
75
|
|
76
|
+
formSchema:
|
77
|
+
title: { type: 'string' }
|
78
|
+
description: { type: 'text' }
|
79
|
+
_position: { type: 'float' }
|
80
|
+
body_html: { type: 'text' }
|
105
81
|
|
106
|
-
|
107
|
-
title: { type: 'string' }
|
108
|
-
description: { type: 'text' }
|
109
|
-
_position: { type: 'float' }
|
110
|
-
body_html: { type: 'text' }
|
82
|
+
sport_articles:
|
111
83
|
|
112
|
-
|
84
|
+
arrayStore: new RailsArrayStore({
|
85
|
+
resource: 'article'
|
86
|
+
path: '/admin/articles'
|
87
|
+
urlParams: { sport_articles: true }
|
88
|
+
searchable: true
|
89
|
+
reorderable: { positionFieldName: '_position' }
|
90
|
+
})
|
113
91
|
|
114
|
-
arrayStore: new RailsArrayStore({
|
115
|
-
resource: 'article'
|
116
|
-
path: '/admin/articles'
|
117
|
-
urlParams: { sport_articles: true }
|
118
|
-
searchable: true
|
119
|
-
reorderable: { positionFieldName: '_position' }
|
120
|
-
})
|
121
92
|
|
93
|
+
formSchema:
|
94
|
+
title: { type: 'string' }
|
95
|
+
description: { type: 'text' }
|
96
|
+
_position: { type: 'float' }
|
97
|
+
body_html: { type: 'text' }
|
122
98
|
|
123
|
-
formSchema:
|
124
|
-
title: { type: 'string' }
|
125
|
-
description: { type: 'text' }
|
126
|
-
_position: { type: 'float' }
|
127
|
-
body_html: { type: 'text' }
|
128
|
-
|
129
|
-
chr.start('Test', config)
|
130
99
|
|
100
|
+
# loft: new Loft()
|
101
|
+
# settings:
|
102
|
+
# items:
|
103
|
+
# admins: new AntsAdminUsers()
|
104
|
+
# redirects: new AntsRedirects()
|
131
105
|
|
106
|
+
return { modules: modules }
|
132
107
|
|
108
|
+
$ ->
|
109
|
+
$.get '/admin/bootstrap.json', (response) ->
|
110
|
+
config = getConfig(response)
|
133
111
|
|
112
|
+
chr.start('test_chr', config)
|
113
|
+
# new AntsProfile()
|