character 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3992f7bb47b7a0efa1e09d4f0c51af5b90ad0f6f
4
- data.tar.gz: cc5dbde1f655f2b94bd98ecea5056121d0747475
3
+ metadata.gz: e84e6d3a41c5d6a1280ac7c9e4af4760e7e561e8
4
+ data.tar.gz: 12843c85751bccfd42ea815b55e51745090ee67e
5
5
  SHA512:
6
- metadata.gz: 1ce54bd1cb0eb8a2c4294c25d811e1cd551a4b29cf886ffe6ff6870e6b2901c1b6fbbff2a8687cda86ae451d29e363d52e67abe14b75dfa66e86e5080102c518
7
- data.tar.gz: a2f0f900b77505d31094c3ecd714ef7b0e09ed9e24b46b0787c052be30205f17ebdad5abcab94bf2e34b758f9c8afad43bba92e6f0b0b55f00ddf7c874661242
6
+ metadata.gz: abdc33829082024e1bc3155fc6fa5fa9df4fb675d5bd43678920831463b76bca0ee1565d32c2490ec1261f0044ee895001caf3ab1a4fcadce4fccb88de0c0082
7
+ data.tar.gz: ae52290bd2f70283173e69b972a9e973b437b6e8bc004914acbcbfb599d2fa071575cdb573c3b6ed09f4cbe8b17fd1a323e13c6611067af9c0b9ba3c5034713f
data/.gitignore CHANGED
@@ -3,3 +3,5 @@
3
3
  /log/*.log
4
4
  Gemfile.lock
5
5
  pkg
6
+
7
+ *.swp
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
 
@@ -39,3 +39,4 @@ $font_bold: 700!default;
39
39
  // workarounds
40
40
 
41
41
  .safari .chr-layout .right { width: 65.1%; }
42
+ .safari .chr-layout .right.fullscreen { width: 100%; }
@@ -654,7 +654,7 @@ b, strong { font-weight: $font_bold;
654
654
  border-bottom: 1px solid #e6e9f0;
655
655
  box-shadow: none;
656
656
  border-radius: 0px;
657
- padding: 1em inherit;
657
+ padding: 1em .3em;
658
658
  &:focus { border-color: #e6e9f0;
659
659
  }
660
660
  }
@@ -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 %>
@@ -1,5 +1,5 @@
1
- <% set_meta_tags title: @object.title %>
1
+ <% set_meta_tags title: @object.title, description: @object.description %>
2
2
 
3
3
  <article class='page'>
4
4
  <%= render partial: @object.template_path %>
5
- </article>
5
+ </article>
@@ -1,3 +1,3 @@
1
1
  module Character
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
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
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-07-23 00:00:00.000000000 Z
14
+ date: 2014-08-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: underscore-rails