rails_admin_epic_editor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5bd69aa41b7417b10ac2c5996fc41d8f81af8ccc
4
+ data.tar.gz: 7b0bca876ea50e8c18398cc280cc50dbb7d74519
5
+ SHA512:
6
+ metadata.gz: fb8a8948b0ce95c8755621beb505e2f7f14cf110b8cf0aecb2af37d3832114af282f39b4885578d6ff64f5c65bdb1a2764f41e063ceeb463a06c7b16396db3c1
7
+ data.tar.gz: a45ecfca71ca06e49e81cee2819f8eb8e0667a94a197b0ff5c1615f93346cc06a2442dbb8bb5eb79e5e7980bcb12b1e35383e5033560caae70ae5075a20cf57a
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Phuong 'J' Le H.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = RailsAdminEpicEditor
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'RailsAdminEpicEditor'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
@@ -0,0 +1,19 @@
1
+ #epiceditor
2
+ = form.text_area field.method_name, field.html_attributes.reverse_merge({ id: 'my-edit-area', class: 'form-control', rows: 20 }).reverse_merge({ value: field.form_value })
3
+ = javascript_include_tag "epiceditor.js"
4
+ :javascript
5
+ (function($) {
6
+ var opts = {
7
+ theme: {
8
+ base: '#{ asset_url('base/epiceditor.css') }',
9
+ preview: '#{ asset_url('preview/github.css') }',
10
+ editor: '#{ asset_url('editor/epic-dark.css') }',
11
+ },
12
+ autogrow: {
13
+ minHeight: 200,
14
+ },
15
+ clientSideStorage: false,
16
+ }
17
+
18
+ var editor = new EpicEditor(opts).load();
19
+ })(jQuery);
@@ -0,0 +1,22 @@
1
+ require "rails_admin_epic_editor/engine"
2
+
3
+ module RailsAdminEpicEditor
4
+ end
5
+
6
+ require 'rails_admin/config/fields'
7
+ require 'rails_admin/config/fields/base'
8
+
9
+ module RailsAdmin
10
+ module Config
11
+ module Fields
12
+ module Types
13
+ class EpicEditor < RailsAdmin::Config::Fields::Base
14
+ RailsAdmin::Config::Fields::Types::register(self)
15
+ register_instance_option :partial do
16
+ :form_epic_editor
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,11 @@
1
+ module RailsAdminEpicEditor
2
+ class Engine < ::Rails::Engine
3
+ initializer "Precompile EpicEditor assets" do |app|
4
+ app.config.assets.precompile += [
5
+ "epiceditor.js", "base/epiceditor.css",
6
+ "editor/epic-dark.css", "editor/epic-light.css",
7
+ "preview/bartik.css", "preview/github.css", "preview-dark.css"
8
+ ]
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAdminEpicEditor
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_admin_epic_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Phuong 'J' Le H.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.1.0
27
+ description: Use EpicEditor.
28
+ email:
29
+ - phuonglh0420@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.rdoc
36
+ - Rakefile
37
+ - app/views/rails_admin/main/_form_epic_editor.html.haml
38
+ - lib/rails_admin_epic_editor.rb
39
+ - lib/rails_admin_epic_editor/engine.rb
40
+ - lib/rails_admin_epic_editor/version.rb
41
+ homepage: http://www.yeuem1vannam.com
42
+ licenses:
43
+ - MIT
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 2.4.1
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: RailsAdmin with EpicEditor.
65
+ test_files: []
66
+ has_rdoc: