bad display of content types if none + add new gems for tinymce and aloha
This commit is contained in:
parent
7af9ea34a6
commit
4d0f8610c5
72
Gemfile
72
Gemfile
@ -2,53 +2,53 @@ source 'http://rubygems.org'
|
|||||||
|
|
||||||
# add in all the runtime dependencies
|
# add in all the runtime dependencies
|
||||||
|
|
||||||
gem 'rake', '0.9.2'
|
gem 'rake', '0.9.2'
|
||||||
|
|
||||||
gem 'rails', '~> 3.1.3'
|
gem 'rails', '~> 3.1.3'
|
||||||
|
|
||||||
gem 'devise', '~> 1.5.3'
|
gem 'devise', '~> 1.5.3'
|
||||||
gem 'cancan', '~> 1.6.7'
|
gem 'cancan', '~> 1.6.7'
|
||||||
|
|
||||||
gem 'mongo', '~> 1.5.2'
|
gem 'mongo', '~> 1.5.2'
|
||||||
gem 'bson_ext', '~> 1.5.2'
|
gem 'bson_ext', '~> 1.5.2'
|
||||||
gem 'mongoid', '~> 2.4.0'
|
gem 'mongoid', '~> 2.4.0'
|
||||||
gem 'locomotive_mongoid_acts_as_tree', '~> 0.1.5.8'
|
gem 'locomotive_mongoid_acts_as_tree', '~> 0.1.5.8'
|
||||||
gem 'custom_fields', :path => '../gems/custom_fields' # DEV
|
gem 'custom_fields', :path => '../gems/custom_fields' # DEV
|
||||||
# gem 'custom_fields', :git => 'git://github.com/locomotivecms/custom_fields.git', :branch => 'experimental'
|
# gem 'custom_fields', :git => 'git://github.com/locomotivecms/custom_fields.git', :branch => 'experimental'
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
|
|
||||||
gem 'haml', '~> 3.1.3'
|
gem 'haml', '~> 3.1.3'
|
||||||
gem 'sass-rails', '~> 3.1.4'
|
gem 'sass-rails', '~> 3.1.4'
|
||||||
gem 'coffee-script', '~> 2.2.0'
|
gem 'coffee-script', '~> 2.2.0'
|
||||||
gem 'uglifier', '~> 1.0.4'
|
gem 'uglifier', '~> 1.0.4'
|
||||||
gem 'compass', '~> 0.12.alpha.4'
|
gem 'compass', '~> 0.12.alpha.4'
|
||||||
gem 'jquery-rails', '~> 1.0.16'
|
gem 'jquery-rails', '~> 1.0.16'
|
||||||
gem 'rails-backbone', '0.5.4'
|
gem 'rails-backbone', '0.5.4'
|
||||||
gem 'codemirror-rails'
|
gem 'codemirror-rails'
|
||||||
gem 'tinymce-rails'
|
gem 'locomotive-tinymce-rails', '~> 3.4.7'
|
||||||
gem 'locomotive-aloha-rails', :path => '../gems/aloha-rails'
|
gem 'locomotive-aloha-rails', '~> 0.20.1'
|
||||||
gem 'flash_cookie_session', '~> 1.1.1'
|
gem 'flash_cookie_session', '~> 1.1.1'
|
||||||
|
|
||||||
gem 'locomotive_liquid', '2.2.2', :require => 'liquid'
|
gem 'locomotive_liquid', '2.2.2', :require => 'liquid'
|
||||||
gem 'formtastic', '~> 2.0.2'
|
gem 'formtastic', '~> 2.0.2'
|
||||||
gem 'responders', '~> 0.6.4'
|
gem 'responders', '~> 0.6.4'
|
||||||
gem 'cells', '~> 3.7.1'
|
gem 'cells', '~> 3.7.1'
|
||||||
gem 'RedCloth', '~> 4.2.8'
|
gem 'RedCloth', '~> 4.2.8'
|
||||||
gem 'sanitize', '~> 2.0.3'
|
gem 'sanitize', '~> 2.0.3'
|
||||||
gem 'highline', '~> 1.6.2'
|
gem 'highline', '~> 1.6.2'
|
||||||
|
|
||||||
gem 'rmagick', '2.12.2', :require => 'RMagick'
|
gem 'rmagick', '2.12.2', :require => 'RMagick'
|
||||||
gem 'carrierwave-mongoid', '~> 0.1.3'
|
gem 'carrierwave-mongoid', '~> 0.1.3'
|
||||||
gem 'fog', '~> 1.0.0'
|
gem 'fog', '~> 1.0.0'
|
||||||
gem 'dragonfly', '~> 0.9.8'
|
gem 'dragonfly', '~> 0.9.8'
|
||||||
gem 'rack-cache', '~> 1.1', :require => 'rack/cache'
|
gem 'rack-cache', '~> 1.1', :require => 'rack/cache'
|
||||||
gem 'mimetype-fu', '~> 0.1.2'
|
gem 'mimetype-fu', '~> 0.1.2'
|
||||||
gem 'rubyzip'
|
gem 'rubyzip'
|
||||||
|
|
||||||
gem 'actionmailer-with-request', '~> 0.3.0', :require => 'actionmailer_with_request'
|
gem 'actionmailer-with-request', '~> 0.3.0', :require => 'actionmailer_with_request'
|
||||||
gem 'httparty', '~> 0.8.1'
|
gem 'httparty', '~> 0.8.1'
|
||||||
gem 'delayed_job_mongoid', '~> 1.0.8'
|
gem 'delayed_job_mongoid', '~> 1.0.8'
|
||||||
gem 'SystemTimer', :platforms => :ruby_18
|
gem 'SystemTimer', :platforms => :ruby_18
|
||||||
|
|
||||||
# The rest of the dependencies are for use when in the locomotive dev environment
|
# The rest of the dependencies are for use when in the locomotive dev environment
|
||||||
|
|
||||||
|
12
Gemfile.lock
12
Gemfile.lock
@ -2,7 +2,7 @@ PATH
|
|||||||
remote: ../gems/aloha-rails
|
remote: ../gems/aloha-rails
|
||||||
specs:
|
specs:
|
||||||
locomotive-aloha-rails (0.20.1)
|
locomotive-aloha-rails (0.20.1)
|
||||||
railties (>= 3.1)
|
actionpack (~> 3.1.3)
|
||||||
|
|
||||||
PATH
|
PATH
|
||||||
remote: ../gems/custom_fields
|
remote: ../gems/custom_fields
|
||||||
@ -12,6 +12,12 @@ PATH
|
|||||||
carrierwave-mongoid (~> 0.1.3)
|
carrierwave-mongoid (~> 0.1.3)
|
||||||
mongoid (~> 2.4.0)
|
mongoid (~> 2.4.0)
|
||||||
|
|
||||||
|
PATH
|
||||||
|
remote: ../gems/tinymce-rails
|
||||||
|
specs:
|
||||||
|
locomotive-tinymce-rails (3.4.7)
|
||||||
|
actionpack (~> 3.1.3)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
@ -262,8 +268,6 @@ GEM
|
|||||||
term-ansicolor (1.0.7)
|
term-ansicolor (1.0.7)
|
||||||
thor (0.14.6)
|
thor (0.14.6)
|
||||||
tilt (1.3.3)
|
tilt (1.3.3)
|
||||||
tinymce-rails (3.4.7)
|
|
||||||
railties (~> 3.1.0)
|
|
||||||
treetop (1.4.10)
|
treetop (1.4.10)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
@ -316,6 +320,7 @@ DEPENDENCIES
|
|||||||
kaminari
|
kaminari
|
||||||
launchy
|
launchy
|
||||||
locomotive-aloha-rails!
|
locomotive-aloha-rails!
|
||||||
|
locomotive-tinymce-rails!
|
||||||
locomotive_liquid (= 2.2.2)
|
locomotive_liquid (= 2.2.2)
|
||||||
locomotive_mongoid_acts_as_tree (~> 0.1.5.8)
|
locomotive_mongoid_acts_as_tree (~> 0.1.5.8)
|
||||||
mimetype-fu (~> 0.1.2)
|
mimetype-fu (~> 0.1.2)
|
||||||
@ -334,7 +339,6 @@ DEPENDENCIES
|
|||||||
rubyzip
|
rubyzip
|
||||||
sanitize (~> 2.0.3)
|
sanitize (~> 2.0.3)
|
||||||
sass-rails (~> 3.1.4)
|
sass-rails (~> 3.1.4)
|
||||||
tinymce-rails
|
|
||||||
uglifier (~> 1.0.4)
|
uglifier (~> 1.0.4)
|
||||||
unicorn
|
unicorn
|
||||||
xpath (~> 0.1.4)
|
xpath (~> 0.1.4)
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
# unless window.Aloha?
|
window.Aloha = window.Aloha ?= {}
|
||||||
# window.Aloha = {}
|
|
||||||
|
|
||||||
Aloha = window.Aloha ?= {}
|
window.Aloha.settings =
|
||||||
|
|
||||||
Aloha.settings =
|
|
||||||
|
|
||||||
logLevels: { 'error': true, 'warn': true, 'info': false, 'debug': false }
|
logLevels: { 'error': true, 'warn': true, 'info': false, 'debug': false }
|
||||||
|
|
||||||
|
@ -28,8 +28,10 @@ module Locomotive::ContentTypesHelper
|
|||||||
visible << content_type
|
visible << content_type
|
||||||
end
|
end
|
||||||
|
|
||||||
visible.map { |c| yield(c) }
|
if visible.size > 0
|
||||||
yield(others)
|
visible.map { |c| yield(c) }
|
||||||
|
yield(others) if others.size > 0
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_content_type_selected(content_type)
|
def is_content_type_selected(content_type)
|
||||||
|
@ -28,7 +28,5 @@ require 'compass'
|
|||||||
require 'codemirror/rails'
|
require 'codemirror/rails'
|
||||||
require 'jquery/rails'
|
require 'jquery/rails'
|
||||||
require 'backbone-rails'
|
require 'backbone-rails'
|
||||||
require 'tinymce/version'
|
require 'tinymce/rails'
|
||||||
require 'tinymce/railtie'
|
require 'aloha/rails'
|
||||||
require 'aloha/version'
|
|
||||||
require 'aloha/railtie'
|
|
||||||
|
@ -21,36 +21,18 @@ module Locomotive
|
|||||||
end
|
end
|
||||||
|
|
||||||
initializer "Locomotive precompile hook" do |app|
|
initializer "Locomotive precompile hook" do |app|
|
||||||
# app.config.assets.precompile += %w(locomotive.js locomotive.css locomotive/inline_editor.js locomotive/inline_editor.css
|
|
||||||
# locomotive/not_logged_in.js locomotive/not_logged_in.css
|
|
||||||
# locomotive/aloha.js)
|
|
||||||
|
|
||||||
app.config.assets.precompile += %w(locomotive.js locomotive.css locomotive/inline_editor.js locomotive/inline_editor.css
|
app.config.assets.precompile += %w(locomotive.js locomotive.css locomotive/inline_editor.js locomotive/inline_editor.css
|
||||||
locomotive/not_logged_in.js locomotive/not_logged_in.css
|
locomotive/not_logged_in.js locomotive/not_logged_in.css
|
||||||
locomotive/aloha.js)
|
locomotive/aloha.js)
|
||||||
|
|
||||||
|
# very useful to see what happens during the precompilation of the assets
|
||||||
def compile_asset?(path)
|
def compile_asset?(path)
|
||||||
# ignores any filename that begins with '_' (e.g. sass partials)
|
puts "Compiling: #{path}"
|
||||||
# all other css/js/sass/image files are processed
|
true
|
||||||
if File.basename(path) =~ /^[^_].*\.\w+$/
|
|
||||||
puts "Compiling: #{path}"
|
|
||||||
true
|
|
||||||
else
|
|
||||||
puts "Ignoring: #{path}"
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
app.config.assets.precompile = [ method(:compile_asset?).to_proc ]
|
app.config.assets.precompile = [ method(:compile_asset?).to_proc ]
|
||||||
|
|
||||||
# app.config.assets.precompile += lambda { |f| puts f.inspect; true }
|
|
||||||
|
|
||||||
# locomotive/aloha.js locomotive/aloha.css
|
|
||||||
# locomotive/aloha/img/*)
|
|
||||||
# # locomotive/utils/aloha_settings.js
|
|
||||||
# # locomotive/aloha/*.js
|
|
||||||
# # locomotive/aloha.css
|
|
||||||
# # locomotive/aloha/plugins/*.css)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -11,8 +11,7 @@ module Liquid
|
|||||||
%{
|
%{
|
||||||
<meta content="true" name="inline-editor" />
|
<meta content="true" name="inline-editor" />
|
||||||
|
|
||||||
#{ActionController::Base.helpers.stylesheet_link_tag 'aloha'}
|
#{ActionController::Base.helpers.stylesheet_link_tag 'aloha/css/aloha.css'}
|
||||||
|
|
||||||
#{ActionController::Base.helpers.javascript_include_tag 'locomotive/aloha', :'data-aloha-plugins' => plugins}
|
#{ActionController::Base.helpers.javascript_include_tag 'locomotive/aloha', :'data-aloha-plugins' => plugins}
|
||||||
|
|
||||||
|
|
||||||
@ -33,17 +32,3 @@ module Liquid
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# = javascript_include_tag 'locomotive/not_logged_in'
|
|
||||||
# = stylesheet_link_tag 'locomotive/not_logged_in', :media => 'screen'
|
|
||||||
|
|
||||||
# <link href="/assets/locomotive/aloha/css/aloha.css" media="screen" rel="stylesheet" type="text/css" />
|
|
||||||
# <script type="text/javascript" src="/assets/locomotive/utils/aloha_settings.js"></script>
|
|
||||||
# <script type="text/javascript" src="/assets/locomotive/aloha/lib/aloha.js" data-aloha-plugins="common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste"></script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#{ActionController::Base.helpers.javascript_include_tag 'locomotive/aloha', :'data-aloha-plugins' => 'common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste'}
|
|
||||||
|
|
||||||
# <script type="text/javascript" src="/assets/aloha/lib/aloha.js" data-aloha-plugins="common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste"></script>
|
|
@ -17,92 +17,52 @@ Gem::Specification.new do |s|
|
|||||||
s.required_rubygems_version = '>= 1.3.6'
|
s.required_rubygems_version = '>= 1.3.6'
|
||||||
s.rubyforge_project = 'nowarning'
|
s.rubyforge_project = 'nowarning'
|
||||||
|
|
||||||
s.add_dependency 'rails', '~> 3.1.3'
|
s.add_dependency 'rails', '~> 3.1.3'
|
||||||
|
|
||||||
s.add_dependency 'devise', '~> 1.5.3'
|
s.add_dependency 'devise', '~> 1.5.3'
|
||||||
s.add_dependency 'cancan', '~> 1.6.7'
|
s.add_dependency 'cancan', '~> 1.6.7'
|
||||||
|
|
||||||
s.add_dependency 'mongo', '~> 1.5.2'
|
s.add_dependency 'mongo', '~> 1.5.2'
|
||||||
s.add_dependency 'bson_ext', '~> 1.5.2'
|
s.add_dependency 'bson_ext', '~> 1.5.2'
|
||||||
s.add_dependency 'mongoid', '~> 2.4.0'
|
s.add_dependency 'mongoid', '~> 2.4.0'
|
||||||
s.add_dependency 'locomotive_mongoid_acts_as_tree', '0.1.5.8'
|
s.add_dependency 'locomotive_mongoid_acts_as_tree', '0.1.5.8'
|
||||||
|
|
||||||
s.add_dependency 'custom_fields', '~> 2.0.0.rc1'
|
s.add_dependency 'custom_fields', '~> 2.0.0.rc1'
|
||||||
|
|
||||||
s.add_dependency 'kaminari'
|
s.add_dependency 'kaminari'
|
||||||
|
|
||||||
s.add_dependency 'haml', '~> 3.1.3'
|
s.add_dependency 'haml', '~> 3.1.3'
|
||||||
s.add_dependency 'sass-rails', '~> 3.1.4'
|
s.add_dependency 'sass-rails', '~> 3.1.4'
|
||||||
s.add_dependency 'coffee-script', '~> 2.2.0'
|
s.add_dependency 'coffee-script', '~> 2.2.0'
|
||||||
s.add_dependency 'uglifier', '~> 1.2.2'
|
s.add_dependency 'uglifier', '~> 1.2.2'
|
||||||
s.add_dependency 'compass', '~> 0.12.alpha.4'
|
s.add_dependency 'compass', '~> 0.12.alpha.4'
|
||||||
s.add_dependency 'jquery-rails', '~> 1.0.16'
|
s.add_dependency 'jquery-rails', '~> 1.0.16'
|
||||||
s.add_dependency 'rails-backbone', '0.5.4'
|
s.add_dependency 'rails-backbone', '0.5.4'
|
||||||
s.add_dependency 'codemirror-rails'
|
s.add_dependency 'codemirror-rails'
|
||||||
s.add_dependency 'tinymce-rails'
|
s.add_dependency 'locomotive-tinymce-rails', '~> 3.4.7'
|
||||||
s.add_dependency 'locomotive-aloha-rails'
|
s.add_dependency 'locomotive-aloha-rails', '~> 0.20.1'
|
||||||
s.add_dependency 'flash_cookie_session', '~> 1.1.1'
|
s.add_dependency 'flash_cookie_session', '~> 1.1.1'
|
||||||
|
|
||||||
s.add_dependency 'locomotive_liquid', '2.2.2'
|
s.add_dependency 'locomotive_liquid', '2.2.2'
|
||||||
s.add_dependency 'formtastic', '~> 2.0.2'
|
s.add_dependency 'formtastic', '~> 2.0.2'
|
||||||
s.add_dependency 'responders', '~> 0.6.4'
|
s.add_dependency 'responders', '~> 0.6.4'
|
||||||
s.add_dependency 'cells', '~> 3.7.1'
|
s.add_dependency 'cells', '~> 3.7.1'
|
||||||
s.add_dependency 'RedCloth', '~> 4.2.8'
|
s.add_dependency 'RedCloth', '~> 4.2.8'
|
||||||
s.add_dependency 'sanitize', '~> 2.0.3'
|
s.add_dependency 'sanitize', '~> 2.0.3'
|
||||||
s.add_dependency 'highline', '~> 1.6.2'
|
s.add_dependency 'highline', '~> 1.6.2'
|
||||||
|
|
||||||
s.add_dependency 'rmagick', '2.12.2'
|
s.add_dependency 'rmagick', '2.12.2'
|
||||||
s.add_dependency 'carrierwave-mongoid', '~> 0.1.3'
|
s.add_dependency 'carrierwave-mongoid', '~> 0.1.3'
|
||||||
s.add_dependency 'fog', '~> 1.0.0'
|
s.add_dependency 'fog', '~> 1.0.0'
|
||||||
s.add_dependency 'dragonfly', '~> 0.9.8'
|
s.add_dependency 'dragonfly', '~> 0.9.8'
|
||||||
s.add_dependency 'rack-cache', '~> 1.1'
|
s.add_dependency 'rack-cache', '~> 1.1'
|
||||||
s.add_dependency 'mimetype-fu', '~> 0.1.2'
|
s.add_dependency 'mimetype-fu', '~> 0.1.2'
|
||||||
s.add_dependency 'rubyzip'
|
s.add_dependency 'rubyzip'
|
||||||
|
|
||||||
s.add_dependency 'actionmailer-with-request', '~> 0.3.0'
|
s.add_dependency 'actionmailer-with-request', '~> 0.3.0'
|
||||||
s.add_dependency 'httparty', '~> 0.8.1'
|
s.add_dependency 'httparty', '~> 0.8.1'
|
||||||
s.add_dependency 'delayed_job_mongoid', '~> 1.0.8'
|
s.add_dependency 'delayed_job_mongoid', '~> 1.0.8'
|
||||||
|
|
||||||
# s.add_dependency 'SystemTimer', :platforms => :ruby_18
|
|
||||||
|
|
||||||
# s.add_dependency 'rails', '~> 3.1.3'
|
|
||||||
# # s.add_dependency 'warden'
|
|
||||||
# s.add_dependency 'devise', '~> 1.5.3'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'mongo', '~> 1.5.2'
|
|
||||||
# s.add_dependency 'bson_ext', '~> 1.5.2'
|
|
||||||
# s.add_dependency 'mongoid', '~> 2.4.0'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'locomotive_mongoid_acts_as_tree', '0.1.5.7'
|
|
||||||
# s.add_dependency 'kaminari'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'sass', '3.1.2'
|
|
||||||
# s.add_dependency 'locomotive_liquid', '2.2.2'
|
|
||||||
# s.add_dependency 'formtastic', '~> 1.2.3'
|
|
||||||
# s.add_dependency 'cells', '~> 3.7.0'
|
|
||||||
# s.add_dependency 'highline'
|
|
||||||
# s.add_dependency 'sanitize'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'json_pure', '1.5.1'
|
|
||||||
# s.add_dependency 'bushido'
|
|
||||||
# s.add_dependency 'heroku', '1.19.1'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'rmagick', '2.12.2'
|
|
||||||
# s.add_dependency 'carrierwave', '0.5.6'
|
|
||||||
# s.add_dependency 'dragonfly', '~> 0.9.1'
|
|
||||||
# s.add_dependency 'rack-cache'
|
|
||||||
#
|
|
||||||
# s.add_dependency 'custom_fields', '2.0.0.rc1'
|
|
||||||
# s.add_dependency 'cancan', '~> 1.6.0'
|
|
||||||
# s.add_dependency 'fog', '0.8.2'
|
|
||||||
# s.add_dependency 'mimetype-fu'
|
|
||||||
# s.add_dependency 'actionmailer-with-request'
|
|
||||||
# s.add_dependency 'httparty', '0.7.8'
|
|
||||||
# s.add_dependency 'RedCloth', '4.2.9'
|
|
||||||
# s.add_dependency 'delayed_job_mongoid', '1.0.8'
|
|
||||||
# s.add_dependency 'rubyzip'
|
|
||||||
# s.add_dependency 'locomotive_jammit-s3'
|
|
||||||
|
|
||||||
s.files = Dir[ 'Gemfile',
|
s.files = Dir[ 'Gemfile',
|
||||||
'{app}/**/*',
|
'{app}/**/*',
|
||||||
'{config}/**/*',
|
'{config}/**/*',
|
||||||
|
Loading…
Reference in New Issue
Block a user