spreefinery_themes 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/app/assets/images/jstree/file.png +0 -0
  2. data/app/assets/images/jstree/folder.png +0 -0
  3. data/app/assets/javascripts/code_mirror_manager.coffee +105 -0
  4. data/app/assets/javascripts/editor.coffee +3 -0
  5. data/app/assets/javascripts/files_manager.coffee +41 -0
  6. data/app/assets/javascripts/jstree_manager.coffee +177 -0
  7. data/app/assets/javascripts/themes.coffee +21 -0
  8. data/app/assets/stylesheets/editor.css +40 -0
  9. data/app/assets/stylesheets/themes.css +50 -0
  10. data/app/controllers/refinery/themes/admin/editor_controller.rb +73 -0
  11. data/app/controllers/refinery/themes/admin/themes_controller.rb +60 -0
  12. data/app/controllers/refinery/themes/theme_controller.rb +12 -0
  13. data/app/decorators/action_view_decorator.rb +6 -0
  14. data/app/decorators/application_controller_decorator.rb +7 -0
  15. data/app/decorators/base_controller_decorator.rb +4 -0
  16. data/app/decorators/drops_decorator.rb +33 -0
  17. data/app/decorators/liquid_strainer_decorator.rb +23 -0
  18. data/app/decorators/refinery_admin_pages_controller_decorator.rb +6 -0
  19. data/app/decorators/refinery_pages_controller_decorator.rb +17 -0
  20. data/app/decorators/refinery_sessions_controller_decorator.rb +3 -0
  21. data/app/decorators/spree_base_controller_decorator.rb +3 -0
  22. data/app/decorators/spree_checkout_controller_decorator.rb +42 -0
  23. data/app/decorators/template_renderer_decorator.rb +25 -0
  24. data/app/helpers/refinery/themes/admin/themes_helper.rb +9 -0
  25. data/app/liquid/blocks/capture_variable.rb +36 -0
  26. data/app/liquid/blocks/content_for.rb +55 -0
  27. data/app/liquid/blocks/rss.rb +27 -0
  28. data/app/liquid/blocks/with_scope.rb +55 -0
  29. data/app/liquid/drops/address_drop.rb +5 -0
  30. data/app/liquid/drops/country_drop.rb +5 -0
  31. data/app/liquid/drops/form_builder_drop.rb +15 -0
  32. data/app/liquid/drops/image_drop.rb +5 -0
  33. data/app/liquid/drops/line_item_drop.rb +41 -0
  34. data/app/liquid/drops/menu_item_drop.rb +17 -0
  35. data/app/liquid/drops/option_type_drop.rb +5 -0
  36. data/app/liquid/drops/option_value_drop.rb +3 -0
  37. data/app/liquid/drops/order_drop.rb +19 -0
  38. data/app/liquid/drops/page_drop.rb +5 -0
  39. data/app/liquid/drops/page_part_drop.rb +18 -0
  40. data/app/liquid/drops/post_category_drop.rb +5 -0
  41. data/app/liquid/drops/post_comment_drop.rb +5 -0
  42. data/app/liquid/drops/post_drop.rb +21 -0
  43. data/app/liquid/drops/product_drop.rb +81 -0
  44. data/app/liquid/drops/product_property_drop.rb +5 -0
  45. data/app/liquid/drops/property_drop.rb +5 -0
  46. data/app/liquid/drops/role_drop.rb +5 -0
  47. data/app/liquid/drops/spree_money_drop.rb +10 -0
  48. data/app/liquid/drops/state_drop.rb +6 -0
  49. data/app/liquid/drops/taxon_drop.rb +24 -0
  50. data/app/liquid/drops/taxonomy_drop.rb +6 -0
  51. data/app/liquid/drops/user_drop.rb +22 -0
  52. data/app/liquid/drops/variant_drop.rb +24 -0
  53. data/app/liquid/filters/filters.rb +128 -0
  54. data/app/liquid/filters/protected.rb +28 -0
  55. data/app/liquid/filters/rails_filters.rb +73 -0
  56. data/app/liquid/tags/rails_tags.rb +63 -0
  57. data/app/liquid/tags/refinery_tags.rb +33 -0
  58. data/app/liquid/tags/spree_tags.rb +164 -0
  59. data/app/models/file_manager.rb +206 -0
  60. data/app/models/refinery/themes/theme.rb +79 -0
  61. data/app/views/refinery/admin/_dialog_success.html.erb +5 -0
  62. data/app/views/refinery/shared/_menu_branch.html.erb +30 -0
  63. data/app/views/refinery/shared/_pages_menu.html.erb +14 -0
  64. data/app/views/refinery/themes/admin/editor/_editor_actions.html.erb +9 -0
  65. data/app/views/refinery/themes/admin/editor/file.html.erb +50 -0
  66. data/app/views/refinery/themes/admin/editor/index.html.erb +15 -0
  67. data/app/views/refinery/themes/admin/editor/upload_file.html.erb +16 -0
  68. data/app/views/refinery/themes/admin/shared/_actions.html.erb +19 -0
  69. data/app/views/refinery/themes/admin/shared/_theme_assets.html.erb +6 -0
  70. data/app/views/refinery/themes/admin/themes/index.html.erb +58 -0
  71. data/app/views/refinery/themes/admin/themes/upload.html.erb +17 -0
  72. data/app/views/spree/products/_variants.html.erb +19 -0
  73. data/config/initializers/liquid_engine.rb +8 -0
  74. data/config/initializers/refinery/core.rb +4 -0
  75. data/config/initializers/refinery/pages.rb +9 -0
  76. data/config/locales/en.yml +14 -0
  77. data/config/routes.rb +42 -0
  78. data/lib/action_view/template/handlers/liquid.rb +88 -0
  79. data/lib/editable.rb +26 -0
  80. data/lib/hash.rb +5 -0
  81. data/lib/liquid/base_drop.rb +62 -0
  82. data/lib/spreefinery/engine.rb +46 -0
  83. data/lib/spreefinery_themes.rb +21 -0
  84. data/readme.md +27 -0
  85. metadata +178 -0
