liquid_cms 0.2.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1407) hide show
  1. data/.gitignore +1 -1
  2. data/CHANGELOG.rdoc +1 -55
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +120 -0
  5. data/README.rdoc +12 -34
  6. data/Rakefile +3 -13
  7. data/TODO.rdoc +2 -1
  8. data/app/controllers/cms/assets_controller.rb +8 -51
  9. data/app/controllers/cms/components_controller.rb +6 -14
  10. data/app/controllers/cms/main_controller.rb +7 -9
  11. data/app/controllers/cms/pages_controller.rb +12 -30
  12. data/app/helpers/cms/common_helper.rb +32 -40
  13. data/app/helpers/cms/components_helper.rb +20 -26
  14. data/app/helpers/cms/pages_helper.rb +10 -4
  15. data/app/liquid/cms_paperclip_extension.rb +3 -75
  16. data/app/liquid/drops/cms_params_drop.rb +1 -1
  17. data/app/liquid/filters/cms_filters.rb +26 -1
  18. data/app/models/cms/asset.rb +4 -132
  19. data/app/models/cms/component.rb +32 -35
  20. data/app/models/cms/page.rb +20 -20
  21. data/app/views/cms/assets/_asset.html.erb +4 -3
  22. data/app/views/cms/assets/_form.html.erb +5 -67
  23. data/app/views/cms/assets/_list.html.erb +6 -24
  24. data/app/views/cms/assets/destroy.js.rjs +2 -0
  25. data/app/views/cms/components/_list.html.erb +4 -10
  26. data/app/views/cms/components/edit.html.erb +15 -12
  27. data/app/views/cms/documentation/_cms_drops.html.erb +2 -18
  28. data/app/views/cms/documentation/_cms_filters.html.erb +33 -0
  29. data/app/views/cms/documentation/_cms_tags.html.erb +2 -13
  30. data/app/views/cms/documentation/_filters.html.erb +2 -0
  31. data/app/views/cms/documentation/_notes.html.erb +4 -0
  32. data/app/views/cms/documentation/_preamble.html.erb +2 -0
  33. data/app/views/cms/documentation/_special_vars.html.erb +14 -3
  34. data/app/views/cms/documentation/index.html.erb +1 -1
  35. data/app/views/cms/pages/_form.html.erb +12 -10
  36. data/app/views/cms/pages/_list.html.erb +6 -6
  37. data/app/views/cms/pages/_page.html.erb +3 -2
  38. data/app/views/cms/shared/_index.html.erb +1 -3
  39. data/app/views/cms/shared/_sidebar.html.erb +8 -33
  40. data/app/views/layouts/cms.html.erb +11 -16
  41. data/config/initializers/cms/cms_inflections.rb +4 -0
  42. data/config/initializers/cms/liquid_cms.rb +4 -0
  43. data/config/initializers/cms/remote_indicator.rb +6 -0
  44. data/{generators/liquid_cms/templates/config → config}/initializers/cms/simple_form.rb +2 -0
  45. data/{generators/liquid_cms/templates/config → config}/initializers/cms/simple_form_updates.rb +2 -2
  46. data/config/initializers/cms/vestal_versions.rb +14 -0
  47. data/{generators/liquid_cms/templates/config → config}/locales/cms/en.yml +4 -27
  48. data/config/routes.rb +16 -10
  49. data/lib/generators/liquid_cms/install_generator.rb +40 -0
  50. data/{generators → lib/generators}/liquid_cms/templates/migration.rb +2 -1
  51. data/lib/generators/liquid_cms/templates/public/cms/codemirror/LICENSE +23 -0
  52. data/lib/generators/liquid_cms/templates/public/cms/codemirror/bigtest.html +1296 -0
  53. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/lua/LICENSE +32 -0
  54. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/lua/css/luacolors.css +63 -0
  55. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/lua/index.html +68 -0
  56. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/lua/js/parselua.js +253 -0
  57. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/LICENSE +37 -0
  58. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/css/phpcolors.css +114 -0
  59. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/index.html +292 -0
  60. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/js/parsephp.js +371 -0
  61. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/js/parsephphtmlmixed.js +90 -0
  62. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/php/js/tokenizephp.js +1006 -0
  63. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/plsql/LICENSE +22 -0
  64. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/plsql/css/plsqlcolors.css +57 -0
  65. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/plsql/index.html +67 -0
  66. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/plsql/js/parseplsql.js +233 -0
  67. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/python/LICENSE +32 -0
  68. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/python/css/pythoncolors.css +58 -0
  69. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/python/index.html +141 -0
  70. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/python/js/parsepython.js +542 -0
  71. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/sql/LICENSE +22 -0
  72. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/sql/css/sqlcolors.css +57 -0
  73. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/sql/index.html +56 -0
  74. data/lib/generators/liquid_cms/templates/public/cms/codemirror/contrib/sql/js/parsesql.js +211 -0
  75. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/csscolors.css +51 -0
  76. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/docs.css +50 -0
  77. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/jscolors.css +59 -0
  78. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/people.jpg +0 -0
  79. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/sparqlcolors.css +43 -0
  80. data/lib/generators/liquid_cms/templates/public/cms/codemirror/css/xmlcolors.css +55 -0
  81. data/lib/generators/liquid_cms/templates/public/cms/codemirror/csstest.html +60 -0
  82. data/lib/generators/liquid_cms/templates/public/cms/codemirror/highlight.html +82 -0
  83. data/lib/generators/liquid_cms/templates/public/cms/codemirror/htmltest.html +52 -0
  84. data/lib/generators/liquid_cms/templates/public/cms/codemirror/index.html +192 -0
  85. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/codemirror.js +403 -0
  86. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/editor.js +1427 -0
  87. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/highlight.js +68 -0
  88. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/mirrorframe.js +81 -0
  89. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsecss.js +155 -0
  90. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsedummy.js +32 -0
  91. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsehtmlmixed.js +74 -0
  92. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsejavascript.js +350 -0
  93. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsesparql.js +162 -0
  94. data/{test/rails_app/public/cms/javascripts/parseliquid.js → lib/generators/liquid_cms/templates/public/cms/codemirror/js/parsexml.js} +20 -148
  95. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/select.js +619 -0
  96. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/stringstream.js +140 -0
  97. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/tokenize.js +57 -0
  98. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/tokenizejavascript.js +174 -0
  99. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/undo.js +410 -0
  100. data/lib/generators/liquid_cms/templates/public/cms/codemirror/js/util.js +130 -0
  101. data/lib/generators/liquid_cms/templates/public/cms/codemirror/jstest.html +56 -0
  102. data/lib/generators/liquid_cms/templates/public/cms/codemirror/manual.html +663 -0
  103. data/lib/generators/liquid_cms/templates/public/cms/codemirror/mixedtest.html +52 -0
  104. data/lib/generators/liquid_cms/templates/public/cms/codemirror/sparqltest.html +41 -0
  105. data/lib/generators/liquid_cms/templates/public/cms/codemirror/story.html +654 -0
  106. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/accept.png +0 -0
  107. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/add.png +0 -0
  108. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/anchor.png +0 -0
  109. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application.png +0 -0
  110. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_add.png +0 -0
  111. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_cascade.png +0 -0
  112. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_delete.png +0 -0
  113. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_double.png +0 -0
  114. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_edit.png +0 -0
  115. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_error.png +0 -0
  116. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_form.png +0 -0
  117. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_form_add.png +0 -0
  118. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_form_delete.png +0 -0
  119. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_form_edit.png +0 -0
  120. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_form_magnify.png +0 -0
  121. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_get.png +0 -0
  122. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_go.png +0 -0
  123. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_home.png +0 -0
  124. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_key.png +0 -0
  125. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_lightning.png +0 -0
  126. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_link.png +0 -0
  127. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_osx.png +0 -0
  128. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_osx_terminal.png +0 -0
  129. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_put.png +0 -0
  130. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_side_boxes.png +0 -0
  131. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_side_contract.png +0 -0
  132. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_side_expand.png +0 -0
  133. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_side_list.png +0 -0
  134. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_side_tree.png +0 -0
  135. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_split.png +0 -0
  136. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_tile_horizontal.png +0 -0
  137. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_tile_vertical.png +0 -0
  138. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_columns.png +0 -0
  139. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_detail.png +0 -0
  140. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_gallery.png +0 -0
  141. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_icons.png +0 -0
  142. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_list.png +0 -0
  143. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_view_tile.png +0 -0
  144. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_xp.png +0 -0
  145. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/application_xp_terminal.png +0 -0
  146. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_branch.png +0 -0
  147. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_divide.png +0 -0
  148. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_down.png +0 -0
  149. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_in.png +0 -0
  150. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_inout.png +0 -0
  151. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_join.png +0 -0
  152. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_left.png +0 -0
  153. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_merge.png +0 -0
  154. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_out.png +0 -0
  155. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_redo.png +0 -0
  156. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_refresh.png +0 -0
  157. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_refresh_small.png +0 -0
  158. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_right.png +0 -0
  159. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_rotate_anticlockwise.png +0 -0
  160. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_rotate_clockwise.png +0 -0
  161. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_switch.png +0 -0
  162. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_turn_left.png +0 -0
  163. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_turn_right.png +0 -0
  164. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_undo.png +0 -0
  165. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/arrow_up.png +0 -0
  166. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/asterisk_orange.png +0 -0
  167. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/asterisk_yellow.png +0 -0
  168. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/attach.png +0 -0
  169. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_add.png +0 -0
  170. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_bronze_1.png +0 -0
  171. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_bronze_2.png +0 -0
  172. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_bronze_3.png +0 -0
  173. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_delete.png +0 -0
  174. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_gold_1.png +0 -0
  175. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_gold_2.png +0 -0
  176. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_gold_3.png +0 -0
  177. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_silver_1.png +0 -0
  178. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_silver_2.png +0 -0
  179. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/award_star_silver_3.png +0 -0
  180. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket.png +0 -0
  181. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_add.png +0 -0
  182. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_delete.png +0 -0
  183. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_edit.png +0 -0
  184. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_error.png +0 -0
  185. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_go.png +0 -0
  186. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_put.png +0 -0
  187. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/basket_remove.png +0 -0
  188. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell.png +0 -0
  189. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell_add.png +0 -0
  190. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell_delete.png +0 -0
  191. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell_error.png +0 -0
  192. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell_go.png +0 -0
  193. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bell_link.png +0 -0
  194. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bin.png +0 -0
  195. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bin_closed.png +0 -0
  196. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bin_empty.png +0 -0
  197. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bomb.png +0 -0
  198. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book.png +0 -0
  199. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_add.png +0 -0
  200. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_addresses.png +0 -0
  201. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_delete.png +0 -0
  202. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_edit.png +0 -0
  203. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_error.png +0 -0
  204. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_go.png +0 -0
  205. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_key.png +0 -0
  206. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_link.png +0 -0
  207. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_next.png +0 -0
  208. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_open.png +0 -0
  209. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/book_previous.png +0 -0
  210. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/box.png +0 -0
  211. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick.png +0 -0
  212. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_add.png +0 -0
  213. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_delete.png +0 -0
  214. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_edit.png +0 -0
  215. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_error.png +0 -0
  216. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_go.png +0 -0
  217. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/brick_link.png +0 -0
  218. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bricks.png +0 -0
  219. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/briefcase.png +0 -0
  220. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_aol.png +0 -0
  221. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_camino.png +0 -0
  222. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_firefox.png +0 -0
  223. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_galeon.png +0 -0
  224. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_icab.png +0 -0
  225. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_internetexplorer.png +0 -0
  226. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_konqueror.png +0 -0
  227. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_mozilla.png +0 -0
  228. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_msnexplorer.png +0 -0
  229. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_netscape.png +0 -0
  230. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_omniweb.png +0 -0
  231. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_opera.png +0 -0
  232. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_safari.png +0 -0
  233. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_shiira.png +0 -0
  234. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/browser_sunrise.png +0 -0
  235. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug.png +0 -0
  236. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_add.png +0 -0
  237. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_delete.png +0 -0
  238. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_edit.png +0 -0
  239. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_error.png +0 -0
  240. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_go.png +0 -0
  241. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bug_link.png +0 -0
  242. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building.png +0 -0
  243. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_add.png +0 -0
  244. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_delete.png +0 -0
  245. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_edit.png +0 -0
  246. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_error.png +0 -0
  247. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_go.png +0 -0
  248. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_key.png +0 -0
  249. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/building_link.png +0 -0
  250. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_add.png +0 -0
  251. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_arrow_bottom.png +0 -0
  252. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_arrow_down.png +0 -0
  253. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_arrow_top.png +0 -0
  254. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_arrow_up.png +0 -0
  255. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_black.png +0 -0
  256. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_blue.png +0 -0
  257. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_delete.png +0 -0
  258. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_disk.png +0 -0
  259. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_error.png +0 -0
  260. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_feed.png +0 -0
  261. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_go.png +0 -0
  262. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_green.png +0 -0
  263. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_key.png +0 -0
  264. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_orange.png +0 -0
  265. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_picture.png +0 -0
  266. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_pink.png +0 -0
  267. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_purple.png +0 -0
  268. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_red.png +0 -0
  269. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_star.png +0 -0
  270. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_toggle_minus.png +0 -0
  271. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_toggle_plus.png +0 -0
  272. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_white.png +0 -0
  273. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_wrench.png +0 -0
  274. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/bullet_yellow.png +0 -0
  275. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cake.png +0 -0
  276. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator.png +0 -0
  277. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator_add.png +0 -0
  278. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator_delete.png +0 -0
  279. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator_edit.png +0 -0
  280. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator_error.png +0 -0
  281. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calculator_link.png +0 -0
  282. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar.png +0 -0
  283. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_add.png +0 -0
  284. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_delete.png +0 -0
  285. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_edit.png +0 -0
  286. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_link.png +0 -0
  287. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_view_day.png +0 -0
  288. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_view_month.png +0 -0
  289. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/calendar_view_week.png +0 -0
  290. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera.png +0 -0
  291. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_add.png +0 -0
  292. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_delete.png +0 -0
  293. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_edit.png +0 -0
  294. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_error.png +0 -0
  295. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_go.png +0 -0
  296. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_link.png +0 -0
  297. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/camera_small.png +0 -0
  298. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cancel.png +0 -0
  299. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/car.png +0 -0
  300. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/car_add.png +0 -0
  301. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/car_delete.png +0 -0
  302. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart.png +0 -0
  303. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_add.png +0 -0
  304. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_delete.png +0 -0
  305. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_edit.png +0 -0
  306. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_error.png +0 -0
  307. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_go.png +0 -0
  308. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_put.png +0 -0
  309. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cart_remove.png +0 -0
  310. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd.png +0 -0
  311. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_add.png +0 -0
  312. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_burn.png +0 -0
  313. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_delete.png +0 -0
  314. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_edit.png +0 -0
  315. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_eject.png +0 -0
  316. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cd_go.png +0 -0
  317. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar.png +0 -0
  318. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar_add.png +0 -0
  319. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar_delete.png +0 -0
  320. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar_edit.png +0 -0
  321. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar_error.png +0 -0
  322. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_bar_link.png +0 -0
  323. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve.png +0 -0
  324. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_add.png +0 -0
  325. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_delete.png +0 -0
  326. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_edit.png +0 -0
  327. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_error.png +0 -0
  328. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_go.png +0 -0
  329. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_curve_link.png +0 -0
  330. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line.png +0 -0
  331. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line_add.png +0 -0
  332. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line_delete.png +0 -0
  333. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line_edit.png +0 -0
  334. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line_error.png +0 -0
  335. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_line_link.png +0 -0
  336. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_organisation.png +0 -0
  337. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_organisation_add.png +0 -0
  338. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_organisation_delete.png +0 -0
  339. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie.png +0 -0
  340. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie_add.png +0 -0
  341. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie_delete.png +0 -0
  342. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie_edit.png +0 -0
  343. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie_error.png +0 -0
  344. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/chart_pie_link.png +0 -0
  345. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock.png +0 -0
  346. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_add.png +0 -0
  347. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_delete.png +0 -0
  348. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_edit.png +0 -0
  349. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_error.png +0 -0
  350. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_go.png +0 -0
  351. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_link.png +0 -0
  352. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_pause.png +0 -0
  353. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_play.png +0 -0
  354. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_red.png +0 -0
  355. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/clock_stop.png +0 -0
  356. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog.png +0 -0
  357. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog_add.png +0 -0
  358. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog_delete.png +0 -0
  359. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog_edit.png +0 -0
  360. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog_error.png +0 -0
  361. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cog_go.png +0 -0
  362. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/coins.png +0 -0
  363. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/coins_add.png +0 -0
  364. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/coins_delete.png +0 -0
  365. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/color_swatch.png +0 -0
  366. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/color_wheel.png +0 -0
  367. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comment.png +0 -0
  368. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comment_add.png +0 -0
  369. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comment_delete.png +0 -0
  370. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comment_edit.png +0 -0
  371. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comments.png +0 -0
  372. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comments_add.png +0 -0
  373. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/comments_delete.png +0 -0
  374. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/compress.png +0 -0
  375. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer.png +0 -0
  376. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_add.png +0 -0
  377. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_delete.png +0 -0
  378. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_edit.png +0 -0
  379. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_error.png +0 -0
  380. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_go.png +0 -0
  381. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_key.png +0 -0
  382. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/computer_link.png +0 -0
  383. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/connect.png +0 -0
  384. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/contrast.png +0 -0
  385. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/contrast_decrease.png +0 -0
  386. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/contrast_high.png +0 -0
  387. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/contrast_increase.png +0 -0
  388. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/contrast_low.png +0 -0
  389. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_eject.png +0 -0
  390. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_eject_blue.png +0 -0
  391. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_end.png +0 -0
  392. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_end_blue.png +0 -0
  393. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_equalizer.png +0 -0
  394. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_equalizer_blue.png +0 -0
  395. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_fastforward.png +0 -0
  396. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_fastforward_blue.png +0 -0
  397. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_pause.png +0 -0
  398. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_pause_blue.png +0 -0
  399. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_play.png +0 -0
  400. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_play_blue.png +0 -0
  401. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_repeat.png +0 -0
  402. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_repeat_blue.png +0 -0
  403. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_rewind.png +0 -0
  404. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_rewind_blue.png +0 -0
  405. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_start.png +0 -0
  406. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_start_blue.png +0 -0
  407. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_stop.png +0 -0
  408. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/control_stop_blue.png +0 -0
  409. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/controller.png +0 -0
  410. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/controller_add.png +0 -0
  411. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/controller_delete.png +0 -0
  412. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/controller_error.png +0 -0
  413. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/creditcards.png +0 -0
  414. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cross.png +0 -0
  415. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/css.png +0 -0
  416. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/css_add.png +0 -0
  417. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/css_delete.png +0 -0
  418. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/css_go.png +0 -0
  419. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/css_valid.png +0 -0
  420. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup.png +0 -0
  421. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_add.png +0 -0
  422. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_delete.png +0 -0
  423. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_edit.png +0 -0
  424. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_error.png +0 -0
  425. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_go.png +0 -0
  426. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_key.png +0 -0
  427. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cup_link.png +0 -0
  428. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cursor.png +0 -0
  429. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cut.png +0 -0
  430. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/cut_red.png +0 -0
  431. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database.png +0 -0
  432. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_add.png +0 -0
  433. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_connect.png +0 -0
  434. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_delete.png +0 -0
  435. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_edit.png +0 -0
  436. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_error.png +0 -0
  437. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_gear.png +0 -0
  438. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_go.png +0 -0
  439. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_key.png +0 -0
  440. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_lightning.png +0 -0
  441. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_link.png +0 -0
  442. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_refresh.png +0 -0
  443. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_save.png +0 -0
  444. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/database_table.png +0 -0
  445. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date.png +0 -0
  446. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_add.png +0 -0
  447. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_delete.png +0 -0
  448. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_edit.png +0 -0
  449. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_error.png +0 -0
  450. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_go.png +0 -0
  451. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_link.png +0 -0
  452. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_magnify.png +0 -0
  453. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_next.png +0 -0
  454. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/date_previous.png +0 -0
  455. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/delete.png +0 -0
  456. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/disconnect.png +0 -0
  457. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/disk.png +0 -0
  458. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/disk_multiple.png +0 -0
  459. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/door.png +0 -0
  460. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/door_in.png +0 -0
  461. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/door_open.png +0 -0
  462. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/door_out.png +0 -0
  463. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drink.png +0 -0
  464. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drink_empty.png +0 -0
  465. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive.png +0 -0
  466. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_add.png +0 -0
  467. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_burn.png +0 -0
  468. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_cd.png +0 -0
  469. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_cd_empty.png +0 -0
  470. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_delete.png +0 -0
  471. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_disk.png +0 -0
  472. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_edit.png +0 -0
  473. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_error.png +0 -0
  474. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_go.png +0 -0
  475. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_key.png +0 -0
  476. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_link.png +0 -0
  477. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_magnify.png +0 -0
  478. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_network.png +0 -0
  479. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_rename.png +0 -0
  480. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_user.png +0 -0
  481. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/drive_web.png +0 -0
  482. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd.png +0 -0
  483. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_add.png +0 -0
  484. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_delete.png +0 -0
  485. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_edit.png +0 -0
  486. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_error.png +0 -0
  487. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_go.png +0 -0
  488. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_key.png +0 -0
  489. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/dvd_link.png +0 -0
  490. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email.png +0 -0
  491. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_add.png +0 -0
  492. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_attach.png +0 -0
  493. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_delete.png +0 -0
  494. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_edit.png +0 -0
  495. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_error.png +0 -0
  496. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_go.png +0 -0
  497. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_link.png +0 -0
  498. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_open.png +0 -0
  499. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/email_open_image.png +0 -0
  500. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_evilgrin.png +0 -0
  501. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_grin.png +0 -0
  502. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_happy.png +0 -0
  503. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_smile.png +0 -0
  504. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_surprised.png +0 -0
  505. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_tongue.png +0 -0
  506. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_unhappy.png +0 -0
  507. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_waii.png +0 -0
  508. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/emoticon_wink.png +0 -0
  509. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/error.png +0 -0
  510. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/error_add.png +0 -0
  511. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/error_delete.png +0 -0
  512. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/error_go.png +0 -0
  513. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/exclamation.png +0 -0
  514. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/eye.png +0 -0
  515. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed.png +0 -0
  516. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_add.png +0 -0
  517. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_delete.png +0 -0
  518. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_disk.png +0 -0
  519. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_edit.png +0 -0
  520. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_error.png +0 -0
  521. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_go.png +0 -0
  522. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_key.png +0 -0
  523. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_link.png +0 -0
  524. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/feed_magnify.png +0 -0
  525. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/female.png +0 -0
  526. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film.png +0 -0
  527. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_add.png +0 -0
  528. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_delete.png +0 -0
  529. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_edit.png +0 -0
  530. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_error.png +0 -0
  531. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_go.png +0 -0
  532. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_key.png +0 -0
  533. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_link.png +0 -0
  534. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/film_save.png +0 -0
  535. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/find.png +0 -0
  536. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_blue.png +0 -0
  537. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_green.png +0 -0
  538. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_orange.png +0 -0
  539. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_pink.png +0 -0
  540. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_purple.png +0 -0
  541. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_red.png +0 -0
  542. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/flag_yellow.png +0 -0
  543. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder.png +0 -0
  544. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_add.png +0 -0
  545. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_bell.png +0 -0
  546. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_brick.png +0 -0
  547. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_bug.png +0 -0
  548. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_camera.png +0 -0
  549. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_database.png +0 -0
  550. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_delete.png +0 -0
  551. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_edit.png +0 -0
  552. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_error.png +0 -0
  553. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_explore.png +0 -0
  554. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_feed.png +0 -0
  555. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_find.png +0 -0
  556. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_go.png +0 -0
  557. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_heart.png +0 -0
  558. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_image.png +0 -0
  559. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_key.png +0 -0
  560. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_lightbulb.png +0 -0
  561. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_link.png +0 -0
  562. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_magnify.png +0 -0
  563. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_page.png +0 -0
  564. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_page_white.png +0 -0
  565. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_palette.png +0 -0
  566. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_picture.png +0 -0
  567. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_star.png +0 -0
  568. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_table.png +0 -0
  569. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_user.png +0 -0
  570. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/folder_wrench.png +0 -0
  571. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/font.png +0 -0
  572. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/font_add.png +0 -0
  573. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/font_delete.png +0 -0
  574. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/font_go.png +0 -0
  575. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group.png +0 -0
  576. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_add.png +0 -0
  577. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_delete.png +0 -0
  578. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_edit.png +0 -0
  579. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_error.png +0 -0
  580. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_gear.png +0 -0
  581. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_go.png +0 -0
  582. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_key.png +0 -0
  583. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/group_link.png +0 -0
  584. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/heart.png +0 -0
  585. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/heart_add.png +0 -0
  586. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/heart_delete.png +0 -0
  587. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/help.png +0 -0
  588. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/hourglass.png +0 -0
  589. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/hourglass_add.png +0 -0
  590. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/hourglass_delete.png +0 -0
  591. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/hourglass_go.png +0 -0
  592. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/hourglass_link.png +0 -0
  593. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/house.png +0 -0
  594. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/house_go.png +0 -0
  595. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/house_link.png +0 -0
  596. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html.png +0 -0
  597. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html_add.png +0 -0
  598. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html_delete.png +0 -0
  599. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html_edit.png +0 -0
  600. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html_go.png +0 -0
  601. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/html_valid.png +0 -0
  602. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/image.png +0 -0
  603. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/image_add.png +0 -0
  604. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/image_delete.png +0 -0
  605. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/image_edit.png +0 -0
  606. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/image_link.png +0 -0
  607. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/images.png +0 -0
  608. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/information.png +0 -0
  609. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ipod.png +0 -0
  610. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ipod_cast.png +0 -0
  611. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ipod_cast_add.png +0 -0
  612. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ipod_cast_delete.png +0 -0
  613. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ipod_sound.png +0 -0
  614. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/joystick.png +0 -0
  615. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/joystick_add.png +0 -0
  616. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/joystick_delete.png +0 -0
  617. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/joystick_error.png +0 -0
  618. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/key.png +0 -0
  619. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/key_add.png +0 -0
  620. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/key_delete.png +0 -0
  621. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/key_go.png +0 -0
  622. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/keyboard.png +0 -0
  623. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/keyboard_add.png +0 -0
  624. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/keyboard_delete.png +0 -0
  625. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/keyboard_magnify.png +0 -0
  626. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layers.png +0 -0
  627. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout.png +0 -0
  628. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_add.png +0 -0
  629. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_content.png +0 -0
  630. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_delete.png +0 -0
  631. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_edit.png +0 -0
  632. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_error.png +0 -0
  633. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_header.png +0 -0
  634. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_link.png +0 -0
  635. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/layout_sidebar.png +0 -0
  636. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightbulb.png +0 -0
  637. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightbulb_add.png +0 -0
  638. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightbulb_delete.png +0 -0
  639. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightbulb_off.png +0 -0
  640. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightning.png +0 -0
  641. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightning_add.png +0 -0
  642. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightning_delete.png +0 -0
  643. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lightning_go.png +0 -0
  644. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link.png +0 -0
  645. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_add.png +0 -0
  646. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_break.png +0 -0
  647. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_delete.png +0 -0
  648. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_edit.png +0 -0
  649. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_error.png +0 -0
  650. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/link_go.png +0 -0
  651. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock.png +0 -0
  652. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_add.png +0 -0
  653. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_break.png +0 -0
  654. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_delete.png +0 -0
  655. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_edit.png +0 -0
  656. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_go.png +0 -0
  657. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lock_open.png +0 -0
  658. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry.png +0 -0
  659. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_add.png +0 -0
  660. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_delete.png +0 -0
  661. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_error.png +0 -0
  662. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_flatbed.png +0 -0
  663. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_go.png +0 -0
  664. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/lorry_link.png +0 -0
  665. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/magifier_zoom_out.png +0 -0
  666. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/magnifier.png +0 -0
  667. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/magnifier_zoom_in.png +0 -0
  668. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/male.png +0 -0
  669. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map.png +0 -0
  670. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map_add.png +0 -0
  671. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map_delete.png +0 -0
  672. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map_edit.png +0 -0
  673. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map_go.png +0 -0
  674. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/map_magnify.png +0 -0
  675. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_bronze_1.png +0 -0
  676. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_bronze_2.png +0 -0
  677. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_bronze_3.png +0 -0
  678. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_bronze_add.png +0 -0
  679. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_bronze_delete.png +0 -0
  680. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_gold_1.png +0 -0
  681. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_gold_2.png +0 -0
  682. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_gold_3.png +0 -0
  683. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_gold_add.png +0 -0
  684. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_gold_delete.png +0 -0
  685. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_silver_1.png +0 -0
  686. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_silver_2.png +0 -0
  687. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_silver_3.png +0 -0
  688. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_silver_add.png +0 -0
  689. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/medal_silver_delete.png +0 -0
  690. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money.png +0 -0
  691. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_add.png +0 -0
  692. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_delete.png +0 -0
  693. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_dollar.png +0 -0
  694. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_euro.png +0 -0
  695. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_pound.png +0 -0
  696. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/money_yen.png +0 -0
  697. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor.png +0 -0
  698. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_add.png +0 -0
  699. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_delete.png +0 -0
  700. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_edit.png +0 -0
  701. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_error.png +0 -0
  702. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_go.png +0 -0
  703. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_lightning.png +0 -0
  704. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/monitor_link.png +0 -0
  705. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/mouse.png +0 -0
  706. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/mouse_add.png +0 -0
  707. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/mouse_delete.png +0 -0
  708. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/mouse_error.png +0 -0
  709. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/music.png +0 -0
  710. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/new.png +0 -0
  711. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/newspaper.png +0 -0
  712. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/newspaper_add.png +0 -0
  713. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/newspaper_delete.png +0 -0
  714. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/newspaper_go.png +0 -0
  715. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/newspaper_link.png +0 -0
  716. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note.png +0 -0
  717. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note_add.png +0 -0
  718. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note_delete.png +0 -0
  719. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note_edit.png +0 -0
  720. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note_error.png +0 -0
  721. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/note_go.png +0 -0
  722. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/overlays.png +0 -0
  723. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package.png +0 -0
  724. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package_add.png +0 -0
  725. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package_delete.png +0 -0
  726. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package_go.png +0 -0
  727. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package_green.png +0 -0
  728. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/package_link.png +0 -0
  729. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page.png +0 -0
  730. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_add.png +0 -0
  731. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_attach.png +0 -0
  732. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_code.png +0 -0
  733. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_copy.png +0 -0
  734. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_delete.png +0 -0
  735. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_edit.png +0 -0
  736. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_error.png +0 -0
  737. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_excel.png +0 -0
  738. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_find.png +0 -0
  739. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_gear.png +0 -0
  740. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_go.png +0 -0
  741. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_green.png +0 -0
  742. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_key.png +0 -0
  743. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_lightning.png +0 -0
  744. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_link.png +0 -0
  745. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_paintbrush.png +0 -0
  746. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_paste.png +0 -0
  747. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_red.png +0 -0
  748. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_refresh.png +0 -0
  749. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_save.png +0 -0
  750. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white.png +0 -0
  751. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_acrobat.png +0 -0
  752. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_actionscript.png +0 -0
  753. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_add.png +0 -0
  754. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_c.png +0 -0
  755. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_camera.png +0 -0
  756. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_cd.png +0 -0
  757. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_code.png +0 -0
  758. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_code_red.png +0 -0
  759. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_coldfusion.png +0 -0
  760. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_compressed.png +0 -0
  761. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_copy.png +0 -0
  762. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_cplusplus.png +0 -0
  763. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_csharp.png +0 -0
  764. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_cup.png +0 -0
  765. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_database.png +0 -0
  766. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_delete.png +0 -0
  767. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_dvd.png +0 -0
  768. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_edit.png +0 -0
  769. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_error.png +0 -0
  770. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_excel.png +0 -0
  771. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_find.png +0 -0
  772. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_flash.png +0 -0
  773. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_freehand.png +0 -0
  774. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_gear.png +0 -0
  775. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_get.png +0 -0
  776. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_go.png +0 -0
  777. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_h.png +0 -0
  778. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_horizontal.png +0 -0
  779. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_key.png +0 -0
  780. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_lightning.png +0 -0
  781. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_link.png +0 -0
  782. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_magnify.png +0 -0
  783. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_medal.png +0 -0
  784. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_office.png +0 -0
  785. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_paint.png +0 -0
  786. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_paintbrush.png +0 -0
  787. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_paste.png +0 -0
  788. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_php.png +0 -0
  789. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_picture.png +0 -0
  790. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_powerpoint.png +0 -0
  791. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_put.png +0 -0
  792. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_ruby.png +0 -0
  793. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_stack.png +0 -0
  794. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_star.png +0 -0
  795. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_swoosh.png +0 -0
  796. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_text.png +0 -0
  797. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_text_width.png +0 -0
  798. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_tux.png +0 -0
  799. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_vector.png +0 -0
  800. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_visualstudio.png +0 -0
  801. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_width.png +0 -0
  802. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_word.png +0 -0
  803. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_world.png +0 -0
  804. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_wrench.png +0 -0
  805. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_white_zip.png +0 -0
  806. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_word.png +0 -0
  807. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/page_world.png +0 -0
  808. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/paintbrush.png +0 -0
  809. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/paintcan.png +0 -0
  810. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/palette.png +0 -0
  811. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/paste_plain.png +0 -0
  812. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/paste_word.png +0 -0
  813. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pencil.png +0 -0
  814. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pencil_add.png +0 -0
  815. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pencil_delete.png +0 -0
  816. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pencil_go.png +0 -0
  817. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/phone.png +0 -0
  818. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/phone_add.png +0 -0
  819. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/phone_delete.png +0 -0
  820. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/phone_sound.png +0 -0
  821. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/photo.png +0 -0
  822. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/photo_add.png +0 -0
  823. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/photo_delete.png +0 -0
  824. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/photo_link.png +0 -0
  825. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/photos.png +0 -0
  826. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture.png +0 -0
  827. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_add.png +0 -0
  828. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_delete.png +0 -0
  829. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_edit.png +0 -0
  830. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_empty.png +0 -0
  831. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_error.png +0 -0
  832. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_go.png +0 -0
  833. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_key.png +0 -0
  834. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_link.png +0 -0
  835. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/picture_save.png +0 -0
  836. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pictures.png +0 -0
  837. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pilcrow.png +0 -0
  838. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pill.png +0 -0
  839. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pill_add.png +0 -0
  840. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pill_delete.png +0 -0
  841. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/pill_go.png +0 -0
  842. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin.png +0 -0
  843. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_add.png +0 -0
  844. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_delete.png +0 -0
  845. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_disabled.png +0 -0
  846. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_edit.png +0 -0
  847. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_error.png +0 -0
  848. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_go.png +0 -0
  849. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/plugin_link.png +0 -0
  850. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/printer.png +0 -0
  851. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/printer_add.png +0 -0
  852. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/printer_delete.png +0 -0
  853. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/printer_empty.png +0 -0
  854. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/printer_error.png +0 -0
  855. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rainbow.png +0 -0
  856. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/readme.html +0 -0
  857. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/readme.txt +0 -0
  858. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report.png +0 -0
  859. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_add.png +0 -0
  860. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_delete.png +0 -0
  861. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_disk.png +0 -0
  862. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_edit.png +0 -0
  863. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_go.png +0 -0
  864. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_key.png +0 -0
  865. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_link.png +0 -0
  866. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_magnify.png +0 -0
  867. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_picture.png +0 -0
  868. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_user.png +0 -0
  869. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/report_word.png +0 -0
  870. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/resultset_first.png +0 -0
  871. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/resultset_last.png +0 -0
  872. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/resultset_next.png +0 -0
  873. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/resultset_previous.png +0 -0
  874. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rosette.png +0 -0
  875. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rss.png +0 -0
  876. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rss_add.png +0 -0
  877. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rss_delete.png +0 -0
  878. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rss_go.png +0 -0
  879. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/rss_valid.png +0 -0
  880. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby.png +0 -0
  881. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_add.png +0 -0
  882. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_delete.png +0 -0
  883. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_gear.png +0 -0
  884. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_get.png +0 -0
  885. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_go.png +0 -0
  886. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_key.png +0 -0
  887. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_link.png +0 -0
  888. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/ruby_put.png +0 -0
  889. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script.png +0 -0
  890. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_add.png +0 -0
  891. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_code.png +0 -0
  892. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_code_red.png +0 -0
  893. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_delete.png +0 -0
  894. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_edit.png +0 -0
  895. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_error.png +0 -0
  896. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_gear.png +0 -0
  897. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_go.png +0 -0
  898. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_key.png +0 -0
  899. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_lightning.png +0 -0
  900. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_link.png +0 -0
  901. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_palette.png +0 -0
  902. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/script_save.png +0 -0
  903. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server.png +0 -0
  904. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_add.png +0 -0
  905. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_chart.png +0 -0
  906. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_compressed.png +0 -0
  907. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_connect.png +0 -0
  908. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_database.png +0 -0
  909. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_delete.png +0 -0
  910. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_edit.png +0 -0
  911. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_error.png +0 -0
  912. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_go.png +0 -0
  913. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_key.png +0 -0
  914. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_lightning.png +0 -0
  915. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_link.png +0 -0
  916. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/server_uncompressed.png +0 -0
  917. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shading.png +0 -0
  918. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_bottom.png +0 -0
  919. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_center.png +0 -0
  920. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_left.png +0 -0
  921. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_middle.png +0 -0
  922. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_right.png +0 -0
  923. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_align_top.png +0 -0
  924. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_flip_horizontal.png +0 -0
  925. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_flip_vertical.png +0 -0
  926. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_group.png +0 -0
  927. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_handles.png +0 -0
  928. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_move_back.png +0 -0
  929. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_move_backwards.png +0 -0
  930. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_move_forwards.png +0 -0
  931. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_move_front.png +0 -0
  932. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_rotate_anticlockwise.png +0 -0
  933. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_rotate_clockwise.png +0 -0
  934. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square.png +0 -0
  935. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_add.png +0 -0
  936. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_delete.png +0 -0
  937. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_edit.png +0 -0
  938. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_error.png +0 -0
  939. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_go.png +0 -0
  940. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_key.png +0 -0
  941. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_square_link.png +0 -0
  942. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shape_ungroup.png +0 -0
  943. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shield.png +0 -0
  944. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shield_add.png +0 -0
  945. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shield_delete.png +0 -0
  946. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/shield_go.png +0 -0
  947. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sitemap.png +0 -0
  948. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sitemap_color.png +0 -0
  949. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound.png +0 -0
  950. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound_add.png +0 -0
  951. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound_delete.png +0 -0
  952. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound_low.png +0 -0
  953. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound_mute.png +0 -0
  954. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sound_none.png +0 -0
  955. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/spellcheck.png +0 -0
  956. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_8ball.png +0 -0
  957. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_basketball.png +0 -0
  958. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_football.png +0 -0
  959. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_golf.png +0 -0
  960. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_raquet.png +0 -0
  961. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_shuttlecock.png +0 -0
  962. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_soccer.png +0 -0
  963. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sport_tennis.png +0 -0
  964. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/star.png +0 -0
  965. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/status_away.png +0 -0
  966. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/status_busy.png +0 -0
  967. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/status_offline.png +0 -0
  968. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/status_online.png +0 -0
  969. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/stop.png +0 -0
  970. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/style.png +0 -0
  971. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/style_add.png +0 -0
  972. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/style_delete.png +0 -0
  973. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/style_edit.png +0 -0
  974. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/style_go.png +0 -0
  975. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/sum.png +0 -0
  976. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tab.png +0 -0
  977. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tab_add.png +0 -0
  978. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tab_delete.png +0 -0
  979. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tab_edit.png +0 -0
  980. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tab_go.png +0 -0
  981. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table.png +0 -0
  982. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_add.png +0 -0
  983. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_delete.png +0 -0
  984. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_edit.png +0 -0
  985. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_error.png +0 -0
  986. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_gear.png +0 -0
  987. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_go.png +0 -0
  988. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_key.png +0 -0
  989. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_lightning.png +0 -0
  990. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_link.png +0 -0
  991. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_multiple.png +0 -0
  992. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_refresh.png +0 -0
  993. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_relationship.png +0 -0
  994. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_row_delete.png +0 -0
  995. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_row_insert.png +0 -0
  996. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_save.png +0 -0
  997. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/table_sort.png +0 -0
  998. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag.png +0 -0
  999. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_blue.png +0 -0
  1000. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_blue_add.png +0 -0
  1001. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_blue_delete.png +0 -0
  1002. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_blue_edit.png +0 -0
  1003. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_green.png +0 -0
  1004. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_orange.png +0 -0
  1005. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_pink.png +0 -0
  1006. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_purple.png +0 -0
  1007. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_red.png +0 -0
  1008. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tag_yellow.png +0 -0
  1009. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone.png +0 -0
  1010. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_add.png +0 -0
  1011. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_delete.png +0 -0
  1012. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_edit.png +0 -0
  1013. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_error.png +0 -0
  1014. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_go.png +0 -0
  1015. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_key.png +0 -0
  1016. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/telephone_link.png +0 -0
  1017. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/television.png +0 -0
  1018. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/television_add.png +0 -0
  1019. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/television_delete.png +0 -0
  1020. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_align_center.png +0 -0
  1021. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_align_justify.png +0 -0
  1022. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_align_left.png +0 -0
  1023. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_align_right.png +0 -0
  1024. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_allcaps.png +0 -0
  1025. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_bold.png +0 -0
  1026. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_columns.png +0 -0
  1027. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_dropcaps.png +0 -0
  1028. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_1.png +0 -0
  1029. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_2.png +0 -0
  1030. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_3.png +0 -0
  1031. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_4.png +0 -0
  1032. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_5.png +0 -0
  1033. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_heading_6.png +0 -0
  1034. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_horizontalrule.png +0 -0
  1035. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_indent.png +0 -0
  1036. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_indent_remove.png +0 -0
  1037. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_italic.png +0 -0
  1038. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_kerning.png +0 -0
  1039. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_letter_omega.png +0 -0
  1040. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_letterspacing.png +0 -0
  1041. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_linespacing.png +0 -0
  1042. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_list_bullets.png +0 -0
  1043. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_list_numbers.png +0 -0
  1044. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_lowercase.png +0 -0
  1045. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_padding_bottom.png +0 -0
  1046. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_padding_left.png +0 -0
  1047. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_padding_right.png +0 -0
  1048. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_padding_top.png +0 -0
  1049. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_padding_top_delete.png +0 -0
  1050. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_replace.png +0 -0
  1051. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_signature.png +0 -0
  1052. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_smallcaps.png +0 -0
  1053. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_strikethrough.png +0 -0
  1054. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_subscript.png +0 -0
  1055. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_superscript.png +0 -0
  1056. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_underline.png +0 -0
  1057. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/text_uppercase.png +0 -0
  1058. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/textfield.png +0 -0
  1059. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/textfield_add.png +0 -0
  1060. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/textfield_delete.png +0 -0
  1061. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/textfield_key.png +0 -0
  1062. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/textfield_rename.png +0 -0
  1063. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/thumb_down.png +0 -0
  1064. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/thumb_up.png +0 -0
  1065. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tick.png +0 -0
  1066. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/time.png +0 -0
  1067. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/time_add.png +0 -0
  1068. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/time_delete.png +0 -0
  1069. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/time_go.png +0 -0
  1070. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/timeline_marker.png +0 -0
  1071. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit.png +0 -0
  1072. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_add.png +0 -0
  1073. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_blue.png +0 -0
  1074. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_delete.png +0 -0
  1075. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_edit.png +0 -0
  1076. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_error.png +0 -0
  1077. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/transmit_go.png +0 -0
  1078. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/tux.png +0 -0
  1079. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user.png +0 -0
  1080. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_add.png +0 -0
  1081. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_comment.png +0 -0
  1082. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_delete.png +0 -0
  1083. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_edit.png +0 -0
  1084. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_female.png +0 -0
  1085. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_go.png +0 -0
  1086. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_gray.png +0 -0
  1087. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_green.png +0 -0
  1088. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_orange.png +0 -0
  1089. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_red.png +0 -0
  1090. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/user_suit.png +0 -0
  1091. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vcard.png +0 -0
  1092. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vcard_add.png +0 -0
  1093. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vcard_delete.png +0 -0
  1094. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vcard_edit.png +0 -0
  1095. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vector.png +0 -0
  1096. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vector_add.png +0 -0
  1097. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/vector_delete.png +0 -0
  1098. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/wand.png +0 -0
  1099. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_clouds.png +0 -0
  1100. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_cloudy.png +0 -0
  1101. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_lightning.png +0 -0
  1102. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_rain.png +0 -0
  1103. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_snow.png +0 -0
  1104. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/weather_sun.png +0 -0
  1105. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/webcam.png +0 -0
  1106. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/webcam_add.png +0 -0
  1107. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/webcam_delete.png +0 -0
  1108. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/webcam_error.png +0 -0
  1109. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world.png +0 -0
  1110. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world_add.png +0 -0
  1111. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world_delete.png +0 -0
  1112. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world_edit.png +0 -0
  1113. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world_go.png +0 -0
  1114. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/world_link.png +0 -0
  1115. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/wrench.png +0 -0
  1116. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/wrench_orange.png +0 -0
  1117. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/xhtml.png +0 -0
  1118. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/xhtml_add.png +0 -0
  1119. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/xhtml_delete.png +0 -0
  1120. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/xhtml_go.png +0 -0
  1121. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/xhtml_valid.png +0 -0
  1122. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/zoom.png +0 -0
  1123. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/zoom_in.png +0 -0
  1124. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/icons/zoom_out.png +0 -0
  1125. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/indicator.gif +0 -0
  1126. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/tree/lastnode.png +0 -0
  1127. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/tree/node.png +0 -0
  1128. data/{generators → lib/generators}/liquid_cms/templates/public/cms/images/tree/vline.png +0 -0
  1129. data/{test/rails_app → lib/generators/liquid_cms/templates}/public/cms/javascripts/cms.js +0 -0
  1130. data/{generators → lib/generators}/liquid_cms/templates/public/cms/javascripts/cookiejar.js +0 -0
  1131. data/{generators → lib/generators}/liquid_cms/templates/public/cms/javascripts/humanmsg.js +0 -0
  1132. data/{generators → lib/generators}/liquid_cms/templates/public/cms/javascripts/parseliquid.js +0 -0
  1133. data/lib/generators/liquid_cms/templates/public/cms/javascripts/remote_helpers.js +44 -0
  1134. data/{generators → lib/generators}/liquid_cms/templates/public/cms/stylesheets/clearfix.css +0 -0
  1135. data/{generators → lib/generators}/liquid_cms/templates/public/cms/stylesheets/documentation.css +7 -8
  1136. data/{generators → lib/generators}/liquid_cms/templates/public/cms/stylesheets/humanmsg.css +0 -0
  1137. data/{generators → lib/generators}/liquid_cms/templates/public/cms/stylesheets/ie.css +0 -0
  1138. data/{generators → lib/generators}/liquid_cms/templates/public/cms/stylesheets/liquidcolors.css +0 -0
  1139. data/{test/rails_app → lib/generators/liquid_cms/templates}/public/cms/stylesheets/simple_form.css +1 -1
  1140. data/{test/rails_app → lib/generators/liquid_cms/templates}/public/cms/stylesheets/styles.css +13 -38
  1141. data/{generators → lib/generators}/liquid_cms/templates/setup_controller.rb +0 -0
  1142. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/CHANGELOG +0 -0
  1143. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/History.txt +0 -0
  1144. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/MIT-LICENSE +0 -0
  1145. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/Manifest.txt +0 -0
  1146. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/README.md +0 -0
  1147. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/example/server/example_servlet.rb +0 -0
  1148. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/example/server/liquid_servlet.rb +0 -0
  1149. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/example/server/server.rb +0 -0
  1150. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/example/server/templates/index.liquid +0 -0
  1151. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/example/server/templates/products.liquid +0 -0
  1152. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/init.rb +0 -0
  1153. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/extras/liquid_view.rb +0 -0
  1154. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/block.rb +0 -0
  1155. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/condition.rb +0 -0
  1156. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/context.rb +0 -0
  1157. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/document.rb +0 -0
  1158. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/drop.rb +0 -0
  1159. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/errors.rb +0 -0
  1160. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/extensions.rb +0 -0
  1161. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/file_system.rb +0 -0
  1162. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/htmltags.rb +0 -0
  1163. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/module_ex.rb +0 -0
  1164. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/standardfilters.rb +0 -0
  1165. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/strainer.rb +0 -0
  1166. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tag.rb +0 -0
  1167. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/assign.rb +0 -0
  1168. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/capture.rb +0 -0
  1169. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/case.rb +0 -0
  1170. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/comment.rb +0 -0
  1171. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/cycle.rb +0 -0
  1172. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/for.rb +0 -0
  1173. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/if.rb +0 -0
  1174. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/ifchanged.rb +0 -0
  1175. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/include.rb +0 -0
  1176. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/literal.rb +0 -0
  1177. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/tags/unless.rb +0 -0
  1178. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/template.rb +0 -0
  1179. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid/variable.rb +0 -0
  1180. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/lib/liquid.rb +0 -0
  1181. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/liquid.gemspec +0 -0
  1182. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/comment_form.rb +0 -0
  1183. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/database.rb +0 -0
  1184. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/json_filter.rb +0 -0
  1185. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/liquid.rb +0 -0
  1186. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/money_filter.rb +0 -0
  1187. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/paginate.rb +0 -0
  1188. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/shop_filter.rb +0 -0
  1189. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/tag_filter.rb +0 -0
  1190. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/vision.database.yml +0 -0
  1191. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify/weight_filter.rb +0 -0
  1192. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/performance/shopify.rb +0 -0
  1193. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/liquid/test/test_helper.rb +0 -0
  1194. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/CHANGELOG +0 -0
  1195. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/MIT-LICENSE +0 -0
  1196. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/README +0 -0
  1197. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers/PrototypeHelper.html +0 -0
  1198. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers/PrototypeHelper.src/M000001.html +0 -0
  1199. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers/PrototypeHelper.src/M000002.html +0 -0
  1200. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers/PrototypeHelper.src/M000003.html +0 -0
  1201. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers/PrototypeHelper.src/M000004.html +0 -0
  1202. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView/Helpers.html +0 -0
  1203. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/ActionView.html +0 -0
  1204. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/classes/RemoteIndicator.html +0 -0
  1205. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/created.rid +0 -0
  1206. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/files/init_rb.html +0 -0
  1207. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/files/lib/remote_helpers_rb.html +0 -0
  1208. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/fr_class_index.html +0 -0
  1209. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/fr_file_index.html +0 -0
  1210. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/fr_method_index.html +0 -0
  1211. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/index.html +0 -0
  1212. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/doc/rdoc-style.css +0 -0
  1213. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/images/indicator.gif +0 -0
  1214. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/init.rb +0 -0
  1215. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/install.rb +0 -0
  1216. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/remote_helpers/lib/remote_helpers.rb +6 -1
  1217. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/README.textile +0 -0
  1218. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/init.rb +0 -0
  1219. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/lib/will_paginate/liquidized/view_helpers.rb +0 -0
  1220. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/lib/will_paginate/liquidized.rb +0 -0
  1221. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/spec/liquidized_spec.rb +0 -0
  1222. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/spec/spec_helper.rb +0 -0
  1223. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/spec/view_helpers_spec.rb +0 -0
  1224. data/{generators/liquid_cms/templates/vendor/plugins/cms_plugins → lib/generators/liquid_cms/templates/vendor/plugins}/will_paginate-liquidized/spec/will_paginate_liquidized_spec.rb +0 -0
  1225. data/lib/liquid_cms/configuration.rb +3 -27
  1226. data/lib/liquid_cms/context.rb +1 -5
  1227. data/lib/liquid_cms/version.rb +1 -1
  1228. data/lib/liquid_cms.rb +37 -0
  1229. data/liquid_cms.gemspec +8 -10
  1230. data/test/factories/asset.rb +0 -7
  1231. data/test/factories/company.rb +1 -1
  1232. data/test/functional/assets_controller_test.rb +62 -163
  1233. data/test/functional/main_controller_test.rb +0 -30
  1234. data/test/functional/pages_controller_test.rb +6 -64
  1235. data/test/integration/pages_test.rb +30 -137
  1236. data/test/rails_app/Gemfile +34 -0
  1237. data/test/rails_app/Gemfile.lock +115 -0
  1238. data/test/rails_app/Rakefile +2 -5
  1239. data/test/rails_app/app/controllers/application_controller.rb +1 -7
  1240. data/test/rails_app/app/helpers/application_helper.rb +0 -1
  1241. data/test/rails_app/app/views/layouts/application.html.erb +14 -0
  1242. data/test/rails_app/config/application.rb +42 -0
  1243. data/test/rails_app/config/boot.rb +13 -114
  1244. data/test/rails_app/config/environment.rb +4 -42
  1245. data/test/rails_app/config/environments/development.rb +22 -13
  1246. data/test/rails_app/config/environments/production.rb +41 -20
  1247. data/test/rails_app/config/environments/test.rb +35 -28
  1248. data/test/rails_app/config/initializers/backtrace_silencers.rb +2 -2
  1249. data/test/rails_app/config/initializers/cms/simple_form.rb +2 -0
  1250. data/test/rails_app/config/initializers/cms/vestal_versions.rb +11 -0
  1251. data/test/rails_app/config/initializers/inflections.rb +1 -1
  1252. data/test/rails_app/config/initializers/{cookie_verification_secret.rb → secret_token.rb} +2 -2
  1253. data/test/rails_app/config/initializers/session_store.rb +2 -9
  1254. data/test/rails_app/config/locales/cms/en.yml +4 -27
  1255. data/test/rails_app/config/locales/en.yml +1 -1
  1256. data/test/rails_app/config/routes.rb +43 -29
  1257. data/test/rails_app/config.ru +4 -0
  1258. data/test/rails_app/db/migrate/20101018211856_create_liquid_cms_setup.rb +3 -1
  1259. data/test/rails_app/db/seeds.rb +2 -2
  1260. data/test/rails_app/public/404.html +15 -19
  1261. data/test/rails_app/public/422.html +15 -19
  1262. data/test/rails_app/public/500.html +14 -18
  1263. data/test/rails_app/public/javascripts/controls.js +5 -3
  1264. data/test/rails_app/public/javascripts/dragdrop.js +7 -6
  1265. data/test/rails_app/public/javascripts/effects.js +8 -13
  1266. data/test/rails_app/public/javascripts/prototype.js +3381 -1700
  1267. data/test/rails_app/public/javascripts/rails.js +175 -0
  1268. data/test/rails_app/script/rails +6 -0
  1269. data/test/test_helper.rb +8 -23
  1270. data/test/unit/asset_test.rb +4 -195
  1271. data/test/unit/page_test.rb +15 -15
  1272. metadata +1265 -1341
  1273. data/app/liquid/drops/cms_asset_drop.rb +0 -15
  1274. data/app/liquid/tags/asset_search_tag.rb +0 -26
  1275. data/app/liquid/tags/cms/data_tag.rb +0 -59
  1276. data/app/liquid/tags/cms/tag_common.rb +0 -29
  1277. data/app/models/cms/tag.rb +0 -21
  1278. data/app/models/cms/taggable.rb +0 -78
  1279. data/app/models/cms/tagging.rb +0 -6
  1280. data/app/views/cms/assets/_meta_field.html.erb +0 -15
  1281. data/app/views/cms/assets/update.js.rjs +0 -1
  1282. data/app/views/cms/components/update.js.rjs +0 -1
  1283. data/app/views/cms/pages/search.html.erb +0 -24
  1284. data/app/views/cms/pages/update.js.rjs +0 -1
  1285. data/generators/liquid_cms/lib/insert_commands.rb +0 -49
  1286. data/generators/liquid_cms/liquid_cms_generator.rb +0 -79
  1287. data/generators/liquid_cms/templates/config/initializers/cms/liquid_cms.rb +0 -12
  1288. data/generators/liquid_cms/templates/config/initializers/cms/remote_indicator.rb +0 -1
  1289. data/generators/liquid_cms/templates/migration_rev1.rb +0 -38
  1290. data/generators/liquid_cms/templates/migration_rev2.rb +0 -13
  1291. data/generators/liquid_cms/templates/public/cms/codemirror/LICENSE +0 -19
  1292. data/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.css +0 -68
  1293. data/generators/liquid_cms/templates/public/cms/codemirror/lib/codemirror.js +0 -2197
  1294. data/generators/liquid_cms/templates/public/cms/codemirror/lib/overlay.js +0 -51
  1295. data/generators/liquid_cms/templates/public/cms/codemirror/lib/runmode.js +0 -27
  1296. data/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/clike.js +0 -247
  1297. data/generators/liquid_cms/templates/public/cms/codemirror/mode/clike/index.html +0 -102
  1298. data/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/clojure.js +0 -207
  1299. data/generators/liquid_cms/templates/public/cms/codemirror/mode/clojure/index.html +0 -85
  1300. data/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/LICENSE +0 -22
  1301. data/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/coffeescript.js +0 -325
  1302. data/generators/liquid_cms/templates/public/cms/codemirror/mode/coffeescript/index.html +0 -722
  1303. data/generators/liquid_cms/templates/public/cms/codemirror/mode/css/css.js +0 -124
  1304. data/generators/liquid_cms/templates/public/cms/codemirror/mode/css/index.html +0 -56
  1305. data/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.css +0 -3
  1306. data/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/diff.js +0 -13
  1307. data/generators/liquid_cms/templates/public/cms/codemirror/mode/diff/index.html +0 -99
  1308. data/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/haskell.js +0 -242
  1309. data/generators/liquid_cms/templates/public/cms/codemirror/mode/haskell/index.html +0 -60
  1310. data/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/htmlmixed.js +0 -79
  1311. data/generators/liquid_cms/templates/public/cms/codemirror/mode/htmlmixed/index.html +0 -52
  1312. data/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/index.html +0 -78
  1313. data/generators/liquid_cms/templates/public/cms/codemirror/mode/javascript/javascript.js +0 -352
  1314. data/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/index.html +0 -38
  1315. data/generators/liquid_cms/templates/public/cms/codemirror/mode/jinja2/jinja2.js +0 -42
  1316. data/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/index.html +0 -72
  1317. data/generators/liquid_cms/templates/public/cms/codemirror/mode/lua/lua.js +0 -140
  1318. data/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/index.html +0 -340
  1319. data/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.css +0 -10
  1320. data/generators/liquid_cms/templates/public/cms/codemirror/mode/markdown/markdown.js +0 -230
  1321. data/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/index.html +0 -33
  1322. data/generators/liquid_cms/templates/public/cms/codemirror/mode/ntriples/ntriples.js +0 -172
  1323. data/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/LICENSE +0 -7
  1324. data/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/index.html +0 -49
  1325. data/generators/liquid_cms/templates/public/cms/codemirror/mode/pascal/pascal.js +0 -138
  1326. data/generators/liquid_cms/templates/public/cms/codemirror/mode/php/index.html +0 -49
  1327. data/generators/liquid_cms/templates/public/cms/codemirror/mode/php/php.js +0 -116
  1328. data/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/index.html +0 -63
  1329. data/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/plsql.js +0 -217
  1330. data/generators/liquid_cms/templates/public/cms/codemirror/mode/python/LICENSE.txt +0 -21
  1331. data/generators/liquid_cms/templates/public/cms/codemirror/mode/python/index.html +0 -123
  1332. data/generators/liquid_cms/templates/public/cms/codemirror/mode/python/python.js +0 -320
  1333. data/generators/liquid_cms/templates/public/cms/codemirror/mode/r/LICENSE +0 -24
  1334. data/generators/liquid_cms/templates/public/cms/codemirror/mode/r/index.html +0 -74
  1335. data/generators/liquid_cms/templates/public/cms/codemirror/mode/r/r.js +0 -141
  1336. data/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/index.html +0 -526
  1337. data/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.css +0 -75
  1338. data/generators/liquid_cms/templates/public/cms/codemirror/mode/rst/rst.js +0 -333
  1339. data/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/LICENSE +0 -24
  1340. data/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/index.html +0 -172
  1341. data/generators/liquid_cms/templates/public/cms/codemirror/mode/ruby/ruby.js +0 -195
  1342. data/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/index.html +0 -65
  1343. data/generators/liquid_cms/templates/public/cms/codemirror/mode/scheme/scheme.js +0 -202
  1344. data/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/index.html +0 -56
  1345. data/generators/liquid_cms/templates/public/cms/codemirror/mode/smalltalk/smalltalk.js +0 -122
  1346. data/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/index.html +0 -41
  1347. data/generators/liquid_cms/templates/public/cms/codemirror/mode/sparql/sparql.js +0 -143
  1348. data/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/index.html +0 -96
  1349. data/generators/liquid_cms/templates/public/cms/codemirror/mode/stex/stex.js +0 -167
  1350. data/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/index.html +0 -103
  1351. data/generators/liquid_cms/templates/public/cms/codemirror/mode/velocity/velocity.js +0 -146
  1352. data/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/index.html +0 -42
  1353. data/generators/liquid_cms/templates/public/cms/codemirror/mode/xml/xml.js +0 -231
  1354. data/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/index.html +0 -60
  1355. data/generators/liquid_cms/templates/public/cms/codemirror/mode/xmlpure/xmlpure.js +0 -481
  1356. data/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/index.html +0 -68
  1357. data/generators/liquid_cms/templates/public/cms/codemirror/mode/yaml/yaml.js +0 -95
  1358. data/generators/liquid_cms/templates/public/cms/codemirror/theme/cobalt.css +0 -17
  1359. data/generators/liquid_cms/templates/public/cms/codemirror/theme/default.css +0 -19
  1360. data/generators/liquid_cms/templates/public/cms/codemirror/theme/eclipse.css +0 -24
  1361. data/generators/liquid_cms/templates/public/cms/codemirror/theme/elegant.css +0 -9
  1362. data/generators/liquid_cms/templates/public/cms/codemirror/theme/neat.css +0 -8
  1363. data/generators/liquid_cms/templates/public/cms/codemirror/theme/night.css +0 -20
  1364. data/generators/liquid_cms/templates/public/cms/images/trentacinque.gif +0 -0
  1365. data/generators/liquid_cms/templates/public/cms/javascripts/cms.js +0 -35
  1366. data/generators/liquid_cms/templates/public/cms/javascripts/codemirror_custom.js +0 -96
  1367. data/generators/liquid_cms/templates/public/cms/javascripts/livepipe.js +0 -181
  1368. data/generators/liquid_cms/templates/public/cms/javascripts/tabs.js +0 -149
  1369. data/generators/liquid_cms/templates/public/cms/stylesheets/codemirror_changes.css +0 -26
  1370. data/generators/liquid_cms/templates/public/cms/stylesheets/ie9.css +0 -4
  1371. data/generators/liquid_cms/templates/public/cms/stylesheets/liquid.css +0 -7
  1372. data/generators/liquid_cms/templates/public/cms/stylesheets/sidebar.css +0 -150
  1373. data/generators/liquid_cms/templates/public/cms/stylesheets/simple_form.css +0 -146
  1374. data/generators/liquid_cms/templates/public/cms/stylesheets/styles.css +0 -152
  1375. data/generators/liquid_cms/templates/public/cms/stylesheets/themes/dark.css +0 -37
  1376. data/generators/liquid_cms/templates/vendor/plugins/cms_plugins/liquid/Rakefile +0 -43
  1377. data/rails/init.rb +0 -45
  1378. data/test/functional/components_controller_test.rb +0 -108
  1379. data/test/integration/pages_test_no_context.rb +0 -57
  1380. data/test/no_context_test_helper.rb +0 -3
  1381. data/test/rails_app/config/initializers/new_rails_defaults.rb +0 -21
  1382. data/test/rails_app/db/migrate/20110329201435_create_liquid_cms_upgrade_rev1.rb +0 -38
  1383. data/test/rails_app/db/migrate/20110511161859_create_liquid_cms_upgrade_rev2.rb +0 -13
  1384. data/test/rails_app/public/cms/images/indicator.gif +0 -0
  1385. data/test/rails_app/public/cms/javascripts/cookiejar.js +0 -157
  1386. data/test/rails_app/public/cms/javascripts/humanmsg.js +0 -89
  1387. data/test/rails_app/public/cms/stylesheets/clearfix.css +0 -8
  1388. data/test/rails_app/public/cms/stylesheets/documentation.css +0 -37
  1389. data/test/rails_app/public/cms/stylesheets/humanmsg.css +0 -122
  1390. data/test/rails_app/public/cms/stylesheets/ie.css +0 -2
  1391. data/test/rails_app/public/cms/stylesheets/liquidcolors.css +0 -36
  1392. data/test/rails_app/script/about +0 -4
  1393. data/test/rails_app/script/console +0 -3
  1394. data/test/rails_app/script/dbconsole +0 -3
  1395. data/test/rails_app/script/destroy +0 -3
  1396. data/test/rails_app/script/generate +0 -3
  1397. data/test/rails_app/script/performance/benchmarker +0 -3
  1398. data/test/rails_app/script/performance/profiler +0 -3
  1399. data/test/rails_app/script/plugin +0 -3
  1400. data/test/rails_app/script/runner +0 -3
  1401. data/test/rails_app/script/server +0 -3
  1402. data/test/test_helpers/asset_helpers.rb +0 -21
  1403. data/test/test_helpers/cache_helper.rb +0 -14
  1404. data/test/test_helpers/component_helpers.rb +0 -35
  1405. data/test/test_helpers/file_helpers.rb +0 -11
  1406. data/test/unit/component_test.rb +0 -71
  1407. data/test/unit/helpers/cms/common_helper_test.rb +0 -4
