locomotive_cms 1.0.0.beta.2 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1800) hide show
  1. data/Gemfile +32 -45
  2. data/README.textile +48 -11
  3. data/{public/images/admin → app/assets/images/locomotive}/background/body.png +0 -0
  4. data/{public/images/admin → app/assets/images/locomotive}/background/light.png +0 -0
  5. data/app/assets/images/locomotive/datepicker/ui-widget-content-top.png +0 -0
  6. data/app/assets/images/locomotive/datepicker/ui-widget-left-icon.png +0 -0
  7. data/app/assets/images/locomotive/datepicker/ui-widget-right-icon.png +0 -0
  8. data/app/assets/images/locomotive/form/error-arrow.png +0 -0
  9. data/{public/images/admin → app/assets/images/locomotive}/form/folded-arrow-off.png +0 -0
  10. data/{public/images/admin → app/assets/images/locomotive}/form/folded-arrow-on.png +0 -0
  11. data/{public/images/admin → app/assets/images/locomotive}/form/icons/drag.png +0 -0
  12. data/{public/images/admin → app/assets/images/locomotive}/form/icons/edit.png +0 -0
  13. data/app/assets/images/locomotive/form/icons/error.png +0 -0
  14. data/{public/images/admin → app/assets/images/locomotive}/form/icons/spinner.gif +0 -0
  15. data/{public/images/admin → app/assets/images/locomotive}/form/icons/trash.png +0 -0
  16. data/app/assets/images/locomotive/form/input-sep.png +0 -0
  17. data/app/assets/images/locomotive/form/pen.png +0 -0
  18. data/{public/images/admin → app/assets/images/locomotive}/form/spinner.gif +0 -0
  19. data/{public/images/admin → app/assets/images/locomotive}/icons/actions.png +0 -0
  20. data/app/assets/images/locomotive/icons/asset_add.png +0 -0
  21. data/app/assets/images/locomotive/icons/asset_switch.png +0 -0
  22. data/app/assets/images/locomotive/icons/flags/de.png +0 -0
  23. data/{public/images/admin → app/assets/images/locomotive}/icons/flags/en.png +0 -0
  24. data/app/assets/images/locomotive/icons/flags/es.png +0 -0
  25. data/{public/images/admin → app/assets/images/locomotive}/icons/flags/fr.png +0 -0
  26. data/app/assets/images/locomotive/icons/flags/it.png +0 -0
  27. data/app/assets/images/locomotive/icons/flags/nl.png +0 -0
  28. data/app/assets/images/locomotive/icons/flags/no.png +0 -0
  29. data/app/assets/images/locomotive/icons/flags/pt-BR.png +0 -0
  30. data/app/assets/images/locomotive/icons/flags/ru.png +0 -0
  31. data/app/assets/images/locomotive/icons/membership_edit.png +0 -0
  32. data/app/assets/images/locomotive/icons/membership_lock.png +0 -0
  33. data/app/assets/images/locomotive/inline_editor/back.png +0 -0
  34. data/{public/images/admin → app/assets/images/locomotive}/list/empty.png +0 -0
  35. data/{public/images/admin → app/assets/images/locomotive}/list/icons/cross.png +0 -0
  36. data/{public/images/admin → app/assets/images/locomotive}/list/icons/drag.png +0 -0
  37. data/app/assets/images/locomotive/list/icons/move.png +0 -0
  38. data/app/assets/images/locomotive/list/icons/move_off.png +0 -0
  39. data/{public/images/admin → app/assets/images/locomotive}/list/icons/node_closed.png +0 -0
  40. data/{public/images/admin → app/assets/images/locomotive}/list/icons/node_open.png +0 -0
  41. data/app/assets/images/locomotive/list/icons/pencil.png +0 -0
  42. data/app/assets/images/locomotive/list/icons/pencil_off.png +0 -0
  43. data/app/assets/images/locomotive/list/icons/popup.png +0 -0
  44. data/app/assets/images/locomotive/list/icons/popup_off.png +0 -0
  45. data/app/assets/images/locomotive/list/icons/redirect.png +0 -0
  46. data/{public/images/admin → app/assets/images/locomotive}/list/icons/states.png +0 -0
  47. data/app/assets/images/locomotive/list/icons/template.png +0 -0
  48. data/app/assets/images/locomotive/list/icons/toggle.png +0 -0
  49. data/app/assets/images/locomotive/list/icons/toggle_off.png +0 -0
  50. data/{public/images/admin → app/assets/images/locomotive}/list/icons/trash.png +0 -0
  51. data/app/assets/images/locomotive/list/icons/trash_off.png +0 -0
  52. data/app/assets/images/locomotive/list/item-left.png +0 -0
  53. data/app/assets/images/locomotive/menu/icons.png +0 -0
  54. data/{public/images/admin/menu/icons → app/assets/images/locomotive/menu/popup}/add.png +0 -0
  55. data/app/assets/images/locomotive/menu/popup/bottom-right-corner.png +0 -0
  56. data/{public/images/admin/menu/icons → app/assets/images/locomotive/menu/popup}/bullet.png +0 -0
  57. data/{public/images/admin → app/assets/images/locomotive}/nocoffee.png +0 -0
  58. data/{public/images/admin → app/assets/images/locomotive}/plugins/selectmenu/arrow.png +0 -0
  59. data/{public/images/admin → app/assets/images/locomotive}/plugins/selectmenu/background.png +0 -0
  60. data/app/assets/images/locomotive/plugins/sites_picker_entry_bg.png +0 -0
  61. data/app/assets/images/locomotive/plugins/sites_picker_top_arrow.png +0 -0
  62. data/{public/images/admin → app/assets/images/locomotive}/rails.png +0 -0
  63. data/{public/images/admin/box → app/assets/images/locomotive/simple}/light_bg.png +0 -0
  64. data/{public/images/admin/box → app/assets/images/locomotive/simple}/wrapper_bg.png +0 -0
  65. data/app/assets/javascripts/locomotive.js +25 -0
  66. data/app/assets/javascripts/locomotive/aloha.js.coffee +2 -0
  67. data/app/assets/javascripts/locomotive/application.js.coffee +12 -0
  68. data/app/assets/javascripts/locomotive/inline_editor.js.coffee +21 -0
  69. data/app/assets/javascripts/locomotive/models/account.js.coffee +11 -0
  70. data/app/assets/javascripts/locomotive/models/content_asset.js.coffee +20 -0
  71. data/app/assets/javascripts/locomotive/models/content_entry.js.coffee +61 -0
  72. data/app/assets/javascripts/locomotive/models/content_type.js.coffee +23 -0
  73. data/app/assets/javascripts/locomotive/models/custom_field.js.coffee +38 -0
  74. data/app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee +13 -0
  75. data/app/assets/javascripts/locomotive/models/domain.js.coffee +3 -0
  76. data/app/assets/javascripts/locomotive/models/editable_element.js.coffee +22 -0
  77. data/app/assets/javascripts/locomotive/models/membership.js.coffee +13 -0
  78. data/app/assets/javascripts/locomotive/models/page.js.coffee +27 -0
  79. data/app/assets/javascripts/locomotive/models/site.js.coffee +33 -0
  80. data/app/assets/javascripts/locomotive/models/snippet.js.coffee +11 -0
  81. data/app/assets/javascripts/locomotive/models/theme_asset.js.coffee +11 -0
  82. data/app/assets/javascripts/locomotive/not_logged_in.js.coffee +1 -0
  83. data/app/assets/javascripts/locomotive/utils/aloha_settings.js.coffee +32 -0
  84. data/app/assets/javascripts/locomotive/utils/core_ext.js +73 -0
  85. data/app/assets/javascripts/locomotive/utils/growl.js +14 -0
  86. data/app/assets/javascripts/locomotive/utils/handlebar_helpers.js.coffee +9 -0
  87. data/app/assets/javascripts/locomotive/utils/tinymce_settings.js.coffee +48 -0
  88. data/app/assets/javascripts/locomotive/views/application_view.js.coffee +85 -0
  89. data/app/assets/javascripts/locomotive/views/content_assets/picker_item_view.js.coffee +30 -0
  90. data/app/assets/javascripts/locomotive/views/content_assets/picker_view.js.coffee +55 -0
  91. data/app/assets/javascripts/locomotive/views/content_entries/_form_view.js.coffee +108 -0
  92. data/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee +79 -0
  93. data/app/assets/javascripts/locomotive/views/content_entries/edit_view.js.coffee +9 -0
  94. data/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee +36 -0
  95. data/app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee +8 -0
  96. data/app/assets/javascripts/locomotive/views/content_types/_form_view.js.coffee +85 -0
  97. data/app/assets/javascripts/locomotive/views/content_types/custom_field_entry_view.js.coffee +95 -0
  98. data/app/assets/javascripts/locomotive/views/content_types/custom_fields_view.coffee +94 -0
  99. data/app/assets/javascripts/locomotive/views/content_types/edit_view.coffee +15 -0
  100. data/app/assets/javascripts/locomotive/views/content_types/new_view.js.coffee +11 -0
  101. data/app/assets/javascripts/locomotive/views/content_types/select_options_view.js.coffee +85 -0
  102. data/app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee +84 -0
  103. data/app/assets/javascripts/locomotive/views/editable_elements/edit_all_view.js.coffee +79 -0
  104. data/app/assets/javascripts/locomotive/views/editable_elements/file_view.js.coffee +73 -0
  105. data/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee +8 -0
  106. data/app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee +29 -0
  107. data/app/assets/javascripts/locomotive/views/inline_editor/application_view.js.coffee +96 -0
  108. data/app/assets/javascripts/locomotive/views/inline_editor/toolbar_view.js.coffee +137 -0
  109. data/app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee +24 -0
  110. data/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee +130 -0
  111. data/app/assets/javascripts/locomotive/views/pages/edit_view.js.coffee +25 -0
  112. data/app/assets/javascripts/locomotive/views/pages/index_view.js.coffee +11 -0
  113. data/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee +40 -0
  114. data/app/assets/javascripts/locomotive/views/pages/new_view.js.coffee +8 -0
  115. data/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee +99 -0
  116. data/app/assets/javascripts/locomotive/views/shared/fields/file_view.js.coffee +88 -0
  117. data/app/assets/javascripts/locomotive/views/shared/fields/has_many_view.js.coffee +122 -0
  118. data/app/assets/javascripts/locomotive/views/shared/fields/many_to_many_view.js.coffee +132 -0
  119. data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +112 -0
  120. data/app/assets/javascripts/locomotive/views/shared/list_item_view.js.coffee +22 -0
  121. data/app/assets/javascripts/locomotive/views/shared/list_view.js.coffee +53 -0
  122. data/app/assets/javascripts/locomotive/views/sites/domain_entry_view.js.coffee +26 -0
  123. data/app/assets/javascripts/locomotive/views/sites/domains_view.js.coffee +84 -0
  124. data/app/assets/javascripts/locomotive/views/sites/membership_entry_view.js.coffee +31 -0
  125. data/app/assets/javascripts/locomotive/views/sites/memberships_view.js.coffee +41 -0
  126. data/app/assets/javascripts/locomotive/views/sites/new_view.js.coffee +43 -0
  127. data/app/assets/javascripts/locomotive/views/snippets/_form_view.js.coffee +60 -0
  128. data/app/assets/javascripts/locomotive/views/snippets/edit_view.js.coffee +6 -0
  129. data/app/assets/javascripts/locomotive/views/snippets/list_item_view.js.coffee +8 -0
  130. data/app/assets/javascripts/locomotive/views/snippets/list_view.js.coffee +17 -0
  131. data/app/assets/javascripts/locomotive/views/snippets/new_view.js.coffee +8 -0
  132. data/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee +104 -0
  133. data/app/assets/javascripts/locomotive/views/theme_assets/edit_view.js.coffee +16 -0
  134. data/app/assets/javascripts/locomotive/views/theme_assets/image_picker_view.js.coffee +40 -0
  135. data/app/assets/javascripts/locomotive/views/theme_assets/index_view.js.coffee +83 -0
  136. data/app/assets/javascripts/locomotive/views/theme_assets/list_item_view.js.coffee +8 -0
  137. data/app/assets/javascripts/locomotive/views/theme_assets/list_view.js.coffee +17 -0
  138. data/app/assets/javascripts/locomotive/views/theme_assets/new_view.js.coffee +8 -0
  139. data/app/assets/javascripts/tinymce/plugins/jqueryinlinepopups/editor_plugin.js +240 -0
  140. data/app/assets/javascripts/tinymce/plugins/locomotive_media/editor_plugin.js +75 -0
  141. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/content.css +0 -0
  142. data/app/assets/javascripts/tinymce/themes/advanced/skins/locomotive/dialog.css.scss +78 -0
  143. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/butt2.png +0 -0
  144. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/button-bg.png +0 -0
  145. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/buttons.png +0 -0
  146. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/down_arrow.gif +0 -0
  147. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/fade-butt.png +0 -0
  148. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/icons.png +0 -0
  149. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/items.gif +0 -0
  150. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/menu-arrow.png +0 -0
  151. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/menu-check.png +0 -0
  152. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/progress.gif +0 -0
  153. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/tabs.gif +0 -0
  154. data/{public/javascripts/admin/plugins/tiny_mce → app/assets/javascripts/tinymce}/themes/advanced/skins/locomotive/img/toolbarbg.png +0 -0
  155. data/app/assets/javascripts/tinymce/themes/advanced/skins/locomotive/ui.css +1018 -0
  156. data/app/assets/stylesheets/locomotive.css +15 -0
  157. data/app/assets/stylesheets/locomotive/backoffice/_box.css.scss +167 -0
  158. data/app/assets/stylesheets/locomotive/backoffice/_buttons.css.scss +155 -0
  159. data/app/assets/stylesheets/locomotive/backoffice/application.css.scss +321 -0
  160. data/app/assets/stylesheets/locomotive/backoffice/codemirror_changes.css.scss +16 -0
  161. data/app/assets/stylesheets/locomotive/backoffice/content_assets.css.scss +129 -0
  162. data/app/assets/stylesheets/locomotive/backoffice/datepicker.css.scss +169 -0
  163. data/app/assets/stylesheets/locomotive/backoffice/dialog_changes.css.scss +135 -0
  164. data/app/assets/stylesheets/locomotive/backoffice/editable_elements.css.scss +71 -0
  165. data/app/assets/stylesheets/locomotive/backoffice/formtastic_changes.css.css +0 -0
  166. data/app/assets/stylesheets/locomotive/backoffice/formtastic_changes.css.scss +787 -0
  167. data/app/assets/stylesheets/locomotive/backoffice/layout.css.scss +204 -0
  168. data/app/assets/stylesheets/locomotive/backoffice/menu.css +8 -0
  169. data/app/assets/stylesheets/locomotive/backoffice/menu/_colors.css.scss +124 -0
  170. data/app/assets/stylesheets/locomotive/backoffice/menu/_helpers.css.scss +6 -0
  171. data/app/assets/stylesheets/locomotive/backoffice/menu/_icons.css.scss +30 -0
  172. data/app/assets/stylesheets/locomotive/backoffice/menu/default.css.scss +67 -0
  173. data/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss +127 -0
  174. data/app/assets/stylesheets/locomotive/backoffice/menu/sub.css.scss +284 -0
  175. data/app/assets/stylesheets/locomotive/backoffice/sites_picker.css.scss +12 -0
  176. data/app/assets/stylesheets/locomotive/inline_editor.css +9 -0
  177. data/app/assets/stylesheets/locomotive/inline_editor/_buttons.css.scss +70 -0
  178. data/app/assets/stylesheets/locomotive/inline_editor/layout.css.scss +21 -0
  179. data/app/assets/stylesheets/locomotive/inline_editor/toolbar.css.scss +115 -0
  180. data/app/assets/stylesheets/locomotive/not_logged_in.css +7 -0
  181. data/app/assets/stylesheets/locomotive/not_logged_in/installation.css.scss +62 -0
  182. data/app/assets/stylesheets/locomotive/not_logged_in/layout.css.scss +176 -0
  183. data/app/assets/stylesheets/locomotive/shared/_helpers.css.scss +57 -0
  184. data/app/assets/stylesheets/locomotive/shared/_picker.css.scss +73 -0
  185. data/app/assets/stylesheets/locomotive/shared/content_locale_picker.css.scss +82 -0
  186. data/app/assets/stylesheets/locomotive/shared/growl.css.scss +29 -0
  187. data/app/cells/locomotive/content_locale_picker/show.html.haml +7 -0
  188. data/app/cells/locomotive/content_locale_picker_cell.rb +17 -0
  189. data/app/cells/locomotive/global_actions/show.html.haml +12 -0
  190. data/app/cells/locomotive/global_actions_cell.rb +36 -0
  191. data/app/cells/locomotive/main_menu/show.html.haml +13 -0
  192. data/app/cells/locomotive/main_menu_cell.rb +12 -0
  193. data/app/cells/locomotive/menu/show.html.haml +1 -0
  194. data/app/cells/locomotive/menu_cell.rb +102 -0
  195. data/app/cells/locomotive/settings_menu_cell.rb +13 -0
  196. data/app/cells/locomotive/sub_menu/show.html.haml +4 -0
  197. data/app/cells/locomotive/sub_menu_cell.rb +13 -0
  198. data/app/controllers/locomotive/accounts_controller.rb +18 -0
  199. data/app/controllers/locomotive/api/base_controller.rb +43 -0
  200. data/app/controllers/locomotive/api/content_assets_controller.rb +23 -0
  201. data/app/controllers/locomotive/api/content_entries_controller.rb +37 -0
  202. data/app/controllers/locomotive/api/content_types_controller.rb +23 -0
  203. data/app/controllers/locomotive/api/current_site_controller.rb +11 -0
  204. data/app/controllers/locomotive/api/pages_controller.rb +25 -0
  205. data/app/controllers/locomotive/api/snippets_controller.rb +24 -0
  206. data/app/controllers/locomotive/api/theme_assets_controller.rb +23 -0
  207. data/app/controllers/locomotive/api/tokens_controller.rb +27 -0
  208. data/app/controllers/locomotive/base_controller.rb +61 -0
  209. data/app/controllers/locomotive/content_assets_controller.rb +23 -0
  210. data/app/controllers/locomotive/content_entries_controller.rb +71 -0
  211. data/app/controllers/locomotive/content_types_controller.rb +40 -0
  212. data/app/controllers/locomotive/current_site_controller.rb +44 -0
  213. data/app/controllers/locomotive/installation_controller.rb +72 -0
  214. data/app/controllers/locomotive/memberships_controller.rb +29 -0
  215. data/app/controllers/locomotive/my_account_controller.rb +24 -0
  216. data/app/controllers/locomotive/pages_controller.rb +62 -0
  217. data/app/controllers/locomotive/passwords_controller.rb +13 -0
  218. data/app/controllers/locomotive/public/base_controller.rb +20 -0
  219. data/app/controllers/locomotive/public/content_entries_controller.rb +50 -0
  220. data/app/controllers/locomotive/public/pages_controller.rb +48 -0
  221. data/app/controllers/locomotive/public/robots_controller.rb +16 -0
  222. data/app/controllers/locomotive/public/sitemaps_controller.rb +14 -0
  223. data/app/controllers/locomotive/sessions_controller.rb +29 -0
  224. data/app/controllers/locomotive/sites_controller.rb +33 -0
  225. data/app/controllers/locomotive/snippets_controller.rb +40 -0
  226. data/app/controllers/locomotive/theme_assets_controller.rb +52 -0
  227. data/app/helpers/locomotive/accounts_helper.rb +13 -0
  228. data/app/helpers/locomotive/base_helper.rb +124 -0
  229. data/app/helpers/locomotive/content_entries_helper.rb +15 -0
  230. data/app/helpers/locomotive/content_types_helper.rb +68 -0
  231. data/app/helpers/locomotive/custom_fields_helper.rb +70 -0
  232. data/app/helpers/locomotive/installation_helper.rb +9 -0
  233. data/app/helpers/locomotive/pages_helper.rb +54 -0
  234. data/app/helpers/locomotive/sites_helper.rb +15 -0
  235. data/app/helpers/locomotive/theme_assets_helper.rb +30 -0
  236. data/app/inputs/locomotive/code_input.rb +29 -0
  237. data/app/inputs/locomotive/empty_input.rb +35 -0
  238. data/app/inputs/locomotive/file_input.rb +45 -0
  239. data/app/inputs/locomotive/locale_input.rb +39 -0
  240. data/app/inputs/locomotive/locales_input.rb +59 -0
  241. data/app/inputs/locomotive/rte_input.rb +13 -0
  242. data/app/inputs/locomotive/small_code_input.rb +22 -0
  243. data/app/inputs/locomotive/subdomain_input.rb +22 -0
  244. data/app/inputs/locomotive/toggle_input.rb +13 -0
  245. data/app/mailers/locomotive/devise_mailer.rb +10 -0
  246. data/app/mailers/locomotive/notifications.rb +15 -0
  247. data/app/middlewares/locomotive/inline_editor_middleware.rb +24 -0
  248. data/app/models/locomotive/ability.rb +81 -0
  249. data/app/models/locomotive/account.rb +97 -0
  250. data/app/models/locomotive/content_asset.rb +45 -0
  251. data/app/models/locomotive/content_entry.rb +146 -0
  252. data/app/models/locomotive/content_type.rb +241 -0
  253. data/app/models/locomotive/editable_element.rb +29 -0
  254. data/app/models/locomotive/editable_file.rb +17 -0
  255. data/app/models/locomotive/editable_long_text.rb +9 -0
  256. data/app/models/locomotive/editable_short_text.rb +21 -0
  257. data/app/models/locomotive/extensions/asset/types.rb +31 -0
  258. data/app/models/locomotive/extensions/asset/vignette.rb +19 -0
  259. data/app/models/locomotive/extensions/content_type/item_template.rb +49 -0
  260. data/app/models/locomotive/extensions/page/editable_elements.rb +119 -0
  261. data/app/models/locomotive/extensions/page/listed.rb +17 -0
  262. data/app/models/locomotive/extensions/page/parse.rb +112 -0
  263. data/app/models/locomotive/extensions/page/redirect.rb +23 -0
  264. data/app/models/locomotive/extensions/page/render.rb +13 -0
  265. data/app/models/locomotive/extensions/page/templatized.rb +95 -0
  266. data/app/models/locomotive/extensions/page/tree.rb +112 -0
  267. data/app/models/locomotive/extensions/shared/seo.rb +16 -0
  268. data/app/models/locomotive/extensions/site/first_installation.rb +20 -0
  269. data/app/models/locomotive/extensions/site/locales.rb +66 -0
  270. data/app/models/locomotive/extensions/site/subdomain_domains.rb +86 -0
  271. data/app/models/locomotive/membership.rb +79 -0
  272. data/app/models/locomotive/page.rb +124 -0
  273. data/app/models/locomotive/site.rb +82 -0
  274. data/app/models/locomotive/snippet.rb +76 -0
  275. data/app/models/locomotive/theme_asset.rb +178 -0
  276. data/app/presenters/locomotive/account_presenter.rb +11 -0
  277. data/app/presenters/locomotive/base_presenter.rb +46 -0
  278. data/app/presenters/locomotive/content_asset_presenter.rb +36 -0
  279. data/app/presenters/locomotive/content_entry_presenter.rb +53 -0
  280. data/app/presenters/locomotive/content_type_presenter.rb +19 -0
  281. data/app/presenters/locomotive/editable_element_presenter.rb +28 -0
  282. data/app/presenters/locomotive/editable_file_presenter.rb +15 -0
  283. data/app/presenters/locomotive/editable_long_text_presenter.rb +5 -0
  284. data/app/presenters/locomotive/editable_short_text_presenter.rb +11 -0
  285. data/app/presenters/locomotive/membership_presenter.rb +33 -0
  286. data/app/presenters/locomotive/page_presenter.rb +34 -0
  287. data/app/presenters/locomotive/site_presenter.rb +19 -0
  288. data/app/presenters/locomotive/snippet_presenter.rb +20 -0
  289. data/app/presenters/locomotive/theme_asset_presenter.rb +44 -0
  290. data/app/uploaders/locomotive/content_asset_uploader.rb +13 -0
  291. data/app/uploaders/locomotive/editable_file_uploader.rb +11 -0
  292. data/app/uploaders/locomotive/theme_asset_uploader.rb +28 -0
  293. data/app/uploaders/locomotive/theme_uploader.rb +19 -0
  294. data/app/views/locomotive/accounts/new.html.haml +21 -0
  295. data/app/views/locomotive/content_assets/_asset.html.haml +5 -0
  296. data/app/views/locomotive/content_assets/_picker.html.haml +33 -0
  297. data/app/views/locomotive/content_entries/_form.html.haml +21 -0
  298. data/app/views/locomotive/content_entries/_list.html.haml +15 -0
  299. data/app/views/locomotive/content_entries/edit.html.haml +21 -0
  300. data/app/views/locomotive/content_entries/index.html.haml +32 -0
  301. data/app/views/locomotive/content_entries/new.html.haml +19 -0
  302. data/app/views/locomotive/content_types/_form.html.haml +39 -0
  303. data/app/views/locomotive/content_types/edit.html.haml +19 -0
  304. data/app/views/locomotive/content_types/new.html.haml +15 -0
  305. data/app/views/locomotive/current_site/_form.html.haml +36 -0
  306. data/app/views/locomotive/current_site/edit.html.haml +16 -0
  307. data/app/views/locomotive/custom_fields/_form.html.haml +75 -0
  308. data/app/views/locomotive/custom_fields/types/_belongs_to.html.haml +5 -0
  309. data/app/views/locomotive/custom_fields/types/_boolean.html.haml +4 -0
  310. data/app/views/locomotive/custom_fields/types/_date.html.haml +5 -0
  311. data/app/views/locomotive/custom_fields/types/_file.html.haml +4 -0
  312. data/app/views/locomotive/custom_fields/types/_has_many.html.haml +70 -0
  313. data/app/views/locomotive/custom_fields/types/_many_to_many.html.haml +41 -0
  314. data/app/views/locomotive/custom_fields/types/_select.html.haml +5 -0
  315. data/app/views/locomotive/custom_fields/types/_string.html.haml +4 -0
  316. data/app/views/locomotive/custom_fields/types/_text.html.haml +5 -0
  317. data/app/views/locomotive/devise_mailer/reset_password_instructions.html.haml +12 -0
  318. data/app/views/locomotive/errors/404.html.haml +7 -0
  319. data/app/views/locomotive/errors/500.html.haml +7 -0
  320. data/app/views/{admin → locomotive}/errors/no_page.html.haml +0 -0
  321. data/app/views/{admin → locomotive}/errors/no_site.html.haml +0 -0
  322. data/app/views/locomotive/installation/step_1.html.haml +23 -0
  323. data/app/views/locomotive/installation/step_2.html.haml +24 -0
  324. data/app/views/locomotive/layouts/application.html.haml +34 -0
  325. data/app/views/{admin → locomotive}/layouts/error.html.haml +0 -0
  326. data/app/views/locomotive/layouts/not_logged_in.html.haml +18 -0
  327. data/app/views/locomotive/mailer/confirmation_instructions.html.haml +8 -0
  328. data/app/views/locomotive/mailer/reset_password_instructions.html.haml +12 -0
  329. data/app/views/locomotive/mailer/unlock_instructions.html.haml +10 -0
  330. data/app/views/locomotive/memberships/new.html.haml +14 -0
  331. data/app/views/locomotive/my_account/edit.html.haml +40 -0
  332. data/app/views/locomotive/notifications/new_content_entry.html.haml +22 -0
  333. data/app/views/locomotive/pages/_editable_elements.html.haml +52 -0
  334. data/app/views/locomotive/pages/_form.html.haml +51 -0
  335. data/app/views/locomotive/pages/_page.html.haml +30 -0
  336. data/app/views/locomotive/pages/edit.html.haml +18 -0
  337. data/app/views/locomotive/pages/index.html.haml +19 -0
  338. data/app/views/locomotive/pages/new.html.haml +15 -0
  339. data/app/views/locomotive/passwords/edit.html.haml +18 -0
  340. data/app/views/locomotive/passwords/new.html.haml +17 -0
  341. data/app/views/locomotive/public/pages/show_toolbar.html.haml +60 -0
  342. data/app/views/locomotive/public/sitemaps/show.xml.builder +29 -0
  343. data/app/views/locomotive/sessions/new.html.haml +17 -0
  344. data/app/views/locomotive/shared/_footer.html.haml +2 -0
  345. data/app/views/locomotive/shared/_form_actions.html.haml +14 -0
  346. data/app/views/locomotive/shared/_head.html.haml +35 -0
  347. data/app/views/locomotive/shared/_header.html.haml +10 -0
  348. data/app/views/locomotive/shared/_locale_picker_link.html.haml +7 -0
  349. data/app/views/locomotive/shared/_main_app_head.html.haml +1 -0
  350. data/app/views/locomotive/shared/_site_picker.html.haml +10 -0
  351. data/app/views/locomotive/shared/actions/_contents.html.haml +5 -0
  352. data/app/views/locomotive/shared/menu/_contents.html.haml +40 -0
  353. data/app/views/locomotive/sites/_domains.html.haml +22 -0
  354. data/app/views/locomotive/sites/_form.html.haml +12 -0
  355. data/app/views/locomotive/sites/_memberships.html.haml +25 -0
  356. data/app/views/locomotive/sites/new.html.haml +12 -0
  357. data/app/views/locomotive/snippets/_form.html.haml +13 -0
  358. data/app/views/locomotive/snippets/_snippet.html.haml +8 -0
  359. data/app/views/locomotive/snippets/edit.html.haml +18 -0
  360. data/app/views/locomotive/snippets/new.html.haml +15 -0
  361. data/app/views/locomotive/theme_assets/_asset.html.haml +11 -0
  362. data/app/views/locomotive/theme_assets/_form.html.haml +31 -0
  363. data/app/views/locomotive/theme_assets/_list.html.haml +7 -0
  364. data/app/views/locomotive/theme_assets/_picker.html.haml +25 -0
  365. data/app/views/locomotive/theme_assets/edit.html.haml +21 -0
  366. data/app/views/locomotive/theme_assets/index.html.haml +50 -0
  367. data/app/views/locomotive/theme_assets/new.html.haml +12 -0
  368. data/config/cucumber.yml +8 -2
  369. data/config/initializers/devise.rb +10 -135
  370. data/config/initializers/formtastic.rb +2 -3
  371. data/config/initializers/haml.rb +1 -1
  372. data/config/initializers/locomotive_loaded_first.rb +19 -0
  373. data/config/locales/admin_ui.de.yml +310 -0
  374. data/config/locales/admin_ui.en.yml +308 -0
  375. data/config/locales/admin_ui.es.yml +292 -0
  376. data/config/locales/admin_ui.fr.yml +278 -0
  377. data/config/locales/admin_ui.it.yml +291 -0
  378. data/config/locales/admin_ui.nl.yml +276 -0
  379. data/config/locales/admin_ui.no.yml +295 -0
  380. data/config/locales/admin_ui.pt-BR.yml +270 -0
  381. data/config/locales/admin_ui.ru.yml +292 -0
  382. data/config/locales/carrierwave.de.yml +4 -0
  383. data/config/locales/{carrierwave_en.yml → carrierwave.en.yml} +0 -0
  384. data/config/locales/carrierwave.es.yml +4 -0
  385. data/config/locales/{carrierwave_fr.yml → carrierwave.fr.yml} +0 -0
  386. data/config/locales/carrierwave.it.yml +4 -0
  387. data/config/locales/carrierwave.nl.yml +4 -0
  388. data/config/locales/carrierwave.no.yml +4 -0
  389. data/config/locales/carrierwave.pt-BR.yml +4 -0
  390. data/config/locales/carrierwave.ru.yml +4 -0
  391. data/config/locales/default.de.yml +233 -0
  392. data/config/locales/default.en.yml +36 -0
  393. data/config/locales/default.es.yml +216 -0
  394. data/config/locales/default.fr.yml +206 -0
  395. data/config/locales/default.it.yml +243 -0
  396. data/config/locales/default.nl.yml +170 -0
  397. data/config/locales/default.no.yml +271 -0
  398. data/config/locales/default.pt-BR.yml +211 -0
  399. data/config/locales/default.ru.yml +281 -0
  400. data/config/locales/devise.de.yml +62 -0
  401. data/config/locales/devise.en.yml +11 -10
  402. data/config/locales/devise.es.yml +63 -0
  403. data/config/locales/devise.fr.yml +8 -8
  404. data/config/locales/devise.it.yml +63 -0
  405. data/config/locales/devise.nl.yml +63 -0
  406. data/config/locales/devise.no.yml +63 -0
  407. data/config/locales/devise.pt-BR.yml +61 -0
  408. data/config/locales/devise.ru.yml +63 -0
  409. data/config/locales/flash.de.yml +106 -0
  410. data/config/locales/flash.en.yml +11 -21
  411. data/config/locales/flash.es.yml +106 -0
  412. data/config/locales/flash.fr.yml +5 -15
  413. data/config/locales/flash.it.yml +106 -0
  414. data/config/locales/flash.nl.yml +106 -0
  415. data/config/locales/flash.no.yml +106 -0
  416. data/config/locales/flash.pt-BR.yml +106 -0
  417. data/config/locales/flash.ru.yml +106 -0
  418. data/config/locales/formtastic.de.yml +97 -0
  419. data/config/locales/formtastic.en.yml +109 -0
  420. data/config/locales/formtastic.es.yml +84 -0
  421. data/config/locales/formtastic.fr.yml +99 -0
  422. data/config/locales/formtastic.it.yml +99 -0
  423. data/config/locales/formtastic.nl.yml +85 -0
  424. data/config/locales/formtastic.no.yml +99 -0
  425. data/config/locales/formtastic.pt-BR.yml +70 -0
  426. data/config/locales/formtastic.ru.yml +99 -0
  427. data/config/routes.rb +71 -40
  428. data/lib/generators/locomotive/install/install_generator.rb +12 -11
  429. data/lib/generators/locomotive/install/templates/README +4 -5
  430. data/lib/generators/locomotive/install/templates/carrierwave.rb +25 -0
  431. data/lib/generators/locomotive/install/templates/dragonfly.rb +22 -0
  432. data/lib/generators/locomotive/install/templates/locomotive.rb +48 -26
  433. data/lib/generators/locomotive/install/templates/mongoid.yml +34 -0
  434. data/lib/locomotive.rb +87 -16
  435. data/lib/locomotive/action_controller.rb +5 -0
  436. data/lib/locomotive/action_controller/locale_helpers.rb +61 -0
  437. data/lib/locomotive/action_controller/public_responder.rb +17 -0
  438. data/lib/locomotive/action_controller/responder.rb +65 -0
  439. data/lib/locomotive/action_controller/section_helpers.rb +29 -0
  440. data/lib/locomotive/action_controller/url_helpers.rb +37 -0
  441. data/lib/locomotive/carrierwave.rb +1 -1
  442. data/lib/locomotive/carrierwave/asset.rb +66 -0
  443. data/lib/locomotive/carrierwave/patches.rb +15 -43
  444. data/lib/locomotive/configuration.rb +62 -12
  445. data/lib/locomotive/core_ext.rb +28 -30
  446. data/lib/locomotive/custom_fields.rb +24 -1
  447. data/lib/locomotive/dependencies.rb +30 -0
  448. data/lib/locomotive/devise.rb +1 -0
  449. data/lib/locomotive/dragonfly.rb +36 -0
  450. data/lib/locomotive/engine.rb +27 -25
  451. data/lib/locomotive/formtastic.rb +13 -0
  452. data/lib/locomotive/httparty/patches.rb +18 -18
  453. data/lib/locomotive/httparty/webservice.rb +7 -1
  454. data/lib/locomotive/kaminari.rb +35 -0
  455. data/lib/locomotive/liquid.rb +1 -0
  456. data/lib/locomotive/liquid/drops/base.rb +4 -14
  457. data/lib/locomotive/liquid/drops/content_entry.rb +62 -0
  458. data/lib/locomotive/liquid/drops/content_types.rb +48 -0
  459. data/lib/locomotive/liquid/drops/page.rb +23 -5
  460. data/lib/locomotive/liquid/drops/proxy_collection.rb +56 -0
  461. data/lib/locomotive/liquid/drops/site.rb +6 -2
  462. data/lib/locomotive/liquid/filters/date.rb +16 -11
  463. data/lib/locomotive/liquid/filters/html.rb +49 -15
  464. data/lib/locomotive/liquid/filters/misc.rb +12 -0
  465. data/lib/locomotive/liquid/filters/resize.rb +16 -0
  466. data/lib/locomotive/liquid/tags/editable.rb +2 -1
  467. data/lib/locomotive/liquid/tags/editable/base.rb +33 -11
  468. data/lib/locomotive/liquid/tags/editable/content.rb +49 -0
  469. data/lib/locomotive/liquid/tags/inherited_block.rb +1 -1
  470. data/lib/locomotive/liquid/tags/inline_editor.rb +20 -37
  471. data/lib/locomotive/liquid/tags/locale_switcher.rb +75 -0
  472. data/lib/locomotive/liquid/tags/nav.rb +50 -23
  473. data/lib/locomotive/liquid/tags/paginate.rb +9 -5
  474. data/lib/locomotive/liquid/tags/seo.rb +72 -0
  475. data/lib/locomotive/liquid/tags/snippet.rb +9 -4
  476. data/lib/locomotive/liquid/tags/with_scope.rb +6 -6
  477. data/lib/locomotive/logger.rb +2 -2
  478. data/lib/locomotive/middlewares.rb +3 -1
  479. data/lib/locomotive/middlewares/cache.rb +27 -0
  480. data/lib/locomotive/middlewares/fonts.rb +13 -7
  481. data/lib/locomotive/middlewares/seo_trailing_slash.rb +24 -0
  482. data/lib/locomotive/mongoid.rb +1 -1
  483. data/lib/locomotive/mongoid/document.rb +0 -1
  484. data/lib/locomotive/mongoid/patches.rb +43 -78
  485. data/lib/locomotive/render.rb +95 -78
  486. data/lib/locomotive/routing/default_constraint.rb +8 -4
  487. data/lib/locomotive/routing/site_dispatcher.rb +24 -19
  488. data/lib/locomotive/session_store.rb +8 -1
  489. data/lib/locomotive/version.rb +1 -1
  490. data/lib/tasks/cucumber.rake +16 -3
  491. data/lib/tasks/locomotive.rake +242 -0
  492. data/public/favicon.ico +0 -0
  493. data/vendor/assets/javascripts/locomotive/ICanHandlebarz.js +88 -0
  494. data/vendor/assets/javascripts/locomotive/backbone.modelbinding.js +556 -0
  495. data/vendor/assets/javascripts/locomotive/backbone.sync.js +113 -0
  496. data/{public/javascripts/admin/plugins/cookie.js → vendor/assets/javascripts/locomotive/cookies.js} +0 -0
  497. data/vendor/assets/javascripts/locomotive/datepicker_fr.js +16 -0
  498. data/vendor/assets/javascripts/locomotive/editable_field.js +50 -0
  499. data/{public/javascripts/admin/plugins → vendor/assets/javascripts/locomotive}/growl.js +0 -0
  500. data/vendor/assets/javascripts/locomotive/handlebars.js +1493 -0
  501. data/vendor/assets/javascripts/locomotive/liquid_mode.js +42 -0
  502. data/vendor/assets/javascripts/locomotive/menu_toggler.js +33 -0
  503. data/vendor/assets/javascripts/locomotive/resize.js +9 -0
  504. data/vendor/assets/javascripts/locomotive/slugify.js +31 -0
  505. data/vendor/assets/javascripts/locomotive/smartupdater.js +296 -0
  506. data/vendor/assets/javascripts/locomotive/subscribe.js +367 -0
  507. data/vendor/assets/javascripts/locomotive/toggle.js +142 -0
  508. data/vendor/assets/javascripts/locomotive/vendor.js +1 -0
  509. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/blueprint/ie.css +0 -0
  510. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/blueprint/print.css +0 -0
  511. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/blueprint/screen.css +0 -0
  512. data/vendor/assets/stylesheets/locomotive/jquery.css +3 -0
  513. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  514. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  515. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  516. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  517. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  518. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  519. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  520. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  521. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_222222_256x240.png +0 -0
  522. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_2e83ff_256x240.png +0 -0
  523. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_454545_256x240.png +0 -0
  524. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_888888_256x240.png +0 -0
  525. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_cd0a0a_256x240.png +0 -0
  526. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/images/ui-icons_ffffff_256x240.png +0 -0
  527. data/{public/stylesheets/admin → vendor/assets/stylesheets/locomotive}/jquery/ui.css +0 -0
  528. data/vendor/assets/stylesheets/locomotive/liquid_mode.css +9 -0
  529. data/vendor/assets/stylesheets/locomotive/toggle.css.scss +52 -0
  530. metadata +782 -1678
  531. data/app/controllers/admin/accounts_controller.rb +0 -18
  532. data/app/controllers/admin/api_contents_controller.rb +0 -39
  533. data/app/controllers/admin/asset_collections_controller.rb +0 -25
  534. data/app/controllers/admin/assets_controller.rb +0 -30
  535. data/app/controllers/admin/base_controller.rb +0 -56
  536. data/app/controllers/admin/content_types_controller.rb +0 -11
  537. data/app/controllers/admin/contents_controller.rb +0 -45
  538. data/app/controllers/admin/cross_domain_sessions_controller.rb +0 -37
  539. data/app/controllers/admin/current_sites_controller.rb +0 -33
  540. data/app/controllers/admin/custom_fields_controller.rb +0 -39
  541. data/app/controllers/admin/images_controller.rb +0 -51
  542. data/app/controllers/admin/imports_controller.rb +0 -45
  543. data/app/controllers/admin/installation_controller.rb +0 -79
  544. data/app/controllers/admin/memberships_controller.rb +0 -26
  545. data/app/controllers/admin/my_accounts_controller.rb +0 -23
  546. data/app/controllers/admin/pages_controller.rb +0 -42
  547. data/app/controllers/admin/passwords_controller.rb +0 -13
  548. data/app/controllers/admin/rendering_controller.rb +0 -15
  549. data/app/controllers/admin/sessions_controller.rb +0 -19
  550. data/app/controllers/admin/sitemaps_controller.rb +0 -16
  551. data/app/controllers/admin/sites_controller.rb +0 -32
  552. data/app/controllers/admin/snippets_controller.rb +0 -15
  553. data/app/controllers/admin/theme_assets_controller.rb +0 -50
  554. data/app/controllers/application_controller.rb +0 -11
  555. data/app/helpers/admin/accounts_helper.rb +0 -8
  556. data/app/helpers/admin/assets_helper.rb +0 -15
  557. data/app/helpers/admin/base_helper.rb +0 -54
  558. data/app/helpers/admin/box_helper.rb +0 -21
  559. data/app/helpers/admin/custom_fields_helper.rb +0 -36
  560. data/app/helpers/admin/pages_helper.rb +0 -51
  561. data/app/helpers/admin/sites_helper.rb +0 -24
  562. data/app/models/account.rb +0 -63
  563. data/app/models/asset.rb +0 -43
  564. data/app/models/asset_collection.rb +0 -81
  565. data/app/models/content_instance.rb +0 -95
  566. data/app/models/content_type.rb +0 -114
  567. data/app/models/editable_element.rb +0 -21
  568. data/app/models/editable_file.rb +0 -9
  569. data/app/models/editable_long_text.rb +0 -3
  570. data/app/models/editable_short_text.rb +0 -12
  571. data/app/models/extensions/asset/vignette.rb +0 -42
  572. data/app/models/extensions/page/editable_elements.rb +0 -111
  573. data/app/models/extensions/page/parse.rb +0 -107
  574. data/app/models/extensions/page/redirect.rb +0 -25
  575. data/app/models/extensions/page/render.rb +0 -13
  576. data/app/models/extensions/page/templatized.rb +0 -32
  577. data/app/models/extensions/page/tree.rb +0 -156
  578. data/app/models/membership.rb +0 -39
  579. data/app/models/page.rb +0 -104
  580. data/app/models/site.rb +0 -112
  581. data/app/models/snippet.rb +0 -64
  582. data/app/models/theme_asset.rb +0 -138
  583. data/app/uploaders/asset_uploader.rb +0 -73
  584. data/app/uploaders/editable_file_uploader.rb +0 -11
  585. data/app/uploaders/theme_asset_uploader.rb +0 -32
  586. data/app/uploaders/theme_uploader.rb +0 -19
  587. data/app/views/admin/accounts/new.html.haml +0 -22
  588. data/app/views/admin/asset_collections/_asset.html.haml +0 -7
  589. data/app/views/admin/asset_collections/edit.html.haml +0 -33
  590. data/app/views/admin/asset_collections/index.html.haml +0 -8
  591. data/app/views/admin/asset_collections/new.html.haml +0 -17
  592. data/app/views/admin/assets/_form.html.haml +0 -17
  593. data/app/views/admin/assets/edit.html.haml +0 -15
  594. data/app/views/admin/assets/new.html.haml +0 -12
  595. data/app/views/admin/content_types/_form.html.haml +0 -22
  596. data/app/views/admin/content_types/edit.html.haml +0 -18
  597. data/app/views/admin/content_types/new.html.haml +0 -17
  598. data/app/views/admin/contents/_form.html.haml +0 -5
  599. data/app/views/admin/contents/_list.html.haml +0 -15
  600. data/app/views/admin/contents/edit.html.haml +0 -16
  601. data/app/views/admin/contents/index.html.haml +0 -27
  602. data/app/views/admin/contents/new.html.haml +0 -15
  603. data/app/views/admin/cross_domain_sessions/new.html.haml +0 -14
  604. data/app/views/admin/current_sites/_form.html.haml +0 -50
  605. data/app/views/admin/current_sites/edit.html.haml +0 -16
  606. data/app/views/admin/custom_fields/_custom_form.html.haml +0 -31
  607. data/app/views/admin/custom_fields/_edit_field.html.haml +0 -10
  608. data/app/views/admin/custom_fields/_index.html.haml +0 -61
  609. data/app/views/admin/custom_fields/edit_category.html.haml +0 -43
  610. data/app/views/admin/errors/404.html.haml +0 -7
  611. data/app/views/admin/errors/500.html.haml +0 -7
  612. data/app/views/admin/imports/new.html.haml +0 -32
  613. data/app/views/admin/imports/show.html.haml +0 -19
  614. data/app/views/admin/installation/step_1.html.haml +0 -24
  615. data/app/views/admin/installation/step_2.html.haml +0 -26
  616. data/app/views/admin/installation/step_3.html.haml +0 -23
  617. data/app/views/admin/layouts/application.html.haml +0 -27
  618. data/app/views/admin/layouts/box.html.haml +0 -21
  619. data/app/views/admin/mailer/confirmation_instructions.html.haml +0 -8
  620. data/app/views/admin/mailer/reset_password_instructions.html.haml +0 -12
  621. data/app/views/admin/mailer/unlock_instructions.html.haml +0 -10
  622. data/app/views/admin/memberships/new.html.haml +0 -15
  623. data/app/views/admin/my_accounts/edit.html.haml +0 -46
  624. data/app/views/admin/pages/_editable_elements.html.haml +0 -35
  625. data/app/views/admin/pages/_form.html.haml +0 -38
  626. data/app/views/admin/pages/_page.html.haml +0 -18
  627. data/app/views/admin/pages/edit.html.haml +0 -15
  628. data/app/views/admin/pages/index.html.haml +0 -18
  629. data/app/views/admin/pages/new.html.haml +0 -12
  630. data/app/views/admin/passwords/edit.html.haml +0 -18
  631. data/app/views/admin/passwords/new.html.haml +0 -17
  632. data/app/views/admin/sessions/new.html.haml +0 -17
  633. data/app/views/admin/shared/_footer.html.haml +0 -2
  634. data/app/views/admin/shared/_form_actions.html.haml +0 -15
  635. data/app/views/admin/shared/_head.html.haml +0 -17
  636. data/app/views/admin/shared/_header.html.haml +0 -15
  637. data/app/views/admin/shared/_menu.html.haml +0 -5
  638. data/app/views/admin/shared/menu/_assets.html.haml +0 -7
  639. data/app/views/admin/shared/menu/_contents.html.haml +0 -27
  640. data/app/views/admin/shared/menu/_settings.html.haml +0 -5
  641. data/app/views/admin/sitemaps/show.xml.builder +0 -28
  642. data/app/views/admin/sites/_form.html.haml +0 -35
  643. data/app/views/admin/sites/new.html.haml +0 -12
  644. data/app/views/admin/snippets/_form.html.haml +0 -14
  645. data/app/views/admin/snippets/_snippet.html.haml +0 -8
  646. data/app/views/admin/snippets/edit.html.haml +0 -15
  647. data/app/views/admin/snippets/new.html.haml +0 -12
  648. data/app/views/admin/theme_assets/_asset.html.haml +0 -13
  649. data/app/views/admin/theme_assets/_form.html.haml +0 -37
  650. data/app/views/admin/theme_assets/edit.html.haml +0 -15
  651. data/app/views/admin/theme_assets/images.html.haml +0 -15
  652. data/app/views/admin/theme_assets/index.html.haml +0 -51
  653. data/app/views/admin/theme_assets/new.html.haml +0 -12
  654. data/config/application.rb +0 -50
  655. data/config/assets.yml +0 -97
  656. data/config/boot.rb +0 -6
  657. data/config/environment.rb +0 -5
  658. data/config/environments/development.rb +0 -30
  659. data/config/environments/production.rb +0 -48
  660. data/config/environments/test.rb +0 -35
  661. data/config/initializers/backtrace_silencers.rb +0 -7
  662. data/config/initializers/carrierwave.rb +0 -17
  663. data/config/initializers/inflections.rb +0 -15
  664. data/config/initializers/locomotive.rb +0 -42
  665. data/config/initializers/mime_types.rb +0 -5
  666. data/config/initializers/rspec_generator.rb +0 -8
  667. data/config/initializers/secret_token.rb +0 -7
  668. data/config/locales/admin_ui_en.yml +0 -355
  669. data/config/locales/admin_ui_fr.yml +0 -354
  670. data/config/locales/default_en.yml +0 -32
  671. data/config/locales/default_fr.yml +0 -197
  672. data/config/mongoid.yml +0 -32
  673. data/lib/locomotive/admin_responder.rb +0 -28
  674. data/lib/locomotive/delayed_job.rb +0 -47
  675. data/lib/locomotive/heroku.rb +0 -61
  676. data/lib/locomotive/heroku/custom_domain.rb +0 -52
  677. data/lib/locomotive/import.rb +0 -9
  678. data/lib/locomotive/import/asset_collections.rb +0 -85
  679. data/lib/locomotive/import/assets.rb +0 -82
  680. data/lib/locomotive/import/base.rb +0 -46
  681. data/lib/locomotive/import/content_types.rb +0 -120
  682. data/lib/locomotive/import/job.rb +0 -168
  683. data/lib/locomotive/import/logger.rb +0 -13
  684. data/lib/locomotive/import/pages.rb +0 -188
  685. data/lib/locomotive/import/site.rb +0 -15
  686. data/lib/locomotive/import/snippets.rb +0 -21
  687. data/lib/locomotive/inherited_resources.rb +0 -47
  688. data/lib/locomotive/liquid/drops/asset.rb +0 -21
  689. data/lib/locomotive/liquid/drops/asset_collections.rb +0 -54
  690. data/lib/locomotive/liquid/drops/content.rb +0 -21
  691. data/lib/locomotive/liquid/drops/contents.rb +0 -66
  692. data/lib/locomotive/misc_form_builder.rb +0 -42
  693. data/lib/locomotive/railties/tasks.rake +0 -16
  694. data/lib/tasks/rspec.rake +0 -69
  695. data/public/images/admin/background/footer.png +0 -0
  696. data/public/images/admin/box/bottom_panel_bg.png +0 -0
  697. data/public/images/admin/box/buttons/left_bg.png +0 -0
  698. data/public/images/admin/box/buttons/right_bg.png +0 -0
  699. data/public/images/admin/box/content_panel_bg.png +0 -0
  700. data/public/images/admin/box/input_bg.png +0 -0
  701. data/public/images/admin/box/top_panel_bg.png +0 -0
  702. data/public/images/admin/buttons/action-left.png +0 -0
  703. data/public/images/admin/buttons/action-right.png +0 -0
  704. data/public/images/admin/buttons/add-left.png +0 -0
  705. data/public/images/admin/buttons/add-right.png +0 -0
  706. data/public/images/admin/buttons/dark-gray-bg.png +0 -0
  707. data/public/images/admin/buttons/dark-gray-left.png +0 -0
  708. data/public/images/admin/buttons/dark-gray-right.png +0 -0
  709. data/public/images/admin/buttons/emboss-left.png +0 -0
  710. data/public/images/admin/buttons/emboss-right.png +0 -0
  711. data/public/images/admin/buttons/gray-left.png +0 -0
  712. data/public/images/admin/buttons/gray-right.png +0 -0
  713. data/public/images/admin/buttons/light-gray-left.png +0 -0
  714. data/public/images/admin/buttons/light-gray-right.png +0 -0
  715. data/public/images/admin/buttons/search.png +0 -0
  716. data/public/images/admin/buttons/transparent-left.png +0 -0
  717. data/public/images/admin/buttons/transparent-right.png +0 -0
  718. data/public/images/admin/form/big_item-popup.png +0 -0
  719. data/public/images/admin/form/big_item.png +0 -0
  720. data/public/images/admin/form/error-arrow.png +0 -0
  721. data/public/images/admin/form/field.png +0 -0
  722. data/public/images/admin/form/folded.png +0 -0
  723. data/public/images/admin/form/footer-popup.png +0 -0
  724. data/public/images/admin/form/footer.png +0 -0
  725. data/public/images/admin/form/growl-error.png +0 -0
  726. data/public/images/admin/form/growl-notice.png +0 -0
  727. data/public/images/admin/form/header-first-on.png +0 -0
  728. data/public/images/admin/form/header-left-on.png +0 -0
  729. data/public/images/admin/form/header-on.png +0 -0
  730. data/public/images/admin/form/header-popup.png +0 -0
  731. data/public/images/admin/form/header-right-on.png +0 -0
  732. data/public/images/admin/form/header.png +0 -0
  733. data/public/images/admin/form/item-popup.png +0 -0
  734. data/public/images/admin/form/item.png +0 -0
  735. data/public/images/admin/form/pen.png +0 -0
  736. data/public/images/admin/icons/filetype/medium/AC3.png +0 -0
  737. data/public/images/admin/icons/filetype/medium/ACE.png +0 -0
  738. data/public/images/admin/icons/filetype/medium/ADE.png +0 -0
  739. data/public/images/admin/icons/filetype/medium/ADP.png +0 -0
  740. data/public/images/admin/icons/filetype/medium/AI.png +0 -0
  741. data/public/images/admin/icons/filetype/medium/AIFF.png +0 -0
  742. data/public/images/admin/icons/filetype/medium/AU.png +0 -0
  743. data/public/images/admin/icons/filetype/medium/AVI.png +0 -0
  744. data/public/images/admin/icons/filetype/medium/BAT.png +0 -0
  745. data/public/images/admin/icons/filetype/medium/BIN.png +0 -0
  746. data/public/images/admin/icons/filetype/medium/BMP.png +0 -0
  747. data/public/images/admin/icons/filetype/medium/BUP.png +0 -0
  748. data/public/images/admin/icons/filetype/medium/CAB.png +0 -0
  749. data/public/images/admin/icons/filetype/medium/CAT.png +0 -0
  750. data/public/images/admin/icons/filetype/medium/CHM.png +0 -0
  751. data/public/images/admin/icons/filetype/medium/CSS.png +0 -0
  752. data/public/images/admin/icons/filetype/medium/CUE.png +0 -0
  753. data/public/images/admin/icons/filetype/medium/DAT.png +0 -0
  754. data/public/images/admin/icons/filetype/medium/DCR.png +0 -0
  755. data/public/images/admin/icons/filetype/medium/DER.png +0 -0
  756. data/public/images/admin/icons/filetype/medium/DIC.png +0 -0
  757. data/public/images/admin/icons/filetype/medium/DIVX.png +0 -0
  758. data/public/images/admin/icons/filetype/medium/DIZ.png +0 -0
  759. data/public/images/admin/icons/filetype/medium/DLL.png +0 -0
  760. data/public/images/admin/icons/filetype/medium/DOC.png +0 -0
  761. data/public/images/admin/icons/filetype/medium/DOCX.png +0 -0
  762. data/public/images/admin/icons/filetype/medium/DOS.png +0 -0
  763. data/public/images/admin/icons/filetype/medium/DVD.png +0 -0
  764. data/public/images/admin/icons/filetype/medium/DWG.png +0 -0
  765. data/public/images/admin/icons/filetype/medium/DWT.png +0 -0
  766. data/public/images/admin/icons/filetype/medium/EMF.png +0 -0
  767. data/public/images/admin/icons/filetype/medium/EXC.png +0 -0
  768. data/public/images/admin/icons/filetype/medium/FON.png +0 -0
  769. data/public/images/admin/icons/filetype/medium/GIF.png +0 -0
  770. data/public/images/admin/icons/filetype/medium/HLP.png +0 -0
  771. data/public/images/admin/icons/filetype/medium/HTML.png +0 -0
  772. data/public/images/admin/icons/filetype/medium/IFO.png +0 -0
  773. data/public/images/admin/icons/filetype/medium/INF.png +0 -0
  774. data/public/images/admin/icons/filetype/medium/INI.png +0 -0
  775. data/public/images/admin/icons/filetype/medium/INS.png +0 -0
  776. data/public/images/admin/icons/filetype/medium/IP.png +0 -0
  777. data/public/images/admin/icons/filetype/medium/ISO.png +0 -0
  778. data/public/images/admin/icons/filetype/medium/ISP.png +0 -0
  779. data/public/images/admin/icons/filetype/medium/JAVA.png +0 -0
  780. data/public/images/admin/icons/filetype/medium/JFIF.png +0 -0
  781. data/public/images/admin/icons/filetype/medium/JPEG.png +0 -0
  782. data/public/images/admin/icons/filetype/medium/JPG.png +0 -0
  783. data/public/images/admin/icons/filetype/medium/LOG.png +0 -0
  784. data/public/images/admin/icons/filetype/medium/M4A.png +0 -0
  785. data/public/images/admin/icons/filetype/medium/MID.png +0 -0
  786. data/public/images/admin/icons/filetype/medium/MMF.png +0 -0
  787. data/public/images/admin/icons/filetype/medium/MMM.png +0 -0
  788. data/public/images/admin/icons/filetype/medium/MOV.png +0 -0
  789. data/public/images/admin/icons/filetype/medium/MOVIE.png +0 -0
  790. data/public/images/admin/icons/filetype/medium/MP2.png +0 -0
  791. data/public/images/admin/icons/filetype/medium/MP2V.png +0 -0
  792. data/public/images/admin/icons/filetype/medium/MP3.png +0 -0
  793. data/public/images/admin/icons/filetype/medium/MP4.png +0 -0
  794. data/public/images/admin/icons/filetype/medium/MPE.png +0 -0
  795. data/public/images/admin/icons/filetype/medium/MPEG.png +0 -0
  796. data/public/images/admin/icons/filetype/medium/MPG.png +0 -0
  797. data/public/images/admin/icons/filetype/medium/MPV2.png +0 -0
  798. data/public/images/admin/icons/filetype/medium/NFO.png +0 -0
  799. data/public/images/admin/icons/filetype/medium/PDD.png +0 -0
  800. data/public/images/admin/icons/filetype/medium/PDF.png +0 -0
  801. data/public/images/admin/icons/filetype/medium/PHP.png +0 -0
  802. data/public/images/admin/icons/filetype/medium/PNG.png +0 -0
  803. data/public/images/admin/icons/filetype/medium/PPT.png +0 -0
  804. data/public/images/admin/icons/filetype/medium/PPTX.png +0 -0
  805. data/public/images/admin/icons/filetype/medium/PSD.png +0 -0
  806. data/public/images/admin/icons/filetype/medium/RAR.png +0 -0
  807. data/public/images/admin/icons/filetype/medium/REG.png +0 -0
  808. data/public/images/admin/icons/filetype/medium/RTF.png +0 -0
  809. data/public/images/admin/icons/filetype/medium/SCP.png +0 -0
  810. data/public/images/admin/icons/filetype/medium/THEME.png +0 -0
  811. data/public/images/admin/icons/filetype/medium/TIF.png +0 -0
  812. data/public/images/admin/icons/filetype/medium/TIFF.png +0 -0
  813. data/public/images/admin/icons/filetype/medium/TLB.png +0 -0
  814. data/public/images/admin/icons/filetype/medium/TTF.png +0 -0
  815. data/public/images/admin/icons/filetype/medium/TXT.png +0 -0
  816. data/public/images/admin/icons/filetype/medium/Thumbs.db +0 -0
  817. data/public/images/admin/icons/filetype/medium/UIS.png +0 -0
  818. data/public/images/admin/icons/filetype/medium/URL.png +0 -0
  819. data/public/images/admin/icons/filetype/medium/VBS.png +0 -0
  820. data/public/images/admin/icons/filetype/medium/VCR.png +0 -0
  821. data/public/images/admin/icons/filetype/medium/VOB.png +0 -0
  822. data/public/images/admin/icons/filetype/medium/WAV.png +0 -0
  823. data/public/images/admin/icons/filetype/medium/WBA.png +0 -0
  824. data/public/images/admin/icons/filetype/medium/WMA.png +0 -0
  825. data/public/images/admin/icons/filetype/medium/WMV.png +0 -0
  826. data/public/images/admin/icons/filetype/medium/WPL.png +0 -0
  827. data/public/images/admin/icons/filetype/medium/WRI.png +0 -0
  828. data/public/images/admin/icons/filetype/medium/WTX.png +0 -0
  829. data/public/images/admin/icons/filetype/medium/XLS.png +0 -0
  830. data/public/images/admin/icons/filetype/medium/XLSX.png +0 -0
  831. data/public/images/admin/icons/filetype/medium/XML.png +0 -0
  832. data/public/images/admin/icons/filetype/medium/XSL.png +0 -0
  833. data/public/images/admin/icons/filetype/medium/ZAP.png +0 -0
  834. data/public/images/admin/icons/filetype/medium/ZIP.png +0 -0
  835. data/public/images/admin/icons/filetype/medium/unknown.png +0 -0
  836. data/public/images/admin/icons/filetype/thumb/AC3.png +0 -0
  837. data/public/images/admin/icons/filetype/thumb/ACE.png +0 -0
  838. data/public/images/admin/icons/filetype/thumb/ADE.png +0 -0
  839. data/public/images/admin/icons/filetype/thumb/ADP.png +0 -0
  840. data/public/images/admin/icons/filetype/thumb/AI.png +0 -0
  841. data/public/images/admin/icons/filetype/thumb/AIFF.png +0 -0
  842. data/public/images/admin/icons/filetype/thumb/AU.png +0 -0
  843. data/public/images/admin/icons/filetype/thumb/AVI.png +0 -0
  844. data/public/images/admin/icons/filetype/thumb/BAT.png +0 -0
  845. data/public/images/admin/icons/filetype/thumb/BIN.png +0 -0
  846. data/public/images/admin/icons/filetype/thumb/BMP.png +0 -0
  847. data/public/images/admin/icons/filetype/thumb/BUP.png +0 -0
  848. data/public/images/admin/icons/filetype/thumb/CAB.png +0 -0
  849. data/public/images/admin/icons/filetype/thumb/CAT.png +0 -0
  850. data/public/images/admin/icons/filetype/thumb/CHM.png +0 -0
  851. data/public/images/admin/icons/filetype/thumb/CSS.png +0 -0
  852. data/public/images/admin/icons/filetype/thumb/CUE.png +0 -0
  853. data/public/images/admin/icons/filetype/thumb/DAT.png +0 -0
  854. data/public/images/admin/icons/filetype/thumb/DCR.png +0 -0
  855. data/public/images/admin/icons/filetype/thumb/DER.png +0 -0
  856. data/public/images/admin/icons/filetype/thumb/DIC.png +0 -0
  857. data/public/images/admin/icons/filetype/thumb/DIVX.png +0 -0
  858. data/public/images/admin/icons/filetype/thumb/DIZ.png +0 -0
  859. data/public/images/admin/icons/filetype/thumb/DLL.png +0 -0
  860. data/public/images/admin/icons/filetype/thumb/DOC.png +0 -0
  861. data/public/images/admin/icons/filetype/thumb/DOCX.png +0 -0
  862. data/public/images/admin/icons/filetype/thumb/DOS.png +0 -0
  863. data/public/images/admin/icons/filetype/thumb/DVD.png +0 -0
  864. data/public/images/admin/icons/filetype/thumb/DWG.png +0 -0
  865. data/public/images/admin/icons/filetype/thumb/DWT.png +0 -0
  866. data/public/images/admin/icons/filetype/thumb/EMF.png +0 -0
  867. data/public/images/admin/icons/filetype/thumb/EXC.png +0 -0
  868. data/public/images/admin/icons/filetype/thumb/FON.png +0 -0
  869. data/public/images/admin/icons/filetype/thumb/GIF.png +0 -0
  870. data/public/images/admin/icons/filetype/thumb/HLP.png +0 -0
  871. data/public/images/admin/icons/filetype/thumb/HTML.png +0 -0
  872. data/public/images/admin/icons/filetype/thumb/IFO.png +0 -0
  873. data/public/images/admin/icons/filetype/thumb/INF.png +0 -0
  874. data/public/images/admin/icons/filetype/thumb/INI.png +0 -0
  875. data/public/images/admin/icons/filetype/thumb/INS.png +0 -0
  876. data/public/images/admin/icons/filetype/thumb/IP.png +0 -0
  877. data/public/images/admin/icons/filetype/thumb/ISO.png +0 -0
  878. data/public/images/admin/icons/filetype/thumb/ISP.png +0 -0
  879. data/public/images/admin/icons/filetype/thumb/JAVA.png +0 -0
  880. data/public/images/admin/icons/filetype/thumb/JFIF.png +0 -0
  881. data/public/images/admin/icons/filetype/thumb/JPEG.png +0 -0
  882. data/public/images/admin/icons/filetype/thumb/JPG.png +0 -0
  883. data/public/images/admin/icons/filetype/thumb/LOG.png +0 -0
  884. data/public/images/admin/icons/filetype/thumb/M4A.png +0 -0
  885. data/public/images/admin/icons/filetype/thumb/MID.png +0 -0
  886. data/public/images/admin/icons/filetype/thumb/MMF.png +0 -0
  887. data/public/images/admin/icons/filetype/thumb/MMM.png +0 -0
  888. data/public/images/admin/icons/filetype/thumb/MOV.png +0 -0
  889. data/public/images/admin/icons/filetype/thumb/MOVIE.png +0 -0
  890. data/public/images/admin/icons/filetype/thumb/MP2.png +0 -0
  891. data/public/images/admin/icons/filetype/thumb/MP2V.png +0 -0
  892. data/public/images/admin/icons/filetype/thumb/MP3.png +0 -0
  893. data/public/images/admin/icons/filetype/thumb/MP4.png +0 -0
  894. data/public/images/admin/icons/filetype/thumb/MPE.png +0 -0
  895. data/public/images/admin/icons/filetype/thumb/MPEG.png +0 -0
  896. data/public/images/admin/icons/filetype/thumb/MPG.png +0 -0
  897. data/public/images/admin/icons/filetype/thumb/MPV2.png +0 -0
  898. data/public/images/admin/icons/filetype/thumb/NFO.png +0 -0
  899. data/public/images/admin/icons/filetype/thumb/PDD.png +0 -0
  900. data/public/images/admin/icons/filetype/thumb/PDF.png +0 -0
  901. data/public/images/admin/icons/filetype/thumb/PHP.png +0 -0
  902. data/public/images/admin/icons/filetype/thumb/PNG.png +0 -0
  903. data/public/images/admin/icons/filetype/thumb/PPT.png +0 -0
  904. data/public/images/admin/icons/filetype/thumb/PPTX.png +0 -0
  905. data/public/images/admin/icons/filetype/thumb/PSD.png +0 -0
  906. data/public/images/admin/icons/filetype/thumb/RAR.png +0 -0
  907. data/public/images/admin/icons/filetype/thumb/REG.png +0 -0
  908. data/public/images/admin/icons/filetype/thumb/RTF.png +0 -0
  909. data/public/images/admin/icons/filetype/thumb/SCP.png +0 -0
  910. data/public/images/admin/icons/filetype/thumb/THEME.png +0 -0
  911. data/public/images/admin/icons/filetype/thumb/TIF.png +0 -0
  912. data/public/images/admin/icons/filetype/thumb/TIFF.png +0 -0
  913. data/public/images/admin/icons/filetype/thumb/TLB.png +0 -0
  914. data/public/images/admin/icons/filetype/thumb/TTF.png +0 -0
  915. data/public/images/admin/icons/filetype/thumb/TXT.png +0 -0
  916. data/public/images/admin/icons/filetype/thumb/UIS.png +0 -0
  917. data/public/images/admin/icons/filetype/thumb/URL.png +0 -0
  918. data/public/images/admin/icons/filetype/thumb/VBS.png +0 -0
  919. data/public/images/admin/icons/filetype/thumb/VCR.png +0 -0
  920. data/public/images/admin/icons/filetype/thumb/VOB.png +0 -0
  921. data/public/images/admin/icons/filetype/thumb/WAV.png +0 -0
  922. data/public/images/admin/icons/filetype/thumb/WBA.png +0 -0
  923. data/public/images/admin/icons/filetype/thumb/WMA.png +0 -0
  924. data/public/images/admin/icons/filetype/thumb/WMV.png +0 -0
  925. data/public/images/admin/icons/filetype/thumb/WPL.png +0 -0
  926. data/public/images/admin/icons/filetype/thumb/WRI.png +0 -0
  927. data/public/images/admin/icons/filetype/thumb/WTX.png +0 -0
  928. data/public/images/admin/icons/filetype/thumb/XLS.png +0 -0
  929. data/public/images/admin/icons/filetype/thumb/XLSX.png +0 -0
  930. data/public/images/admin/icons/filetype/thumb/XML.png +0 -0
  931. data/public/images/admin/icons/filetype/thumb/XSL.png +0 -0
  932. data/public/images/admin/icons/filetype/thumb/ZAP.png +0 -0
  933. data/public/images/admin/icons/filetype/thumb/ZIP.png +0 -0
  934. data/public/images/admin/icons/filetype/thumb/unknown.png +0 -0
  935. data/public/images/admin/inline_editor/action-left.png +0 -0
  936. data/public/images/admin/inline_editor/action-right.png +0 -0
  937. data/public/images/admin/inline_editor/bg.png +0 -0
  938. data/public/images/admin/inline_editor/drawer.png +0 -0
  939. data/public/images/admin/list/item-left.png +0 -0
  940. data/public/images/admin/list/item-right.png +0 -0
  941. data/public/images/admin/list/item.png +0 -0
  942. data/public/images/admin/list/none-small.png +0 -0
  943. data/public/images/admin/list/none.png +0 -0
  944. data/public/images/admin/list/thumb.png +0 -0
  945. data/public/images/admin/menu/arrow.png +0 -0
  946. data/public/images/admin/menu/blue-bg.png +0 -0
  947. data/public/images/admin/menu/blue-border.png +0 -0
  948. data/public/images/admin/menu/gray-bg.png +0 -0
  949. data/public/images/admin/menu/gray-border.png +0 -0
  950. data/public/images/admin/menu/green-bg.png +0 -0
  951. data/public/images/admin/menu/green-border.png +0 -0
  952. data/public/images/admin/menu/icons/assets.png +0 -0
  953. data/public/images/admin/menu/icons/folder.png +0 -0
  954. data/public/images/admin/menu/icons/settings.png +0 -0
  955. data/public/images/admin/menu/left.png +0 -0
  956. data/public/images/admin/menu/popup-body.png +0 -0
  957. data/public/images/admin/menu/popup-footer.png +0 -0
  958. data/public/images/admin/menu/popup-header.png +0 -0
  959. data/public/images/admin/menu/right.png +0 -0
  960. data/public/images/admin/menu/shadow.png +0 -0
  961. data/public/images/admin/menu/top-left.png +0 -0
  962. data/public/images/admin/menu/top.png +0 -0
  963. data/public/images/admin/plugins/fancybox/blank.gif +0 -0
  964. data/public/images/admin/plugins/fancybox/fancy_close.png +0 -0
  965. data/public/images/admin/plugins/fancybox/fancy_loading.png +0 -0
  966. data/public/images/admin/plugins/fancybox/fancy_nav_left.png +0 -0
  967. data/public/images/admin/plugins/fancybox/fancy_nav_right.png +0 -0
  968. data/public/images/admin/plugins/fancybox/fancy_shadow_e.png +0 -0
  969. data/public/images/admin/plugins/fancybox/fancy_shadow_n.png +0 -0
  970. data/public/images/admin/plugins/fancybox/fancy_shadow_ne.png +0 -0
  971. data/public/images/admin/plugins/fancybox/fancy_shadow_nw.png +0 -0
  972. data/public/images/admin/plugins/fancybox/fancy_shadow_s.png +0 -0
  973. data/public/images/admin/plugins/fancybox/fancy_shadow_se.png +0 -0
  974. data/public/images/admin/plugins/fancybox/fancy_shadow_sw.png +0 -0
  975. data/public/images/admin/plugins/fancybox/fancy_shadow_w.png +0 -0
  976. data/public/images/admin/plugins/fancybox/fancy_title_left.png +0 -0
  977. data/public/images/admin/plugins/fancybox/fancy_title_main.png +0 -0
  978. data/public/images/admin/plugins/fancybox/fancy_title_over.png +0 -0
  979. data/public/images/admin/plugins/fancybox/fancy_title_right.png +0 -0
  980. data/public/images/admin/plugins/fancybox/fancybox-x.png +0 -0
  981. data/public/images/admin/plugins/fancybox/fancybox-y.png +0 -0
  982. data/public/images/admin/plugins/fancybox/fancybox.png +0 -0
  983. data/public/images/admin/plugins/toggle_handle-bg.png +0 -0
  984. data/public/images/admin/plugins/toggle_handle_left-bg.png +0 -0
  985. data/public/images/admin/plugins/toggle_handle_right-bg.png +0 -0
  986. data/public/images/admin/plugins/toggle_shadow-bg.png +0 -0
  987. data/public/javascripts/admin/account.js +0 -5
  988. data/public/javascripts/admin/aloha/VERSION.txt +0 -2
  989. data/public/javascripts/admin/aloha/aloha-nodeps.js +0 -192
  990. data/public/javascripts/admin/aloha/aloha.js +0 -334
  991. data/public/javascripts/admin/aloha/css/aloha.css +0 -469
  992. data/public/javascripts/admin/aloha/deps/MIT-LICENSE.txt +0 -20
  993. data/public/javascripts/admin/aloha/deps/extjs/resources/charts.swf +0 -0
  994. data/public/javascripts/admin/aloha/deps/extjs/resources/css/ext-all.css +0 -6795
  995. data/public/javascripts/admin/aloha/deps/extjs/resources/css/xtheme-gray.css +0 -1654
  996. data/public/javascripts/admin/aloha/deps/extjs/resources/expressinstall.swf +0 -0
  997. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/corners-blue.gif +0 -0
  998. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/corners.gif +0 -0
  999. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/l-blue.gif +0 -0
  1000. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/l.gif +0 -0
  1001. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/r-blue.gif +0 -0
  1002. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/r.gif +0 -0
  1003. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/tb-blue.gif +0 -0
  1004. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/tb.gif +0 -0
  1005. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/arrow.gif +0 -0
  1006. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/btn.gif +0 -0
  1007. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-cs.gif +0 -0
  1008. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-lr.gif +0 -0
  1009. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-tb.gif +0 -0
  1010. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  1011. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-b.gif +0 -0
  1012. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-bo.gif +0 -0
  1013. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-noline.gif +0 -0
  1014. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-o.gif +0 -0
  1015. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow.gif +0 -0
  1016. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-add.gif +0 -0
  1017. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-no.gif +0 -0
  1018. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-yes.gif +0 -0
  1019. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/editor/tb-sprite.gif +0 -0
  1020. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/checkbox.gif +0 -0
  1021. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/clear-trigger.gif +0 -0
  1022. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/clear-trigger.psd +0 -0
  1023. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/date-trigger.gif +0 -0
  1024. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/date-trigger.psd +0 -0
  1025. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/error-tip-corners.gif +0 -0
  1026. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/exclamation.gif +0 -0
  1027. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/radio.gif +0 -0
  1028. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/search-trigger.gif +0 -0
  1029. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/search-trigger.psd +0 -0
  1030. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/text-bg.gif +0 -0
  1031. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-square.gif +0 -0
  1032. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-square.psd +0 -0
  1033. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-tpl.gif +0 -0
  1034. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger.gif +0 -0
  1035. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger.psd +0 -0
  1036. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/gradient-bg.gif +0 -0
  1037. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/arrow-left-white.gif +0 -0
  1038. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/arrow-right-white.gif +0 -0
  1039. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/col-move-bottom.gif +0 -0
  1040. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/col-move-top.gif +0 -0
  1041. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/columns.gif +0 -0
  1042. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/dirty.gif +0 -0
  1043. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/done.gif +0 -0
  1044. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/drop-no.gif +0 -0
  1045. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/drop-yes.gif +0 -0
  1046. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/footer-bg.gif +0 -0
  1047. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-blue-hd.gif +0 -0
  1048. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-blue-split.gif +0 -0
  1049. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-hrow.gif +0 -0
  1050. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-loading.gif +0 -0
  1051. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-split.gif +0 -0
  1052. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-vista-hd.gif +0 -0
  1053. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  1054. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  1055. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hrow.gif +0 -0
  1056. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  1057. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  1058. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-by.gif +0 -0
  1059. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-collapse.gif +0 -0
  1060. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-expand-sprite.gif +0 -0
  1061. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-expand.gif +0 -0
  1062. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hd-pop.gif +0 -0
  1063. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-asc.gif +0 -0
  1064. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-desc.gif +0 -0
  1065. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.gif +0 -0
  1066. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.png +0 -0
  1067. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.gif +0 -0
  1068. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.png +0 -0
  1069. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/invalid_line.gif +0 -0
  1070. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/loading.gif +0 -0
  1071. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/mso-hd.gif +0 -0
  1072. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/nowait.gif +0 -0
  1073. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-first-disabled.gif +0 -0
  1074. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-first.gif +0 -0
  1075. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-last-disabled.gif +0 -0
  1076. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-last.gif +0 -0
  1077. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-next-disabled.gif +0 -0
  1078. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-next.gif +0 -0
  1079. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-prev-disabled.gif +0 -0
  1080. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-prev.gif +0 -0
  1081. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/pick-button.gif +0 -0
  1082. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/refresh.gif +0 -0
  1083. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-check-sprite.gif +0 -0
  1084. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-expand-sprite.gif +0 -0
  1085. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-over.gif +0 -0
  1086. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-sel.gif +0 -0
  1087. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort-hd.gif +0 -0
  1088. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort_asc.gif +0 -0
  1089. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort_desc.gif +0 -0
  1090. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/wait.gif +0 -0
  1091. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/collapse.gif +0 -0
  1092. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/expand.gif +0 -0
  1093. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/gradient-bg.gif +0 -0
  1094. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-bottom.gif +0 -0
  1095. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-left.gif +0 -0
  1096. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-right.gif +0 -0
  1097. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-top.gif +0 -0
  1098. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/ns-collapse.gif +0 -0
  1099. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/ns-expand.gif +0 -0
  1100. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-close.gif +0 -0
  1101. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-title-bg.gif +0 -0
  1102. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  1103. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/stick.gif +0 -0
  1104. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/stuck.gif +0 -0
  1105. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/tab-close-on.gif +0 -0
  1106. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/tab-close.gif +0 -0
  1107. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/checked.gif +0 -0
  1108. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/group-checked.gif +0 -0
  1109. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/item-over.gif +0 -0
  1110. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/menu-parent.gif +0 -0
  1111. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/menu.gif +0 -0
  1112. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/unchecked.gif +0 -0
  1113. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/corners-sprite.gif +0 -0
  1114. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/left-right.gif +0 -0
  1115. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/light-hd.gif +0 -0
  1116. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  1117. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tool-sprites.gif +0 -0
  1118. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  1119. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/top-bottom.gif +0 -0
  1120. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/top-bottom.png +0 -0
  1121. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-corners-sprite.gif +0 -0
  1122. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-left-right.gif +0 -0
  1123. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-top-bottom.gif +0 -0
  1124. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/progress/progress-bg.gif +0 -0
  1125. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/bg.gif +0 -0
  1126. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/close.gif +0 -0
  1127. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  1128. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/tip-sprite.gif +0 -0
  1129. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/s.gif +0 -0
  1130. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow-c.png +0 -0
  1131. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow-lr.png +0 -0
  1132. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow.png +0 -0
  1133. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/blue-loading.gif +0 -0
  1134. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/calendar.gif +0 -0
  1135. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/glass-bg.gif +0 -0
  1136. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/hd-sprite.gif +0 -0
  1137. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/large-loading.gif +0 -0
  1138. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/left-btn.gif +0 -0
  1139. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/loading-balls.gif +0 -0
  1140. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/right-btn.gif +0 -0
  1141. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/warning.gif +0 -0
  1142. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/e-handle-dark.gif +0 -0
  1143. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/e-handle.gif +0 -0
  1144. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  1145. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/ne-handle.gif +0 -0
  1146. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  1147. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/nw-handle.gif +0 -0
  1148. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/s-handle-dark.gif +0 -0
  1149. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/s-handle.gif +0 -0
  1150. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/se-handle-dark.gif +0 -0
  1151. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/se-handle.gif +0 -0
  1152. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/square.gif +0 -0
  1153. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  1154. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/sw-handle.gif +0 -0
  1155. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-bg.png +0 -0
  1156. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-thumb.png +0 -0
  1157. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-v-bg.png +0 -0
  1158. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-v-thumb.png +0 -0
  1159. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroll-left.gif +0 -0
  1160. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroll-right.gif +0 -0
  1161. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroller-bg.gif +0 -0
  1162. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  1163. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  1164. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  1165. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
  1166. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
  1167. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  1168. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-close.gif +0 -0
  1169. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  1170. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.png +0 -0
  1171. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  1172. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tabs-sprite.gif +0 -0
  1173. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/bg.gif +0 -0
  1174. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  1175. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow.gif +0 -0
  1176. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  1177. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/gray-bg.gif +0 -0
  1178. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/more.gif +0 -0
  1179. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-bg.gif +0 -0
  1180. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  1181. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  1182. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  1183. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/arrows.gif +0 -0
  1184. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-add.gif +0 -0
  1185. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-between.gif +0 -0
  1186. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-no.gif +0 -0
  1187. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-over.gif +0 -0
  1188. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-under.gif +0 -0
  1189. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-yes.gif +0 -0
  1190. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  1191. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus.gif +0 -0
  1192. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  1193. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus.gif +0 -0
  1194. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end.gif +0 -0
  1195. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-line.gif +0 -0
  1196. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  1197. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-minus.gif +0 -0
  1198. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  1199. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-plus.gif +0 -0
  1200. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow.gif +0 -0
  1201. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/folder-open.gif +0 -0
  1202. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/folder.gif +0 -0
  1203. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/leaf.gif +0 -0
  1204. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/loading.gif +0 -0
  1205. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/s.gif +0 -0
  1206. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-error.gif +0 -0
  1207. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-info.gif +0 -0
  1208. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-question.gif +0 -0
  1209. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-warning.gif +0 -0
  1210. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-corners.png +0 -0
  1211. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-corners.psd +0 -0
  1212. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-right.png +0 -0
  1213. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-right.psd +0 -0
  1214. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/right-corners.png +0 -0
  1215. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/right-corners.psd +0 -0
  1216. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/top-bottom.png +0 -0
  1217. data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/top-bottom.psd +0 -0
  1218. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn-arrow.gif +0 -0
  1219. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn-sprite.gif +0 -0
  1220. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn.gif +0 -0
  1221. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-cs.gif +0 -0
  1222. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-lr.gif +0 -0
  1223. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-tb.gif +0 -0
  1224. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/s-arrow-bo.gif +0 -0
  1225. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/s-arrow-o.gif +0 -0
  1226. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/clear-trigger.gif +0 -0
  1227. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/date-trigger.gif +0 -0
  1228. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/search-trigger.gif +0 -0
  1229. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/trigger-square.gif +0 -0
  1230. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/trigger.gif +0 -0
  1231. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/gradient-bg.gif +0 -0
  1232. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/col-move-bottom.gif +0 -0
  1233. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/col-move-top.gif +0 -0
  1234. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
  1235. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
  1236. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
  1237. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow.gif +0 -0
  1238. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow2.gif +0 -0
  1239. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
  1240. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
  1241. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
  1242. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-collapse.gif +0 -0
  1243. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-expand-sprite.gif +0 -0
  1244. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-expand.gif +0 -0
  1245. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-first.gif +0 -0
  1246. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-last.gif +0 -0
  1247. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-next.gif +0 -0
  1248. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-prev.gif +0 -0
  1249. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/refresh.gif +0 -0
  1250. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/row-expand-sprite.gif +0 -0
  1251. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/sort_asc.gif +0 -0
  1252. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/sort_desc.gif +0 -0
  1253. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/group-checked.gif +0 -0
  1254. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/item-over-disabled.gif +0 -0
  1255. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/item-over.gif +0 -0
  1256. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/menu-parent.gif +0 -0
  1257. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/corners-sprite.gif +0 -0
  1258. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/left-right.gif +0 -0
  1259. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/light-hd.gif +0 -0
  1260. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
  1261. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tool-sprites.gif +0 -0
  1262. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
  1263. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/top-bottom.gif +0 -0
  1264. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/top-bottom.png +0 -0
  1265. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-corners-sprite.gif +0 -0
  1266. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-left-right.gif +0 -0
  1267. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-top-bottom.gif +0 -0
  1268. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/progress/progress-bg.gif +0 -0
  1269. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/bg.gif +0 -0
  1270. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/close.gif +0 -0
  1271. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
  1272. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/tip-sprite.gif +0 -0
  1273. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/s.gif +0 -0
  1274. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/hd-sprite.gif +0 -0
  1275. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/left-btn.gif +0 -0
  1276. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/right-btn.gif +0 -0
  1277. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/e-handle.gif +0 -0
  1278. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/ne-handle.gif +0 -0
  1279. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/nw-handle.gif +0 -0
  1280. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/s-handle.gif +0 -0
  1281. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/se-handle.gif +0 -0
  1282. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/square.gif +0 -0
  1283. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/sw-handle.gif +0 -0
  1284. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/slider/slider-thumb.png +0 -0
  1285. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/slider/slider-v-thumb.png +0 -0
  1286. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroll-left.gif +0 -0
  1287. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroll-right.gif +0 -0
  1288. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroller-bg.gif +0 -0
  1289. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
  1290. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
  1291. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
  1292. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
  1293. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
  1294. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
  1295. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-close.gif +0 -0
  1296. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
  1297. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.png +0 -0
  1298. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
  1299. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tabs-sprite.gif +0 -0
  1300. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/bg.gif +0 -0
  1301. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
  1302. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow.gif +0 -0
  1303. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
  1304. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/gray-bg.gif +0 -0
  1305. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/more.gif +0 -0
  1306. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/tb-bg.gif +0 -0
  1307. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
  1308. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/arrows.gif +0 -0
  1309. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
  1310. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus.gif +0 -0
  1311. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
  1312. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus.gif +0 -0
  1313. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-error.gif +0 -0
  1314. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-info.gif +0 -0
  1315. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-question.gif +0 -0
  1316. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-warning.gif +0 -0
  1317. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-corners.png +0 -0
  1318. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-corners.pspimage +0 -0
  1319. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-right.png +0 -0
  1320. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/right-corners.png +0 -0
  1321. data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/top-bottom.png +0 -0
  1322. data/public/javascripts/admin/aloha/deps/extjs/resources/resources.jsb +0 -507
  1323. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/css/prettyPhoto.css +0 -386
  1324. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnNext.png +0 -0
  1325. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnPrevious.png +0 -0
  1326. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/contentPattern.png +0 -0
  1327. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/loader.gif +0 -0
  1328. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/sprite.png +0 -0
  1329. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/btnNext.png +0 -0
  1330. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/btnPrevious.png +0 -0
  1331. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/contentPattern.png +0 -0
  1332. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/loader.gif +0 -0
  1333. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/sprite.png +0 -0
  1334. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/btnNext.png +0 -0
  1335. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/btnPrevious.png +0 -0
  1336. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternBottom.png +0 -0
  1337. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternLeft.png +0 -0
  1338. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternRight.png +0 -0
  1339. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternTop.png +0 -0
  1340. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/loader.gif +0 -0
  1341. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/sprite.png +0 -0
  1342. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/btnNext.png +0 -0
  1343. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/btnPrevious.png +0 -0
  1344. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/loader.gif +0 -0
  1345. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/sprite.png +0 -0
  1346. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/btnNext.png +0 -0
  1347. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/btnPrevious.png +0 -0
  1348. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/loader.gif +0 -0
  1349. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/sprite.png +0 -0
  1350. data/public/javascripts/admin/aloha/i18n/de.dict +0 -7
  1351. data/public/javascripts/admin/aloha/i18n/en.dict +0 -7
  1352. data/public/javascripts/admin/aloha/i18n/eo.dict +0 -5
  1353. data/public/javascripts/admin/aloha/i18n/fi.dict +0 -5
  1354. data/public/javascripts/admin/aloha/i18n/fr.dict +0 -5
  1355. data/public/javascripts/admin/aloha/i18n/it.dict +0 -5
  1356. data/public/javascripts/admin/aloha/i18n/pl.dict +0 -5
  1357. data/public/javascripts/admin/aloha/i18n/ru.dict +0 -5
  1358. data/public/javascripts/admin/aloha/images/base.gif +0 -0
  1359. data/public/javascripts/admin/aloha/images/base.png +0 -0
  1360. data/public/javascripts/admin/aloha/images/base_big.png +0 -0
  1361. data/public/javascripts/admin/aloha/images/base_multi.png +0 -0
  1362. data/public/javascripts/admin/aloha/images/fade_in.png +0 -0
  1363. data/public/javascripts/admin/aloha/images/fade_out.png +0 -0
  1364. data/public/javascripts/admin/aloha/images/gentics_logo.png +0 -0
  1365. data/public/javascripts/admin/aloha/images/grabhandle.png +0 -0
  1366. data/public/javascripts/admin/aloha/images/maximize.png +0 -0
  1367. data/public/javascripts/admin/aloha/images/multisplit-close.gif +0 -0
  1368. data/public/javascripts/admin/aloha/images/multisplit-open.gif +0 -0
  1369. data/public/javascripts/admin/aloha/images/multisplit_base.jpg +0 -0
  1370. data/public/javascripts/admin/aloha/images/pin.png +0 -0
  1371. data/public/javascripts/admin/aloha/images/removeformat.png +0 -0
  1372. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/examples/triSports.css +0 -86
  1373. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/examples/triSports.html +0 -44
  1374. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/de.dict +0 -4
  1375. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/en.dict +0 -4
  1376. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/fr.dict +0 -4
  1377. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/plugin.js +0 -1
  1378. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/product.js +0 -1
  1379. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/2xu-wetsuit.jpg +0 -0
  1380. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/asics-noosa.jpg +0 -0
  1381. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/fivefingers-kso.jpg +0 -0
  1382. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/kuota-kueen-k.jpg +0 -0
  1383. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/mizuno-wave-musha2.jpg +0 -0
  1384. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/product.css +0 -69
  1385. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/product_button.gif +0 -0
  1386. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/simplon-mrt.jpg +0 -0
  1387. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/trek-fuel-ex.jpg +0 -0
  1388. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/trisports.jpg +0 -0
  1389. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/zoggs-predator.jpg +0 -0
  1390. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/i18n/de.dict +0 -2
  1391. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/i18n/en.dict +0 -3
  1392. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/i18n/fi.dict +0 -3
  1393. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/i18n/fr.dict +0 -3
  1394. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/i18n/it.dict +0 -3
  1395. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save/plugin.js +0 -7
  1396. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.css +0 -48
  1397. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.html +0 -69
  1398. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/de.dict +0 -4
  1399. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/en.dict +0 -4
  1400. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/plugin.js +0 -7
  1401. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/de.dict +0 -30
  1402. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/en.dict +0 -30
  1403. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/eo.dict +0 -29
  1404. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fi.dict +0 -30
  1405. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fr.dict +0 -30
  1406. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/it.dict +0 -30
  1407. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/pl.dict +0 -30
  1408. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/ru.dict +0 -30
  1409. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/plugin.js +0 -7
  1410. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/css/HighlightEditables.css +0 -14
  1411. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/plugin.js +0 -7
  1412. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/LinkList.js +0 -7
  1413. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/css/Link.css +0 -15
  1414. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/delicious.js +0 -7
  1415. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/de.dict +0 -4
  1416. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/en.dict +0 -4
  1417. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/fr.dict +0 -4
  1418. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/pl.dict +0 -4
  1419. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/ru.dict +0 -4
  1420. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/plugin.js +0 -7
  1421. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/css/LinkChecker.css +0 -14
  1422. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.css +0 -49
  1423. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.html +0 -82
  1424. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/i18n/en.dict +0 -27
  1425. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/plugin.js +0 -7
  1426. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/proxy.php +0 -235
  1427. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/de.dict +0 -2
  1428. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/en.dict +0 -2
  1429. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/eo.dict +0 -2
  1430. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fi.dict +0 -2
  1431. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fr.dict +0 -2
  1432. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/it.dict +0 -2
  1433. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/ru.dict +0 -2
  1434. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/plugin.js +0 -7
  1435. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Paste/plugin.js +0 -7
  1436. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Paste/wordpastehandler.js +0 -7
  1437. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/de.dict +0 -1
  1438. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/en.dict +0 -1
  1439. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/plugin.js +0 -1
  1440. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/de.dict +0 -14
  1441. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/en.dict +0 -14
  1442. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/eo.dict +0 -12
  1443. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fi.dict +0 -12
  1444. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fr.dict +0 -12
  1445. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/it.dict +0 -12
  1446. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/pl.dict +0 -12
  1447. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/ru.dict +0 -12
  1448. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/plugin.js +0 -7
  1449. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/down.cur +0 -0
  1450. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/left.cur +0 -0
  1451. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/table.css +0 -112
  1452. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_green.png +0 -0
  1453. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_red.png +0 -0
  1454. data/public/javascripts/admin/application.js +0 -134
  1455. data/public/javascripts/admin/asset_collections.js +0 -55
  1456. data/public/javascripts/admin/assets.js +0 -5
  1457. data/public/javascripts/admin/content_types.js +0 -16
  1458. data/public/javascripts/admin/contents.js +0 -24
  1459. data/public/javascripts/admin/custom_fields.js +0 -155
  1460. data/public/javascripts/admin/custom_fields/category.js +0 -101
  1461. data/public/javascripts/admin/editable_elements.js +0 -30
  1462. data/public/javascripts/admin/import.js +0 -32
  1463. data/public/javascripts/admin/inline_editor.js +0 -64
  1464. data/public/javascripts/admin/inline_editor_toolbar.js +0 -170
  1465. data/public/javascripts/admin/jquery.js +0 -154
  1466. data/public/javascripts/admin/jquery.ui.js +0 -404
  1467. data/public/javascripts/admin/locales/datepicker_fr.js +0 -18
  1468. data/public/javascripts/admin/pages.js +0 -104
  1469. data/public/javascripts/admin/plugins/codemirror/codemirror.js +0 -469
  1470. data/public/javascripts/admin/plugins/codemirror/editor.js +0 -1465
  1471. data/public/javascripts/admin/plugins/codemirror/highlight.js +0 -68
  1472. data/public/javascripts/admin/plugins/codemirror/mirrorframe.js +0 -81
  1473. data/public/javascripts/admin/plugins/codemirror/parsecss.js +0 -155
  1474. data/public/javascripts/admin/plugins/codemirror/parsedummy.js +0 -32
  1475. data/public/javascripts/admin/plugins/codemirror/parsehtmlmixed.js +0 -74
  1476. data/public/javascripts/admin/plugins/codemirror/parsejavascript.js +0 -352
  1477. data/public/javascripts/admin/plugins/codemirror/parseliquid.js +0 -409
  1478. data/public/javascripts/admin/plugins/codemirror/parsesparql.js +0 -162
  1479. data/public/javascripts/admin/plugins/codemirror/parsexml.js +0 -286
  1480. data/public/javascripts/admin/plugins/codemirror/select.js +0 -619
  1481. data/public/javascripts/admin/plugins/codemirror/stringstream.js +0 -140
  1482. data/public/javascripts/admin/plugins/codemirror/tokenize.js +0 -57
  1483. data/public/javascripts/admin/plugins/codemirror/tokenizejavascript.js +0 -174
  1484. data/public/javascripts/admin/plugins/codemirror/undo.js +0 -410
  1485. data/public/javascripts/admin/plugins/codemirror/util.js +0 -130
  1486. data/public/javascripts/admin/plugins/fancybox.js +0 -1077
  1487. data/public/javascripts/admin/plugins/imagepicker.js +0 -81
  1488. data/public/javascripts/admin/plugins/json2.js +0 -478
  1489. data/public/javascripts/admin/plugins/plupload/gears_init.js +0 -86
  1490. data/public/javascripts/admin/plugins/plupload/jquery.plupload.queue.min.js +0 -1
  1491. data/public/javascripts/admin/plugins/plupload/plupload.browserplus.min.js +0 -1
  1492. data/public/javascripts/admin/plugins/plupload/plupload.flash.min.js +0 -1
  1493. data/public/javascripts/admin/plugins/plupload/plupload.flash.swf +0 -0
  1494. data/public/javascripts/admin/plugins/plupload/plupload.full.js +0 -1
  1495. data/public/javascripts/admin/plugins/plupload/plupload.gears.min.js +0 -1
  1496. data/public/javascripts/admin/plugins/plupload/plupload.html4.min.js +0 -1
  1497. data/public/javascripts/admin/plugins/plupload/plupload.html5.min.js +0 -1
  1498. data/public/javascripts/admin/plugins/plupload/plupload.js +0 -1
  1499. data/public/javascripts/admin/plugins/plupload/plupload.silverlight.min.js +0 -1
  1500. data/public/javascripts/admin/plugins/plupload/plupload.silverlight.xap +0 -0
  1501. data/public/javascripts/admin/plugins/plupload/src/flash.js +0 -298
  1502. data/public/javascripts/admin/plugins/plupload/src/plupload.js +0 -1333
  1503. data/public/javascripts/admin/plugins/scrollTo.js +0 -11
  1504. data/public/javascripts/admin/plugins/selectmenu.js +0 -527
  1505. data/public/javascripts/admin/plugins/shortcut.js +0 -56
  1506. data/public/javascripts/admin/plugins/smartupdater.js +0 -155
  1507. data/public/javascripts/admin/plugins/subscribe.js +0 -367
  1508. data/public/javascripts/admin/plugins/tiny_mce/langs/en.js +0 -170
  1509. data/public/javascripts/admin/plugins/tiny_mce/langs/fr.js +0 -154
  1510. data/public/javascripts/admin/plugins/tiny_mce/license.txt +0 -504
  1511. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/css/advhr.css +0 -5
  1512. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/editor_plugin.js +0 -1
  1513. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/editor_plugin_src.js +0 -57
  1514. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/js/rule.js +0 -43
  1515. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/langs/en_dlg.js +0 -5
  1516. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/rule.htm +0 -57
  1517. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/css/advlink.css +0 -8
  1518. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/editor_plugin.js +0 -1
  1519. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/editor_plugin_src.js +0 -61
  1520. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/js/advlink.js +0 -528
  1521. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/langs/en_dlg.js +0 -52
  1522. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/link.htm +0 -333
  1523. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlist/editor_plugin.js +0 -1
  1524. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlist/editor_plugin_src.js +0 -154
  1525. data/public/javascripts/admin/plugins/tiny_mce/plugins/autoresize/editor_plugin.js +0 -1
  1526. data/public/javascripts/admin/plugins/tiny_mce/plugins/autoresize/editor_plugin_src.js +0 -119
  1527. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/editor_plugin.js +0 -1
  1528. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/editor_plugin_src.js +0 -422
  1529. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/langs/en.js +0 -4
  1530. data/public/javascripts/admin/plugins/tiny_mce/plugins/bbcode/editor_plugin.js +0 -1
  1531. data/public/javascripts/admin/plugins/tiny_mce/plugins/bbcode/editor_plugin_src.js +0 -120
  1532. data/public/javascripts/admin/plugins/tiny_mce/plugins/contextmenu/editor_plugin.js +0 -1
  1533. data/public/javascripts/admin/plugins/tiny_mce/plugins/contextmenu/editor_plugin_src.js +0 -147
  1534. data/public/javascripts/admin/plugins/tiny_mce/plugins/directionality/editor_plugin.js +0 -1
  1535. data/public/javascripts/admin/plugins/tiny_mce/plugins/directionality/editor_plugin_src.js +0 -82
  1536. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/editor_plugin.js +0 -1
  1537. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/editor_plugin_src.js +0 -43
  1538. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/emotions.htm +0 -40
  1539. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  1540. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  1541. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  1542. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  1543. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  1544. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  1545. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  1546. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  1547. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  1548. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  1549. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  1550. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  1551. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  1552. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  1553. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  1554. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  1555. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/js/emotions.js +0 -22
  1556. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/langs/en_dlg.js +0 -20
  1557. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/dialog.htm +0 -22
  1558. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/editor_plugin.js +0 -1
  1559. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/editor_plugin_src.js +0 -84
  1560. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/img/example.gif +0 -0
  1561. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/js/dialog.js +0 -19
  1562. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/langs/en.js +0 -3
  1563. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/langs/en_dlg.js +0 -3
  1564. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/css/fullpage.css +0 -182
  1565. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/editor_plugin.js +0 -1
  1566. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/editor_plugin_src.js +0 -153
  1567. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/fullpage.htm +0 -571
  1568. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/js/fullpage.js +0 -471
  1569. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/langs/en_dlg.js +0 -85
  1570. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -1
  1571. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/editor_plugin_src.js +0 -151
  1572. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/fullscreen.htm +0 -109
  1573. data/public/javascripts/admin/plugins/tiny_mce/plugins/iespell/editor_plugin.js +0 -1
  1574. data/public/javascripts/admin/plugins/tiny_mce/plugins/iespell/editor_plugin_src.js +0 -54
  1575. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -1
  1576. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +0 -635
  1577. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  1578. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  1579. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  1580. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  1581. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  1582. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  1583. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  1584. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
  1585. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/locomotive/window.css +0 -72
  1586. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/template.htm +0 -387
  1587. data/public/javascripts/admin/plugins/tiny_mce/plugins/insertdatetime/editor_plugin.js +0 -1
  1588. data/public/javascripts/admin/plugins/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +0 -83
  1589. data/public/javascripts/admin/plugins/tiny_mce/plugins/layer/editor_plugin.js +0 -1
  1590. data/public/javascripts/admin/plugins/tiny_mce/plugins/layer/editor_plugin_src.js +0 -212
  1591. data/public/javascripts/admin/plugins/tiny_mce/plugins/legacyoutput/editor_plugin.js +0 -1
  1592. data/public/javascripts/admin/plugins/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +0 -136
  1593. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/css/locoimage.css +0 -110
  1594. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/editor_plugin.js +0 -1
  1595. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/editor_plugin_src.js +0 -46
  1596. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/image.htm +0 -62
  1597. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/img/sample.gif +0 -0
  1598. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/js/image.js +0 -172
  1599. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/langs/en_dlg.js +0 -9
  1600. data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/langs/fr_dlg.js +0 -9
  1601. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/css/content.css +0 -6
  1602. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/css/media.css +0 -16
  1603. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/editor_plugin.js +0 -1
  1604. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/editor_plugin_src.js +0 -414
  1605. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/flash.gif +0 -0
  1606. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  1607. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  1608. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  1609. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  1610. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/trans.gif +0 -0
  1611. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  1612. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/js/embed.js +0 -73
  1613. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/js/media.js +0 -630
  1614. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/langs/en_dlg.js +0 -103
  1615. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/media.htm +0 -817
  1616. data/public/javascripts/admin/plugins/tiny_mce/plugins/nonbreaking/editor_plugin.js +0 -1
  1617. data/public/javascripts/admin/plugins/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +0 -53
  1618. data/public/javascripts/admin/plugins/tiny_mce/plugins/noneditable/editor_plugin.js +0 -1
  1619. data/public/javascripts/admin/plugins/tiny_mce/plugins/noneditable/editor_plugin_src.js +0 -90
  1620. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/css/content.css +0 -1
  1621. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/editor_plugin.js +0 -1
  1622. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/editor_plugin_src.js +0 -77
  1623. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  1624. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  1625. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/editor_plugin.js +0 -1
  1626. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/editor_plugin_src.js +0 -940
  1627. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/js/pastetext.js +0 -36
  1628. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/js/pasteword.js +0 -51
  1629. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/langs/en_dlg.js +0 -5
  1630. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/pastetext.htm +0 -27
  1631. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/pasteword.htm +0 -21
  1632. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/editor_plugin.js +0 -1
  1633. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/editor_plugin_src.js +0 -53
  1634. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/example.html +0 -28
  1635. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/jscripts/embed.js +0 -73
  1636. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/preview.html +0 -17
  1637. data/public/javascripts/admin/plugins/tiny_mce/plugins/print/editor_plugin.js +0 -1
  1638. data/public/javascripts/admin/plugins/tiny_mce/plugins/print/editor_plugin_src.js +0 -34
  1639. data/public/javascripts/admin/plugins/tiny_mce/plugins/save/editor_plugin.js +0 -1
  1640. data/public/javascripts/admin/plugins/tiny_mce/plugins/save/editor_plugin_src.js +0 -101
  1641. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/css/searchreplace.css +0 -6
  1642. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/editor_plugin.js +0 -1
  1643. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/editor_plugin_src.js +0 -57
  1644. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/js/searchreplace.js +0 -130
  1645. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/langs/en_dlg.js +0 -16
  1646. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/searchreplace.htm +0 -99
  1647. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/css/content.css +0 -1
  1648. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/editor_plugin.js +0 -1
  1649. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/editor_plugin_src.js +0 -417
  1650. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  1651. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/css/props.css +0 -13
  1652. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/editor_plugin.js +0 -1
  1653. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/editor_plugin_src.js +0 -55
  1654. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/js/props.js +0 -641
  1655. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/langs/en_dlg.js +0 -63
  1656. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/props.htm +0 -723
  1657. data/public/javascripts/admin/plugins/tiny_mce/plugins/tabfocus/editor_plugin.js +0 -1
  1658. data/public/javascripts/admin/plugins/tiny_mce/plugins/tabfocus/editor_plugin_src.js +0 -112
  1659. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/cell.htm +0 -178
  1660. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/cell.css +0 -17
  1661. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/row.css +0 -25
  1662. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/table.css +0 -13
  1663. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/editor_plugin.js +0 -1
  1664. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/editor_plugin_src.js +0 -1125
  1665. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/cell.js +0 -286
  1666. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/merge_cells.js +0 -27
  1667. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/row.js +0 -237
  1668. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/table.js +0 -449
  1669. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/langs/en_dlg.js +0 -74
  1670. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/merge_cells.htm +0 -32
  1671. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/row.htm +0 -155
  1672. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/table.htm +0 -187
  1673. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/blank.htm +0 -12
  1674. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/css/template.css +0 -23
  1675. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/editor_plugin.js +0 -1
  1676. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/editor_plugin_src.js +0 -159
  1677. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/js/template.js +0 -106
  1678. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/langs/en_dlg.js +0 -15
  1679. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/template.htm +0 -31
  1680. data/public/javascripts/admin/plugins/tiny_mce/plugins/visualchars/editor_plugin.js +0 -1
  1681. data/public/javascripts/admin/plugins/tiny_mce/plugins/visualchars/editor_plugin_src.js +0 -76
  1682. data/public/javascripts/admin/plugins/tiny_mce/plugins/wordcount/editor_plugin.js +0 -1
  1683. data/public/javascripts/admin/plugins/tiny_mce/plugins/wordcount/editor_plugin_src.js +0 -98
  1684. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/abbr.htm +0 -141
  1685. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/acronym.htm +0 -141
  1686. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/attributes.htm +0 -148
  1687. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/cite.htm +0 -141
  1688. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/css/attributes.css +0 -11
  1689. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/css/popup.css +0 -9
  1690. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/del.htm +0 -161
  1691. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +0 -1
  1692. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +0 -144
  1693. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/ins.htm +0 -161
  1694. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/abbr.js +0 -28
  1695. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/acronym.js +0 -28
  1696. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/attributes.js +0 -126
  1697. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/cite.js +0 -28
  1698. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/del.js +0 -63
  1699. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/element_common.js +0 -231
  1700. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/ins.js +0 -62
  1701. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +0 -32
  1702. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/about.htm +0 -54
  1703. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/anchor.htm +0 -26
  1704. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/charmap.htm +0 -52
  1705. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/color_picker.htm +0 -73
  1706. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/editor_template.js +0 -1
  1707. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/editor_template_src.js +0 -1194
  1708. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/image.htm +0 -80
  1709. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  1710. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/img/icons.gif +0 -0
  1711. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/about.js +0 -72
  1712. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/anchor.js +0 -37
  1713. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/charmap.js +0 -335
  1714. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/color_picker.js +0 -253
  1715. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/image.js +0 -245
  1716. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/link.js +0 -156
  1717. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/source_editor.js +0 -62
  1718. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/en.js +0 -62
  1719. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/en_dlg.js +0 -51
  1720. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/fr.js +0 -62
  1721. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/fr_dlg.js +0 -51
  1722. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/link.htm +0 -58
  1723. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/dialog.css +0 -61
  1724. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/ui.css +0 -997
  1725. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/source_editor.htm +0 -25
  1726. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/editor_template.js +0 -1
  1727. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/editor_template_src.js +0 -85
  1728. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/img/icons.gif +0 -0
  1729. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/langs/en.js +0 -11
  1730. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/default/content.css +0 -25
  1731. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/default/ui.css +0 -32
  1732. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/content.css +0 -17
  1733. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  1734. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/ui.css +0 -35
  1735. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce.js +0 -1
  1736. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce_popup.js +0 -5
  1737. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce_src.js +0 -13374
  1738. data/public/javascripts/admin/plugins/tiny_mce/tinymce.js +0 -1
  1739. data/public/javascripts/admin/plugins/tiny_mce/utils/editable_selects.js +0 -70
  1740. data/public/javascripts/admin/plugins/tiny_mce/utils/form_utils.js +0 -200
  1741. data/public/javascripts/admin/plugins/tiny_mce/utils/mctabs.js +0 -77
  1742. data/public/javascripts/admin/plugins/tiny_mce/utils/validate.js +0 -220
  1743. data/public/javascripts/admin/plugins/toggle.js +0 -112
  1744. data/public/javascripts/admin/plugins/wslide.js +0 -125
  1745. data/public/javascripts/admin/rails.js +0 -132
  1746. data/public/javascripts/admin/site.js +0 -49
  1747. data/public/javascripts/admin/snippets.js +0 -22
  1748. data/public/javascripts/admin/theme_assets.js +0 -43
  1749. data/public/javascripts/admin/utils.js +0 -16
  1750. data/public/stylesheets/admin/application.css +0 -248
  1751. data/public/stylesheets/admin/assets.css +0 -54
  1752. data/public/stylesheets/admin/blueprint/plugins/buttons/icons/cross.png +0 -0
  1753. data/public/stylesheets/admin/blueprint/plugins/buttons/icons/key.png +0 -0
  1754. data/public/stylesheets/admin/blueprint/plugins/buttons/icons/tick.png +0 -0
  1755. data/public/stylesheets/admin/blueprint/plugins/buttons/readme.txt +0 -32
  1756. data/public/stylesheets/admin/blueprint/plugins/buttons/screen.css +0 -97
  1757. data/public/stylesheets/admin/blueprint/plugins/fancy-type/readme.txt +0 -14
  1758. data/public/stylesheets/admin/blueprint/plugins/fancy-type/screen.css +0 -71
  1759. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/doc.png +0 -0
  1760. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/email.png +0 -0
  1761. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/external.png +0 -0
  1762. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/feed.png +0 -0
  1763. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/im.png +0 -0
  1764. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  1765. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/visited.png +0 -0
  1766. data/public/stylesheets/admin/blueprint/plugins/link-icons/icons/xls.png +0 -0
  1767. data/public/stylesheets/admin/blueprint/plugins/link-icons/readme.txt +0 -18
  1768. data/public/stylesheets/admin/blueprint/plugins/link-icons/screen.css +0 -40
  1769. data/public/stylesheets/admin/blueprint/plugins/rtl/readme.txt +0 -10
  1770. data/public/stylesheets/admin/blueprint/plugins/rtl/screen.css +0 -109
  1771. data/public/stylesheets/admin/blueprint/src/forms.css +0 -49
  1772. data/public/stylesheets/admin/blueprint/src/grid.css +0 -213
  1773. data/public/stylesheets/admin/blueprint/src/grid.png +0 -0
  1774. data/public/stylesheets/admin/blueprint/src/ie.css +0 -59
  1775. data/public/stylesheets/admin/blueprint/src/print.css +0 -85
  1776. data/public/stylesheets/admin/blueprint/src/reset.css +0 -38
  1777. data/public/stylesheets/admin/blueprint/src/typography.css +0 -105
  1778. data/public/stylesheets/admin/box.css +0 -153
  1779. data/public/stylesheets/admin/buttons.css +0 -55
  1780. data/public/stylesheets/admin/editable_elements.css +0 -64
  1781. data/public/stylesheets/admin/fancybox_changes.css +0 -101
  1782. data/public/stylesheets/admin/formtastic.css +0 -137
  1783. data/public/stylesheets/admin/formtastic_changes.css +0 -493
  1784. data/public/stylesheets/admin/inline_editor.css +0 -107
  1785. data/public/stylesheets/admin/installation.css +0 -50
  1786. data/public/stylesheets/admin/layout.css +0 -198
  1787. data/public/stylesheets/admin/menu.css +0 -241
  1788. data/public/stylesheets/admin/plugins/codemirror/csscolors.css +0 -51
  1789. data/public/stylesheets/admin/plugins/codemirror/docs.css +0 -50
  1790. data/public/stylesheets/admin/plugins/codemirror/javascriptcolors.css +0 -56
  1791. data/public/stylesheets/admin/plugins/codemirror/jscolors.css +0 -59
  1792. data/public/stylesheets/admin/plugins/codemirror/liquidcolors.css +0 -35
  1793. data/public/stylesheets/admin/plugins/codemirror/people.jpg +0 -0
  1794. data/public/stylesheets/admin/plugins/codemirror/sparqlcolors.css +0 -43
  1795. data/public/stylesheets/admin/plugins/codemirror/xmlcolors.css +0 -55
  1796. data/public/stylesheets/admin/plugins/fancybox.css +0 -363
  1797. data/public/stylesheets/admin/plugins/selectmenu.css +0 -64
  1798. data/public/stylesheets/admin/plugins/tiny_mce.css +0 -105
  1799. data/public/stylesheets/admin/plugins/toggle.css +0 -42
  1800. data/public/stylesheets/admin/safari.css +0 -15
