liquid_cms 0.3.1.0 → 0.3.2.0
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.
- data/CHANGELOG.rdoc +10 -0
- data/Gemfile +0 -3
- data/README.rdoc +16 -2
- data/TODO.rdoc +0 -2
- data/app/controllers/cms/assets_controller.rb +20 -6
- data/app/controllers/cms/components_controller.rb +11 -3
- data/app/controllers/cms/pages_controller.rb +15 -4
- data/app/helpers/cms/common_helper.rb +31 -32
- data/app/liquid/cms_paperclip_extension.rb +75 -3
- data/app/liquid/tags/{data_tag.rb → cms/data_tag.rb} +0 -0
- data/app/models/cms/asset.rb +1 -1
- data/app/models/cms/component.rb +3 -3
- data/app/views/cms/assets/_form.html.erb +1 -2
- data/app/views/cms/assets/update.js.rjs +1 -0
- data/app/views/cms/components/update.js.rjs +1 -0
- data/app/views/cms/pages/_form.html.erb +3 -3
- data/app/views/cms/pages/update.js.rjs +1 -0
- data/app/views/layouts/cms.html.erb +4 -3
- data/config/initializers/cms/simple_form.rb +70 -12
- data/config/initializers/cms/simple_form_updates.rb +9 -3
- data/config/locales/cms/en.yml +6 -0
- data/lib/generators/liquid_cms/install_generator.rb +5 -1
- data/lib/generators/liquid_cms/templates/migration_rev2.rb +13 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/LICENSE +16 -20
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.css +68 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.js +2197 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/lib/overlay.js +51 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/lib/runmode.js +27 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/clike.js +247 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/index.html +102 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/clojure.js +207 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/index.html +85 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/LICENSE +22 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/coffeescript.js +325 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/index.html +722 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/css/css.js +124 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/css/index.html +56 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.css +3 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.js +13 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/index.html +99 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/haskell.js +242 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/index.html +60 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/htmlmixed.js +79 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/index.html +52 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/index.html +78 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/javascript.js +352 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/index.html +38 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/jinja2.js +42 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/index.html +72 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/lua.js +140 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/index.html +340 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.css +10 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.js +230 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/index.html +33 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/ntriples.js +172 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/LICENSE +7 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/index.html +49 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/pascal.js +138 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/php/index.html +49 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/php/php.js +116 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/index.html +63 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/plsql.js +217 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/LICENSE.txt +21 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/index.html +123 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/python.js +320 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/LICENSE +24 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/index.html +74 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/r.js +141 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/index.html +526 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.css +75 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.js +333 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/LICENSE +24 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/index.html +172 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/ruby.js +195 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/index.html +65 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/scheme.js +202 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/index.html +56 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/smalltalk.js +122 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/index.html +41 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/sparql.js +143 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/index.html +96 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/stex.js +167 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/index.html +103 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/velocity.js +146 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/index.html +42 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/xml.js +231 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/index.html +60 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/xmlpure.js +481 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/index.html +68 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/yaml.js +95 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/cobalt.css +17 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/default.css +19 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/eclipse.css +24 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/elegant.css +9 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/neat.css +8 -0
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/theme/night.css +20 -0
- data/lib/generators/liquid_cms/templates/public/cms/javascripts/cms.js +1 -1
- data/lib/generators/liquid_cms/templates/public/cms/javascripts/codemirror_custom.js +96 -0
- data/lib/generators/liquid_cms/templates/public/cms/stylesheets/codemirror_changes.css +26 -0
- data/lib/generators/liquid_cms/templates/public/cms/stylesheets/liquid.css +7 -0
- data/lib/generators/liquid_cms/templates/public/cms/stylesheets/simple_form.css +0 -8
- data/lib/liquid_cms/version.rb +1 -1
- data/liquid_cms.gemspec +1 -1
- data/test/functional/assets_controller_test.rb +35 -20
- data/test/functional/components_controller_test.rb +15 -5
- data/test/functional/pages_controller_test.rb +19 -6
- data/test/rails_app/Gemfile +1 -2
- data/test/rails_app/config/locales/cms/en.yml +26 -4
- data/test/rails_app/db/migrate/20110511161859_create_liquid_cms_upgrade_rev2.rb +13 -0
- data/test/unit/asset_test.rb +1 -1
- data/test/unit/component_test.rb +1 -1
- metadata +89 -32
- data/generators/liquid_cms/templates/migration_rev1.rb +0 -38
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/csscolors.css +0 -55
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/docs.css +0 -158
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/font.js +0 -15
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/jscolors.css +0 -59
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/sparqlcolors.css +0 -43
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/xmlcolors.css +0 -55
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/codemirror.js +0 -582
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/editor.js +0 -1671
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/highlight.js +0 -68
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/mirrorframe.js +0 -81
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsecss.js +0 -161
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsedummy.js +0 -32
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsehtmlmixed.js +0 -93
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsejavascript.js +0 -359
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsesparql.js +0 -162
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsexml.js +0 -291
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/select.js +0 -699
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/stringstream.js +0 -159
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/tokenize.js +0 -57
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/tokenizejavascript.js +0 -174
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/undo.js +0 -413
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/unittests.js +0 -44
- data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/util.js +0 -133
|
@@ -27,11 +27,21 @@ class Cms::ComponentsControllerTest < ActionController::TestCase
|
|
|
27
27
|
assert_template 'edit'
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
context "update" do
|
|
31
|
+
should "update via HTTP" do
|
|
32
|
+
put :update, :url => @file, :file_content => 'new content'
|
|
33
|
+
assert_response :redirect
|
|
34
|
+
assert_redirected_to :controller => 'cms/components', :action => 'edit', :url => @file
|
|
35
|
+
assert_equal "The component file has been updated.", flash[:notice]
|
|
36
|
+
assert_equal "new content\n", File.read(Cms::Component.full_path(@context).join(@file))
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
should "update via XHR" do
|
|
40
|
+
xhr :put, :update, :url => @file, :file_content => 'new content'
|
|
41
|
+
assert_response :success
|
|
42
|
+
assert_equal "The component file has been updated.", flash[:notice]
|
|
43
|
+
assert_equal "new content\n", File.read(Cms::Component.full_path(@context).join(@file))
|
|
44
|
+
end
|
|
35
45
|
end
|
|
36
46
|
|
|
37
47
|
should "valid destroy" do
|
|
@@ -70,12 +70,25 @@ class Cms::PagesControllerTest < ActionController::TestCase
|
|
|
70
70
|
assert_template 'edit'
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
context "update" do
|
|
74
|
+
setup do
|
|
75
|
+
@page = @company.pages.first
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
should "update via HTTP" do
|
|
79
|
+
put :update, :id => @page.id, :cms_page => {:slug => '', :published => false}
|
|
80
|
+
assert_response :redirect
|
|
81
|
+
assert_equal true, assigns(:page).errors.empty?
|
|
82
|
+
assert_redirected_to edit_cms_page_path(@page)
|
|
83
|
+
assert_equal 'The page has been updated.', flash[:notice]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
should "update via XHR" do
|
|
87
|
+
xhr :put, :update, :id => @page.id, :cms_page => {:slug => '', :published => false}
|
|
88
|
+
assert_response :success
|
|
89
|
+
assert_equal true, assigns(:page).errors.empty?
|
|
90
|
+
assert_equal 'The page has been updated.', flash[:notice]
|
|
91
|
+
end
|
|
79
92
|
end
|
|
80
93
|
|
|
81
94
|
should "destroy a page via HTML :DELETE" do
|
data/test/rails_app/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
source 'http://rubygems.org'
|
|
2
2
|
|
|
3
|
-
gem 'rails', '3.0.
|
|
3
|
+
gem 'rails', '3.0.10'
|
|
4
4
|
|
|
5
5
|
# Bundle edge Rails instead:
|
|
6
6
|
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
|
@@ -30,4 +30,3 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
|
|
|
30
30
|
# end
|
|
31
31
|
|
|
32
32
|
gem 'liquid_cms', :path => '../..'
|
|
33
|
-
gem 'vestal_versions', '~> 1.2.1', :git => 'http://github.com/adamcooper/vestal_versions.git'
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
en:
|
|
2
2
|
pages:
|
|
3
|
+
layout:
|
|
4
|
+
title: 'Liquid CMS'
|
|
3
5
|
actions:
|
|
4
6
|
index:
|
|
5
|
-
title: '
|
|
7
|
+
title: 'Pages'
|
|
6
8
|
none: 'There are currently no pages.'
|
|
7
|
-
|
|
9
|
+
new: 'Create a new page'
|
|
10
|
+
search: 'Search'
|
|
8
11
|
new:
|
|
9
12
|
title: 'New Page'
|
|
10
13
|
edit:
|
|
11
14
|
title: 'Editing Page'
|
|
15
|
+
search:
|
|
16
|
+
title: 'Page Search'
|
|
12
17
|
flash:
|
|
13
18
|
created: 'The page has been saved.'
|
|
14
19
|
updated: 'The page has been updated.'
|
|
@@ -17,9 +22,9 @@ en:
|
|
|
17
22
|
assets:
|
|
18
23
|
actions:
|
|
19
24
|
index:
|
|
20
|
-
title: '
|
|
25
|
+
title: 'Assets'
|
|
21
26
|
none: 'There are currently no assets.'
|
|
22
|
-
|
|
27
|
+
new: 'Upload a new asset'
|
|
23
28
|
new:
|
|
24
29
|
title: 'New Asset'
|
|
25
30
|
edit:
|
|
@@ -33,6 +38,9 @@ en:
|
|
|
33
38
|
actions:
|
|
34
39
|
index:
|
|
35
40
|
title: 'Components'
|
|
41
|
+
none: 'There are currently no components.'
|
|
42
|
+
flash:
|
|
43
|
+
updated: 'The component file has been updated.'
|
|
36
44
|
|
|
37
45
|
simple_form:
|
|
38
46
|
"yes": 'Yes'
|
|
@@ -54,9 +62,23 @@ en:
|
|
|
54
62
|
root: 'Home Page'
|
|
55
63
|
cms_asset:
|
|
56
64
|
asset_file_name: 'File'
|
|
65
|
+
tag_list: 'Tags'
|
|
57
66
|
hints:
|
|
58
67
|
cms_page:
|
|
59
68
|
name: 'The name must contain no whitespace or any other special characters. Letters, numbers, hyphens, underscores and periods are valid.<br/>The extensions <em>.css</em>, <em>.js</em>, <em>.xml</em>, <em>.json</em> and <em>.txt</em> can used to auto-identify the content-type. If no extension is provided, html is the default type.'
|
|
60
69
|
content: 'To create a layout page, add the <em>{{ content_for_layout }}</em> tag which will act as a placeholder for the contents of another page. Use ctrl+s to save.'
|
|
61
70
|
slug: 'The url path that will be used to access this page. Defaults to the page name if not provided. ie. /name.<br/> Ex. /home_page'
|
|
62
71
|
layout_page_id: 'Optional page that will be used as this pages layout. Ie. This pages content will be inserted into the layout page where the <em>{{ content_for_layout }}</em> tag is specified.'
|
|
72
|
+
published: 'Make this page accessible via the pages name or url path?'
|
|
73
|
+
root: 'Make this page the sites root path (/)? Only one page can have this designation.'
|
|
74
|
+
cms_component:
|
|
75
|
+
file_content: '<em>No liquid support for editing components.</em> Use ctrl+s to save.'
|
|
76
|
+
cms_asset:
|
|
77
|
+
asset: 'Upload an asset file.'
|
|
78
|
+
tag_list: 'Seperate tags with commas.'
|
|
79
|
+
dimensions: 'Specify custom dimensions in pixels as width x height. The aspect ratio will be maintained, so actual dimensions may differ. Applies to image assets only.'
|
|
80
|
+
meta:
|
|
81
|
+
name: 'The name must begin with a letter and consist only of lowercase letters, numbers and underscores.'
|
|
82
|
+
file_content: '<em>No liquid support for editing assets.</em> Use ctrl+s to save.'
|
|
83
|
+
edit:
|
|
84
|
+
asset: 'An existing file has been uploaded. Upload a new file to replace it.'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateLiquidCmsUpgradeRev2 < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
change_table :cms_assets do |t|
|
|
4
|
+
t.text :cms_asset_dimensions # serialized yaml
|
|
5
|
+
end
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def self.down
|
|
9
|
+
change_table :cms_assets do |t|
|
|
10
|
+
t.remove :cms_asset_dimensions
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/test/unit/asset_test.rb
CHANGED
|
@@ -122,7 +122,7 @@ class Cms::AssetTest < ActiveSupport::TestCase
|
|
|
122
122
|
|
|
123
123
|
context "javascript" do
|
|
124
124
|
setup do
|
|
125
|
-
@asset.
|
|
125
|
+
@asset.update_attributes :asset_content_type => 'text/javascript', :asset_file_name => 'test.js'
|
|
126
126
|
setup_asset @asset.asset.path(:original)
|
|
127
127
|
end
|
|
128
128
|
|
data/test/unit/component_test.rb
CHANGED
|
@@ -55,7 +55,7 @@ class Cms::ComponentTest < ActiveSupport::TestCase
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
should "expand a zip file" do
|
|
58
|
-
create_zip 'test.zip' do |path|
|
|
58
|
+
create_zip 'test.zip' do |path, relpath|
|
|
59
59
|
Cms::Component.expand @context, path
|
|
60
60
|
|
|
61
61
|
assert File.exist?(Cms::Component.full_path(@context).join('test.txt'))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: liquid_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 95
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
9
|
+
- 2
|
|
10
10
|
- 0
|
|
11
|
-
version: 0.3.
|
|
11
|
+
version: 0.3.2.0
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Andrew Kaspick
|
|
@@ -17,7 +17,7 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2011-
|
|
20
|
+
date: 2011-09-27 00:00:00 -05:00
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|
|
@@ -76,12 +76,12 @@ dependencies:
|
|
|
76
76
|
requirements:
|
|
77
77
|
- - ~>
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
hash:
|
|
79
|
+
hash: 7
|
|
80
80
|
segments:
|
|
81
81
|
- 1
|
|
82
|
+
- 5
|
|
82
83
|
- 2
|
|
83
|
-
|
|
84
|
-
version: 1.2.0
|
|
84
|
+
version: 1.5.2
|
|
85
85
|
type: :runtime
|
|
86
86
|
version_requirements: *id004
|
|
87
87
|
- !ruby/object:Gem::Dependency
|
|
@@ -222,9 +222,9 @@ files:
|
|
|
222
222
|
- app/liquid/drops/cms_params_drop.rb
|
|
223
223
|
- app/liquid/filters/cms_filters.rb
|
|
224
224
|
- app/liquid/tags/asset_search_tag.rb
|
|
225
|
+
- app/liquid/tags/cms/data_tag.rb
|
|
225
226
|
- app/liquid/tags/cms/tag_common.rb
|
|
226
227
|
- app/liquid/tags/cms_include_tag.rb
|
|
227
|
-
- app/liquid/tags/data_tag.rb
|
|
228
228
|
- app/models/cms/asset.rb
|
|
229
229
|
- app/models/cms/component.rb
|
|
230
230
|
- app/models/cms/editable.rb
|
|
@@ -239,8 +239,10 @@ files:
|
|
|
239
239
|
- app/views/cms/assets/edit.html.erb
|
|
240
240
|
- app/views/cms/assets/new.html.erb
|
|
241
241
|
- app/views/cms/assets/show.html.erb
|
|
242
|
+
- app/views/cms/assets/update.js.rjs
|
|
242
243
|
- app/views/cms/components/_list.html.erb
|
|
243
244
|
- app/views/cms/components/edit.html.erb
|
|
245
|
+
- app/views/cms/components/update.js.rjs
|
|
244
246
|
- app/views/cms/documentation/_app_blocks.html.erb
|
|
245
247
|
- app/views/cms/documentation/_app_drops.html.erb
|
|
246
248
|
- app/views/cms/documentation/_app_filters.html.erb
|
|
@@ -264,6 +266,7 @@ files:
|
|
|
264
266
|
- app/views/cms/pages/edit.html.erb
|
|
265
267
|
- app/views/cms/pages/new.html.erb
|
|
266
268
|
- app/views/cms/pages/search.html.erb
|
|
269
|
+
- app/views/cms/pages/update.js.rjs
|
|
267
270
|
- app/views/cms/shared/_index.html.erb
|
|
268
271
|
- app/views/cms/shared/_sidebar.html.erb
|
|
269
272
|
- app/views/layouts/cms.html.erb
|
|
@@ -275,34 +278,83 @@ files:
|
|
|
275
278
|
- config/initializers/cms/vestal_versions.rb
|
|
276
279
|
- config/locales/cms/en.yml
|
|
277
280
|
- config/routes.rb
|
|
278
|
-
- generators/liquid_cms/templates/migration_rev1.rb
|
|
279
281
|
- lib/generators/liquid_cms/install_generator.rb
|
|
280
282
|
- lib/generators/liquid_cms/templates/migration.rb
|
|
281
283
|
- lib/generators/liquid_cms/templates/migration_rev1.rb
|
|
284
|
+
- lib/generators/liquid_cms/templates/migration_rev2.rb
|
|
282
285
|
- lib/generators/liquid_cms/templates/public/cms/codemirror/LICENSE
|
|
283
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
284
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
285
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
286
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
287
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
288
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
289
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
290
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
291
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
292
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
293
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
294
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
295
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
296
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
297
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
298
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
299
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
300
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
301
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
302
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
303
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
304
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
305
|
-
- lib/generators/liquid_cms/templates/public/cms/codemirror/
|
|
286
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.css
|
|
287
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.js
|
|
288
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/lib/overlay.js
|
|
289
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/lib/runmode.js
|
|
290
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/clike.js
|
|
291
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/index.html
|
|
292
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/clojure.js
|
|
293
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/index.html
|
|
294
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/LICENSE
|
|
295
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/coffeescript.js
|
|
296
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/index.html
|
|
297
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/css/css.js
|
|
298
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/css/index.html
|
|
299
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.css
|
|
300
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.js
|
|
301
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/index.html
|
|
302
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/haskell.js
|
|
303
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/index.html
|
|
304
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/htmlmixed.js
|
|
305
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/index.html
|
|
306
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/index.html
|
|
307
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/javascript.js
|
|
308
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/index.html
|
|
309
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/jinja2.js
|
|
310
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/index.html
|
|
311
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/lua.js
|
|
312
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/index.html
|
|
313
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.css
|
|
314
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.js
|
|
315
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/index.html
|
|
316
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/ntriples.js
|
|
317
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/LICENSE
|
|
318
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/index.html
|
|
319
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/pascal.js
|
|
320
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/php/index.html
|
|
321
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/php/php.js
|
|
322
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/index.html
|
|
323
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/plsql.js
|
|
324
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/LICENSE.txt
|
|
325
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/index.html
|
|
326
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/python/python.js
|
|
327
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/LICENSE
|
|
328
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/index.html
|
|
329
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/r/r.js
|
|
330
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/index.html
|
|
331
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.css
|
|
332
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.js
|
|
333
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/LICENSE
|
|
334
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/index.html
|
|
335
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/ruby.js
|
|
336
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/index.html
|
|
337
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/scheme.js
|
|
338
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/index.html
|
|
339
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/smalltalk.js
|
|
340
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/index.html
|
|
341
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/sparql.js
|
|
342
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/index.html
|
|
343
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/stex.js
|
|
344
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/index.html
|
|
345
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/velocity.js
|
|
346
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/index.html
|
|
347
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/xml.js
|
|
348
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/index.html
|
|
349
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/xmlpure.js
|
|
350
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/index.html
|
|
351
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/yaml.js
|
|
352
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/cobalt.css
|
|
353
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/default.css
|
|
354
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/eclipse.css
|
|
355
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/elegant.css
|
|
356
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/neat.css
|
|
357
|
+
- lib/generators/liquid_cms/templates/public/cms/codemirror/theme/night.css
|
|
306
358
|
- lib/generators/liquid_cms/templates/public/cms/images/icons/accept.png
|
|
307
359
|
- lib/generators/liquid_cms/templates/public/cms/images/icons/add.png
|
|
308
360
|
- lib/generators/liquid_cms/templates/public/cms/images/icons/anchor.png
|
|
@@ -1328,6 +1380,7 @@ files:
|
|
|
1328
1380
|
- lib/generators/liquid_cms/templates/public/cms/images/tree/vline.png
|
|
1329
1381
|
- lib/generators/liquid_cms/templates/public/cms/images/trentacinque.gif
|
|
1330
1382
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/cms.js
|
|
1383
|
+
- lib/generators/liquid_cms/templates/public/cms/javascripts/codemirror_custom.js
|
|
1331
1384
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/cookiejar.js
|
|
1332
1385
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/humanmsg.js
|
|
1333
1386
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/livepipe.js
|
|
@@ -1335,10 +1388,12 @@ files:
|
|
|
1335
1388
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/remote_helpers.js
|
|
1336
1389
|
- lib/generators/liquid_cms/templates/public/cms/javascripts/tabs.js
|
|
1337
1390
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/clearfix.css
|
|
1391
|
+
- lib/generators/liquid_cms/templates/public/cms/stylesheets/codemirror_changes.css
|
|
1338
1392
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/documentation.css
|
|
1339
1393
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/humanmsg.css
|
|
1340
1394
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/ie.css
|
|
1341
1395
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/ie9.css
|
|
1396
|
+
- lib/generators/liquid_cms/templates/public/cms/stylesheets/liquid.css
|
|
1342
1397
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/liquidcolors.css
|
|
1343
1398
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/sidebar.css
|
|
1344
1399
|
- lib/generators/liquid_cms/templates/public/cms/stylesheets/simple_form.css
|
|
@@ -1480,6 +1535,7 @@ files:
|
|
|
1480
1535
|
- test/rails_app/config/routes.rb
|
|
1481
1536
|
- test/rails_app/db/migrate/20101018211856_create_liquid_cms_setup.rb
|
|
1482
1537
|
- test/rails_app/db/migrate/20110329201435_create_liquid_cms_upgrade_rev1.rb
|
|
1538
|
+
- test/rails_app/db/migrate/20110511161859_create_liquid_cms_upgrade_rev2.rb
|
|
1483
1539
|
- test/rails_app/db/seeds.rb
|
|
1484
1540
|
- test/rails_app/public/404.html
|
|
1485
1541
|
- test/rails_app/public/422.html
|
|
@@ -1586,6 +1642,7 @@ test_files:
|
|
|
1586
1642
|
- test/rails_app/config/routes.rb
|
|
1587
1643
|
- test/rails_app/db/migrate/20101018211856_create_liquid_cms_setup.rb
|
|
1588
1644
|
- test/rails_app/db/migrate/20110329201435_create_liquid_cms_upgrade_rev1.rb
|
|
1645
|
+
- test/rails_app/db/migrate/20110511161859_create_liquid_cms_upgrade_rev2.rb
|
|
1589
1646
|
- test/rails_app/db/seeds.rb
|
|
1590
1647
|
- test/rails_app/public/404.html
|
|
1591
1648
|
- test/rails_app/public/422.html
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
class CreateLiquidCmsUpgradeRev1 < ActiveRecord::Migration
|
|
2
|
-
def self.up
|
|
3
|
-
change_table :cms_assets do |t|
|
|
4
|
-
t.integer :custom_height
|
|
5
|
-
t.integer :custom_width
|
|
6
|
-
t.text :meta_data # serialized yaml
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
drop_table :versions
|
|
10
|
-
|
|
11
|
-
create_table :cms_tags do |t|
|
|
12
|
-
t.column :name, :string
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
create_table :cms_taggings do |t|
|
|
16
|
-
t.column :tag_id, :integer
|
|
17
|
-
t.column :taggable_id, :integer
|
|
18
|
-
t.column :taggable_type, :string
|
|
19
|
-
|
|
20
|
-
t.column :created_at, :datetime
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
add_index :cms_taggings, :tag_id
|
|
24
|
-
add_index :cms_taggings, [:taggable_id, :taggable_type]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def self.down
|
|
28
|
-
drop_table :cms_taggings
|
|
29
|
-
drop_table :cms_tags
|
|
30
|
-
|
|
31
|
-
create_table :versions do |t|
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
change_table :cms_assets do |t|
|
|
35
|
-
t.remove :custom_height, :custom_width, :meta_data
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
cursor: text;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.editbox {
|
|
6
|
-
margin: .4em;
|
|
7
|
-
padding: 0;
|
|
8
|
-
font-family: monospace;
|
|
9
|
-
font-size: 10pt;
|
|
10
|
-
color: black;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
pre.code, .editbox {
|
|
14
|
-
color: #666;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.editbox p {
|
|
18
|
-
margin: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
span.css-at {
|
|
22
|
-
color: #708;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
span.css-unit {
|
|
26
|
-
color: #281;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
span.css-value {
|
|
30
|
-
color: #708;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
span.css-identifier {
|
|
34
|
-
color: black;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
span.css-selector {
|
|
38
|
-
color: #11B;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
span.css-important {
|
|
42
|
-
color: #00F;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
span.css-colorcode {
|
|
46
|
-
color: #299;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
span.css-comment {
|
|
50
|
-
color: #A70;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
span.css-string {
|
|
54
|
-
color: #A22;
|
|
55
|
-
}
|