character 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +18 -7
- data/app/assets/javascripts/character/generic/helpers/redactor.coffee +2 -0
- data/app/assets/stylesheets/character.scss +1 -0
- data/app/assets/stylesheets/character/base.scss +1 -1
- data/app/models/character/page.rb +2 -1
- data/app/views/character/pages/form.html.erb +3 -1
- data/app/views/pages/show.html.erb +2 -2
- data/lib/character/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e84e6d3a41c5d6a1280ac7c9e4af4760e7e561e8
|
4
|
+
data.tar.gz: 12843c85751bccfd42ea815b55e51745090ee67e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdc33829082024e1bc3155fc6fa5fa9df4fb675d5bd43678920831463b76bca0ee1565d32c2490ec1261f0044ee895001caf3ab1a4fcadce4fccb88de0c0082
|
7
|
+
data.tar.gz: ae52290bd2f70283173e69b972a9e973b437b6e8bc004914acbcbfb599d2fa071575cdb573c3b6ed09f4cbe8b17fd1a323e13c6611067af9c0b9ba3c5034713f
|
data/README.md
CHANGED
@@ -4,6 +4,23 @@ Have you heard of [Django](https://www.djangoproject.com/), [Wordpress](https://
|
|
4
4
|
|
5
5
|
![Character Image](http://character.s3.amazonaws.com/character1.jpg)
|
6
6
|
|
7
|
+
## TODO
|
8
|
+
|
9
|
+
* Enable published/unpublished option for new posts (now post is published after first save);
|
10
|
+
* Fix paste code issue for redactor.js + chrome (this is pain in the ass);
|
11
|
+
* Add smart toolbar buttons customization for redactor.js;
|
12
|
+
* Add JS validation on form save;
|
13
|
+
* Fix focus jump after image insert / link edit in redactor.js;
|
14
|
+
* redactor.js source view is too big in height;
|
15
|
+
* redactor.js source view removes new lines from code;
|
16
|
+
* fix upload icon while uploading;
|
17
|
+
* fix default styles for blog: links do break words;
|
18
|
+
* SVG icons do not work for Firefox;
|
19
|
+
* Add menu groups option to make one icon in menu for group of models (apps);
|
20
|
+
* Add expand button to details header;
|
21
|
+
* Reset validation after succesful form submission;
|
22
|
+
* Cache list all list views in DOM and save scrolling state for them, rerender only details;
|
23
|
+
|
7
24
|
## Setup new [Rails 4.1](http://rubyonrails.org) project
|
8
25
|
|
9
26
|
rails new ProjectName -T -O
|
@@ -18,12 +35,6 @@ Run bundle and run generators:
|
|
18
35
|
|
19
36
|
bundle ; rails g mongoid:config ; rails g character:bootstrap
|
20
37
|
|
21
|
-
## TODO
|
22
|
-
|
23
|
-
. Save unpublished post
|
24
|
-
. Fix paste code issue for redactor.js + chrome
|
25
|
-
|
26
|
-
|
27
38
|
## Routes
|
28
39
|
|
29
40
|
After character generator finishes it's dirty business, in ```/config/routes.rb``` you see:
|
@@ -188,4 +199,4 @@ Set all variables in server environment:
|
|
188
199
|
|
189
200
|
## Redirects
|
190
201
|
|
191
|
-
Redirects app allows to quickly setup 301/302 redirects for the website.
|
202
|
+
Redirects app allows to quickly setup 301/302 redirects for the website.
|
@@ -29,6 +29,8 @@ RedactorPlugins.gallery =
|
|
29
29
|
pastePlainText: true
|
30
30
|
plugins: [ 'gallery' ]
|
31
31
|
buttons: ['html', 'formatting', 'bold', 'italic', 'deleted', 'unorderedlist', 'orderedlist', 'outdent', 'indent', 'video', 'file', 'table', 'link', 'alignment', 'horizontalrule']
|
32
|
+
# TODO: required default options are overriden by options.redactorOptions
|
33
|
+
# need to use something like customRedactorOptions
|
32
34
|
_(options).extend(redactorOptions)
|
33
35
|
$content.find('.character-redactor').redactor(options)
|
34
36
|
|
@@ -7,6 +7,7 @@ class Character::Page
|
|
7
7
|
|
8
8
|
# attributes
|
9
9
|
field :title
|
10
|
+
field :description
|
10
11
|
field :path
|
11
12
|
field :template_name, default: 'redactor'
|
12
13
|
field :template_content, type: Hash, default: {}
|
@@ -18,4 +19,4 @@ class Character::Page
|
|
18
19
|
def template_path
|
19
20
|
"pages/#{ template_name }"
|
20
21
|
end
|
21
|
-
end
|
22
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<div class='chr-form-small chr-form-scrolled-up'>
|
4
4
|
<%= simple_nested_form_for @object, url: @form_action_url, method: :post do |f| %>
|
5
5
|
<%= f.input :title %>
|
6
|
+
<%= f.input :description, as: :text %>
|
6
7
|
<%= f.input :path %>
|
7
8
|
<%= f.input :template_name, collection: page_templates, include_blank: false %>
|
8
9
|
<%= f.input :hidden, as: :hidden %>
|
@@ -18,6 +19,7 @@
|
|
18
19
|
<div class='chr-form-small'>
|
19
20
|
<%= simple_form_for @object, url: @form_action_url do |f| %>
|
20
21
|
<%= f.input :title %>
|
22
|
+
<%= f.input :description, as: :text %>
|
21
23
|
<%= f.input :path %>
|
22
24
|
<%= f.input :template_name, collection: page_templates, include_blank: false %>
|
23
25
|
<%= f.input :hidden, as: :hidden %>
|
@@ -25,4 +27,4 @@
|
|
25
27
|
<% end %>
|
26
28
|
</div>
|
27
29
|
|
28
|
-
<% end %>
|
30
|
+
<% end %>
|
data/lib/character/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: character
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: underscore-rails
|