@@ -1,1465 +0,0 @@
1
- /* The Editor object manages the content of the editable frame. It
2
- * catches events, colours nodes, and indents lines. This file also
3
- * holds some functions for transforming arbitrary DOM structures into
4
- * plain sequences of <span> and <br> elements
5
- */
6
-
7
- var internetExplorer = document.selection && window.ActiveXObject && /MSIE/.test(navigator.userAgent);
8
- var webkit = /AppleWebKit/.test(navigator.userAgent);
9
- var safari = /Apple Computers, Inc/.test(navigator.vendor);
10
- var gecko = /gecko\/(\d{8})/i.test(navigator.userAgent);
11
-
12
- // Make sure a string does not contain two consecutive 'collapseable'
13
- // whitespace characters.
14
- function makeWhiteSpace(n) {
15
- var buffer = [], nb = true;
16
- for (; n > 0; n--) {
17
- buffer.push((nb || n == 1) ? nbsp : " ");
18
- nb = !nb;
19
- }
20
- return buffer.join("");
21
- }
22
-
23
- // Create a set of white-space characters that will not be collapsed
24
- // by the browser, but will not break text-wrapping either.
25
- function fixSpaces(string) {
26
- if (string.charAt(0) == " ") string = nbsp + string.slice(1);
27
- return string.replace(/\t/g, function(){return makeWhiteSpace(indentUnit);})
28
- .replace(/[ \u00a0]{2,}/g, function(s) {return makeWhiteSpace(s.length);});
29
- }
30
-
31
- function cleanText(text) {
32
- return text.replace(/\u00a0/g, " ").replace(/\u200b/g, "");
33
- }
34
-
35
- // Create a SPAN node with the expected properties for document part
36
- // spans.
37
- function makePartSpan(value, doc) {
38
- var text = value;
39
- if (value.nodeType == 3) text = value.nodeValue;
40
- else value = doc.createTextNode(text);
41
-
42
- var span = doc.createElement("SPAN");
43
- span.isPart = true;
44
- span.appendChild(value);
45
- span.currentText = text;
46
- return span;
47
- }
48
-
49
- // On webkit, when the last BR of the document does not have text
50
- // behind it, the cursor can not be put on the line after it. This
51
- // makes pressing enter at the end of the document occasionally do
52
- // nothing (or at least seem to do nothing). To work around it, this
53
- // function makes sure the document ends with a span containing a
54
- // zero-width space character. The traverseDOM iterator filters such
55
- // character out again, so that the parsers won't see them. This
56
- // function is called from a few strategic places to make sure the
57
- // zwsp is restored after the highlighting process eats it.
58
- var webkitLastLineHack = webkit ?
59
- function(container) {
60
- var last = container.lastChild;
61
- if (!last || !last.isPart || last.textContent != "\u200b")
62
- container.appendChild(makePartSpan("\u200b", container.ownerDocument));
63
- } : function() {};
64
-
65
- var Editor = (function(){
66
- // The HTML elements whose content should be suffixed by a newline
67
- // when converting them to flat text.
68
- var newlineElements = {"P": true, "DIV": true, "LI": true};
69
-
70
- function asEditorLines(string) {
71
- var tab = makeWhiteSpace(indentUnit);
72
- return map(string.replace(/\t/g, tab).replace(/\u00a0/g, " ").replace(/\r\n?/g, "\n").split("\n"), fixSpaces);
73
- }
74
-
75
- // Helper function for traverseDOM. Flattens an arbitrary DOM node
76
- // into an array of textnodes and <br> tags.
77
- function simplifyDOM(root, atEnd) {
78
- var doc = root.ownerDocument;
79
- var result = [];
80
- var leaving = true;
81
-
82
- function simplifyNode(node, top) {
83
- if (node.nodeType == 3) {
84
- var text = node.nodeValue = fixSpaces(node.nodeValue.replace(/[\r\u200b]/g, "").replace(/\n/g, " "));
85
- if (text.length) leaving = false;
86
- result.push(node);
87
- }
88
- else if (isBR(node) && node.childNodes.length == 0) {
89
- leaving = true;
90
- result.push(node);
91
- }
92
- else {
93
- forEach(node.childNodes, simplifyNode);
94
- if (!leaving && newlineElements.hasOwnProperty(node.nodeName.toUpperCase())) {
95
- leaving = true;
96
- if (!atEnd || !top)
97
- result.push(doc.createElement("BR"));
98
- }
99
- }
100
- }
101
-
102
- simplifyNode(root, true);
103
- return result;
104
- }
105
-
106
- // Creates a MochiKit-style iterator that goes over a series of DOM
107
- // nodes. The values it yields are strings, the textual content of
108
- // the nodes. It makes sure that all nodes up to and including the
109
- // one whose text is being yielded have been 'normalized' to be just
110
- // <span> and <br> elements.
111
- // See the story.html file for some short remarks about the use of
112
- // continuation-passing style in this iterator.
113
- function traverseDOM(start){
114
- function _yield(value, c){cc = c; return value;}
115
- function push(fun, arg, c){return function(){return fun(arg, c);};}
116
- function stop(){cc = stop; throw StopIteration;};
117
- var cc = push(scanNode, start, stop);
118
- var owner = start.ownerDocument;
119
- var nodeQueue = [];
120
-
121
- // Create a function that can be used to insert nodes after the
122
- // one given as argument.
123
- function pointAt(node){
124
- var parent = node.parentNode;
125
- var next = node.nextSibling;
126
- return function(newnode) {
127
- parent.insertBefore(newnode, next);
128
- };
129
- }
130
- var point = null;
131
-
132
- // This an Opera-specific hack -- always insert an empty span
133
- // between two BRs, because Opera's cursor code gets terribly
134
- // confused when the cursor is between two BRs.
135
- var afterBR = true;
136
-
137
- // Insert a normalized node at the current point. If it is a text
138
- // node, wrap it in a <span>, and give that span a currentText
139
- // property -- this is used to cache the nodeValue, because
140
- // directly accessing nodeValue is horribly slow on some browsers.
141
- // The dirty property is used by the highlighter to determine
142
- // which parts of the document have to be re-highlighted.
143
- function insertPart(part){
144
- var text = "\n";
145
- if (part.nodeType == 3) {
146
- select.snapshotChanged();
147
- part = makePartSpan(part, owner);
148
- text = part.currentText;
149
- afterBR = false;
150
- }
151
- else {
152
- if (afterBR && window.opera)
153
- point(makePartSpan("", owner));
154
- afterBR = true;
155
- }
156
- part.dirty = true;
157
- nodeQueue.push(part);
158
- point(part);
159
- return text;
160
- }
161
-
162
- // Extract the text and newlines from a DOM node, insert them into
163
- // the document, and yield the textual content. Used to replace
164
- // non-normalized nodes.
165
- function writeNode(node, c, end) {
166
- var toYield = [];
167
- forEach(simplifyDOM(node, end), function(part) {
168
- toYield.push(insertPart(part));
169
- });
170
- return _yield(toYield.join(""), c);
171
- }
172
-
173
- // Check whether a node is a normalized <span> element.
174
- function partNode(node){
175
- if (node.isPart && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
176
- node.currentText = node.firstChild.nodeValue;
177
- return !/[\n\t\r]/.test(node.currentText);
178
- }
179
- return false;
180
- }
181
-
182
- // Handle a node. Add its successor to the continuation if there
183
- // is one, find out whether the node is normalized. If it is,
184
- // yield its content, otherwise, normalize it (writeNode will take
185
- // care of yielding).
186
- function scanNode(node, c){
187
- if (node.nextSibling)
188
- c = push(scanNode, node.nextSibling, c);
189
-
190
- if (partNode(node)){
191
- nodeQueue.push(node);
192
- afterBR = false;
193
- return _yield(node.currentText, c);
194
- }
195
- else if (isBR(node)) {
196
- if (afterBR && window.opera)
197
- node.parentNode.insertBefore(makePartSpan("", owner), node);
198
- nodeQueue.push(node);
199
- afterBR = true;
200
- return _yield("\n", c);
201
- }
202
- else {
203
- var end = !node.nextSibling;
204
- point = pointAt(node);
205
- removeElement(node);
206
- return writeNode(node, c, end);
207
- }
208
- }
209
-
210
- // MochiKit iterators are objects with a next function that
211
- // returns the next value or throws StopIteration when there are
212
- // no more values.
213
- return {next: function(){return cc();}, nodes: nodeQueue};
214
- }
215
-
216
- // Determine the text size of a processed node.
217
- function nodeSize(node) {
218
- return isBR(node) ? 1 : node.currentText.length;
219
- }
220
-
221
- // Search backwards through the top-level nodes until the next BR or
222
- // the start of the frame.
223
- function startOfLine(node) {
224
- while (node && !isBR(node)) node = node.previousSibling;
225
- return node;
226
- }
227
- function endOfLine(node, container) {
228
- if (!node) node = container.firstChild;
229
- else if (isBR(node)) node = node.nextSibling;
230
-
231
- while (node && !isBR(node)) node = node.nextSibling;
232
- return node;
233
- }
234
-
235
- function time() {return new Date().getTime();}
236
-
237
- // Client interface for searching the content of the editor. Create
238
- // these by calling CodeMirror.getSearchCursor. To use, call
239
- // findNext on the resulting object -- this returns a boolean
240
- // indicating whether anything was found, and can be called again to
241
- // skip to the next find. Use the select and replace methods to
242
- // actually do something with the found locations.
243
- function SearchCursor(editor, string, fromCursor, caseFold) {
244
- this.editor = editor;
245
- this.caseFold = caseFold;
246
- if (caseFold) string = string.toLowerCase();
247
- this.history = editor.history;
248
- this.history.commit();
249
-
250
- // Are we currently at an occurrence of the search string?
251
- this.atOccurrence = false;
252
- // The object stores a set of nodes coming after its current
253
- // position, so that when the current point is taken out of the
254
- // DOM tree, we can still try to continue.
255
- this.fallbackSize = 15;
256
- var cursor;
257
- // Start from the cursor when specified and a cursor can be found.
258
- if (fromCursor && (cursor = select.cursorPos(this.editor.container))) {
259
- this.line = cursor.node;
260
- this.offset = cursor.offset;
261
- }
262
- else {
263
- this.line = null;
264
- this.offset = 0;
265
- }
266
- this.valid = !!string;
267
-
268
- // Create a matcher function based on the kind of string we have.
269
- var target = string.split("\n"), self = this;
270
- this.matches = (target.length == 1) ?
271
- // For one-line strings, searching can be done simply by calling
272
- // indexOf on the current line.
273
- function() {
274
- var line = cleanText(self.history.textAfter(self.line).slice(self.offset));
275
- var match = (self.caseFold ? line.toLowerCase() : line).indexOf(string);
276
- if (match > -1)
277
- return {from: {node: self.line, offset: self.offset + match},
278
- to: {node: self.line, offset: self.offset + match + string.length}};
279
- } :
280
- // Multi-line strings require internal iteration over lines, and
281
- // some clunky checks to make sure the first match ends at the
282
- // end of the line and the last match starts at the start.
283
- function() {
284
- var firstLine = cleanText(self.history.textAfter(self.line).slice(self.offset));
285
- var match = (self.caseFold ? firstLine.toLowerCase() : firstLine).lastIndexOf(target[0]);
286
- if (match == -1 || match != firstLine.length - target[0].length)
287
- return false;
288
- var startOffset = self.offset + match;
289
-
290
- var line = self.history.nodeAfter(self.line);
291
- for (var i = 1; i < target.length - 1; i++) {
292
- var lineText = cleanText(self.history.textAfter(line));
293
- if ((self.caseFold ? lineText.toLowerCase() : lineText) != target[i])
294
- return false;
295
- line = self.history.nodeAfter(line);
296
- }
297
-
298
- var lastLine = cleanText(self.history.textAfter(line));
299
- if ((self.caseFold ? lastLine.toLowerCase() : lastLine).indexOf(target[target.length - 1]) != 0)
300
- return false;
301
-
302
- return {from: {node: self.line, offset: startOffset},
303
- to: {node: line, offset: target[target.length - 1].length}};
304
- };
305
- }
306
-
307
- SearchCursor.prototype = {
308
- findNext: function() {
309
- if (!this.valid) return false;
310
- this.atOccurrence = false;
311
- var self = this;
312
-
313
- // Go back to the start of the document if the current line is
314
- // no longer in the DOM tree.
315
- if (this.line && !this.line.parentNode) {
316
- this.line = null;
317
- this.offset = 0;
318
- }
319
-
320
- // Set the cursor's position one character after the given
321
- // position.
322
- function saveAfter(pos) {
323
- if (self.history.textAfter(pos.node).length > pos.offset) {
324
- self.line = pos.node;
325
- self.offset = pos.offset + 1;
326
- }
327
- else {
328
- self.line = self.history.nodeAfter(pos.node);
329
- self.offset = 0;
330
- }
331
- }
332
-
333
- while (true) {
334
- var match = this.matches();
335
- // Found the search string.
336
- if (match) {
337
- this.atOccurrence = match;
338
- saveAfter(match.from);
339
- return true;
340
- }
341
- this.line = this.history.nodeAfter(this.line);
342
- this.offset = 0;
343
- // End of document.
344
- if (!this.line) {
345
- this.valid = false;
346
- return false;
347
- }
348
- }
349
- },
350
-
351
- select: function() {
352
- if (this.atOccurrence) {
353
- select.setCursorPos(this.editor.container, this.atOccurrence.from, this.atOccurrence.to);
354
- select.scrollToCursor(this.editor.container);
355
- }
356
- },
357
-
358
- replace: function(string) {
359
- if (this.atOccurrence) {
360
- var end = this.editor.replaceRange(this.atOccurrence.from, this.atOccurrence.to, string);
361
- this.line = end.node;
362
- this.offset = end.offset;
363
- this.atOccurrence = false;
364
- }
365
- }
366
- };
367
-
368
- // The Editor object is the main inside-the-iframe interface.
369
- function Editor(options) {
370
- this.options = options;
371
- window.indentUnit = options.indentUnit;
372
- this.parent = parent;
373
- this.doc = document;
374
- var container = this.container = this.doc.body;
375
- this.win = window;
376
- this.history = new History(container, options.undoDepth, options.undoDelay, this);
377
- var self = this;
378
-
379
- if (!Editor.Parser)
380
- throw "No parser loaded.";
381
- if (options.parserConfig && Editor.Parser.configure)
382
- Editor.Parser.configure(options.parserConfig);
383
-
384
- if (!options.readOnly)
385
- select.setCursorPos(container, {node: null, offset: 0});
386
-
387
- this.dirty = [];
388
- this.importCode(options.content || "");
389
- this.history.onChange = options.onChange;
390
-
391
- if (!options.readOnly) {
392
- if (options.continuousScanning !== false) {
393
- this.scanner = this.documentScanner(options.passTime);
394
- this.delayScanning();
395
- }
396
-
397
- function setEditable() {
398
- // In IE, designMode frames can not run any scripts, so we use
399
- // contentEditable instead.
400
- if (document.body.contentEditable != undefined && internetExplorer)
401
- document.body.contentEditable = "true";
402
- else
403
- document.designMode = "on";
404
-
405
- document.documentElement.style.borderWidth = "0";
406
- if (!options.textWrapping)
407
- container.style.whiteSpace = "nowrap";
408
- }
409
-
410
- // If setting the frame editable fails, try again when the user
411
- // focus it (happens when the frame is not visible on
412
- // initialisation, in Firefox).
413
- try {
414
- setEditable();
415
- }
416
- catch(e) {
417
- var focusEvent = addEventHandler(document, "focus", function() {
418
- focusEvent();
419
- setEditable();
420
- }, true);
421
- }
422
-
423
- addEventHandler(document, "keydown", method(this, "keyDown"));
424
- addEventHandler(document, "keypress", method(this, "keyPress"));
425
- addEventHandler(document, "keyup", method(this, "keyUp"));
426
-
427
- function cursorActivity() {self.cursorActivity(false);}
428
- addEventHandler(document.body, "mouseup", cursorActivity);
429
- addEventHandler(document.body, "cut", cursorActivity);
430
-
431
- // workaround for a gecko bug [?] where going forward and then
432
- // back again breaks designmode (no more cursor)
433
- if (gecko)
434
- addEventHandler(this.win, "pagehide", function(){self.unloaded = true;});
435
-
436
- addEventHandler(document.body, "paste", function(event) {
437
- cursorActivity();
438
- var text = null;
439
- try {
440
- var clipboardData = event.clipboardData || window.clipboardData;
441
- if (clipboardData) text = clipboardData.getData('Text');
442
- }
443
- catch(e) {}
444
- if (text !== null) {
445
- event.stop();
446
- self.replaceSelection(text);
447
- select.scrollToCursor(self.container);
448
- }
449
- });
450
-
451
- if (this.options.autoMatchParens)
452
- addEventHandler(document.body, "click", method(this, "scheduleParenHighlight"));
453
- }
454
- else if (!options.textWrapping) {
455
- container.style.whiteSpace = "nowrap";
456
- }
457
- }
458
-
459
- function isSafeKey(code) {
460
- return (code >= 16 && code <= 18) || // shift, control, alt
461
- (code >= 33 && code <= 40); // arrows, home, end
462
- }
463
-
464
- Editor.prototype = {
465
- // Import a piece of code into the editor.
466
- importCode: function(code) {
467
- this.history.push(null, null, asEditorLines(code));
468
- this.history.reset();
469
- },
470
-
471
- // Extract the code from the editor.
472
- getCode: function() {
473
- if (!this.container.firstChild)
474
- return "";
475
-
476
- var accum = [];
477
- select.markSelection(this.win);
478
- forEach(traverseDOM(this.container.firstChild), method(accum, "push"));
479
- webkitLastLineHack(this.container);
480
- select.selectMarked();
481
- return cleanText(accum.join(""));
482
- },
483
-
484
- checkLine: function(node) {
485
- if (node === false || !(node == null || node.parentNode == this.container))
486
- throw parent.CodeMirror.InvalidLineHandle;
487
- },
488
-
489
- cursorPosition: function(start) {
490
- if (start == null) start = true;
491
- var pos = select.cursorPos(this.container, start);
492
- if (pos) return {line: pos.node, character: pos.offset};
493
- else return {line: null, character: 0};
494
- },
495
-
496
- firstLine: function() {
497
- return null;
498
- },
499
-
500
- lastLine: function() {
501
- if (this.container.lastChild) return startOfLine(this.container.lastChild);
502
- else return null;
503
- },
504
-
505
- nextLine: function(line) {
506
- this.checkLine(line);
507
- var end = endOfLine(line, this.container);
508
- return end || false;
509
- },
510
-
511
- prevLine: function(line) {
512
- this.checkLine(line);
513
- if (line == null) return false;
514
- return startOfLine(line.previousSibling);
515
- },
516
-
517
- visibleLineCount: function() {
518
- var line = this.container.firstChild;
519
- while (line && isBR(line)) line = line.nextSibling; // BR heights are unreliable
520
- if (!line) return false;
521
- var innerHeight = (window.innerHeight
522
- || document.documentElement.clientHeight
523
- || document.body.clientHeight);
524
- return Math.floor(innerHeight / line.offsetHeight);
525
- },
526
-
527
- selectLines: function(startLine, startOffset, endLine, endOffset) {
528
- this.checkLine(startLine);
529
- var start = {node: startLine, offset: startOffset}, end = null;
530
- if (endOffset !== undefined) {
531
- this.checkLine(endLine);
532
- end = {node: endLine, offset: endOffset};
533
- }
534
- select.setCursorPos(this.container, start, end);
535
- select.scrollToCursor(this.container);
536
- },
537
-
538
- lineContent: function(line) {
539
- var accum = [];
540
- for (line = line ? line.nextSibling : this.container.firstChild;
541
- line && !isBR(line); line = line.nextSibling)
542
- accum.push(nodeText(line));
543
- return cleanText(accum.join(""));
544
- },
545
-
546
- setLineContent: function(line, content) {
547
- this.history.commit();
548
- this.replaceRange({node: line, offset: 0},
549
- {node: line, offset: this.history.textAfter(line).length},
550
- content);
551
- this.addDirtyNode(line);
552
- this.scheduleHighlight();
553
- },
554
-
555
- removeLine: function(line) {
556
- var node = line ? line.nextSibling : this.container.firstChild;
557
- while (node) {
558
- var next = node.nextSibling;
559
- removeElement(node);
560
- if (isBR(node)) break;
561
- node = next;
562
- }
563
- this.addDirtyNode(line);
564
- this.scheduleHighlight();
565
- },
566
-
567
- insertIntoLine: function(line, position, content) {
568
- var before = null;
569
- if (position == "end") {
570
- before = endOfLine(line, this.container);
571
- }
572
- else {
573
- for (var cur = line ? line.nextSibling : this.container.firstChild; cur; cur = cur.nextSibling) {
574
- if (position == 0) {
575
- before = cur;
576
- break;
577
- }
578
- var text = nodeText(cur);
579
- if (text.length > position) {
580
- before = cur.nextSibling;
581
- content = text.slice(0, position) + content + text.slice(position);
582
- removeElement(cur);
583
- break;
584
- }
585
- position -= text.length;
586
- }
587
- }
588
-
589
- var lines = asEditorLines(content), doc = this.container.ownerDocument;
590
- for (var i = 0; i < lines.length; i++) {
591
- if (i > 0) this.container.insertBefore(doc.createElement("BR"), before);
592
- this.container.insertBefore(makePartSpan(lines[i], doc), before);
593
- }
594
- this.addDirtyNode(line);
595
- this.scheduleHighlight();
596
- },
597
-
598
- // Retrieve the selected text.
599
- selectedText: function() {
600
- var h = this.history;
601
- h.commit();
602
-
603
- var start = select.cursorPos(this.container, true),
604
- end = select.cursorPos(this.container, false);
605
- if (!start || !end) return "";
606
-
607
- if (start.node == end.node)
608
- return h.textAfter(start.node).slice(start.offset, end.offset);
609
-
610
- var text = [h.textAfter(start.node).slice(start.offset)];
611
- for (var pos = h.nodeAfter(start.node); pos != end.node; pos = h.nodeAfter(pos))
612
- text.push(h.textAfter(pos));
613
- text.push(h.textAfter(end.node).slice(0, end.offset));
614
- return cleanText(text.join("\n"));
615
- },
616
-
617
- // Replace the selection with another piece of text.
618
- replaceSelection: function(text) {
619
- this.history.commit();
620
-
621
- var start = select.cursorPos(this.container, true),
622
- end = select.cursorPos(this.container, false);
623
- if (!start || !end) return;
624
-
625
- end = this.replaceRange(start, end, text);
626
- select.setCursorPos(this.container, end);
627
- webkitLastLineHack(this.container);
628
- },
629
-
630
- reroutePasteEvent: function() {
631
- if (this.capturingPaste || window.opera) return;
632
- this.capturingPaste = true;
633
- var te = window.frameElement.CodeMirror.textareaHack;
634
- parent.focus();
635
- te.value = "";
636
- te.focus();
637
-
638
- var self = this;
639
- this.parent.setTimeout(function() {
640
- self.capturingPaste = false;
641
- self.win.focus();
642
- if (self.selectionSnapshot) // IE hack
643
- self.win.select.setBookmark(self.container, self.selectionSnapshot);
644
- var text = te.value;
645
- if (text) {
646
- self.replaceSelection(text);
647
- select.scrollToCursor(self.container);
648
- }
649
- }, 10);
650
- },
651
-
652
- replaceRange: function(from, to, text) {
653
- var lines = asEditorLines(text);
654
- lines[0] = this.history.textAfter(from.node).slice(0, from.offset) + lines[0];
655
- var lastLine = lines[lines.length - 1];
656
- lines[lines.length - 1] = lastLine + this.history.textAfter(to.node).slice(to.offset);
657
- var end = this.history.nodeAfter(to.node);
658
- this.history.push(from.node, end, lines);
659
- return {node: this.history.nodeBefore(end),
660
- offset: lastLine.length};
661
- },
662
-
663
- getSearchCursor: function(string, fromCursor, caseFold) {
664
- return new SearchCursor(this, string, fromCursor, caseFold);
665
- },
666
-
667
- // Re-indent the whole buffer
668
- reindent: function() {
669
- if (this.container.firstChild)
670
- this.indentRegion(null, this.container.lastChild);
671
- },
672
-
673
- reindentSelection: function(direction) {
674
- if (!select.somethingSelected(this.win)) {
675
- this.indentAtCursor(direction);
676
- }
677
- else {
678
- var start = select.selectionTopNode(this.container, true),
679
- end = select.selectionTopNode(this.container, false);
680
- if (start === false || end === false) return;
681
- this.indentRegion(start, end, direction);
682
- }
683
- },
684
-
685
- grabKeys: function(eventHandler, filter) {
686
- this.frozen = eventHandler;
687
- this.keyFilter = filter;
688
- },
689
- ungrabKeys: function() {
690
- this.frozen = "leave";
691
- this.keyFilter = null;
692
- },
693
-
694
- setParser: function(name) {
695
- Editor.Parser = window[name];
696
- if (this.container.firstChild) {
697
- forEach(this.container.childNodes, function(n) {
698
- if (n.nodeType != 3) n.dirty = true;
699
- });
700
- this.addDirtyNode(this.container.firstChild);
701
- this.scheduleHighlight();
702
- }
703
- },
704
-
705
- // Intercept enter and tab, and assign their new functions.
706
- keyDown: function(event) {
707
- if (this.frozen == "leave") this.frozen = null;
708
- if (this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode, event))) {
709
- event.stop();
710
- this.frozen(event);
711
- return;
712
- }
713
-
714
- var code = event.keyCode;
715
- // Don't scan when the user is typing.
716
- this.delayScanning();
717
- // Schedule a paren-highlight event, if configured.
718
- if (this.options.autoMatchParens)
719
- this.scheduleParenHighlight();
720
-
721
- // The various checks for !altKey are there because AltGr sets both
722
- // ctrlKey and altKey to true, and should not be recognised as
723
- // Control.
724
- if (code == 13) { // enter
725
- if (event.ctrlKey && !event.altKey) {
726
- this.reparseBuffer();
727
- }
728
- else {
729
- select.insertNewlineAtCursor(this.win);
730
- this.indentAtCursor();
731
- select.scrollToCursor(this.container);
732
- }
733
- event.stop();
734
- }
735
- else if (code == 9 && this.options.tabMode != "default" && !event.ctrlKey) { // tab
736
- this.handleTab(!event.shiftKey);
737
- event.stop();
738
- }
739
- else if (code == 32 && event.shiftKey && this.options.tabMode == "default") { // space
740
- this.handleTab(true);
741
- event.stop();
742
- }
743
- else if (code == 36 && !event.shiftKey && !event.ctrlKey) { // home
744
- if (this.home()) event.stop();
745
- }
746
- else if (code == 35 && !event.shiftKey && !event.ctrlKey) { // end
747
- if (this.end()) event.stop();
748
- }
749
- // Only in Firefox is the default behavior for PgUp/PgDn correct.
750
- else if (code == 33 && !event.shiftKey && !event.ctrlKey && !gecko) { // PgUp
751
- if (this.pageUp()) event.stop();
752
- }
753
- else if (code == 34 && !event.shiftKey && !event.ctrlKey && !gecko) { // PgDn
754
- if (this.pageDown()) event.stop();
755
- }
756
- else if ((code == 219 || code == 221) && event.ctrlKey && !event.altKey) { // [, ]
757
- this.highlightParens(event.shiftKey, true);
758
- event.stop();
759
- }
760
- else if (event.metaKey && !event.shiftKey && (code == 37 || code == 39)) { // Meta-left/right
761
- var cursor = select.selectionTopNode(this.container);
762
- if (cursor === false || !this.container.firstChild) return;
763
-
764
- if (code == 37) select.focusAfterNode(startOfLine(cursor), this.container);
765
- else {
766
- var end = endOfLine(cursor, this.container);
767
- select.focusAfterNode(end ? end.previousSibling : this.container.lastChild, this.container);
768
- }
769
- event.stop();
770
- }
771
- else if ((event.ctrlKey || event.metaKey) && !event.altKey) {
772
- if ((event.shiftKey && code == 90) || code == 89) { // shift-Z, Y
773
- select.scrollToNode(this.history.redo());
774
- event.stop();
775
- }
776
- else if (code == 90 || (safari && code == 8)) { // Z, backspace
777
- select.scrollToNode(this.history.undo());
778
- event.stop();
779
- }
780
- else if (code == 83 && this.options.saveFunction) { // S
781
- this.options.saveFunction();
782
- event.stop();
783
- }
784
- else if (internetExplorer && code == 86) {
785
- this.reroutePasteEvent();
786
- }
787
- }
788
- },
789
-
790
- // Check for characters that should re-indent the current line,
791
- // and prevent Opera from handling enter and tab anyway.
792
- keyPress: function(event) {
793
- var electric = Editor.Parser.electricChars, self = this;
794
- // Hack for Opera, and Firefox on OS X, in which stopping a
795
- // keydown event does not prevent the associated keypress event
796
- // from happening, so we have to cancel enter and tab again
797
- // here.
798
- if ((this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode, event))) ||
799
- event.code == 13 || (event.code == 9 && this.options.tabMode != "default") ||
800
- (event.keyCode == 32 && event.shiftKey && this.options.tabMode == "default"))
801
- event.stop();
802
- else if (electric && electric.indexOf(event.character) != -1)
803
- this.parent.setTimeout(function(){self.indentAtCursor(null);}, 0);
804
- else if ((event.character == "v" || event.character == "V")
805
- && (event.ctrlKey || event.metaKey) && !event.altKey) // ctrl-V
806
- this.reroutePasteEvent();
807
- },
808
-
809
- // Mark the node at the cursor dirty when a non-safe key is
810
- // released.
811
- keyUp: function(event) {
812
- this.cursorActivity(isSafeKey(event.keyCode));
813
- },
814
-
815
- // Indent the line following a given <br>, or null for the first
816
- // line. If given a <br> element, this must have been highlighted
817
- // so that it has an indentation method. Returns the whitespace
818
- // element that has been modified or created (if any).
819
- indentLineAfter: function(start, direction) {
820
- // whiteSpace is the whitespace span at the start of the line,
821
- // or null if there is no such node.
822
- var whiteSpace = start ? start.nextSibling : this.container.firstChild;
823
- if (whiteSpace && !hasClass(whiteSpace, "whitespace"))
824
- whiteSpace = null;
825
-
826
- // Sometimes the start of the line can influence the correct
827
- // indentation, so we retrieve it.
828
- var firstText = whiteSpace ? whiteSpace.nextSibling : (start ? start.nextSibling : this.container.firstChild);
829
- var nextChars = (start && firstText && firstText.currentText) ? firstText.currentText : "";
830
-
831
- // Ask the lexical context for the correct indentation, and
832
- // compute how much this differs from the current indentation.
833
- var newIndent = 0, curIndent = whiteSpace ? whiteSpace.currentText.length : 0;
834
- if (direction != null && this.options.tabMode == "shift")
835
- newIndent = direction ? curIndent + indentUnit : Math.max(0, curIndent - indentUnit)
836
- else if (start)
837
- newIndent = start.indentation(nextChars, curIndent, direction);
838
- else if (Editor.Parser.firstIndentation)
839
- newIndent = Editor.Parser.firstIndentation(nextChars, curIndent, direction);
840
- var indentDiff = newIndent - curIndent;
841
-
842
- // If there is too much, this is just a matter of shrinking a span.
843
- if (indentDiff < 0) {
844
- if (newIndent == 0) {
845
- if (firstText) select.snapshotMove(whiteSpace.firstChild, firstText.firstChild, 0);
846
- removeElement(whiteSpace);
847
- whiteSpace = null;
848
- }
849
- else {
850
- select.snapshotMove(whiteSpace.firstChild, whiteSpace.firstChild, indentDiff, true);
851
- whiteSpace.currentText = makeWhiteSpace(newIndent);
852
- whiteSpace.firstChild.nodeValue = whiteSpace.currentText;
853
- }
854
- }
855
- // Not enough...
856
- else if (indentDiff > 0) {
857
- // If there is whitespace, we grow it.
858
- if (whiteSpace) {
859
- whiteSpace.currentText = makeWhiteSpace(newIndent);
860
- whiteSpace.firstChild.nodeValue = whiteSpace.currentText;
861
- }
862
- // Otherwise, we have to add a new whitespace node.
863
- else {
864
- whiteSpace = makePartSpan(makeWhiteSpace(newIndent), this.doc);
865
- whiteSpace.className = "whitespace";
866
- if (start) insertAfter(whiteSpace, start);
867
- else this.container.insertBefore(whiteSpace, this.container.firstChild);
868
- }
869
- var fromNode = firstText && (firstText.firstChild || firstText);
870
- select.snapshotMove(fromNode, whiteSpace.firstChild, newIndent, false, true);
871
- }
872
- if (indentDiff != 0) this.addDirtyNode(start);
873
- },
874
-
875
- // Re-highlight the selected part of the document.
876
- highlightAtCursor: function() {
877
- var pos = select.selectionTopNode(this.container, true);
878
- var to = select.selectionTopNode(this.container, false);
879
- if (pos === false || to === false) return false;
880
-
881
- select.markSelection(this.win);
882
- if (this.highlight(pos, endOfLine(to, this.container), true, 20) === false)
883
- return false;
884
- select.selectMarked();
885
- return true;
886
- },
887
-
888
- // When tab is pressed with text selected, the whole selection is
889
- // re-indented, when nothing is selected, the line with the cursor
890
- // is re-indented.
891
- handleTab: function(direction) {
892
- if (this.options.tabMode == "spaces")
893
- select.insertTabAtCursor(this.win);
894
- else
895
- this.reindentSelection(direction);
896
- },
897
-
898
- // Custom home behaviour that doesn't land the cursor in front of
899
- // leading whitespace unless pressed twice.
900
- home: function() {
901
- var cur = select.selectionTopNode(this.container, true), start = cur;
902
- if (cur === false || !(!cur || cur.isPart || isBR(cur)) || !this.container.firstChild)
903
- return false;
904
-
905
- while (cur && !isBR(cur)) cur = cur.previousSibling;
906
- var next = cur ? cur.nextSibling : this.container.firstChild;
907
- if (next && next != start && next.isPart && hasClass(next, "whitespace"))
908
- select.focusAfterNode(next, this.container);
909
- else
910
- select.focusAfterNode(cur, this.container);
911
-
912
- select.scrollToCursor(this.container);
913
- return true;
914
- },
915
-
916
- // Some browsers (Opera) don't manage to handle the end key
917
- // properly in the face of vertical scrolling.
918
- end: function() {
919
- var cur = select.selectionTopNode(this.container, true);
920
- if (cur === false) return false;
921
- cur = endOfLine(cur, this.container);
922
- if (!cur) return false;
923
- select.focusAfterNode(cur.previousSibling, this.container);
924
- select.scrollToCursor(this.container);
925
- return true;
926
- },
927
-
928
- pageUp: function() {
929
- var line = this.cursorPosition().line, scrollAmount = this.visibleLineCount();
930
- if (line === false || scrollAmount === false) return false;
931
- // Try to keep one line on the screen.
932
- scrollAmount -= 2;
933
- for (var i = 0; i < scrollAmount; i++) {
934
- line = this.prevLine(line);
935
- if (line === false) break;
936
- }
937
- if (i == 0) return false; // Already at first line
938
- select.setCursorPos(this.container, {node: line, offset: 0});
939
- select.scrollToCursor(this.container);
940
- return true;
941
- },
942
-
943
- pageDown: function() {
944
- var line = this.cursorPosition().line, scrollAmount = this.visibleLineCount();
945
- if (line === false || scrollAmount === false) return false;
946
- // Try to move to the last line of the current page.
947
- scrollAmount -= 2;
948
- for (var i = 0; i < scrollAmount; i++) {
949
- var nextLine = this.nextLine(line);
950
- if (nextLine === false) break;
951
- line = nextLine;
952
- }
953
- if (i == 0) return false; // Already at last line
954
- select.setCursorPos(this.container, {node: line, offset: 0});
955
- select.scrollToCursor(this.container);
956
- return true;
957
- },
958
-
959
- // Delay (or initiate) the next paren highlight event.
960
- scheduleParenHighlight: function() {
961
- if (this.parenEvent) this.parent.clearTimeout(this.parenEvent);
962
- var self = this;
963
- this.parenEvent = this.parent.setTimeout(function(){self.highlightParens();}, 300);
964
- },
965
-
966
- // Take the token before the cursor. If it contains a character in
967
- // '()[]{}', search for the matching paren/brace/bracket, and
968
- // highlight them in green for a moment, or red if no proper match
969
- // was found.
970
- highlightParens: function(jump, fromKey) {
971
- var self = this;
972
- // give the relevant nodes a colour.
973
- function highlight(node, ok) {
974
- if (!node) return;
975
- if (self.options.markParen) {
976
- self.options.markParen(node, ok);
977
- }
978
- else {
979
- node.style.fontWeight = "bold";
980
- node.style.color = ok ? "#8F8" : "#F88";
981
- }
982
- }
983
- function unhighlight(node) {
984
- if (!node) return;
985
- if (self.options.unmarkParen) {
986
- self.options.unmarkParen(node);
987
- }
988
- else {
989
- node.style.fontWeight = "";
990
- node.style.color = "";
991
- }
992
- }
993
- if (!fromKey && self.highlighted) {
994
- unhighlight(self.highlighted[0]);
995
- unhighlight(self.highlighted[1]);
996
- }
997
-
998
- if (!window.select) return;
999
- // Clear the event property.
1000
- if (this.parenEvent) this.parent.clearTimeout(this.parenEvent);
1001
- this.parenEvent = null;
1002
-
1003
- // Extract a 'paren' from a piece of text.
1004
- function paren(node) {
1005
- if (node.currentText) {
1006
- var match = node.currentText.match(/^[\s\u00a0]*([\(\)\[\]{}])[\s\u00a0]*$/);
1007
- return match && match[1];
1008
- }
1009
- }
1010
- // Determine the direction a paren is facing.
1011
- function forward(ch) {
1012
- return /[\(\[\{]/.test(ch);
1013
- }
1014
-
1015
- var ch, cursor = select.selectionTopNode(this.container, true);
1016
- if (!cursor || !this.highlightAtCursor()) return;
1017
- cursor = select.selectionTopNode(this.container, true);
1018
- if (!(cursor && ((ch = paren(cursor)) || (cursor = cursor.nextSibling) && (ch = paren(cursor)))))
1019
- return;
1020
- // We only look for tokens with the same className.
1021
- var className = cursor.className, dir = forward(ch), match = matching[ch];
1022
-
1023
- // Since parts of the document might not have been properly
1024
- // highlighted, and it is hard to know in advance which part we
1025
- // have to scan, we just try, and when we find dirty nodes we
1026
- // abort, parse them, and re-try.
1027
- function tryFindMatch() {
1028
- var stack = [], ch, ok = true;
1029
- for (var runner = cursor; runner; runner = dir ? runner.nextSibling : runner.previousSibling) {
1030
- if (runner.className == className && isSpan(runner) && (ch = paren(runner))) {
1031
- if (forward(ch) == dir)
1032
- stack.push(ch);
1033
- else if (!stack.length)
1034
- ok = false;
1035
- else if (stack.pop() != matching[ch])
1036
- ok = false;
1037
- if (!stack.length) break;
1038
- }
1039
- else if (runner.dirty || !isSpan(runner) && !isBR(runner)) {
1040
- return {node: runner, status: "dirty"};
1041
- }
1042
- }
1043
- return {node: runner, status: runner && ok};
1044
- }
1045
-
1046
- while (true) {
1047
- var found = tryFindMatch();
1048
- if (found.status == "dirty") {
1049
- this.highlight(found.node, endOfLine(found.node));
1050
- // Needed because in some corner cases a highlight does not
1051
- // reach a node.
1052
- found.node.dirty = false;
1053
- continue;
1054
- }
1055
- else {
1056
- highlight(cursor, found.status);
1057
- highlight(found.node, found.status);
1058
- if (fromKey)
1059
- self.parent.setTimeout(function() {unhighlight(cursor); unhighlight(found.node);}, 500);
1060
- else
1061
- self.highlighted = [cursor, found.node];
1062
- if (jump && found.node)
1063
- select.focusAfterNode(found.node.previousSibling, this.container);
1064
- break;
1065
- }
1066
- }
1067
- },
1068
-
1069
- // Adjust the amount of whitespace at the start of the line that
1070
- // the cursor is on so that it is indented properly.
1071
- indentAtCursor: function(direction) {
1072
- if (!this.container.firstChild) return;
1073
- // The line has to have up-to-date lexical information, so we
1074
- // highlight it first.
1075
- if (!this.highlightAtCursor()) return;
1076
- var cursor = select.selectionTopNode(this.container, false);
1077
- // If we couldn't determine the place of the cursor,
1078
- // there's nothing to indent.
1079
- if (cursor === false)
1080
- return;
1081
- select.markSelection(this.win);
1082
- this.indentLineAfter(startOfLine(cursor), direction);
1083
- select.selectMarked();
1084
- },
1085
-
1086
- // Indent all lines whose start falls inside of the current
1087
- // selection.
1088
- indentRegion: function(start, end, direction) {
1089
- var current = (start = startOfLine(start)), before = start && startOfLine(start.previousSibling);
1090
- if (!isBR(end)) end = endOfLine(end, this.container);
1091
- this.addDirtyNode(start);
1092
-
1093
- do {
1094
- var next = endOfLine(current, this.container);
1095
- if (current) this.highlight(before, next, true);
1096
- this.indentLineAfter(current, direction);
1097
- before = current;
1098
- current = next;
1099
- } while (current != end);
1100
- select.setCursorPos(this.container, {node: start, offset: 0}, {node: end, offset: 0});
1101
- },
1102
-
1103
- // Find the node that the cursor is in, mark it as dirty, and make
1104
- // sure a highlight pass is scheduled.
1105
- cursorActivity: function(safe) {
1106
- // pagehide event hack above
1107
- if (this.unloaded) {
1108
- this.win.document.designMode = "off";
1109
- this.win.document.designMode = "on";
1110
- this.unloaded = false;
1111
- }
1112
-
1113
- if (internetExplorer) {
1114
- this.container.createTextRange().execCommand("unlink");
1115
- this.selectionSnapshot = select.getBookmark(this.container);
1116
- }
1117
-
1118
- var activity = this.options.cursorActivity;
1119
- if (!safe || activity) {
1120
- var cursor = select.selectionTopNode(this.container, false);
1121
- if (cursor === false || !this.container.firstChild) return;
1122
- cursor = cursor || this.container.firstChild;
1123
- if (activity) activity(cursor);
1124
- if (!safe) {
1125
- this.scheduleHighlight();
1126
- this.addDirtyNode(cursor);
1127
- }
1128
- }
1129
- },
1130
-
1131
- reparseBuffer: function() {
1132
- forEach(this.container.childNodes, function(node) {node.dirty = true;});
1133
- if (this.container.firstChild)
1134
- this.addDirtyNode(this.container.firstChild);
1135
- },
1136
-
1137
- // Add a node to the set of dirty nodes, if it isn't already in
1138
- // there.
1139
- addDirtyNode: function(node) {
1140
- node = node || this.container.firstChild;
1141
- if (!node) return;
1142
-
1143
- for (var i = 0; i < this.dirty.length; i++)
1144
- if (this.dirty[i] == node) return;
1145
-
1146
- if (node.nodeType != 3)
1147
- node.dirty = true;
1148
- this.dirty.push(node);
1149
- },
1150
-
1151
- allClean: function() {
1152
- return !this.dirty.length;
1153
- },
1154
-
1155
- // Cause a highlight pass to happen in options.passDelay
1156
- // milliseconds. Clear the existing timeout, if one exists. This
1157
- // way, the passes do not happen while the user is typing, and
1158
- // should as unobtrusive as possible.
1159
- scheduleHighlight: function() {
1160
- // Timeouts are routed through the parent window, because on
1161
- // some browsers designMode windows do not fire timeouts.
1162
- var self = this;
1163
- this.parent.clearTimeout(this.highlightTimeout);
1164
- this.highlightTimeout = this.parent.setTimeout(function(){self.highlightDirty();}, this.options.passDelay);
1165
- },
1166
-
1167
- // Fetch one dirty node, and remove it from the dirty set.
1168
- getDirtyNode: function() {
1169
- while (this.dirty.length > 0) {
1170
- var found = this.dirty.pop();
1171
- // IE8 sometimes throws an unexplainable 'invalid argument'
1172
- // exception for found.parentNode
1173
- try {
1174
- // If the node has been coloured in the meantime, or is no
1175
- // longer in the document, it should not be returned.
1176
- while (found && found.parentNode != this.container)
1177
- found = found.parentNode;
1178
- if (found && (found.dirty || found.nodeType == 3))
1179
- return found;
1180
- } catch (e) {}
1181
- }
1182
- return null;
1183
- },
1184
-
1185
- // Pick dirty nodes, and highlight them, until options.passTime
1186
- // milliseconds have gone by. The highlight method will continue
1187
- // to next lines as long as it finds dirty nodes. It returns
1188
- // information about the place where it stopped. If there are
1189
- // dirty nodes left after this function has spent all its lines,
1190
- // it shedules another highlight to finish the job.
1191
- highlightDirty: function(force) {
1192
- // Prevent FF from raising an error when it is firing timeouts
1193
- // on a page that's no longer loaded.
1194
- if (!window.select) return false;
1195
-
1196
- if (!this.options.readOnly) select.markSelection(this.win);
1197
- var start, endTime = force ? null : time() + this.options.passTime;
1198
- while ((time() < endTime || force) && (start = this.getDirtyNode())) {
1199
- var result = this.highlight(start, endTime);
1200
- if (result && result.node && result.dirty)
1201
- this.addDirtyNode(result.node);
1202
- }
1203
- if (!this.options.readOnly) select.selectMarked();
1204
- if (start) this.scheduleHighlight();
1205
- return this.dirty.length == 0;
1206
- },
1207
-
1208
- // Creates a function that, when called through a timeout, will
1209
- // continuously re-parse the document.
1210
- documentScanner: function(passTime) {
1211
- var self = this, pos = null;
1212
- return function() {
1213
- // FF timeout weirdness workaround.
1214
- if (!window.select) return;
1215
- // If the current node is no longer in the document... oh
1216
- // well, we start over.
1217
- if (pos && pos.parentNode != self.container)
1218
- pos = null;
1219
- select.markSelection(self.win);
1220
- var result = self.highlight(pos, time() + passTime, true);
1221
- select.selectMarked();
1222
- var newPos = result ? (result.node && result.node.nextSibling) : null;
1223
- pos = (pos == newPos) ? null : newPos;
1224
- self.delayScanning();
1225
- };
1226
- },
1227
-
1228
- // Starts the continuous scanning process for this document after
1229
- // a given interval.
1230
- delayScanning: function() {
1231
- if (this.scanner) {
1232
- this.parent.clearTimeout(this.documentScan);
1233
- this.documentScan = this.parent.setTimeout(this.scanner, this.options.continuousScanning);
1234
- }
1235
- },
1236
-
1237
- // The function that does the actual highlighting/colouring (with
1238
- // help from the parser and the DOM normalizer). Its interface is
1239
- // rather overcomplicated, because it is used in different
1240
- // situations: ensuring that a certain line is highlighted, or
1241
- // highlighting up to X milliseconds starting from a certain
1242
- // point. The 'from' argument gives the node at which it should
1243
- // start. If this is null, it will start at the beginning of the
1244
- // document. When a timestamp is given with the 'target' argument,
1245
- // it will stop highlighting at that time. If this argument holds
1246
- // a DOM node, it will highlight until it reaches that node. If at
1247
- // any time it comes across two 'clean' lines (no dirty nodes), it
1248
- // will stop, except when 'cleanLines' is true. maxBacktrack is
1249
- // the maximum number of lines to backtrack to find an existing
1250
- // parser instance. This is used to give up in situations where a
1251
- // highlight would take too long and freeze the browser interface.
1252
- highlight: function(from, target, cleanLines, maxBacktrack){
1253
- var container = this.container, self = this, active = this.options.activeTokens;
1254
- var endTime = (typeof target == "number" ? target : null);
1255
-
1256
- if (!container.firstChild)
1257
- return false;
1258
- // Backtrack to the first node before from that has a partial
1259
- // parse stored.
1260
- while (from && (!from.parserFromHere || from.dirty)) {
1261
- if (maxBacktrack != null && isBR(from) && (--maxBacktrack) < 0)
1262
- return false;
1263
- from = from.previousSibling;
1264
- }
1265
- // If we are at the end of the document, do nothing.
1266
- if (from && !from.nextSibling)
1267
- return false;
1268
-
1269
- // Check whether a part (<span> node) and the corresponding token
1270
- // match.
1271
- function correctPart(token, part){
1272
- return !part.reduced && part.currentText == token.value && part.className == token.style;
1273
- }
1274
- // Shorten the text associated with a part by chopping off
1275
- // characters from the front. Note that only the currentText
1276
- // property gets changed. For efficiency reasons, we leave the
1277
- // nodeValue alone -- we set the reduced flag to indicate that
1278
- // this part must be replaced.
1279
- function shortenPart(part, minus){
1280
- part.currentText = part.currentText.substring(minus);
1281
- part.reduced = true;
1282
- }
1283
- // Create a part corresponding to a given token.
1284
- function tokenPart(token){
1285
- var part = makePartSpan(token.value, self.doc);
1286
- part.className = token.style;
1287
- return part;
1288
- }
1289
-
1290
- function maybeTouch(node) {
1291
- if (node) {
1292
- var old = node.oldNextSibling;
1293
- if (lineDirty || old === undefined || node.nextSibling != old)
1294
- self.history.touch(node);
1295
- node.oldNextSibling = node.nextSibling;
1296
- }
1297
- else {
1298
- var old = self.container.oldFirstChild;
1299
- if (lineDirty || old === undefined || self.container.firstChild != old)
1300
- self.history.touch(null);
1301
- self.container.oldFirstChild = self.container.firstChild;
1302
- }
1303
- }
1304
-
1305
- // Get the token stream. If from is null, we start with a new
1306
- // parser from the start of the frame, otherwise a partial parse
1307
- // is resumed.
1308
- var traversal = traverseDOM(from ? from.nextSibling : container.firstChild),
1309
- stream = stringStream(traversal),
1310
- parsed = from ? from.parserFromHere(stream) : Editor.Parser.make(stream);
1311
-
1312
- function surroundedByBRs(node) {
1313
- return (node.previousSibling == null || isBR(node.previousSibling)) &&
1314
- (node.nextSibling == null || isBR(node.nextSibling));
1315
- }
1316
-
1317
- // parts is an interface to make it possible to 'delay' fetching
1318
- // the next DOM node until we are completely done with the one
1319
- // before it. This is necessary because often the next node is
1320
- // not yet available when we want to proceed past the current
1321
- // one.
1322
- var parts = {
1323
- current: null,
1324
- // Fetch current node.
1325
- get: function(){
1326
- if (!this.current)
1327
- this.current = traversal.nodes.shift();
1328
- return this.current;
1329
- },
1330
- // Advance to the next part (do not fetch it yet).
1331
- next: function(){
1332
- this.current = null;
1333
- },
1334
- // Remove the current part from the DOM tree, and move to the
1335
- // next.
1336
- remove: function(){
1337
- container.removeChild(this.get());
1338
- this.current = null;
1339
- },
1340
- // Advance to the next part that is not empty, discarding empty
1341
- // parts.
1342
- getNonEmpty: function(){
1343
- var part = this.get();
1344
- // Allow empty nodes when they are alone on a line, needed
1345
- // for the FF cursor bug workaround (see select.js,
1346
- // insertNewlineAtCursor).
1347
- while (part && isSpan(part) && part.currentText == "") {
1348
- // Leave empty nodes that are alone on a line alone in
1349
- // Opera, since that browsers doesn't deal well with
1350
- // having 2 BRs in a row.
1351
- if (window.opera && surroundedByBRs(part)) {
1352
- this.next();
1353
- part = this.get();
1354
- }
1355
- else {
1356
- var old = part;
1357
- this.remove();
1358
- part = this.get();
1359
- // Adjust selection information, if any. See select.js for details.
1360
- select.snapshotMove(old.firstChild, part && (part.firstChild || part), 0);
1361
- }
1362
- }
1363
-
1364
- return part;
1365
- }
1366
- };
1367
-
1368
- var lineDirty = false, prevLineDirty = true, lineNodes = 0;
1369
-
1370
- // This forEach loops over the tokens from the parsed stream, and
1371
- // at the same time uses the parts object to proceed through the
1372
- // corresponding DOM nodes.
1373
- forEach(parsed, function(token){
1374
- var part = parts.getNonEmpty();
1375
-
1376
- if (token.value == "\n"){
1377
- // The idea of the two streams actually staying synchronized
1378
- // is such a long shot that we explicitly check.
1379
- if (!isBR(part))
1380
- throw "Parser out of sync. Expected BR.";
1381
-
1382
- if (part.dirty || !part.indentation) lineDirty = true;
1383
- maybeTouch(from);
1384
- from = part;
1385
-
1386
- // Every <br> gets a copy of the parser state and a lexical
1387
- // context assigned to it. The first is used to be able to
1388
- // later resume parsing from this point, the second is used
1389
- // for indentation.
1390
- part.parserFromHere = parsed.copy();
1391
- part.indentation = token.indentation;
1392
- part.dirty = false;
1393
-
1394
- // If the target argument wasn't an integer, go at least
1395
- // until that node.
1396
- if (endTime == null && part == target) throw StopIteration;
1397
-
1398
- // A clean line with more than one node means we are done.
1399
- // Throwing a StopIteration is the way to break out of a
1400
- // MochiKit forEach loop.
1401
- if ((endTime != null && time() >= endTime) || (!lineDirty && !prevLineDirty && lineNodes > 1 && !cleanLines))
1402
- throw StopIteration;
1403
- prevLineDirty = lineDirty; lineDirty = false; lineNodes = 0;
1404
- parts.next();
1405
- }
1406
- else {
1407
- if (!isSpan(part))
1408
- throw "Parser out of sync. Expected SPAN.";
1409
- if (part.dirty)
1410
- lineDirty = true;
1411
- lineNodes++;
1412
-
1413
- // If the part matches the token, we can leave it alone.
1414
- if (correctPart(token, part)){
1415
- part.dirty = false;
1416
- parts.next();
1417
- }
1418
- // Otherwise, we have to fix it.
1419
- else {
1420
- lineDirty = true;
1421
- // Insert the correct part.
1422
- var newPart = tokenPart(token);
1423
- container.insertBefore(newPart, part);
1424
- if (active) active(newPart, token, self);
1425
- var tokensize = token.value.length;
1426
- var offset = 0;
1427
- // Eat up parts until the text for this token has been
1428
- // removed, adjusting the stored selection info (see
1429
- // select.js) in the process.
1430
- while (tokensize > 0) {
1431
- part = parts.get();
1432
- var partsize = part.currentText.length;
1433
- select.snapshotReplaceNode(part.firstChild, newPart.firstChild, tokensize, offset);
1434
- if (partsize > tokensize){
1435
- shortenPart(part, tokensize);
1436
- tokensize = 0;
1437
- }
1438
- else {
1439
- tokensize -= partsize;
1440
- offset += partsize;
1441
- parts.remove();
1442
- }
1443
- }
1444
- }
1445
- }
1446
- });
1447
- maybeTouch(from);
1448
- webkitLastLineHack(this.container);
1449
-
1450
- // The function returns some status information that is used by
1451
- // hightlightDirty to determine whether and where it has to
1452
- // continue.
1453
- return {node: parts.getNonEmpty(),
1454
- dirty: lineDirty};
1455
- }
1456
- };
1457
-
1458
- return Editor;
1459
- })();
1460
-
1461
- addEventHandler(window, "load", function() {
1462
- var CodeMirror = window.frameElement.CodeMirror;
1463
- var e = CodeMirror.editor = new Editor(CodeMirror.options);
1464
- this.parent.setTimeout(method(CodeMirror, "init"), 0);
1465
- });