@@ -1,2197 +0,0 @@
1
- // All functions that need access to the editor's state live inside
2
- // the CodeMirror function. Below that, at the bottom of the file,
3
- // some utilities are defined.
4
-
5
- // CodeMirror is the only global var we claim
6
- var CodeMirror = (function() {
7
- // This is the function that produces an editor instance. It's
8
- // closure is used to store the editor state.
9
- function CodeMirror(place, givenOptions) {
10
- // Determine effective options based on given values and defaults.
11
- var options = {}, defaults = CodeMirror.defaults;
12
- for (var opt in defaults)
13
- if (defaults.hasOwnProperty(opt))
14
- options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];
15
-
16
- var targetDocument = options["document"];
17
- // The element in which the editor lives.
18
- var wrapper = targetDocument.createElement("div");
19
- wrapper.className = "CodeMirror";
20
- // This mess creates the base DOM structure for the editor.
21
- wrapper.innerHTML =
22
- '<div style="overflow: hidden; position: relative; width: 1px; height: 0px;">' + // Wraps and hides input textarea
23
- '<textarea style="position: absolute; width: 2px;" wrap="off" ' +
24
- 'autocorrect="off" autocapitalize="off"></textarea></div>' +
25
- '<div class="CodeMirror-scroll cm-s-' + options.theme + '">' +
26
- '<div style="position: relative">' + // Set to the height of the text, causes scrolling
27
- '<div style="position: absolute; height: 0; width: 0; overflow: hidden;"></div>' +
28
- '<div style="position: relative">' + // Moved around its parent to cover visible view
29
- '<div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div>' +
30
- // Provides positioning relative to (visible) text origin
31
- '<div class="CodeMirror-lines"><div style="position: relative" draggable="true">' +
32
- '<pre class="CodeMirror-cursor">&#160;</pre>' + // Absolutely positioned blinky cursor
33
- '<div></div>' + // This DIV contains the actual code
34
- '</div></div></div></div></div>';
35
- if (place.appendChild) place.appendChild(wrapper); else place(wrapper);
36
- // I've never seen more elegant code in my life.
37
- var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,
38
- scroller = wrapper.lastChild, code = scroller.firstChild,
39
- measure = code.firstChild, mover = measure.nextSibling,
40
- gutter = mover.firstChild, gutterText = gutter.firstChild,
41
- lineSpace = gutter.nextSibling.firstChild,
42
- cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling;
43
- if (options.tabindex != null) input.tabindex = options.tabindex;
44
- if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";
45
-
46
- // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.
47
- var poll = new Delayed(), highlight = new Delayed(), blinker;
48
-
49
- // mode holds a mode API object. lines an array of Line objects
50
- // (see Line constructor), work an array of lines that should be
51
- // parsed, and history the undo history (instance of History
52
- // constructor).
53
- var mode, lines = [new Line("")], work, history = new History(), focused;
54
- loadMode();
55
- // The selection. These are always maintained to point at valid
56
- // positions. Inverted is used to remember that the user is
57
- // selecting bottom-to-top.
58
- var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};
59
- // Selection-related flags. shiftSelecting obviously tracks
60
- // whether the user is holding shift. reducedSelection is a hack
61
- // to get around the fact that we can't create inverted
62
- // selections. See below.
63
- var shiftSelecting, reducedSelection, lastClick, lastDoubleClick;
64
- // Variables used by startOperation/endOperation to track what
65
- // happened during the operation.
66
- var updateInput, changes, textChanged, selectionChanged, leaveInputAlone, gutterDirty;
67
- // Current visible range (may be bigger than the view window).
68
- var showingFrom = 0, showingTo = 0, lastHeight = 0, curKeyId = null;
69
- // editing will hold an object describing the things we put in the
70
- // textarea, to help figure out whether something changed.
71
- // bracketHighlighted is used to remember that a backet has been
72
- // marked.
73
- var editing, bracketHighlighted;
74
- // Tracks the maximum line length so that the horizontal scrollbar
75
- // can be kept static when scrolling.
76
- var maxLine = "", maxWidth;
77
-
78
- // Initialize the content.
79
- operation(function(){setValue(options.value || ""); updateInput = false;})();
80
-
81
- // Register our event handlers.
82
- connect(scroller, "mousedown", operation(onMouseDown));
83
- connect(lineSpace, "dragstart", onDragStart);
84
- // Gecko browsers fire contextmenu *after* opening the menu, at
85
- // which point we can't mess with it anymore. Context menu is
86
- // handled in onMouseDown for Gecko.
87
- if (!gecko) connect(scroller, "contextmenu", onContextMenu);
88
- connect(scroller, "scroll", function() {
89
- updateDisplay([]);
90
- if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + "px";
91
- if (options.onScroll) options.onScroll(instance);
92
- });
93
- connect(window, "resize", function() {updateDisplay(true);});
94
- connect(input, "keyup", operation(onKeyUp));
95
- connect(input, "keydown", operation(onKeyDown));
96
- connect(input, "keypress", operation(onKeyPress));
97
- connect(input, "focus", onFocus);
98
- connect(input, "blur", onBlur);
99
-
100
- connect(scroller, "dragenter", e_stop);
101
- connect(scroller, "dragover", e_stop);
102
- connect(scroller, "drop", operation(onDrop));
103
- connect(scroller, "paste", function(){focusInput(); fastPoll();});
104
- connect(input, "paste", function(){fastPoll();});
105
- connect(input, "cut", function(){fastPoll();});
106
-
107
- // IE throws unspecified error in certain cases, when
108
- // trying to access activeElement before onload
109
- var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { }
110
- if (hasFocus) setTimeout(onFocus, 20);
111
- else onBlur();
112
-
113
- function isLine(l) {return l >= 0 && l < lines.length;}
114
- // The instance object that we'll return. Mostly calls out to
115
- // local functions in the CodeMirror function. Some do some extra
116
- // range checking and/or clipping. operation is used to wrap the
117
- // call so that changes it makes are tracked, and the display is
118
- // updated afterwards.
119
- var instance = wrapper.CodeMirror = {
120
- getValue: getValue,
121
- setValue: operation(setValue),
122
- getSelection: getSelection,
123
- replaceSelection: operation(replaceSelection),
124
- focus: function(){focusInput(); onFocus(); fastPoll();},
125
- setOption: function(option, value) {
126
- options[option] = value;
127
- if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber")
128
- operation(gutterChanged)();
129
- else if (option == "mode" || option == "indentUnit") loadMode();
130
- else if (option == "readOnly" && value == "nocursor") input.blur();
131
- else if (option == "theme") scroller.className = scroller.className.replace(/cm-s-\w+/, "cm-s-" + value);
132
- },
133
- getOption: function(option) {return options[option];},
134
- undo: operation(undo),
135
- redo: operation(redo),
136
- indentLine: operation(function(n, dir) {
137
- if (isLine(n)) indentLine(n, dir == null ? "smart" : dir ? "add" : "subtract");
138
- }),
139
- historySize: function() {return {undo: history.done.length, redo: history.undone.length};},
140
- matchBrackets: operation(function(){matchBrackets(true);}),
141
- getTokenAt: function(pos) {
142
- pos = clipPos(pos);
143
- return lines[pos.line].getTokenAt(mode, getStateBefore(pos.line), pos.ch);
144
- },
145
- getStateAfter: function(line) {
146
- line = clipLine(line == null ? lines.length - 1: line);
147
- return getStateBefore(line + 1);
148
- },
149
- cursorCoords: function(start){
150
- if (start == null) start = sel.inverted;
151
- return pageCoords(start ? sel.from : sel.to);
152
- },
153
- charCoords: function(pos){return pageCoords(clipPos(pos));},
154
- coordsChar: function(coords) {
155
- var off = eltOffset(lineSpace);
156
- var line = clipLine(Math.min(lines.length - 1, showingFrom + Math.floor((coords.y - off.top) / lineHeight())));
157
- return clipPos({line: line, ch: charFromX(clipLine(line), coords.x - off.left)});
158
- },
159
- getSearchCursor: function(query, pos, caseFold) {return new SearchCursor(query, pos, caseFold);},
160
- markText: operation(function(a, b, c){return operation(markText(a, b, c));}),
161
- setMarker: operation(addGutterMarker),
162
- clearMarker: operation(removeGutterMarker),
163
- setLineClass: operation(setLineClass),
164
- lineInfo: lineInfo,
165
- addWidget: function(pos, node, scroll, vert, horiz) {
166
- pos = localCoords(clipPos(pos));
167
- var top = pos.yBot, left = pos.x;
168
- node.style.position = "absolute";
169
- code.appendChild(node);
170
- if (vert == "over") top = pos.y;
171
- else if (vert == "near") {
172
- var vspace = Math.max(scroller.offsetHeight, lines.length * lineHeight()),
173
- hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();
174
- if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)
175
- top = pos.y - node.offsetHeight;
176
- if (left + node.offsetWidth > hspace)
177
- left = hspace - node.offsetWidth;
178
- }
179
- node.style.top = (top + paddingTop()) + "px";
180
- node.style.left = node.style.right = "";
181
- if (horiz == "right") {
182
- left = code.clientWidth - node.offsetWidth;
183
- node.style.right = "0px";
184
- } else {
185
- if (horiz == "left") left = 0;
186
- else if (horiz == "middle") left = (code.clientWidth - node.offsetWidth) / 2;
187
- node.style.left = (left + paddingLeft()) + "px";
188
- }
189
- if (scroll)
190
- scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);
191
- },
192
-
193
- lineCount: function() {return lines.length;},
194
- getCursor: function(start) {
195
- if (start == null) start = sel.inverted;
196
- return copyPos(start ? sel.from : sel.to);
197
- },
198
- somethingSelected: function() {return !posEq(sel.from, sel.to);},
199
- setCursor: operation(function(line, ch) {
200
- if (ch == null && typeof line.line == "number") setCursor(line.line, line.ch);
201
- else setCursor(line, ch);
202
- }),
203
- setSelection: operation(function(from, to) {setSelection(clipPos(from), clipPos(to || from));}),
204
- getLine: function(line) {if (isLine(line)) return lines[line].text;},
205
- setLine: operation(function(line, text) {
206
- if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: lines[line].text.length});
207
- }),
208
- removeLine: operation(function(line) {
209
- if (isLine(line)) replaceRange("", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));
210
- }),
211
- replaceRange: operation(replaceRange),
212
- getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},
213
-
214
- operation: function(f){return operation(f)();},
215
- refresh: function(){updateDisplay(true);},
216
- getInputField: function(){return input;},
217
- getWrapperElement: function(){return wrapper;},
218
- getScrollerElement: function(){return scroller;},
219
- getGutterElement: function(){return gutter;}
220
- };
221
-
222
- function setValue(code) {
223
- history = null;
224
- var top = {line: 0, ch: 0};
225
- updateLines(top, {line: lines.length - 1, ch: lines[lines.length-1].text.length},
226
- splitLines(code), top, top);
227
- history = new History();
228
- updateInput = true;
229
- }
230
- function getValue(code) {
231
- var text = [];
232
- for (var i = 0, l = lines.length; i < l; ++i)
233
- text.push(lines[i].text);
234
- return text.join("\n");
235
- }
236
-
237
- function onMouseDown(e) {
238
- // Check whether this is a click in a widget
239
- for (var n = e_target(e); n != wrapper; n = n.parentNode)
240
- if (n.parentNode == code && n != mover) return;
241
-
242
- // First, see if this is a click in the gutter
243
- for (var n = e_target(e); n != wrapper; n = n.parentNode)
244
- if (n.parentNode == gutterText) {
245
- if (options.onGutterClick)
246
- options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);
247
- return e_preventDefault(e);
248
- }
249
-
250
- var start = posFromMouse(e);
251
-
252
- switch (e_button(e)) {
253
- case 3:
254
- if (gecko && !mac) onContextMenu(e);
255
- return;
256
- case 2:
257
- if (start) setCursor(start.line, start.ch, true);
258
- return;
259
- }
260
- // For button 1, if it was clicked inside the editor
261
- // (posFromMouse returning non-null), we have to adjust the
262
- // selection.
263
- if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}
264
-
265
- if (!focused) onFocus();
266
-
267
- var now = +new Date;
268
- if (lastDoubleClick > now - 400) {
269
- e_preventDefault(e);
270
- return selectLine(start.line);
271
- } else if (lastClick > now - 400) {
272
- lastDoubleClick = now;
273
- e_preventDefault(e);
274
- return selectWordAt(start);
275
- } else { lastClick = now; }
276
-
277
- var last = start, going;
278
- if (dragAndDrop && !posEq(sel.from, sel.to) &&
279
- !posLess(start, sel.from) && !posLess(sel.to, start)) {
280
- // Let the drag handler handle this.
281
- return;
282
- }
283
- e_preventDefault(e);
284
- setCursor(start.line, start.ch, true);
285
-
286
- function extend(e) {
287
- var cur = posFromMouse(e, true);
288
- if (cur && !posEq(cur, last)) {
289
- if (!focused) onFocus();
290
- last = cur;
291
- setSelectionUser(start, cur);
292
- updateInput = false;
293
- var visible = visibleLines();
294
- if (cur.line >= visible.to || cur.line < visible.from)
295
- going = setTimeout(operation(function(){extend(e);}), 150);
296
- }
297
- }
298
-
299
- var move = connect(targetDocument, "mousemove", operation(function(e) {
300
- clearTimeout(going);
301
- e_preventDefault(e);
302
- extend(e);
303
- }), true);
304
- var up = connect(targetDocument, "mouseup", operation(function(e) {
305
- clearTimeout(going);
306
- var cur = posFromMouse(e);
307
- if (cur) setSelectionUser(start, cur);
308
- e_preventDefault(e);
309
- focusInput();
310
- updateInput = true;
311
- move(); up();
312
- }), true);
313
- }
314
- function onDrop(e) {
315
- e.preventDefault();
316
- var pos = posFromMouse(e, true), files = e.dataTransfer.files;
317
- if (!pos || options.readOnly) return;
318
- if (files && files.length && window.FileReader && window.File) {
319
- function loadFile(file, i) {
320
- var reader = new FileReader;
321
- reader.onload = function() {
322
- text[i] = reader.result;
323
- if (++read == n) replaceRange(text.join(""), clipPos(pos), clipPos(pos));
324
- };
325
- reader.readAsText(file);
326
- }
327
- var n = files.length, text = Array(n), read = 0;
328
- for (var i = 0; i < n; ++i) loadFile(files[i], i);
329
- }
330
- else {
331
- try {
332
- var text = e.dataTransfer.getData("Text");
333
- if (text) replaceRange(text, pos, pos);
334
- }
335
- catch(e){}
336
- }
337
- }
338
- function onDragStart(e) {
339
- var txt = getSelection();
340
- // This will reset escapeElement
341
- htmlEscape(txt);
342
- e.dataTransfer.setDragImage(escapeElement, 0, 0);
343
- e.dataTransfer.setData("Text", txt);
344
- }
345
- function onKeyDown(e) {
346
- if (!focused) onFocus();
347
-
348
- var code = e.keyCode;
349
- // IE does strange things with escape.
350
- if (ie && code == 27) { e.returnValue = false; }
351
- // Tries to detect ctrl on non-mac, cmd on mac.
352
- var mod = (mac ? e.metaKey : e.ctrlKey) && !e.altKey, anyMod = e.ctrlKey || e.altKey || e.metaKey;
353
- if (code == 16 || e.shiftKey) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);
354
- else shiftSelecting = null;
355
- // First give onKeyEvent option a chance to handle this.
356
- if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
357
-
358
- if (code == 33 || code == 34) {scrollPage(code == 34); return e_preventDefault(e);} // page up/down
359
- if (mod && ((code == 36 || code == 35) || // ctrl-home/end
360
- mac && (code == 38 || code == 40))) { // cmd-up/down
361
- scrollEnd(code == 36 || code == 38); return e_preventDefault(e);
362
- }
363
- if (mod && code == 65) {selectAll(); return e_preventDefault(e);} // ctrl-a
364
- if (!options.readOnly) {
365
- if (!anyMod && code == 13) {return;} // enter
366
- if (!anyMod && code == 9 && handleTab(e.shiftKey)) return e_preventDefault(e); // tab
367
- if (mod && code == 90) {undo(); return e_preventDefault(e);} // ctrl-z
368
- if (mod && ((e.shiftKey && code == 90) || code == 89)) {redo(); return e_preventDefault(e);} // ctrl-shift-z, ctrl-y
369
- }
370
- if (code == 36) { if (options.smartHome) { smartHome(); return e_preventDefault(e); } }
371
-
372
- // Key id to use in the movementKeys map. We also pass it to
373
- // fastPoll in order to 'self learn'. We need this because
374
- // reducedSelection, the hack where we collapse the selection to
375
- // its start when it is inverted and a movement key is pressed
376
- // (and later restore it again), shouldn't be used for
377
- // non-movement keys.
378
- curKeyId = (mod ? "c" : "") + (e.altKey ? "a" : "") + code;
379
- if (sel.inverted && movementKeys[curKeyId] === true) {
380
- var range = selRange(input);
381
- if (range) {
382
- reducedSelection = {anchor: range.start};
383
- setSelRange(input, range.start, range.start);
384
- }
385
- }
386
- // Don't save the key as a movementkey unless it had a modifier
387
- if (!mod && !e.altKey) curKeyId = null;
388
- fastPoll(curKeyId);
389
- }
390
- function onKeyUp(e) {
391
- if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
392
- if (reducedSelection) {
393
- reducedSelection = null;
394
- updateInput = true;
395
- }
396
- if (e.keyCode == 16) shiftSelecting = null;
397
- }
398
- function onKeyPress(e) {
399
- if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
400
- if (options.electricChars && mode.electricChars) {
401
- var ch = String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode);
402
- if (mode.electricChars.indexOf(ch) > -1)
403
- setTimeout(operation(function() {indentLine(sel.to.line, "smart");}), 50);
404
- }
405
- var code = e.keyCode;
406
- // Re-stop tab and enter. Necessary on some browsers.
407
- if (code == 13) {if (!options.readOnly) handleEnter(); e_preventDefault(e);}
408
- else if (!e.ctrlKey && !e.altKey && !e.metaKey && code == 9 && options.tabMode != "default") e_preventDefault(e);
409
- else fastPoll(curKeyId);
410
- }
411
-
412
- function onFocus() {
413
- if (options.readOnly == "nocursor") return;
414
- if (!focused) {
415
- if (options.onFocus) options.onFocus(instance);
416
- focused = true;
417
- if (wrapper.className.search(/\bCodeMirror-focused\b/) == -1)
418
- wrapper.className += " CodeMirror-focused";
419
- if (!leaveInputAlone) prepareInput();
420
- }
421
- slowPoll();
422
- restartBlink();
423
- }
424
- function onBlur() {
425
- if (focused) {
426
- if (options.onBlur) options.onBlur(instance);
427
- focused = false;
428
- wrapper.className = wrapper.className.replace(" CodeMirror-focused", "");
429
- }
430
- clearInterval(blinker);
431
- setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);
432
- }
433
-
434
- // Replace the range from from to to by the strings in newText.
435
- // Afterwards, set the selection to selFrom, selTo.
436
- function updateLines(from, to, newText, selFrom, selTo) {
437
- if (history) {
438
- var old = [];
439
- for (var i = from.line, e = to.line + 1; i < e; ++i) old.push(lines[i].text);
440
- history.addChange(from.line, newText.length, old);
441
- while (history.done.length > options.undoDepth) history.done.shift();
442
- }
443
- updateLinesNoUndo(from, to, newText, selFrom, selTo);
444
- }
445
- function unredoHelper(from, to) {
446
- var change = from.pop();
447
- if (change) {
448
- var replaced = [], end = change.start + change.added;
449
- for (var i = change.start; i < end; ++i) replaced.push(lines[i].text);
450
- to.push({start: change.start, added: change.old.length, old: replaced});
451
- var pos = clipPos({line: change.start + change.old.length - 1,
452
- ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});
453
- updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: lines[end-1].text.length}, change.old, pos, pos);
454
- updateInput = true;
455
- }
456
- }
457
- function undo() {unredoHelper(history.done, history.undone);}
458
- function redo() {unredoHelper(history.undone, history.done);}
459
-
460
- function updateLinesNoUndo(from, to, newText, selFrom, selTo) {
461
- var recomputeMaxLength = false, maxLineLength = maxLine.length;
462
- for (var i = from.line; i <= to.line; ++i) {
463
- if (lines[i].text.length == maxLineLength) {recomputeMaxLength = true; break;}
464
- }
465
-
466
- var nlines = to.line - from.line, firstLine = lines[from.line], lastLine = lines[to.line];
467
- // First adjust the line structure, taking some care to leave highlighting intact.
468
- if (firstLine == lastLine) {
469
- if (newText.length == 1)
470
- firstLine.replace(from.ch, to.ch, newText[0]);
471
- else {
472
- lastLine = firstLine.split(to.ch, newText[newText.length-1]);
473
- var spliceargs = [from.line + 1, nlines];
474
- firstLine.replace(from.ch, firstLine.text.length, newText[0]);
475
- for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));
476
- spliceargs.push(lastLine);
477
- lines.splice.apply(lines, spliceargs);
478
- }
479
- }
480
- else if (newText.length == 1) {
481
- firstLine.replace(from.ch, firstLine.text.length, newText[0] + lastLine.text.slice(to.ch));
482
- lines.splice(from.line + 1, nlines);
483
- }
484
- else {
485
- var spliceargs = [from.line + 1, nlines - 1];
486
- firstLine.replace(from.ch, firstLine.text.length, newText[0]);
487
- lastLine.replace(0, to.ch, newText[newText.length-1]);
488
- for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));
489
- lines.splice.apply(lines, spliceargs);
490
- }
491
-
492
-
493
- for (var i = from.line, e = i + newText.length; i < e; ++i) {
494
- var l = lines[i].text;
495
- if (l.length > maxLineLength) {
496
- maxLine = l; maxLineLength = l.length; maxWidth = null;
497
- recomputeMaxLength = false;
498
- }
499
- }
500
- if (recomputeMaxLength) {
501
- maxLineLength = 0; maxLine = ""; maxWidth = null;
502
- for (var i = 0, e = lines.length; i < e; ++i) {
503
- var l = lines[i].text;
504
- if (l.length > maxLineLength) {
505
- maxLineLength = l.length; maxLine = l;
506
- }
507
- }
508
- }
509
-
510
- // Add these lines to the work array, so that they will be
511
- // highlighted. Adjust work lines if lines were added/removed.
512
- var newWork = [], lendiff = newText.length - nlines - 1;
513
- for (var i = 0, l = work.length; i < l; ++i) {
514
- var task = work[i];
515
- if (task < from.line) newWork.push(task);
516
- else if (task > to.line) newWork.push(task + lendiff);
517
- }
518
- if (newText.length < 5) {
519
- highlightLines(from.line, from.line + newText.length);
520
- newWork.push(from.line + newText.length);
521
- } else {
522
- newWork.push(from.line);
523
- }
524
- work = newWork;
525
- startWorker(100);
526
- // Remember that these lines changed, for updating the display
527
- changes.push({from: from.line, to: to.line + 1, diff: lendiff});
528
- textChanged = {from: from, to: to, text: newText};
529
-
530
- // Update the selection
531
- function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}
532
- setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));
533
-
534
- // Make sure the scroll-size div has the correct height.
535
- code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + "px";
536
- }
537
-
538
- function replaceRange(code, from, to) {
539
- from = clipPos(from);
540
- if (!to) to = from; else to = clipPos(to);
541
- code = splitLines(code);
542
- function adjustPos(pos) {
543
- if (posLess(pos, from)) return pos;
544
- if (!posLess(to, pos)) return end;
545
- var line = pos.line + code.length - (to.line - from.line) - 1;
546
- var ch = pos.ch;
547
- if (pos.line == to.line)
548
- ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));
549
- return {line: line, ch: ch};
550
- }
551
- var end;
552
- replaceRange1(code, from, to, function(end1) {
553
- end = end1;
554
- return {from: adjustPos(sel.from), to: adjustPos(sel.to)};
555
- });
556
- return end;
557
- }
558
- function replaceSelection(code, collapse) {
559
- replaceRange1(splitLines(code), sel.from, sel.to, function(end) {
560
- if (collapse == "end") return {from: end, to: end};
561
- else if (collapse == "start") return {from: sel.from, to: sel.from};
562
- else return {from: sel.from, to: end};
563
- });
564
- }
565
- function replaceRange1(code, from, to, computeSel) {
566
- var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;
567
- var newSel = computeSel({line: from.line + code.length - 1, ch: endch});
568
- updateLines(from, to, code, newSel.from, newSel.to);
569
- }
570
-
571
- function getRange(from, to) {
572
- var l1 = from.line, l2 = to.line;
573
- if (l1 == l2) return lines[l1].text.slice(from.ch, to.ch);
574
- var code = [lines[l1].text.slice(from.ch)];
575
- for (var i = l1 + 1; i < l2; ++i) code.push(lines[i].text);
576
- code.push(lines[l2].text.slice(0, to.ch));
577
- return code.join("\n");
578
- }
579
- function getSelection() {
580
- return getRange(sel.from, sel.to);
581
- }
582
-
583
- var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll
584
- function slowPoll() {
585
- if (pollingFast) return;
586
- poll.set(2000, function() {
587
- startOperation();
588
- readInput();
589
- if (focused) slowPoll();
590
- endOperation();
591
- });
592
- }
593
- function fastPoll(keyId) {
594
- var missed = false;
595
- pollingFast = true;
596
- function p() {
597
- startOperation();
598
- var changed = readInput();
599
- if (changed && keyId) {
600
- if (changed == "moved" && movementKeys[keyId] == null) movementKeys[keyId] = true;
601
- if (changed == "changed") movementKeys[keyId] = false;
602
- }
603
- if (!changed && !missed) {missed = true; poll.set(80, p);}
604
- else {pollingFast = false; slowPoll();}
605
- endOperation();
606
- }
607
- poll.set(20, p);
608
- }
609
-
610
- // Inspects the textarea, compares its state (content, selection)
611
- // to the data in the editing variable, and updates the editor
612
- // content or cursor if something changed.
613
- function readInput() {
614
- if (leaveInputAlone || !focused) return;
615
- var changed = false, text = input.value, sr = selRange(input);
616
- if (!sr) return false;
617
- var changed = editing.text != text, rs = reducedSelection;
618
- var moved = changed || sr.start != editing.start || sr.end != (rs ? editing.start : editing.end);
619
- if (!moved && !rs) return false;
620
- if (changed) {
621
- shiftSelecting = reducedSelection = null;
622
- if (options.readOnly) {updateInput = true; return "changed";}
623
- }
624
-
625
- // Compute selection start and end based on start/end offsets in textarea
626
- function computeOffset(n, startLine) {
627
- var pos = 0;
628
- for (;;) {
629
- var found = text.indexOf("\n", pos);
630
- if (found == -1 || (text.charAt(found-1) == "\r" ? found - 1 : found) >= n)
631
- return {line: startLine, ch: n - pos};
632
- ++startLine;
633
- pos = found + 1;
634
- }
635
- }
636
- var from = computeOffset(sr.start, editing.from),
637
- to = computeOffset(sr.end, editing.from);
638
- // Here we have to take the reducedSelection hack into account,
639
- // so that you can, for example, press shift-up at the start of
640
- // your selection and have the right thing happen.
641
- if (rs) {
642
- var head = sr.start == rs.anchor ? to : from;
643
- var tail = shiftSelecting ? sel.to : sr.start == rs.anchor ? from : to;
644
- if (sel.inverted = posLess(head, tail)) { from = head; to = tail; }
645
- else { reducedSelection = null; from = tail; to = head; }
646
- }
647
-
648
- // In some cases (cursor on same line as before), we don't have
649
- // to update the textarea content at all.
650
- if (from.line == to.line && from.line == sel.from.line && from.line == sel.to.line && !shiftSelecting)
651
- updateInput = false;
652
-
653
- // Magic mess to extract precise edited range from the changed
654
- // string.
655
- if (changed) {
656
- var start = 0, end = text.length, len = Math.min(end, editing.text.length);
657
- var c, line = editing.from, nl = -1;
658
- while (start < len && (c = text.charAt(start)) == editing.text.charAt(start)) {
659
- ++start;
660
- if (c == "\n") {line++; nl = start;}
661
- }
662
- var ch = nl > -1 ? start - nl : start, endline = editing.to - 1, edend = editing.text.length;
663
- for (;;) {
664
- c = editing.text.charAt(edend);
665
- if (text.charAt(end) != c) {++end; ++edend; break;}
666
- if (c == "\n") endline--;
667
- if (edend <= start || end <= start) break;
668
- --end; --edend;
669
- }
670
- var nl = editing.text.lastIndexOf("\n", edend - 1), endch = nl == -1 ? edend : edend - nl - 1;
671
- updateLines({line: line, ch: ch}, {line: endline, ch: endch}, splitLines(text.slice(start, end)), from, to);
672
- if (line != endline || from.line != line) updateInput = true;
673
- }
674
- else setSelection(from, to);
675
-
676
- editing.text = text; editing.start = sr.start; editing.end = sr.end;
677
- return changed ? "changed" : moved ? "moved" : false;
678
- }
679
-
680
- // Set the textarea content and selection range to match the
681
- // editor state.
682
- function prepareInput() {
683
- var text = [];
684
- var from = Math.max(0, sel.from.line - 1), to = Math.min(lines.length, sel.to.line + 2);
685
- for (var i = from; i < to; ++i) text.push(lines[i].text);
686
- text = input.value = text.join(lineSep);
687
- var startch = sel.from.ch, endch = sel.to.ch;
688
- for (var i = from; i < sel.from.line; ++i)
689
- startch += lineSep.length + lines[i].text.length;
690
- for (var i = from; i < sel.to.line; ++i)
691
- endch += lineSep.length + lines[i].text.length;
692
- editing = {text: text, from: from, to: to, start: startch, end: endch};
693
- setSelRange(input, startch, reducedSelection ? startch : endch);
694
- }
695
- function focusInput() {
696
- if (options.readOnly != "nocursor") input.focus();
697
- }
698
-
699
- function scrollEditorIntoView() {
700
- if (!cursor.getBoundingClientRect) return;
701
- var rect = cursor.getBoundingClientRect();
702
- var winH = window.innerHeight || document.body.offsetHeight || document.documentElement.offsetHeight;
703
- if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();
704
- }
705
- function scrollCursorIntoView() {
706
- var cursor = localCoords(sel.inverted ? sel.from : sel.to);
707
- return scrollIntoView(cursor.x, cursor.y, cursor.x, cursor.yBot);
708
- }
709
- function scrollIntoView(x1, y1, x2, y2) {
710
- var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight();
711
- y1 += pt; y2 += pt; x1 += pl; x2 += pl;
712
- var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;
713
- if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;}
714
- else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;}
715
-
716
- var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;
717
- var gutterw = options.fixedGutter ? gutter.clientWidth : 0;
718
- if (x1 < screenleft + gutterw) {
719
- if (x1 < 50) x1 = 0;
720
- scroller.scrollLeft = Math.max(0, x1 - 10 - gutterw);
721
- scrolled = true;
722
- }
723
- else if (x2 > screenw + screenleft) {
724
- scroller.scrollLeft = x2 + 10 - screenw;
725
- scrolled = true;
726
- if (x2 > code.clientWidth) result = false;
727
- }
728
- if (scrolled && options.onScroll) options.onScroll(instance);
729
- return result;
730
- }
731
-
732
- function visibleLines() {
733
- var lh = lineHeight(), top = scroller.scrollTop - paddingTop();
734
- return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))),
735
- to: Math.min(lines.length, Math.ceil((top + scroller.clientHeight) / lh))};
736
- }
737
- // Uses a set of changes plus the current scroll position to
738
- // determine which DOM updates have to be made, and makes the
739
- // updates.
740
- function updateDisplay(changes) {
741
- if (!scroller.clientWidth) {
742
- showingFrom = showingTo = 0;
743
- return;
744
- }
745
- // First create a range of theoretically intact lines, and punch
746
- // holes in that using the change info.
747
- var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];
748
- for (var i = 0, l = changes.length || 0; i < l; ++i) {
749
- var change = changes[i], intact2 = [], diff = change.diff || 0;
750
- for (var j = 0, l2 = intact.length; j < l2; ++j) {
751
- var range = intact[j];
752
- if (change.to <= range.from)
753
- intact2.push({from: range.from + diff, to: range.to + diff, domStart: range.domStart});
754
- else if (range.to <= change.from)
755
- intact2.push(range);
756
- else {
757
- if (change.from > range.from)
758
- intact2.push({from: range.from, to: change.from, domStart: range.domStart})
759
- if (change.to < range.to)
760
- intact2.push({from: change.to + diff, to: range.to + diff,
761
- domStart: range.domStart + (change.to - range.from)});
762
- }
763
- }
764
- intact = intact2;
765
- }
766
-
767
- // Then, determine which lines we'd want to see, and which
768
- // updates have to be made to get there.
769
- var visible = visibleLines();
770
- var from = Math.min(showingFrom, Math.max(visible.from - 3, 0)),
771
- to = Math.min(lines.length, Math.max(showingTo, visible.to + 3)),
772
- updates = [], domPos = 0, domEnd = showingTo - showingFrom, pos = from, changedLines = 0;
773
-
774
- for (var i = 0, l = intact.length; i < l; ++i) {
775
- var range = intact[i];
776
- if (range.to <= from) continue;
777
- if (range.from >= to) break;
778
- if (range.domStart > domPos || range.from > pos) {
779
- updates.push({from: pos, to: range.from, domSize: range.domStart - domPos, domStart: domPos});
780
- changedLines += range.from - pos;
781
- }
782
- pos = range.to;
783
- domPos = range.domStart + (range.to - range.from);
784
- }
785
- if (domPos != domEnd || pos != to) {
786
- changedLines += Math.abs(to - pos);
787
- updates.push({from: pos, to: to, domSize: domEnd - domPos, domStart: domPos});
788
- if (to - pos != domEnd - domPos) gutterDirty = true;
789
- }
790
-
791
- if (!updates.length) return;
792
- lineDiv.style.display = "none";
793
- // If more than 30% of the screen needs update, just do a full
794
- // redraw (which is quicker than patching)
795
- if (changedLines > (visible.to - visible.from) * .3)
796
- refreshDisplay(from = Math.max(visible.from - 10, 0), to = Math.min(visible.to + 7, lines.length));
797
- // Otherwise, only update the stuff that needs updating.
798
- else
799
- patchDisplay(updates);
800
- lineDiv.style.display = "";
801
-
802
- // Position the mover div to align with the lines it's supposed
803
- // to be showing (which will cover the visible display)
804
- var different = from != showingFrom || to != showingTo || lastHeight != scroller.clientHeight;
805
- showingFrom = from; showingTo = to;
806
- mover.style.top = (from * lineHeight()) + "px";
807
- if (different) {
808
- lastHeight = scroller.clientHeight;
809
- code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + "px";
810
- }
811
- if (different || gutterDirty) updateGutter();
812
-
813
- if (maxWidth == null) maxWidth = stringWidth(maxLine);
814
- if (maxWidth > scroller.clientWidth) {
815
- lineSpace.style.width = maxWidth + "px";
816
- // Needed to prevent odd wrapping/hiding of widgets placed in here.
817
- code.style.width = "";
818
- code.style.width = scroller.scrollWidth + "px";
819
- } else {
820
- lineSpace.style.width = code.style.width = "";
821
- }
822
-
823
- // Since this is all rather error prone, it is honoured with the
824
- // only assertion in the whole file.
825
- if (lineDiv.childNodes.length != showingTo - showingFrom)
826
- throw new Error("BAD PATCH! " + JSON.stringify(updates) + " size=" + (showingTo - showingFrom) +
827
- " nodes=" + lineDiv.childNodes.length);
828
- updateCursor();
829
- }
830
-
831
- function refreshDisplay(from, to) {
832
- var html = [], start = {line: from, ch: 0}, inSel = posLess(sel.from, start) && !posLess(sel.to, start);
833
- for (var i = from; i < to; ++i) {
834
- var ch1 = null, ch2 = null;
835
- if (inSel) {
836
- ch1 = 0;
837
- if (sel.to.line == i) {inSel = false; ch2 = sel.to.ch;}
838
- }
839
- else if (sel.from.line == i) {
840
- if (sel.to.line == i) {ch1 = sel.from.ch; ch2 = sel.to.ch;}
841
- else {inSel = true; ch1 = sel.from.ch;}
842
- }
843
- html.push(lines[i].getHTML(ch1, ch2, true));
844
- }
845
- lineDiv.innerHTML = html.join("");
846
- }
847
- function patchDisplay(updates) {
848
- // Slightly different algorithm for IE (badInnerHTML), since
849
- // there .innerHTML on PRE nodes is dumb, and discards
850
- // whitespace.
851
- var sfrom = sel.from.line, sto = sel.to.line, off = 0,
852
- scratch = badInnerHTML && targetDocument.createElement("div");
853
- for (var i = 0, e = updates.length; i < e; ++i) {
854
- var rec = updates[i];
855
- var extra = (rec.to - rec.from) - rec.domSize;
856
- var nodeAfter = lineDiv.childNodes[rec.domStart + rec.domSize + off] || null;
857
- if (badInnerHTML)
858
- for (var j = Math.max(-extra, rec.domSize); j > 0; --j)
859
- lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);
860
- else if (extra) {
861
- for (var j = Math.max(0, extra); j > 0; --j)
862
- lineDiv.insertBefore(targetDocument.createElement("pre"), nodeAfter);
863
- for (var j = Math.max(0, -extra); j > 0; --j)
864
- lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);
865
- }
866
- var node = lineDiv.childNodes[rec.domStart + off], inSel = sfrom < rec.from && sto >= rec.from;
867
- for (var j = rec.from; j < rec.to; ++j) {
868
- var ch1 = null, ch2 = null;
869
- if (inSel) {
870
- ch1 = 0;
871
- if (sto == j) {inSel = false; ch2 = sel.to.ch;}
872
- }
873
- else if (sfrom == j) {
874
- if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;}
875
- else {inSel = true; ch1 = sel.from.ch;}
876
- }
877
- if (badInnerHTML) {
878
- scratch.innerHTML = lines[j].getHTML(ch1, ch2, true);
879
- lineDiv.insertBefore(scratch.firstChild, nodeAfter);
880
- }
881
- else {
882
- node.innerHTML = lines[j].getHTML(ch1, ch2, false);
883
- node.className = lines[j].className || "";
884
- node = node.nextSibling;
885
- }
886
- }
887
- off += extra;
888
- }
889
- }
890
-
891
- function updateGutter() {
892
- if (!options.gutter && !options.lineNumbers) return;
893
- var hText = mover.offsetHeight, hEditor = scroller.clientHeight;
894
- gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px";
895
- var html = [];
896
- for (var i = showingFrom; i < Math.max(showingTo, showingFrom + 1); ++i) {
897
- var marker = lines[i].gutterMarker;
898
- var text = options.lineNumbers ? i + options.firstLineNumber : null;
899
- if (marker && marker.text)
900
- text = marker.text.replace("%N%", text != null ? text : "");
901
- else if (text == null)
902
- text = "\u00a0";
903
- html.push((marker && marker.style ? '<pre class="' + marker.style + '">' : "<pre>"), text, "</pre>");
904
- }
905
- gutter.style.display = "none";
906
- gutterText.innerHTML = html.join("");
907
- var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = "";
908
- while (val.length + pad.length < minwidth) pad += "\u00a0";
909
- if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild);
910
- gutter.style.display = "";
911
- lineSpace.style.marginLeft = gutter.offsetWidth + "px";
912
- gutterDirty = false;
913
- }
914
- function updateCursor() {
915
- var head = sel.inverted ? sel.from : sel.to, lh = lineHeight();
916
- var x = charX(head.line, head.ch);
917
- var top = head.line * lh - scroller.scrollTop;
918
- inputDiv.style.top = Math.max(Math.min(top, scroller.offsetHeight), 0) + "px";
919
- inputDiv.style.left = (x - scroller.scrollLeft) + "px";
920
- if (posEq(sel.from, sel.to)) {
921
- cursor.style.top = (head.line - showingFrom) * lh + "px";
922
- cursor.style.left = x + "px";
923
- cursor.style.display = "";
924
- }
925
- else cursor.style.display = "none";
926
- }
927
-
928
- function setSelectionUser(from, to) {
929
- var sh = shiftSelecting && clipPos(shiftSelecting);
930
- if (sh) {
931
- if (posLess(sh, from)) from = sh;
932
- else if (posLess(to, sh)) to = sh;
933
- }
934
- setSelection(from, to);
935
- }
936
- // Update the selection. Last two args are only used by
937
- // updateLines, since they have to be expressed in the line
938
- // numbers before the update.
939
- function setSelection(from, to, oldFrom, oldTo) {
940
- if (posEq(sel.from, from) && posEq(sel.to, to)) return;
941
- if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}
942
-
943
- if (posEq(from, to)) sel.inverted = false;
944
- else if (posEq(from, sel.to)) sel.inverted = false;
945
- else if (posEq(to, sel.from)) sel.inverted = true;
946
-
947
- // Some ugly logic used to only mark the lines that actually did
948
- // see a change in selection as changed, rather than the whole
949
- // selected range.
950
- if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}
951
- if (posEq(from, to)) {
952
- if (!posEq(sel.from, sel.to))
953
- changes.push({from: oldFrom, to: oldTo + 1});
954
- }
955
- else if (posEq(sel.from, sel.to)) {
956
- changes.push({from: from.line, to: to.line + 1});
957
- }
958
- else {
959
- if (!posEq(from, sel.from)) {
960
- if (from.line < oldFrom)
961
- changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1});
962
- else
963
- changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1});
964
- }
965
- if (!posEq(to, sel.to)) {
966
- if (to.line < oldTo)
967
- changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1});
968
- else
969
- changes.push({from: Math.max(from.line, oldTo), to: to.line + 1});
970
- }
971
- }
972
- sel.from = from; sel.to = to;
973
- selectionChanged = true;
974
- }
975
- function setCursor(line, ch, user) {
976
- var pos = clipPos({line: line, ch: ch || 0});
977
- (user ? setSelectionUser : setSelection)(pos, pos);
978
- }
979
-
980
- function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));}
981
- function clipPos(pos) {
982
- if (pos.line < 0) return {line: 0, ch: 0};
983
- if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length};
984
- var ch = pos.ch, linelen = lines[pos.line].text.length;
985
- if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};
986
- else if (ch < 0) return {line: pos.line, ch: 0};
987
- else return pos;
988
- }
989
-
990
- function scrollPage(down) {
991
- var linesPerPage = Math.floor(scroller.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to;
992
- setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true);
993
- }
994
- function scrollEnd(top) {
995
- var pos = top ? {line: 0, ch: 0} : {line: lines.length - 1, ch: lines[lines.length-1].text.length};
996
- setSelectionUser(pos, pos);
997
- }
998
- function selectAll() {
999
- var endLine = lines.length - 1;
1000
- setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length});
1001
- }
1002
- function selectWordAt(pos) {
1003
- var line = lines[pos.line].text;
1004
- var start = pos.ch, end = pos.ch;
1005
- while (start > 0 && /\w/.test(line.charAt(start - 1))) --start;
1006
- while (end < line.length && /\w/.test(line.charAt(end))) ++end;
1007
- setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});
1008
- }
1009
- function selectLine(line) {
1010
- setSelectionUser({line: line, ch: 0}, {line: line, ch: lines[line].text.length});
1011
- }
1012
- function handleEnter() {
1013
- replaceSelection("\n", "end");
1014
- if (options.enterMode != "flat")
1015
- indentLine(sel.from.line, options.enterMode == "keep" ? "prev" : "smart");
1016
- }
1017
- function handleTab(shift) {
1018
- function indentSelected(mode) {
1019
- if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
1020
- var e = sel.to.line - (sel.to.ch ? 0 : 1);
1021
- for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);
1022
- }
1023
- shiftSelecting = null;
1024
- switch (options.tabMode) {
1025
- case "default":
1026
- return false;
1027
- case "indent":
1028
- indentSelected("smart");
1029
- break;
1030
- case "classic":
1031
- if (posEq(sel.from, sel.to)) {
1032
- if (shift) indentLine(sel.from.line, "smart");
1033
- else replaceSelection("\t", "end");
1034
- break;
1035
- }
1036
- case "shift":
1037
- indentSelected(shift ? "subtract" : "add");
1038
- break;
1039
- }
1040
- return true;
1041
- }
1042
- function smartHome() {
1043
- var firstNonWS = Math.max(0, lines[sel.from.line].text.search(/\S/));
1044
- setCursor(sel.from.line, sel.from.ch <= firstNonWS && sel.from.ch ? 0 : firstNonWS, true);
1045
- }
1046
-
1047
- function indentLine(n, how) {
1048
- if (how == "smart") {
1049
- if (!mode.indent) how = "prev";
1050
- else var state = getStateBefore(n);
1051
- }
1052
-
1053
- var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\s*/)[0], indentation;
1054
- if (how == "prev") {
1055
- if (n) indentation = lines[n-1].indentation();
1056
- else indentation = 0;
1057
- }
1058
- else if (how == "smart") indentation = mode.indent(state, line.text.slice(curSpaceString.length));
1059
- else if (how == "add") indentation = curSpace + options.indentUnit;
1060
- else if (how == "subtract") indentation = curSpace - options.indentUnit;
1061
- indentation = Math.max(0, indentation);
1062
- var diff = indentation - curSpace;
1063
-
1064
- if (!diff) {
1065
- if (sel.from.line != n && sel.to.line != n) return;
1066
- var indentString = curSpaceString;
1067
- }
1068
- else {
1069
- var indentString = "", pos = 0;
1070
- if (options.indentWithTabs)
1071
- for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";}
1072
- while (pos < indentation) {++pos; indentString += " ";}
1073
- }
1074
-
1075
- replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});
1076
- }
1077
-
1078
- function loadMode() {
1079
- mode = CodeMirror.getMode(options, options.mode);
1080
- for (var i = 0, l = lines.length; i < l; ++i)
1081
- lines[i].stateAfter = null;
1082
- work = [0];
1083
- startWorker();
1084
- }
1085
- function gutterChanged() {
1086
- var visible = options.gutter || options.lineNumbers;
1087
- gutter.style.display = visible ? "" : "none";
1088
- if (visible) gutterDirty = true;
1089
- else lineDiv.parentNode.style.marginLeft = 0;
1090
- }
1091
-
1092
- function markText(from, to, className) {
1093
- from = clipPos(from); to = clipPos(to);
1094
- var accum = [];
1095
- function add(line, from, to, className) {
1096
- var line = lines[line], mark = line.addMark(from, to, className);
1097
- mark.line = line;
1098
- accum.push(mark);
1099
- }
1100
- if (from.line == to.line) add(from.line, from.ch, to.ch, className);
1101
- else {
1102
- add(from.line, from.ch, null, className);
1103
- for (var i = from.line + 1, e = to.line; i < e; ++i)
1104
- add(i, 0, null, className);
1105
- add(to.line, 0, to.ch, className);
1106
- }
1107
- changes.push({from: from.line, to: to.line + 1});
1108
- return function() {
1109
- var start, end;
1110
- for (var i = 0; i < accum.length; ++i) {
1111
- var mark = accum[i], found = indexOf(lines, mark.line);
1112
- mark.line.removeMark(mark);
1113
- if (found > -1) {
1114
- if (start == null) start = found;
1115
- end = found;
1116
- }
1117
- }
1118
- if (start != null) changes.push({from: start, to: end + 1});
1119
- };
1120
- }
1121
-
1122
- function addGutterMarker(line, text, className) {
1123
- if (typeof line == "number") line = lines[clipLine(line)];
1124
- line.gutterMarker = {text: text, style: className};
1125
- gutterDirty = true;
1126
- return line;
1127
- }
1128
- function removeGutterMarker(line) {
1129
- if (typeof line == "number") line = lines[clipLine(line)];
1130
- line.gutterMarker = null;
1131
- gutterDirty = true;
1132
- }
1133
- function setLineClass(line, className) {
1134
- if (typeof line == "number") {
1135
- var no = line;
1136
- line = lines[clipLine(line)];
1137
- }
1138
- else {
1139
- var no = indexOf(lines, line);
1140
- if (no == -1) return null;
1141
- }
1142
- if (line.className != className) {
1143
- line.className = className;
1144
- changes.push({from: no, to: no + 1});
1145
- }
1146
- return line;
1147
- }
1148
-
1149
- function lineInfo(line) {
1150
- if (typeof line == "number") {
1151
- var n = line;
1152
- line = lines[line];
1153
- if (!line) return null;
1154
- }
1155
- else {
1156
- var n = indexOf(lines, line);
1157
- if (n == -1) return null;
1158
- }
1159
- var marker = line.gutterMarker;
1160
- return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style};
1161
- }
1162
-
1163
- function stringWidth(str) {
1164
- measure.innerHTML = "<pre><span>x</span></pre>";
1165
- measure.firstChild.firstChild.firstChild.nodeValue = str;
1166
- return measure.firstChild.firstChild.offsetWidth || 10;
1167
- }
1168
- // These are used to go from pixel positions to character
1169
- // positions, taking varying character widths into account.
1170
- function charX(line, pos) {
1171
- if (pos == 0) return 0;
1172
- measure.innerHTML = "<pre><span>" + lines[line].getHTML(null, null, false, pos) + "</span></pre>";
1173
- return measure.firstChild.firstChild.offsetWidth;
1174
- }
1175
- function charFromX(line, x) {
1176
- if (x <= 0) return 0;
1177
- var lineObj = lines[line], text = lineObj.text;
1178
- function getX(len) {
1179
- measure.innerHTML = "<pre><span>" + lineObj.getHTML(null, null, false, len) + "</span></pre>";
1180
- return measure.firstChild.firstChild.offsetWidth;
1181
- }
1182
- var from = 0, fromX = 0, to = text.length, toX;
1183
- // Guess a suitable upper bound for our search.
1184
- var estimated = Math.min(to, Math.ceil(x / stringWidth("x")));
1185
- for (;;) {
1186
- var estX = getX(estimated);
1187
- if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
1188
- else {toX = estX; to = estimated; break;}
1189
- }
1190
- if (x > toX) return to;
1191
- // Try to guess a suitable lower bound as well.
1192
- estimated = Math.floor(to * 0.8); estX = getX(estimated);
1193
- if (estX < x) {from = estimated; fromX = estX;}
1194
- // Do a binary search between these bounds.
1195
- for (;;) {
1196
- if (to - from <= 1) return (toX - x > x - fromX) ? from : to;
1197
- var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
1198
- if (middleX > x) {to = middle; toX = middleX;}
1199
- else {from = middle; fromX = middleX;}
1200
- }
1201
- }
1202
-
1203
- function localCoords(pos, inLineWrap) {
1204
- var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0);
1205
- return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh};
1206
- }
1207
- function pageCoords(pos) {
1208
- var local = localCoords(pos, true), off = eltOffset(lineSpace);
1209
- return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};
1210
- }
1211
-
1212
- function lineHeight() {
1213
- var nlines = lineDiv.childNodes.length;
1214
- if (nlines) return (lineDiv.offsetHeight / nlines) || 1;
1215
- measure.innerHTML = "<pre>x</pre>";
1216
- return measure.firstChild.offsetHeight || 1;
1217
- }
1218
- function paddingTop() {return lineSpace.offsetTop;}
1219
- function paddingLeft() {return lineSpace.offsetLeft;}
1220
-
1221
- function posFromMouse(e, liberal) {
1222
- var offW = eltOffset(scroller, true), x, y;
1223
- // Fails unpredictably on IE[67] when mouse is dragged around quickly.
1224
- try { x = e.clientX; y = e.clientY; } catch (e) { return null; }
1225
- // This is a mess of a heuristic to try and determine whether a
1226
- // scroll-bar was clicked or not, and to return null if one was
1227
- // (and !liberal).
1228
- if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))
1229
- return null;
1230
- var offL = eltOffset(lineSpace, true);
1231
- var line = showingFrom + Math.floor((y - offL.top) / lineHeight());
1232
- return clipPos({line: line, ch: charFromX(clipLine(line), x - offL.left)});
1233
- }
1234
- function onContextMenu(e) {
1235
- var pos = posFromMouse(e);
1236
- if (!pos || window.opera) return; // Opera is difficult.
1237
- if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))
1238
- operation(setCursor)(pos.line, pos.ch);
1239
-
1240
- var oldCSS = input.style.cssText;
1241
- inputDiv.style.position = "absolute";
1242
- input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
1243
- "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: white; " +
1244
- "border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
1245
- leaveInputAlone = true;
1246
- var val = input.value = getSelection();
1247
- focusInput();
1248
- setSelRange(input, 0, input.value.length);
1249
- function rehide() {
1250
- var newVal = splitLines(input.value).join("\n");
1251
- if (newVal != val) operation(replaceSelection)(newVal, "end");
1252
- inputDiv.style.position = "relative";
1253
- input.style.cssText = oldCSS;
1254
- leaveInputAlone = false;
1255
- prepareInput();
1256
- slowPoll();
1257
- }
1258
-
1259
- if (gecko) {
1260
- e_stop(e);
1261
- var mouseup = connect(window, "mouseup", function() {
1262
- mouseup();
1263
- setTimeout(rehide, 20);
1264
- }, true);
1265
- }
1266
- else {
1267
- setTimeout(rehide, 50);
1268
- }
1269
- }
1270
-
1271
- // Cursor-blinking
1272
- function restartBlink() {
1273
- clearInterval(blinker);
1274
- var on = true;
1275
- cursor.style.visibility = "";
1276
- blinker = setInterval(function() {
1277
- cursor.style.visibility = (on = !on) ? "" : "hidden";
1278
- }, 650);
1279
- }
1280
-
1281
- var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"};
1282
- function matchBrackets(autoclear) {
1283
- var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1;
1284
- var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];
1285
- if (!match) return;
1286
- var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles;
1287
- for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)
1288
- if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}
1289
-
1290
- var stack = [line.text.charAt(pos)], re = /[(){}[\]]/;
1291
- function scan(line, from, to) {
1292
- if (!line.text) return;
1293
- var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;
1294
- for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {
1295
- var text = st[i];
1296
- if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}
1297
- for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {
1298
- if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {
1299
- var match = matching[cur];
1300
- if (match.charAt(1) == ">" == forward) stack.push(cur);
1301
- else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};
1302
- else if (!stack.length) return {pos: pos, match: true};
1303
- }
1304
- }
1305
- }
1306
- }
1307
- for (var i = head.line, e = forward ? Math.min(i + 100, lines.length) : Math.max(-1, i - 100); i != e; i+=d) {
1308
- var line = lines[i], first = i == head.line;
1309
- var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);
1310
- if (found) break;
1311
- }
1312
- if (!found) found = {pos: null, match: false};
1313
- var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
1314
- var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),
1315
- two = found.pos != null
1316
- ? markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style)
1317
- : function() {};
1318
- var clear = operation(function(){one(); two();});
1319
- if (autoclear) setTimeout(clear, 800);
1320
- else bracketHighlighted = clear;
1321
- }
1322
-
1323
- // Finds the line to start with when starting a parse. Tries to
1324
- // find a line with a stateAfter, so that it can start with a
1325
- // valid state. If that fails, it returns the line with the
1326
- // smallest indentation, which tends to need the least context to
1327
- // parse correctly.
1328
- function findStartLine(n) {
1329
- var minindent, minline;
1330
- for (var search = n, lim = n - 40; search > lim; --search) {
1331
- if (search == 0) return 0;
1332
- var line = lines[search-1];
1333
- if (line.stateAfter) return search;
1334
- var indented = line.indentation();
1335
- if (minline == null || minindent > indented) {
1336
- minline = search - 1;
1337
- minindent = indented;
1338
- }
1339
- }
1340
- return minline;
1341
- }
1342
- function getStateBefore(n) {
1343
- var start = findStartLine(n), state = start && lines[start-1].stateAfter;
1344
- if (!state) state = startState(mode);
1345
- else state = copyState(mode, state);
1346
- for (var i = start; i < n; ++i) {
1347
- var line = lines[i];
1348
- line.highlight(mode, state);
1349
- line.stateAfter = copyState(mode, state);
1350
- }
1351
- if (n < lines.length && !lines[n].stateAfter) work.push(n);
1352
- return state;
1353
- }
1354
- function highlightLines(start, end) {
1355
- var state = getStateBefore(start);
1356
- for (var i = start; i < end; ++i) {
1357
- var line = lines[i];
1358
- line.highlight(mode, state);
1359
- line.stateAfter = copyState(mode, state);
1360
- }
1361
- }
1362
- function highlightWorker() {
1363
- var end = +new Date + options.workTime;
1364
- var foundWork = work.length;
1365
- while (work.length) {
1366
- if (!lines[showingFrom].stateAfter) var task = showingFrom;
1367
- else var task = work.pop();
1368
- if (task >= lines.length) continue;
1369
- var start = findStartLine(task), state = start && lines[start-1].stateAfter;
1370
- if (state) state = copyState(mode, state);
1371
- else state = startState(mode);
1372
-
1373
- var unchanged = 0, compare = mode.compareStates, realChange = false;
1374
- for (var i = start, l = lines.length; i < l; ++i) {
1375
- var line = lines[i], hadState = line.stateAfter;
1376
- if (+new Date > end) {
1377
- work.push(i);
1378
- startWorker(options.workDelay);
1379
- if (realChange) changes.push({from: task, to: i + 1});
1380
- return;
1381
- }
1382
- var changed = line.highlight(mode, state);
1383
- if (changed) realChange = true;
1384
- line.stateAfter = copyState(mode, state);
1385
- if (compare) {
1386
- if (hadState && compare(hadState, state)) break;
1387
- } else {
1388
- if (changed !== false || !hadState) unchanged = 0;
1389
- else if (++unchanged > 3) break;
1390
- }
1391
- }
1392
- if (realChange) changes.push({from: task, to: i + 1});
1393
- }
1394
- if (foundWork && options.onHighlightComplete)
1395
- options.onHighlightComplete(instance);
1396
- }
1397
- function startWorker(time) {
1398
- if (!work.length) return;
1399
- highlight.set(time, operation(highlightWorker));
1400
- }
1401
-
1402
- // Operations are used to wrap changes in such a way that each
1403
- // change won't have to update the cursor and display (which would
1404
- // be awkward, slow, and error-prone), but instead updates are
1405
- // batched and then all combined and executed at once.
1406
- function startOperation() {
1407
- updateInput = null; changes = []; textChanged = selectionChanged = false;
1408
- }
1409
- function endOperation() {
1410
- var reScroll = false;
1411
- if (selectionChanged) reScroll = !scrollCursorIntoView();
1412
- if (changes.length) updateDisplay(changes);
1413
- else {
1414
- if (selectionChanged) updateCursor();
1415
- if (gutterDirty) updateGutter();
1416
- }
1417
- if (reScroll) scrollCursorIntoView();
1418
- if (selectionChanged) {scrollEditorIntoView(); restartBlink();}
1419
-
1420
- // updateInput can be set to a boolean value to force/prevent an
1421
- // update.
1422
- if (focused && !leaveInputAlone &&
1423
- (updateInput === true || (updateInput !== false && selectionChanged)))
1424
- prepareInput();
1425
-
1426
- if (selectionChanged && options.matchBrackets)
1427
- setTimeout(operation(function() {
1428
- if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}
1429
- matchBrackets(false);
1430
- }), 20);
1431
- var tc = textChanged; // textChanged can be reset by cursoractivity callback
1432
- if (selectionChanged && options.onCursorActivity)
1433
- options.onCursorActivity(instance);
1434
- if (tc && options.onChange && instance)
1435
- options.onChange(instance, tc);
1436
- }
1437
- var nestedOperation = 0;
1438
- function operation(f) {
1439
- return function() {
1440
- if (!nestedOperation++) startOperation();
1441
- try {var result = f.apply(this, arguments);}
1442
- finally {if (!--nestedOperation) endOperation();}
1443
- return result;
1444
- };
1445
- }
1446
-
1447
- function SearchCursor(query, pos, caseFold) {
1448
- this.atOccurrence = false;
1449
- if (caseFold == null) caseFold = typeof query == "string" && query == query.toLowerCase();
1450
-
1451
- if (pos && typeof pos == "object") pos = clipPos(pos);
1452
- else pos = {line: 0, ch: 0};
1453
- this.pos = {from: pos, to: pos};
1454
-
1455
- // The matches method is filled in based on the type of query.
1456
- // It takes a position and a direction, and returns an object
1457
- // describing the next occurrence of the query, or null if no
1458
- // more matches were found.
1459
- if (typeof query != "string") // Regexp match
1460
- this.matches = function(reverse, pos) {
1461
- if (reverse) {
1462
- var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0;
1463
- while (match) {
1464
- var ind = line.indexOf(match[0]);
1465
- start += ind;
1466
- line = line.slice(ind + 1);
1467
- var newmatch = line.match(query);
1468
- if (newmatch) match = newmatch;
1469
- else break;
1470
- start++;
1471
- }
1472
- }
1473
- else {
1474
- var line = lines[pos.line].text.slice(pos.ch), match = line.match(query),
1475
- start = match && pos.ch + line.indexOf(match[0]);
1476
- }
1477
- if (match)
1478
- return {from: {line: pos.line, ch: start},
1479
- to: {line: pos.line, ch: start + match[0].length},
1480
- match: match};
1481
- };
1482
- else { // String query
1483
- if (caseFold) query = query.toLowerCase();
1484
- var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;};
1485
- var target = query.split("\n");
1486
- // Different methods for single-line and multi-line queries
1487
- if (target.length == 1)
1488
- this.matches = function(reverse, pos) {
1489
- var line = fold(lines[pos.line].text), len = query.length, match;
1490
- if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1)
1491
- : (match = line.indexOf(query, pos.ch)) != -1)
1492
- return {from: {line: pos.line, ch: match},
1493
- to: {line: pos.line, ch: match + len}};
1494
- };
1495
- else
1496
- this.matches = function(reverse, pos) {
1497
- var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text);
1498
- var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match));
1499
- if (reverse ? offsetA >= pos.ch || offsetA != match.length
1500
- : offsetA <= pos.ch || offsetA != line.length - match.length)
1501
- return;
1502
- for (;;) {
1503
- if (reverse ? !ln : ln == lines.length - 1) return;
1504
- line = fold(lines[ln += reverse ? -1 : 1].text);
1505
- match = target[reverse ? --idx : ++idx];
1506
- if (idx > 0 && idx < target.length - 1) {
1507
- if (line != match) return;
1508
- else continue;
1509
- }
1510
- var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length);
1511
- if (reverse ? offsetB != line.length - match.length : offsetB != match.length)
1512
- return;
1513
- var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB};
1514
- return {from: reverse ? end : start, to: reverse ? start : end};
1515
- }
1516
- };
1517
- }
1518
- }
1519
-
1520
- SearchCursor.prototype = {
1521
- findNext: function() {return this.find(false);},
1522
- findPrevious: function() {return this.find(true);},
1523
-
1524
- find: function(reverse) {
1525
- var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to);
1526
- function savePosAndFail(line) {
1527
- var pos = {line: line, ch: 0};
1528
- self.pos = {from: pos, to: pos};
1529
- self.atOccurrence = false;
1530
- return false;
1531
- }
1532
-
1533
- for (;;) {
1534
- if (this.pos = this.matches(reverse, pos)) {
1535
- this.atOccurrence = true;
1536
- return this.pos.match || true;
1537
- }
1538
- if (reverse) {
1539
- if (!pos.line) return savePosAndFail(0);
1540
- pos = {line: pos.line-1, ch: lines[pos.line-1].text.length};
1541
- }
1542
- else {
1543
- if (pos.line == lines.length - 1) return savePosAndFail(lines.length);
1544
- pos = {line: pos.line+1, ch: 0};
1545
- }
1546
- }
1547
- },
1548
-
1549
- from: function() {if (this.atOccurrence) return copyPos(this.pos.from);},
1550
- to: function() {if (this.atOccurrence) return copyPos(this.pos.to);},
1551
-
1552
- replace: function(newText) {
1553
- var self = this;
1554
- if (this.atOccurrence)
1555
- operation(function() {
1556
- self.pos.to = replaceRange(newText, self.pos.from, self.pos.to);
1557
- })();
1558
- }
1559
- };
1560
-
1561
- for (var ext in extensions)
1562
- if (extensions.propertyIsEnumerable(ext) &&
1563
- !instance.propertyIsEnumerable(ext))
1564
- instance[ext] = extensions[ext];
1565
- return instance;
1566
- } // (end of function CodeMirror)
1567
-
1568
- // The default configuration options.
1569
- CodeMirror.defaults = {
1570
- value: "",
1571
- mode: null,
1572
- theme: "default",
1573
- indentUnit: 2,
1574
- indentWithTabs: false,
1575
- tabMode: "classic",
1576
- enterMode: "indent",
1577
- electricChars: true,
1578
- onKeyEvent: null,
1579
- lineNumbers: false,
1580
- gutter: false,
1581
- fixedGutter: false,
1582
- firstLineNumber: 1,
1583
- readOnly: false,
1584
- smartHome: true,
1585
- onChange: null,
1586
- onCursorActivity: null,
1587
- onGutterClick: null,
1588
- onHighlightComplete: null,
1589
- onFocus: null, onBlur: null, onScroll: null,
1590
- matchBrackets: false,
1591
- workTime: 100,
1592
- workDelay: 200,
1593
- undoDepth: 40,
1594
- tabindex: null,
1595
- document: window.document
1596
- };
1597
-
1598
- // Known modes, by name and by MIME
1599
- var modes = {}, mimeModes = {};
1600
- CodeMirror.defineMode = function(name, mode) {
1601
- if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
1602
- modes[name] = mode;
1603
- };
1604
- CodeMirror.defineMIME = function(mime, spec) {
1605
- mimeModes[mime] = spec;
1606
- };
1607
- CodeMirror.getMode = function(options, spec) {
1608
- if (typeof spec == "string" && mimeModes.hasOwnProperty(spec))
1609
- spec = mimeModes[spec];
1610
- if (typeof spec == "string")
1611
- var mname = spec, config = {};
1612
- else if (spec != null)
1613
- var mname = spec.name, config = spec;
1614
- var mfactory = modes[mname];
1615
- if (!mfactory) {
1616
- if (window.console) console.warn("No mode " + mname + " found, falling back to plain text.");
1617
- return CodeMirror.getMode(options, "text/plain");
1618
- }
1619
- return mfactory(options, config || {});
1620
- };
1621
- CodeMirror.listModes = function() {
1622
- var list = [];
1623
- for (var m in modes)
1624
- if (modes.propertyIsEnumerable(m)) list.push(m);
1625
- return list;
1626
- };
1627
- CodeMirror.listMIMEs = function() {
1628
- var list = [];
1629
- for (var m in mimeModes)
1630
- if (mimeModes.propertyIsEnumerable(m)) list.push({mime: m, mode: mimeModes[m]});
1631
- return list;
1632
- };
1633
-
1634
- var extensions = {};
1635
- CodeMirror.defineExtension = function(name, func) {
1636
- extensions[name] = func;
1637
- };
1638
-
1639
- CodeMirror.fromTextArea = function(textarea, options) {
1640
- if (!options) options = {};
1641
- options.value = textarea.value;
1642
- if (!options.tabindex && textarea.tabindex)
1643
- options.tabindex = textarea.tabindex;
1644
-
1645
- function save() {textarea.value = instance.getValue();}
1646
- if (textarea.form) {
1647
- // Deplorable hack to make the submit method do the right thing.
1648
- var rmSubmit = connect(textarea.form, "submit", save, true);
1649
- if (typeof textarea.form.submit == "function") {
1650
- var realSubmit = textarea.form.submit;
1651
- function wrappedSubmit() {
1652
- save();
1653
- textarea.form.submit = realSubmit;
1654
- textarea.form.submit();
1655
- textarea.form.submit = wrappedSubmit;
1656
- }
1657
- textarea.form.submit = wrappedSubmit;
1658
- }
1659
- }
1660
-
1661
- textarea.style.display = "none";
1662
- var instance = CodeMirror(function(node) {
1663
- textarea.parentNode.insertBefore(node, textarea.nextSibling);
1664
- }, options);
1665
- instance.save = save;
1666
- instance.toTextArea = function() {
1667
- save();
1668
- textarea.parentNode.removeChild(instance.getWrapperElement());
1669
- textarea.style.display = "";
1670
- if (textarea.form) {
1671
- rmSubmit();
1672
- if (typeof textarea.form.submit == "function")
1673
- textarea.form.submit = realSubmit;
1674
- }
1675
- };
1676
- return instance;
1677
- };
1678
-
1679
- // Utility functions for working with state. Exported because modes
1680
- // sometimes need to do this.
1681
- function copyState(mode, state) {
1682
- if (state === true) return state;
1683
- if (mode.copyState) return mode.copyState(state);
1684
- var nstate = {};
1685
- for (var n in state) {
1686
- var val = state[n];
1687
- if (val instanceof Array) val = val.concat([]);
1688
- nstate[n] = val;
1689
- }
1690
- return nstate;
1691
- }
1692
- CodeMirror.startState = startState;
1693
- function startState(mode, a1, a2) {
1694
- return mode.startState ? mode.startState(a1, a2) : true;
1695
- }
1696
- CodeMirror.copyState = copyState;
1697
-
1698
- // The character stream used by a mode's parser.
1699
- function StringStream(string) {
1700
- this.pos = this.start = 0;
1701
- this.string = string;
1702
- }
1703
- StringStream.prototype = {
1704
- eol: function() {return this.pos >= this.string.length;},
1705
- sol: function() {return this.pos == 0;},
1706
- peek: function() {return this.string.charAt(this.pos);},
1707
- next: function() {
1708
- if (this.pos < this.string.length)
1709
- return this.string.charAt(this.pos++);
1710
- },
1711
- eat: function(match) {
1712
- var ch = this.string.charAt(this.pos);
1713
- if (typeof match == "string") var ok = ch == match;
1714
- else var ok = ch && (match.test ? match.test(ch) : match(ch));
1715
- if (ok) {++this.pos; return ch;}
1716
- },
1717
- eatWhile: function(match) {
1718
- var start = this.pos;
1719
- while (this.eat(match)){}
1720
- return this.pos > start;
1721
- },
1722
- eatSpace: function() {
1723
- var start = this.pos;
1724
- while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
1725
- return this.pos > start;
1726
- },
1727
- skipToEnd: function() {this.pos = this.string.length;},
1728
- skipTo: function(ch) {
1729
- var found = this.string.indexOf(ch, this.pos);
1730
- if (found > -1) {this.pos = found; return true;}
1731
- },
1732
- backUp: function(n) {this.pos -= n;},
1733
- column: function() {return countColumn(this.string, this.start);},
1734
- indentation: function() {return countColumn(this.string);},
1735
- match: function(pattern, consume, caseInsensitive) {
1736
- if (typeof pattern == "string") {
1737
- function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}
1738
- if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
1739
- if (consume !== false) this.pos += pattern.length;
1740
- return true;
1741
- }
1742
- }
1743
- else {
1744
- var match = this.string.slice(this.pos).match(pattern);
1745
- if (match && consume !== false) this.pos += match[0].length;
1746
- return match;
1747
- }
1748
- },
1749
- current: function(){return this.string.slice(this.start, this.pos);}
1750
- };
1751
- CodeMirror.StringStream = StringStream;
1752
-
1753
- // Line objects. These hold state related to a line, including
1754
- // highlighting info (the styles array).
1755
- function Line(text, styles) {
1756
- this.styles = styles || [text, null];
1757
- this.stateAfter = null;
1758
- this.text = text;
1759
- this.marked = this.gutterMarker = this.className = null;
1760
- }
1761
- Line.prototype = {
1762
- // Replace a piece of a line, keeping the styles around it intact.
1763
- replace: function(from, to, text) {
1764
- var st = [], mk = this.marked;
1765
- copyStyles(0, from, this.styles, st);
1766
- if (text) st.push(text, null);
1767
- copyStyles(to, this.text.length, this.styles, st);
1768
- this.styles = st;
1769
- this.text = this.text.slice(0, from) + text + this.text.slice(to);
1770
- this.stateAfter = null;
1771
- if (mk) {
1772
- var diff = text.length - (to - from), end = this.text.length;
1773
- function fix(n) {return n <= Math.min(to, to + diff) ? n : n + diff;}
1774
- for (var i = 0; i < mk.length; ++i) {
1775
- var mark = mk[i], del = false;
1776
- if (mark.from >= end) del = true;
1777
- else {mark.from = fix(mark.from); if (mark.to != null) mark.to = fix(mark.to);}
1778
- if (del || mark.from >= mark.to) {mk.splice(i, 1); i--;}
1779
- }
1780
- }
1781
- },
1782
- // Split a line in two, again keeping styles intact.
1783
- split: function(pos, textBefore) {
1784
- var st = [textBefore, null];
1785
- copyStyles(pos, this.text.length, this.styles, st);
1786
- return new Line(textBefore + this.text.slice(pos), st);
1787
- },
1788
- addMark: function(from, to, style) {
1789
- var mk = this.marked, mark = {from: from, to: to, style: style};
1790
- if (this.marked == null) this.marked = [];
1791
- this.marked.push(mark);
1792
- this.marked.sort(function(a, b){return a.from - b.from;});
1793
- return mark;
1794
- },
1795
- removeMark: function(mark) {
1796
- var mk = this.marked;
1797
- if (!mk) return;
1798
- for (var i = 0; i < mk.length; ++i)
1799
- if (mk[i] == mark) {mk.splice(i, 1); break;}
1800
- },
1801
- // Run the given mode's parser over a line, update the styles
1802
- // array, which contains alternating fragments of text and CSS
1803
- // classes.
1804
- highlight: function(mode, state) {
1805
- var stream = new StringStream(this.text), st = this.styles, pos = 0;
1806
- var changed = false, curWord = st[0], prevWord;
1807
- if (this.text == "" && mode.blankLine) mode.blankLine(state);
1808
- while (!stream.eol()) {
1809
- var style = mode.token(stream, state);
1810
- var substr = this.text.slice(stream.start, stream.pos);
1811
- stream.start = stream.pos;
1812
- if (pos && st[pos-1] == style)
1813
- st[pos-2] += substr;
1814
- else if (substr) {
1815
- if (!changed && (st[pos+1] != style || (pos && st[pos-2] != prevWord))) changed = true;
1816
- st[pos++] = substr; st[pos++] = style;
1817
- prevWord = curWord; curWord = st[pos];
1818
- }
1819
- // Give up when line is ridiculously long
1820
- if (stream.pos > 5000) {
1821
- st[pos++] = this.text.slice(stream.pos); st[pos++] = null;
1822
- break;
1823
- }
1824
- }
1825
- if (st.length != pos) {st.length = pos; changed = true;}
1826
- if (pos && st[pos-2] != prevWord) changed = true;
1827
- // Short lines with simple highlights return null, and are
1828
- // counted as changed by the driver because they are likely to
1829
- // highlight the same way in various contexts.
1830
- return changed || (st.length < 5 && this.text.length < 10 ? null : false);
1831
- },
1832
- // Fetch the parser token for a given character. Useful for hacks
1833
- // that want to inspect the mode state (say, for completion).
1834
- getTokenAt: function(mode, state, ch) {
1835
- var txt = this.text, stream = new StringStream(txt);
1836
- while (stream.pos < ch && !stream.eol()) {
1837
- stream.start = stream.pos;
1838
- var style = mode.token(stream, state);
1839
- }
1840
- return {start: stream.start,
1841
- end: stream.pos,
1842
- string: stream.current(),
1843
- className: style || null,
1844
- state: state};
1845
- },
1846
- indentation: function() {return countColumn(this.text);},
1847
- // Produces an HTML fragment for the line, taking selection,
1848
- // marking, and highlighting into account.
1849
- getHTML: function(sfrom, sto, includePre, endAt) {
1850
- var html = [];
1851
- if (includePre)
1852
- html.push(this.className ? '<pre class="' + this.className + '">': "<pre>");
1853
- function span(text, style) {
1854
- if (!text) return;
1855
- if (style) html.push('<span class="', style, '">', htmlEscape(text), "</span>");
1856
- else html.push(htmlEscape(text));
1857
- }
1858
- var st = this.styles, allText = this.text, marked = this.marked;
1859
- if (sfrom == sto) sfrom = null;
1860
- var len = allText.length;
1861
- if (endAt != null) len = Math.min(endAt, len);
1862
-
1863
- if (!allText && endAt == null)
1864
- span(" ", sfrom != null && sto == null ? "CodeMirror-selected" : null);
1865
- else if (!marked && sfrom == null)
1866
- for (var i = 0, ch = 0; ch < len; i+=2) {
1867
- var str = st[i], l = str.length;
1868
- if (ch + l > len) str = str.slice(0, len - ch);
1869
- ch += l;
1870
- span(str, "cm-" + st[i+1]);
1871
- }
1872
- else {
1873
- var pos = 0, i = 0, text = "", style, sg = 0;
1874
- var markpos = -1, mark = null;
1875
- function nextMark() {
1876
- if (marked) {
1877
- markpos += 1;
1878
- mark = (markpos < marked.length) ? marked[markpos] : null;
1879
- }
1880
- }
1881
- nextMark();
1882
- while (pos < len) {
1883
- var upto = len;
1884
- var extraStyle = "";
1885
- if (sfrom != null) {
1886
- if (sfrom > pos) upto = sfrom;
1887
- else if (sto == null || sto > pos) {
1888
- extraStyle = " CodeMirror-selected";
1889
- if (sto != null) upto = Math.min(upto, sto);
1890
- }
1891
- }
1892
- while (mark && mark.to != null && mark.to <= pos) nextMark();
1893
- if (mark) {
1894
- if (mark.from > pos) upto = Math.min(upto, mark.from);
1895
- else {
1896
- extraStyle += " " + mark.style;
1897
- if (mark.to != null) upto = Math.min(upto, mark.to);
1898
- }
1899
- }
1900
- for (;;) {
1901
- var end = pos + text.length;
1902
- var appliedStyle = style;
1903
- if (extraStyle) appliedStyle = style ? style + extraStyle : extraStyle;
1904
- span(end > upto ? text.slice(0, upto - pos) : text, appliedStyle);
1905
- if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
1906
- pos = end;
1907
- text = st[i++]; style = "cm-" + st[i++];
1908
- }
1909
- }
1910
- if (sfrom != null && sto == null) span(" ", "CodeMirror-selected");
1911
- }
1912
- if (includePre) html.push("</pre>");
1913
- return html.join("");
1914
- }
1915
- };
1916
- // Utility used by replace and split above
1917
- function copyStyles(from, to, source, dest) {
1918
- for (var i = 0, pos = 0, state = 0; pos < to; i+=2) {
1919
- var part = source[i], end = pos + part.length;
1920
- if (state == 0) {
1921
- if (end > from) dest.push(part.slice(from - pos, Math.min(part.length, to - pos)), source[i+1]);
1922
- if (end >= from) state = 1;
1923
- }
1924
- else if (state == 1) {
1925
- if (end > to) dest.push(part.slice(0, to - pos), source[i+1]);
1926
- else dest.push(part, source[i+1]);
1927
- }
1928
- pos = end;
1929
- }
1930
- }
1931
-
1932
- // The history object 'chunks' changes that are made close together
1933
- // and at almost the same time into bigger undoable units.
1934
- function History() {
1935
- this.time = 0;
1936
- this.done = []; this.undone = [];
1937
- }
1938
- History.prototype = {
1939
- addChange: function(start, added, old) {
1940
- this.undone.length = 0;
1941
- var time = +new Date, last = this.done[this.done.length - 1];
1942
- if (time - this.time > 400 || !last ||
1943
- last.start > start + added || last.start + last.added < start - last.added + last.old.length)
1944
- this.done.push({start: start, added: added, old: old});
1945
- else {
1946
- var oldoff = 0;
1947
- if (start < last.start) {
1948
- for (var i = last.start - start - 1; i >= 0; --i)
1949
- last.old.unshift(old[i]);
1950
- last.added += last.start - start;
1951
- last.start = start;
1952
- }
1953
- else if (last.start < start) {
1954
- oldoff = start - last.start;
1955
- added += oldoff;
1956
- }
1957
- for (var i = last.added - oldoff, e = old.length; i < e; ++i)
1958
- last.old.push(old[i]);
1959
- if (last.added < added) last.added = added;
1960
- }
1961
- this.time = time;
1962
- }
1963
- };
1964
-
1965
- function stopMethod() {e_stop(this);}
1966
- // Ensure an event has a stop method.
1967
- function addStop(event) {
1968
- if (!event.stop) event.stop = stopMethod;
1969
- return event;
1970
- }
1971
-
1972
- function e_preventDefault(e) {
1973
- if (e.preventDefault) e.preventDefault();
1974
- else e.returnValue = false;
1975
- }
1976
- function e_stopPropagation(e) {
1977
- if (e.stopPropagation) e.stopPropagation();
1978
- else e.cancelBubble = true;
1979
- }
1980
- function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}
1981
- function e_target(e) {return e.target || e.srcElement;}
1982
- function e_button(e) {
1983
- if (e.which) return e.which;
1984
- else if (e.button & 1) return 1;
1985
- else if (e.button & 2) return 3;
1986
- else if (e.button & 4) return 2;
1987
- }
1988
-
1989
- // Event handler registration. If disconnect is true, it'll return a
1990
- // function that unregisters the handler.
1991
- function connect(node, type, handler, disconnect) {
1992
- function wrapHandler(event) {handler(event || window.event);}
1993
- if (typeof node.addEventListener == "function") {
1994
- node.addEventListener(type, wrapHandler, false);
1995
- if (disconnect) return function() {node.removeEventListener(type, wrapHandler, false);};
1996
- }
1997
- else {
1998
- node.attachEvent("on" + type, wrapHandler);
1999
- if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);};
2000
- }
2001
- }
2002
-
2003
- function Delayed() {this.id = null;}
2004
- Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}};
2005
-
2006
- // Some IE versions don't preserve whitespace when setting the
2007
- // innerHTML of a PRE tag.
2008
- var badInnerHTML = (function() {
2009
- var pre = document.createElement("pre");
2010
- pre.innerHTML = " "; return !pre.innerHTML;
2011
- })();
2012
-
2013
- // Detect drag-and-drop
2014
- var dragAndDrop = (function() {
2015
- // IE8 has ondragstart and ondrop properties, but doesn't seem to
2016
- // actually support ondragstart the way it's supposed to work.
2017
- if (/MSIE [1-8]\b/.test(navigator.userAgent)) return false;
2018
- var div = document.createElement('div');
2019
- return "ondragstart" in div && "ondrop" in div;
2020
- })();
2021
-
2022
- var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);
2023
- var ie = /MSIE \d/.test(navigator.userAgent);
2024
- var safari = /Apple Computer/.test(navigator.vendor);
2025
-
2026
- var lineSep = "\n";
2027
- // Feature-detect whether newlines in textareas are converted to \r\n
2028
- (function () {
2029
- var te = document.createElement("textarea");
2030
- te.value = "foo\nbar";
2031
- if (te.value.indexOf("\r") > -1) lineSep = "\r\n";
2032
- }());
2033
-
2034
- var tabSize = 8;
2035
- var mac = /Mac/.test(navigator.platform);
2036
- var movementKeys = {};
2037
- for (var i = 35; i <= 40; ++i)
2038
- movementKeys[i] = movementKeys["c" + i] = true;
2039
-
2040
- // Counts the column offset in a string, taking tabs into account.
2041
- // Used mostly to find indentation.
2042
- function countColumn(string, end) {
2043
- if (end == null) {
2044
- end = string.search(/[^\s\u00a0]/);
2045
- if (end == -1) end = string.length;
2046
- }
2047
- for (var i = 0, n = 0; i < end; ++i) {
2048
- if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);
2049
- else ++n;
2050
- }
2051
- return n;
2052
- }
2053
-
2054
- function computedStyle(elt) {
2055
- if (elt.currentStyle) return elt.currentStyle;
2056
- return window.getComputedStyle(elt, null);
2057
- }
2058
- // Find the position of an element by following the offsetParent chain.
2059
- // If screen==true, it returns screen (rather than page) coordinates.
2060
- function eltOffset(node, screen) {
2061
- var doc = node.ownerDocument.body;
2062
- var x = 0, y = 0, skipDoc = false;
2063
- for (var n = node; n; n = n.offsetParent) {
2064
- x += n.offsetLeft; y += n.offsetTop;
2065
- if (screen && computedStyle(n).position == "fixed")
2066
- skipDoc = true;
2067
- }
2068
- var e = screen && !skipDoc ? null : doc;
2069
- for (var n = node.parentNode; n != e; n = n.parentNode)
2070
- if (n.scrollLeft != null) { x -= n.scrollLeft; y -= n.scrollTop;}
2071
- return {left: x, top: y};
2072
- }
2073
- // Get a node's text content.
2074
- function eltText(node) {
2075
- return node.textContent || node.innerText || node.nodeValue || "";
2076
- }
2077
-
2078
- // Operations on {line, ch} objects.
2079
- function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
2080
- function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
2081
- function copyPos(x) {return {line: x.line, ch: x.ch};}
2082
-
2083
- var escapeElement = document.createElement("div");
2084
- function htmlEscape(str) {
2085
- escapeElement.innerText = escapeElement.textContent = str;
2086
- return escapeElement.innerHTML;
2087
- }
2088
- CodeMirror.htmlEscape = htmlEscape;
2089
-
2090
- // Used to position the cursor after an undo/redo by finding the
2091
- // last edited character.
2092
- function editEnd(from, to) {
2093
- if (!to) return from ? from.length : 0;
2094
- if (!from) return to.length;
2095
- for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j)
2096
- if (from.charAt(i) != to.charAt(j)) break;
2097
- return j + 1;
2098
- }
2099
-
2100
- function indexOf(collection, elt) {
2101
- if (collection.indexOf) return collection.indexOf(elt);
2102
- for (var i = 0, e = collection.length; i < e; ++i)
2103
- if (collection[i] == elt) return i;
2104
- return -1;
2105
- }
2106
-
2107
- // See if "".split is the broken IE version, if so, provide an
2108
- // alternative way to split lines.
2109
- var splitLines, selRange, setSelRange;
2110
- if ("\n\nb".split(/\n/).length != 3)
2111
- splitLines = function(string) {
2112
- var pos = 0, nl, result = [];
2113
- while ((nl = string.indexOf("\n", pos)) > -1) {
2114
- result.push(string.slice(pos, string.charAt(nl-1) == "\r" ? nl - 1 : nl));
2115
- pos = nl + 1;
2116
- }
2117
- result.push(string.slice(pos));
2118
- return result;
2119
- };
2120
- else
2121
- splitLines = function(string){return string.split(/\r?\n/);};
2122
- CodeMirror.splitLines = splitLines;
2123
-
2124
- // Sane model of finding and setting the selection in a textarea
2125
- if (window.getSelection) {
2126
- selRange = function(te) {
2127
- try {return {start: te.selectionStart, end: te.selectionEnd};}
2128
- catch(e) {return null;}
2129
- };
2130
- if (safari)
2131
- // On Safari, selection set with setSelectionRange are in a sort
2132
- // of limbo wrt their anchor. If you press shift-left in them,
2133
- // the anchor is put at the end, and the selection expanded to
2134
- // the left. If you press shift-right, the anchor ends up at the
2135
- // front. This is not what CodeMirror wants, so it does a
2136
- // spurious modify() call to get out of limbo.
2137
- setSelRange = function(te, start, end) {
2138
- if (start == end)
2139
- te.setSelectionRange(start, end);
2140
- else {
2141
- te.setSelectionRange(start, end - 1);
2142
- window.getSelection().modify("extend", "forward", "character");
2143
- }
2144
- };
2145
- else
2146
- setSelRange = function(te, start, end) {
2147
- try {te.setSelectionRange(start, end);}
2148
- catch(e) {} // Fails on Firefox when textarea isn't part of the document
2149
- };
2150
- }
2151
- // IE model. Don't ask.
2152
- else {
2153
- selRange = function(te) {
2154
- try {var range = te.ownerDocument.selection.createRange();}
2155
- catch(e) {return null;}
2156
- if (!range || range.parentElement() != te) return null;
2157
- var val = te.value, len = val.length, localRange = te.createTextRange();
2158
- localRange.moveToBookmark(range.getBookmark());
2159
- var endRange = te.createTextRange();
2160
- endRange.collapse(false);
2161
-
2162
- if (localRange.compareEndPoints("StartToEnd", endRange) > -1)
2163
- return {start: len, end: len};
2164
-
2165
- var start = -localRange.moveStart("character", -len);
2166
- for (var i = val.indexOf("\r"); i > -1 && i < start; i = val.indexOf("\r", i+1), start++) {}
2167
-
2168
- if (localRange.compareEndPoints("EndToEnd", endRange) > -1)
2169
- return {start: start, end: len};
2170
-
2171
- var end = -localRange.moveEnd("character", -len);
2172
- for (var i = val.indexOf("\r"); i > -1 && i < end; i = val.indexOf("\r", i+1), end++) {}
2173
- return {start: start, end: end};
2174
- };
2175
- setSelRange = function(te, start, end) {
2176
- var range = te.createTextRange();
2177
- range.collapse(true);
2178
- var endrange = range.duplicate();
2179
- var newlines = 0, txt = te.value;
2180
- for (var pos = txt.indexOf("\n"); pos > -1 && pos < start; pos = txt.indexOf("\n", pos + 1))
2181
- ++newlines;
2182
- range.move("character", start - newlines);
2183
- for (; pos > -1 && pos < end; pos = txt.indexOf("\n", pos + 1))
2184
- ++newlines;
2185
- endrange.move("character", end - newlines);
2186
- range.setEndPoint("EndToEnd", endrange);
2187
- range.select();
2188
- };
2189
- }
2190
-
2191
- CodeMirror.defineMode("null", function() {
2192
- return {token: function(stream) {stream.skipToEnd();}};
2193
- });
2194
- CodeMirror.defineMIME("text/plain", "null");
2195
-
2196
- return CodeMirror;
2197
- })();