tramway-admin 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42d582e53ffb141a3dccb80c9ec4cf3878bc57bb8ee3acfce73ab61bab69f6e7
4
- data.tar.gz: babce019849cb45c892cb220ff8f8d52fda7b746919e8b6b8d99d0e382a8364f
3
+ metadata.gz: ede3dd0927c3ca2efff6c3099adc8feb5967bda5e7ec26e5c76a7ae38fd8507c
4
+ data.tar.gz: 56c36d25bbfe1e535f0dd438470cb5f55bb49cc2b25a4b1d5401c280cfc67946
5
5
  SHA512:
6
- metadata.gz: 51f0ea137169467a884d029cbbb38a91c547a421986c73a703a70a41ee03db82fa80faa9827e943cbe3db0f91dd7e5324bce00b6c1e0b4bbd73048e06044ad27
7
- data.tar.gz: 7e5c8931ee73d927e167fe8f908d13125bd621ae5556cbc65893b1393024d82a7a422fa4c4637392967fc6af1780a5cb543d6fbf53020872f68c80a6e8957fcf
6
+ metadata.gz: 57d3936c3fb37f8b2998f820b0533c9102996bd7d4bf2eb8ffaf685ac1a32b765fc98a679c288d1edb4365650d7c61635ea88ea50eed00326456bcdd5977ec16
7
+ data.tar.gz: d11ece18b797fd1cf74b52dc8e76295c18c2b681d4678d08ea6b7de6d8397b3ec3d9aea7908602d500d5971477a6442784c847f2e3cae9e2a5deeef19950f7e6
@@ -0,0 +1,3 @@
1
+ CKEDITOR.editorConfig = function (config) {
2
+ config.extraPlugins = 'image,copyformatting,filebrowser';
3
+ }
@@ -2,6 +2,11 @@
2
2
  %head
3
3
  %meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
4
4
  %title Tramway admin
5
+ = javascript_include_tag Ckeditor.cdn_url
6
+ :javascript
7
+ CKEDITOR.replace( 'post_content', {
8
+ customConfig: "#{javascript_url('tramway/admin/ckeditor/config.js')}"
9
+ } );
5
10
  = stylesheet_link_tag "tramway/admin/application", media: "all"
6
11
  = javascript_include_tag "tramway/admin/application"
7
12
  = csrf_meta_tags
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w( tramway/admin/ckeditor/* )
@@ -0,0 +1,3 @@
1
+ Ckeditor.setup do |config|
2
+ config.cdn_url = "//cdn.ckeditor.com/4.6.1/basic/ckeditor.js"
3
+ end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Engine for admin
14
14
  email:
@@ -22,8 +22,8 @@ files:
22
22
  - Rakefile
23
23
  - app/assets/config/tramway_admin_manifest.js
24
24
  - app/assets/javascripts/tramway/admin/application.js.coffee
25
+ - app/assets/javascripts/tramway/admin/ckeditor/config.js
25
26
  - app/assets/javascripts/tramway/admin/records.js
26
- - app/assets/javascripts/tramway/admin/tramway/admin/records.js
27
27
  - app/assets/javascripts/tramway/admin/welcome.js
28
28
  - app/assets/stylesheets/tramway/admin/application.css.sass
29
29
  - app/assets/stylesheets/tramway/admin/records.css
@@ -53,6 +53,8 @@ files:
53
53
  - app/views/tramway/admin/singletons/edit.html.haml
54
54
  - app/views/tramway/admin/singletons/show.html.haml
55
55
  - app/views/tramway/admin/welcome/index.html.haml
56
+ - config/initializers/assets.rb
57
+ - config/initializers/ckeditor.rb
56
58
  - config/locales/ru.collections.yml
57
59
  - config/routes.rb
58
60
  - lib/tasks/tramway/admin_tasks.rake
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.