@@ -0,0 +1,27 @@
1
+ SpreeFinery
2
+ ==============
3
+
4
+ Themes Engine for Spree+RefineryCMS with support Liquid markup language
5
+
6
+
7
+ TODO
8
+ ===========
9
+ https://github.com/rtomayko/tilt
10
+ https://github.com/judofyr/temple
11
+
12
+
13
+ Contributing
14
+ ==============
15
+
16
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
17
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
18
+ * Fork the project.
19
+ * Start a feature/bugfix branch.
20
+ * Commit and push until you are happy with your contribution.
21
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
22
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
23
+
24
+ Copyright
25
+ ==============
26
+
27
+ Copyright (c) 2012 by Zee Yang <zee.yang@gmail.com> & Alexander Negoda <alexander.negoda@gmail.com>. See LICENSE.txt for further details.
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spreefinery_themes
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alexander Negoda, Zee Yang
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spreefinery_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rubyzip
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: clot_engine
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Themes Engine for RefineryCMS + Spree E-Commerce
63
+ email:
64
+ - alexander.negoda@gmail.com, zee.yang@gmail.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - app/decorators/spree_checkout_controller_decorator.rb
70
+ - app/decorators/drops_decorator.rb
71
+ - app/decorators/liquid_strainer_decorator.rb
72
+ - app/decorators/refinery_admin_pages_controller_decorator.rb
73
+ - app/decorators/refinery_sessions_controller_decorator.rb
74
+ - app/decorators/spree_base_controller_decorator.rb
75
+ - app/decorators/action_view_decorator.rb
76
+ - app/decorators/template_renderer_decorator.rb
77
+ - app/decorators/base_controller_decorator.rb
78
+ - app/decorators/refinery_pages_controller_decorator.rb
79
+ - app/decorators/application_controller_decorator.rb
80
+ - app/views/refinery/themes/admin/themes/upload.html.erb
81
+ - app/views/refinery/themes/admin/themes/index.html.erb
82
+ - app/views/refinery/themes/admin/editor/file.html.erb
83
+ - app/views/refinery/themes/admin/editor/_editor_actions.html.erb
84
+ - app/views/refinery/themes/admin/editor/index.html.erb
85
+ - app/views/refinery/themes/admin/editor/upload_file.html.erb
86
+ - app/views/refinery/themes/admin/shared/_actions.html.erb
87
+ - app/views/refinery/themes/admin/shared/_theme_assets.html.erb
88
+ - app/views/refinery/admin/_dialog_success.html.erb
89
+ - app/views/refinery/shared/_menu_branch.html.erb
90
+ - app/views/refinery/shared/_pages_menu.html.erb
91
+ - app/views/spree/products/_variants.html.erb
92
+ - app/helpers/refinery/themes/admin/themes_helper.rb
93
+ - app/liquid/filters/rails_filters.rb
94
+ - app/liquid/filters/filters.rb
95
+ - app/liquid/filters/protected.rb
96
+ - app/liquid/blocks/rss.rb
97
+ - app/liquid/blocks/capture_variable.rb
98
+ - app/liquid/blocks/with_scope.rb
99
+ - app/liquid/blocks/content_for.rb
100
+ - app/liquid/tags/spree_tags.rb
101
+ - app/liquid/tags/rails_tags.rb
102
+ - app/liquid/tags/refinery_tags.rb
103
+ - app/liquid/drops/property_drop.rb
104
+ - app/liquid/drops/post_category_drop.rb
105
+ - app/liquid/drops/user_drop.rb
106
+ - app/liquid/drops/order_drop.rb
107
+ - app/liquid/drops/option_value_drop.rb
108
+ - app/liquid/drops/post_comment_drop.rb
109
+ - app/liquid/drops/spree_money_drop.rb
110
+ - app/liquid/drops/variant_drop.rb
111
+ - app/liquid/drops/state_drop.rb
112
+ - app/liquid/drops/country_drop.rb
113
+ - app/liquid/drops/menu_item_drop.rb
114
+ - app/liquid/drops/taxonomy_drop.rb
115
+ - app/liquid/drops/page_part_drop.rb
116
+ - app/liquid/drops/form_builder_drop.rb
117
+ - app/liquid/drops/image_drop.rb
118
+ - app/liquid/drops/address_drop.rb
119
+ - app/liquid/drops/product_property_drop.rb
120
+ - app/liquid/drops/line_item_drop.rb
121
+ - app/liquid/drops/option_type_drop.rb
122
+ - app/liquid/drops/product_drop.rb
123
+ - app/liquid/drops/page_drop.rb
124
+ - app/liquid/drops/post_drop.rb
125
+ - app/liquid/drops/taxon_drop.rb
126
+ - app/liquid/drops/role_drop.rb
127
+ - app/controllers/refinery/themes/theme_controller.rb
128
+ - app/controllers/refinery/themes/admin/themes_controller.rb
129
+ - app/controllers/refinery/themes/admin/editor_controller.rb
130
+ - app/assets/images/jstree/file.png
131
+ - app/assets/images/jstree/folder.png
132
+ - app/assets/stylesheets/editor.css
133
+ - app/assets/stylesheets/themes.css
134
+ - app/assets/javascripts/jstree_manager.coffee
135
+ - app/assets/javascripts/files_manager.coffee
136
+ - app/assets/javascripts/editor.coffee
137
+ - app/assets/javascripts/code_mirror_manager.coffee
138
+ - app/assets/javascripts/themes.coffee
139
+ - app/models/refinery/themes/theme.rb
140
+ - app/models/file_manager.rb
141
+ - config/initializers/refinery/core.rb
142
+ - config/initializers/refinery/pages.rb
143
+ - config/initializers/liquid_engine.rb
144
+ - config/locales/en.yml
145
+ - config/routes.rb
146
+ - lib/action_view/template/handlers/liquid.rb
147
+ - lib/spreefinery/engine.rb
148
+ - lib/liquid/base_drop.rb
149
+ - lib/editable.rb
150
+ - lib/spreefinery_themes.rb
151
+ - lib/hash.rb
152
+ - readme.md
153
+ homepage:
154
+ licenses: []
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: 1.9.3
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ requirements: []
172
+ rubyforge_project:
173
+ rubygems_version: 1.8.24
174
+ signing_key:
175
+ specification_version: 3
176
+ summary: Themes Support Engine for RefineryCMS + Spree E-Commerce based on Liquid
177
+ Templating language
178
+ test_files: []