alchemy_cms 4.0.5 → 4.1.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/.localeapp/config.rb +8 -0
  5. data/.rubocop.yml +26 -13
  6. data/.travis.yml +8 -11
  7. data/CHANGELOG.md +5 -20
  8. data/Gemfile +10 -7
  9. data/README.md +16 -14
  10. data/Rakefile +1 -1
  11. data/alchemy_cms.gemspec +6 -7
  12. data/app/assets/images/alchemy/alchemy-logo.png +0 -0
  13. data/app/assets/images/alchemy/alchemy-logo.svg +1 -70
  14. data/app/assets/images/alchemy/favicon.ico +0 -0
  15. data/app/assets/images/alchemy/icon.svg +1 -14
  16. data/app/assets/javascripts/alchemy/admin.js +0 -7
  17. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +2 -2
  18. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +1 -1
  19. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +1 -1
  20. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
  21. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -6
  22. data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +2 -7
  23. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +36 -26
  24. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -15
  25. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
  26. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +8 -11
  27. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +4 -1
  28. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +1 -1
  29. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +5 -14
  30. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +54 -75
  31. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +4 -13
  32. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -0
  33. data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +12 -6
  34. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +0 -158
  35. data/app/assets/stylesheets/alchemy/_defaults.scss +0 -2
  36. data/app/assets/stylesheets/alchemy/_extends.scss +13 -18
  37. data/app/assets/stylesheets/alchemy/_mixins.scss +72 -46
  38. data/app/assets/stylesheets/alchemy/_variables.scss +128 -59
  39. data/app/assets/stylesheets/alchemy/admin.scss +7 -1
  40. data/app/assets/stylesheets/alchemy/archive.scss +23 -27
  41. data/app/assets/stylesheets/alchemy/base.scss +5 -355
  42. data/app/assets/stylesheets/alchemy/buttons.scss +23 -60
  43. data/app/assets/stylesheets/alchemy/clipboard.scss +26 -0
  44. data/app/assets/stylesheets/alchemy/dashboard.scss +7 -40
  45. data/app/assets/stylesheets/alchemy/dialogs.scss +23 -36
  46. data/app/assets/stylesheets/alchemy/elements.scss +80 -156
  47. data/app/assets/stylesheets/alchemy/errors.scss +2 -2
  48. data/app/assets/stylesheets/alchemy/flash.scss +19 -10
  49. data/app/assets/stylesheets/alchemy/fonts.scss +13 -0
  50. data/app/assets/stylesheets/alchemy/forms.scss +6 -1
  51. data/app/assets/stylesheets/alchemy/frame.scss +24 -65
  52. data/app/assets/stylesheets/alchemy/hints.scss +2 -2
  53. data/app/assets/stylesheets/alchemy/icons.scss +3 -337
  54. data/app/assets/stylesheets/alchemy/image_library.scss +9 -10
  55. data/app/assets/stylesheets/alchemy/jquery-ui.scss +21 -839
  56. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +32 -57
  57. data/app/assets/stylesheets/alchemy/lists.scss +4 -8
  58. data/app/assets/stylesheets/alchemy/menubar.scss +26 -29
  59. data/app/assets/stylesheets/alchemy/navigation.scss +23 -25
  60. data/app/assets/stylesheets/alchemy/notices.scss +25 -25
  61. data/app/assets/stylesheets/alchemy/pagination.scss +12 -7
  62. data/app/assets/stylesheets/alchemy/preview_window.scss +20 -0
  63. data/app/assets/stylesheets/alchemy/resource_info.scss +1 -1
  64. data/app/assets/stylesheets/alchemy/search.scss +19 -15
  65. data/app/assets/stylesheets/alchemy/selects.scss +63 -32
  66. data/app/assets/stylesheets/alchemy/sitemap.scss +70 -148
  67. data/app/assets/stylesheets/alchemy/tables.scss +16 -59
  68. data/app/assets/stylesheets/alchemy/toolbar.scss +9 -36
  69. data/app/assets/stylesheets/alchemy/trash.scss +8 -0
  70. data/app/assets/stylesheets/alchemy/upload.scss +5 -6
  71. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +1 -0
  72. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +78 -43
  73. data/app/controllers/alchemy/admin/attachments_controller.rb +6 -6
  74. data/app/controllers/alchemy/admin/base_controller.rb +9 -9
  75. data/app/controllers/alchemy/admin/contents_controller.rb +0 -17
  76. data/app/controllers/alchemy/admin/elements_controller.rb +1 -4
  77. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -3
  78. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +1 -3
  79. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  80. data/app/controllers/alchemy/admin/pictures_controller.rb +5 -5
  81. data/app/controllers/alchemy/admin/resources_controller.rb +10 -10
  82. data/app/controllers/alchemy/admin/tags_controller.rb +7 -7
  83. data/app/controllers/alchemy/api/contents_controller.rb +6 -1
  84. data/app/controllers/alchemy/api/elements_controller.rb +5 -1
  85. data/app/controllers/alchemy/api/pages_controller.rb +6 -1
  86. data/app/controllers/alchemy/base_controller.rb +5 -3
  87. data/app/controllers/alchemy/pages_controller.rb +1 -1
  88. data/app/helpers/alchemy/admin/base_helper.rb +14 -15
  89. data/app/helpers/alchemy/admin/contents_helper.rb +1 -2
  90. data/app/helpers/alchemy/admin/elements_helper.rb +7 -6
  91. data/app/helpers/alchemy/admin/tags_helper.rb +3 -4
  92. data/app/helpers/alchemy/base_helper.rb +35 -5
  93. data/app/helpers/alchemy/elements_helper.rb +2 -2
  94. data/app/helpers/alchemy/pages_helper.rb +4 -2
  95. data/app/models/alchemy/attachment.rb +14 -23
  96. data/app/models/alchemy/base_record.rb +13 -0
  97. data/app/models/alchemy/cell.rb +1 -1
  98. data/app/models/alchemy/content.rb +1 -2
  99. data/app/models/alchemy/content/factory.rb +1 -1
  100. data/app/models/alchemy/element.rb +10 -12
  101. data/app/models/alchemy/essence_boolean.rb +1 -1
  102. data/app/models/alchemy/essence_date.rb +2 -2
  103. data/app/models/alchemy/essence_file.rb +1 -1
  104. data/app/models/alchemy/essence_html.rb +1 -1
  105. data/app/models/alchemy/essence_link.rb +1 -1
  106. data/app/models/alchemy/essence_picture.rb +1 -1
  107. data/app/models/alchemy/essence_richtext.rb +1 -1
  108. data/app/models/alchemy/essence_select.rb +1 -1
  109. data/app/models/alchemy/essence_text.rb +1 -1
  110. data/app/models/alchemy/folded_page.rb +1 -1
  111. data/app/models/alchemy/language.rb +21 -5
  112. data/app/models/alchemy/page.rb +17 -5
  113. data/app/models/alchemy/page/page_elements.rb +14 -2
  114. data/app/models/alchemy/page/page_naming.rb +17 -4
  115. data/app/models/alchemy/picture.rb +4 -7
  116. data/app/models/alchemy/site.rb +3 -3
  117. data/app/models/alchemy/tag.rb +3 -3
  118. data/app/models/concerns/alchemy/content_touching.rb +23 -0
  119. data/app/serializers/alchemy/element_serializer.rb +2 -0
  120. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
  121. data/app/views/alchemy/admin/attachments/_attachment.html.erb +11 -21
  122. data/app/views/alchemy/admin/attachments/_files_list.html.erb +26 -29
  123. data/app/views/alchemy/admin/attachments/_filter_bar.html.erb +2 -3
  124. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +3 -4
  125. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +2 -3
  126. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +3 -3
  127. data/app/views/alchemy/admin/attachments/destroy.js.erb +1 -1
  128. data/app/views/alchemy/admin/attachments/edit.html.erb +2 -2
  129. data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
  130. data/app/views/alchemy/admin/attachments/show.html.erb +7 -8
  131. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  132. data/app/views/alchemy/admin/clipboard/index.html.erb +23 -7
  133. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  134. data/app/views/alchemy/admin/clipboard/remove.js.erb +2 -2
  135. data/app/views/alchemy/admin/contents/create.js.erb +1 -1
  136. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +9 -6
  137. data/app/views/alchemy/admin/dashboard/_recent_pages.html.erb +6 -4
  138. data/app/views/alchemy/admin/dashboard/_sites.html.erb +4 -2
  139. data/app/views/alchemy/admin/dashboard/_users.html.erb +6 -4
  140. data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
  141. data/app/views/alchemy/admin/dashboard/info.html.erb +6 -7
  142. data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
  143. data/app/views/alchemy/admin/elements/_element.html.erb +1 -1
  144. data/app/views/alchemy/admin/elements/_element_header.html.erb +14 -14
  145. data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +3 -3
  146. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +2 -3
  147. data/app/views/alchemy/admin/elements/index.html.erb +2 -4
  148. data/app/views/alchemy/admin/elements/new.html.erb +1 -2
  149. data/app/views/alchemy/admin/elements/publish.js.erb +5 -5
  150. data/app/views/alchemy/admin/languages/_language.html.erb +4 -9
  151. data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
  152. data/app/views/alchemy/admin/languages/index.html.erb +1 -1
  153. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +5 -5
  154. data/app/views/alchemy/admin/layoutpages/index.html.erb +5 -4
  155. data/app/views/alchemy/admin/leave.html.erb +1 -1
  156. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +1 -1
  157. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
  158. data/app/views/alchemy/admin/pages/_form.html.erb +1 -1
  159. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  160. data/app/views/alchemy/admin/pages/_page.html.erb +31 -23
  161. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +5 -5
  162. data/app/views/alchemy/admin/pages/_page_infos.html.erb +3 -3
  163. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +1 -1
  164. data/app/views/alchemy/admin/pages/edit.html.erb +22 -21
  165. data/app/views/alchemy/admin/pages/index.html.erb +5 -21
  166. data/app/views/alchemy/admin/pages/info.html.erb +5 -5
  167. data/app/views/alchemy/admin/pages/sort.html.erb +1 -1
  168. data/app/views/alchemy/admin/pages/unlock.js.erb +2 -4
  169. data/app/views/alchemy/admin/partials/_flash.html.erb +1 -1
  170. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +6 -2
  171. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  172. data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
  173. data/app/views/alchemy/admin/pictures/_archive.html.erb +19 -17
  174. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
  175. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +13 -13
  176. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -3
  177. data/app/views/alchemy/admin/pictures/_form.html.erb +3 -3
  178. data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +2 -3
  179. data/app/views/alchemy/admin/pictures/_picture.html.erb +7 -7
  180. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +3 -3
  181. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +6 -7
  182. data/app/views/alchemy/admin/pictures/index.html.erb +12 -12
  183. data/app/views/alchemy/admin/pictures/index.js.erb +0 -1
  184. data/app/views/alchemy/admin/pictures/show.html.erb +9 -9
  185. data/app/views/alchemy/admin/resources/_filter_bar.html.erb +2 -3
  186. data/app/views/alchemy/admin/resources/_form.html.erb +10 -2
  187. data/app/views/alchemy/admin/resources/_resource.html.erb +9 -14
  188. data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
  189. data/app/views/alchemy/admin/resources/_tag_list.html.erb +4 -4
  190. data/app/views/alchemy/admin/resources/index.html.erb +2 -3
  191. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  192. data/app/views/alchemy/admin/tags/_tag.html.erb +7 -11
  193. data/app/views/alchemy/admin/tags/index.html.erb +4 -4
  194. data/app/views/alchemy/admin/trash/index.html.erb +2 -3
  195. data/app/views/alchemy/admin/uploader/_button.html.erb +1 -2
  196. data/app/views/alchemy/base/500.html.erb +1 -1
  197. data/app/views/alchemy/base/permission_denied.js.erb +1 -1
  198. data/app/views/alchemy/base/redirect.js.erb +1 -2
  199. data/app/views/alchemy/elements/_editor_not_found.html.erb +2 -3
  200. data/app/views/alchemy/essences/_essence_date_editor.html.erb +1 -1
  201. data/app/views/alchemy/essences/_essence_file_editor.html.erb +7 -11
  202. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +9 -7
  203. data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +1 -1
  204. data/app/views/alchemy/pages/_meta_data.html.erb +1 -1
  205. data/app/views/kaminari/alchemy/_first_page.html.erb +7 -3
  206. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  207. data/app/views/kaminari/alchemy/_last_page.html.erb +7 -3
  208. data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
  209. data/app/views/kaminari/alchemy/_page.html.erb +1 -1
  210. data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
  211. data/app/views/layouts/alchemy/admin.html.erb +8 -6
  212. data/bin/rails +2 -2
  213. data/bin/rspec +1 -1
  214. data/config/alchemy/config.yml +0 -2
  215. data/config/alchemy/modules.yml +5 -5
  216. data/config/initializers/simple_form.rb +45 -8
  217. data/config/locales/alchemy.en.yml +66 -179
  218. data/config/routes.rb +1 -1
  219. data/db/migrate/20180226123013_alchemy_four_point_zero.rb +392 -0
  220. data/db/migrate/20180227224537_migrate_tags_to_gutentag.rb +41 -0
  221. data/lib/alchemy/config.rb +0 -2
  222. data/lib/alchemy/engine.rb +5 -9
  223. data/lib/alchemy/essence.rb +6 -6
  224. data/lib/alchemy/filetypes.rb +13 -1
  225. data/lib/alchemy/forms/builder.rb +5 -3
  226. data/lib/alchemy/i18n.rb +8 -6
  227. data/lib/alchemy/modules.rb +1 -1
  228. data/lib/alchemy/name_conversions.rb +0 -2
  229. data/lib/alchemy/page_layout.rb +3 -2
  230. data/lib/alchemy/paths.rb +5 -5
  231. data/lib/alchemy/resource.rb +9 -9
  232. data/lib/alchemy/resources_helper.rb +11 -15
  233. data/lib/alchemy/routing_constraints.rb +2 -2
  234. data/lib/alchemy/shell.rb +0 -1
  235. data/lib/alchemy/taggable.rb +40 -0
  236. data/lib/alchemy/tasks/tidy.rb +1 -9
  237. data/lib/alchemy/test_support/factories/content_factory.rb +10 -0
  238. data/lib/alchemy/test_support/factories/element_factory.rb +5 -0
  239. data/lib/alchemy/test_support/shared_contexts.rb +1 -1
  240. data/lib/alchemy/tinymce.rb +2 -2
  241. data/lib/alchemy/upgrader/four_point_one.rb +42 -0
  242. data/lib/alchemy/upgrader/tasks/harden_acts_as_taggable_on_migrations.rb +27 -0
  243. data/lib/alchemy/version.rb +1 -1
  244. data/lib/alchemy_cms.rb +2 -3
  245. data/lib/rails/generators/alchemy/elements/elements_generator.rb +2 -2
  246. data/lib/rails/generators/alchemy/essence/essence_generator.rb +1 -1
  247. data/lib/rails/generators/alchemy/install/install_generator.rb +4 -8
  248. data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
  249. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
  250. data/lib/rails/generators/alchemy/site_layouts/site_layouts_generator.rb +2 -2
  251. data/lib/rails/generators/alchemy/views/views_generator.rb +1 -1
  252. data/lib/tasks/alchemy/db.rake +2 -1
  253. data/lib/tasks/alchemy/tidy.rake +0 -6
  254. data/lib/tasks/alchemy/upgrade.rake +11 -144
  255. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  256. data/vendor/assets/fonts/fa-regular-400.svg +363 -0
  257. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  258. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  259. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  260. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  261. data/vendor/assets/fonts/fa-solid-900.svg +1413 -0
  262. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  263. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  264. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  265. data/vendor/assets/javascripts/tinymce/license.txt +6 -6
  266. data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -15
  267. data/vendor/assets/stylesheets/fontawesome/_animated.scss +20 -0
  268. data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +20 -0
  269. data/vendor/assets/stylesheets/fontawesome/_core.scss +16 -0
  270. data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
  271. data/vendor/assets/stylesheets/fontawesome/_icons.scss +792 -0
  272. data/vendor/assets/stylesheets/fontawesome/_larger.scss +23 -0
  273. data/vendor/assets/stylesheets/fontawesome/_list.scss +18 -0
  274. data/vendor/assets/stylesheets/fontawesome/_mixins.scss +57 -0
  275. data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +23 -0
  276. data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +5 -0
  277. data/vendor/assets/stylesheets/fontawesome/_stacked.scss +31 -0
  278. data/vendor/assets/stylesheets/fontawesome/_variables.scss +805 -0
  279. data/vendor/assets/stylesheets/fontawesome/fa-regular.scss +22 -0
  280. data/vendor/assets/stylesheets/fontawesome/fa-solid.scss +23 -0
  281. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +16 -0
  282. metadata +77 -112
  283. data/app/assets/fonts/alchemy/icons.eot +0 -0
  284. data/app/assets/fonts/alchemy/icons.svg +0 -33
  285. data/app/assets/fonts/alchemy/icons.ttf +0 -0
  286. data/app/assets/fonts/alchemy/icons.woff +0 -0
  287. data/app/assets/images/alchemy/icons.png +0 -0
  288. data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
  289. data/app/assets/images/sassy-ie-overlay.png +0 -0
  290. data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +0 -42
  291. data/app/assets/stylesheets/alchemy/icon-font.scss +0 -75
  292. data/app/assets/stylesheets/alchemy/modules.scss +0 -27
  293. data/app/models/alchemy.rb +0 -7
  294. data/app/views/alchemy/admin/contents/destroy.js.erb +0 -4
  295. data/app/views/alchemy/admin/pictures/flush.js.erb +0 -2
  296. data/config/locales/alchemy.de.yml +0 -932
  297. data/config/locales/alchemy.es.yml +0 -960
  298. data/config/locales/alchemy.fr.yml +0 -938
  299. data/config/locales/alchemy.it.yml +0 -938
  300. data/config/locales/alchemy.nl.yml +0 -918
  301. data/config/locales/alchemy.ru.yml +0 -830
  302. data/config/locales/simple_form.de.yml +0 -26
  303. data/config/locales/simple_form.en.yml +0 -25
  304. data/config/locales/simple_form.es.yml +0 -6
  305. data/config/locales/simple_form.fr.yml +0 -26
  306. data/config/locales/simple_form.it.yml +0 -25
  307. data/config/locales/simple_form.nl.yml +0 -25
  308. data/config/locales/simple_form.ru.yml +0 -25
  309. data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -378
  310. data/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
  311. data/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
  312. data/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
  313. data/db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb +0 -6
  314. data/db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb +0 -5
  315. data/db/migrate/20150906195818_add_locale_to_alchemy_languages.rb +0 -7
  316. data/db/migrate/20160108174834_add_timebased_publishing_columns_to_pages.rb +0 -32
  317. data/db/migrate/20160422195310_add_image_file_format_to_alchemy_pictures.rb +0 -9
  318. data/db/migrate/20160617224938_change_alchemy_pages_locked_to_locked_at.rb +0 -22
  319. data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +0 -9
  320. data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +0 -20
  321. data/db/migrate/20160928080104_add_foreign_keys.rb +0 -27
  322. data/lib/alchemy/touching.rb +0 -42
  323. data/lib/alchemy/upgrader/tasks/available_contents_upgrader.rb +0 -161
  324. data/lib/alchemy/upgrader/tasks/install_asset_manifests.rb +0 -15
  325. data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +0 -14
  326. data/lib/alchemy/upgrader/tasks/nestable_elements_migration.rb +0 -71
  327. data/lib/alchemy/upgrader/tasks/three_point_two_task.rb +0 -31
  328. data/lib/alchemy/upgrader/three_point_five.rb +0 -32
  329. data/lib/alchemy/upgrader/three_point_four.rb +0 -52
  330. data/lib/alchemy/upgrader/three_point_one.rb +0 -54
  331. data/lib/alchemy/upgrader/three_point_three.rb +0 -50
  332. data/lib/alchemy/upgrader/three_point_two.rb +0 -40
  333. data/lib/alchemy/upgrader/three_point_zero.rb +0 -92
  334. data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +0 -3
  335. data/vendor/assets/javascripts/tinymce/langs/de.js +0 -219
  336. data/vendor/assets/javascripts/tinymce/langs/es.js +0 -219
  337. data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -219
  338. data/vendor/assets/javascripts/tinymce/langs/it.js +0 -219
  339. data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -219
  340. data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -219
@@ -1,26 +0,0 @@
1
- de:
2
- simple_form:
3
- "yes": 'Ja'
4
- "no": 'Nein'
5
- required:
6
- text: 'Pflichtfeld'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Es sind Fehler aufgetreten:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
26
-
@@ -1,25 +0,0 @@
1
- en:
2
- simple_form:
3
- "yes": 'Yes'
4
- "no": 'No'
5
- required:
6
- text: 'required'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Please review the problems below:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
@@ -1,6 +0,0 @@
1
- es:
2
- simple_form:
3
- labels:
4
- user:
5
- login: Usuario
6
- password: Contraseña
@@ -1,26 +0,0 @@
1
- fr:
2
- simple_form:
3
- "yes": 'oui'
4
- "no": 'non'
5
- required:
6
- text: 'champ obligatoire'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Il ya des erreurs:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
26
-
@@ -1,25 +0,0 @@
1
- it:
2
- simple_form:
3
- "yes": 'Sì'
4
- "no": 'No'
5
- required:
6
- text: 'obbligatorio'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Correggi gli errori sottostanti:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
@@ -1,25 +0,0 @@
1
- nl:
2
- simple_form:
3
- "yes": 'Ja'
4
- "no": 'Nee'
5
- required:
6
- text: 'Verplicht'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Controleer de volgende problemen:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
@@ -1,25 +0,0 @@
1
- ru:
2
- simple_form:
3
- "yes": 'Да'
4
- "no": 'Нет'
5
- required:
6
- text: 'обязательные поля'
7
- mark: '*'
8
- # You can uncomment the line below if you need to overwrite the whole required html.
9
- # When using html, text and mark won't be used.
10
- # html: '<abbr title="required">*</abbr>'
11
- error_notification:
12
- default_message: "Пожалуйста, исправьте эти ошибки:"
13
- # Labels and hints examples
14
- # labels:
15
- # defaults:
16
- # password: 'Password'
17
- # user:
18
- # new:
19
- # email: 'E-mail to sign in.'
20
- # edit:
21
- # email: 'E-mail.'
22
- # hints:
23
- # defaults:
24
- # username: 'User name to sign in.'
25
- # password: 'No special characters, please.'
@@ -1,378 +0,0 @@
1
- # This is a compressed migration for creating all Alchemy 2.6 tables at once.
2
- #
3
- # === Notice
4
- #
5
- # In order to upgrade from an old version of Alchemy, you have to run all migrations from
6
- # each version you missed up to the version you want to upgrade to, before running this migration.
7
- #
8
- class AlchemyTwoPointSix < ActiveRecord::Migration[4.2]
9
- def up
10
- unless table_exists?('alchemy_attachments')
11
- create_table "alchemy_attachments" do |t|
12
- t.string "name"
13
- t.string "file_name"
14
- t.string "file_mime_type"
15
- t.integer "file_size"
16
- t.integer "creator_id"
17
- t.integer "updater_id"
18
- t.datetime "created_at", null: false
19
- t.datetime "updated_at", null: false
20
- t.text "cached_tag_list"
21
- t.string "file_uid"
22
- end
23
- add_index "alchemy_attachments", ["file_uid"], name: "index_alchemy_attachments_on_file_uid"
24
- end
25
-
26
- unless table_exists?('alchemy_cells')
27
- create_table "alchemy_cells" do |t|
28
- t.integer "page_id"
29
- t.string "name"
30
- t.datetime "created_at", null: false
31
- t.datetime "updated_at", null: false
32
- end
33
- end
34
-
35
- unless table_exists?('alchemy_contents')
36
- create_table "alchemy_contents" do |t|
37
- t.string "name"
38
- t.string "essence_type"
39
- t.integer "essence_id"
40
- t.integer "element_id"
41
- t.integer "position"
42
- t.datetime "created_at", null: false
43
- t.datetime "updated_at", null: false
44
- t.integer "creator_id"
45
- t.integer "updater_id"
46
- end
47
- add_index "alchemy_contents", ["element_id", "position"], name: "index_contents_on_element_id_and_position"
48
- end
49
-
50
- unless table_exists?('alchemy_elements')
51
- create_table "alchemy_elements" do |t|
52
- t.string "name"
53
- t.integer "position"
54
- t.integer "page_id"
55
- t.boolean "public", default: true
56
- t.boolean "folded", default: false
57
- t.boolean "unique", default: false
58
- t.datetime "created_at", null: false
59
- t.datetime "updated_at", null: false
60
- t.integer "creator_id"
61
- t.integer "updater_id"
62
- t.integer "cell_id"
63
- t.text "cached_tag_list"
64
- end
65
- add_index "alchemy_elements", ["page_id", "position"], name: "index_elements_on_page_id_and_position"
66
- end
67
-
68
- unless table_exists?('alchemy_elements_alchemy_pages')
69
- create_table "alchemy_elements_alchemy_pages", id: false do |t|
70
- t.integer "element_id"
71
- t.integer "page_id"
72
- end
73
- end
74
-
75
- unless table_exists?('alchemy_essence_booleans')
76
- create_table "alchemy_essence_booleans" do |t|
77
- t.boolean "value"
78
- t.datetime "created_at", null: false
79
- t.datetime "updated_at", null: false
80
- t.integer "creator_id"
81
- t.integer "updater_id"
82
- end
83
- add_index "alchemy_essence_booleans", ["value"], name: "index_alchemy_essence_booleans_on_value"
84
- end
85
-
86
- unless table_exists?('alchemy_essence_dates')
87
- create_table "alchemy_essence_dates" do |t|
88
- t.datetime "date"
89
- t.integer "creator_id"
90
- t.integer "updater_id"
91
- t.datetime "created_at", null: false
92
- t.datetime "updated_at", null: false
93
- end
94
- end
95
-
96
- unless table_exists?('alchemy_essence_files')
97
- create_table "alchemy_essence_files" do |t|
98
- t.integer "attachment_id"
99
- t.string "title"
100
- t.string "css_class"
101
- t.integer "creator_id"
102
- t.integer "updater_id"
103
- t.datetime "created_at", null: false
104
- t.datetime "updated_at", null: false
105
- end
106
- end
107
-
108
- unless table_exists?('alchemy_essence_htmls')
109
- create_table "alchemy_essence_htmls" do |t|
110
- t.text "source"
111
- t.integer "creator_id"
112
- t.integer "updater_id"
113
- t.datetime "created_at", null: false
114
- t.datetime "updated_at", null: false
115
- end
116
- end
117
-
118
- unless table_exists?('alchemy_essence_links')
119
- create_table "alchemy_essence_links" do |t|
120
- t.string "link"
121
- t.string "link_title"
122
- t.string "link_target"
123
- t.string "link_class_name"
124
- t.datetime "created_at", null: false
125
- t.datetime "updated_at", null: false
126
- t.integer "creator_id"
127
- t.integer "updater_id"
128
- end
129
- end
130
-
131
- unless table_exists?('alchemy_essence_pictures')
132
- create_table "alchemy_essence_pictures" do |t|
133
- t.integer "picture_id"
134
- t.string "caption"
135
- t.string "title"
136
- t.string "alt_tag"
137
- t.string "link"
138
- t.string "link_class_name"
139
- t.string "link_title"
140
- t.string "css_class"
141
- t.string "link_target"
142
- t.integer "creator_id"
143
- t.integer "updater_id"
144
- t.datetime "created_at", null: false
145
- t.datetime "updated_at", null: false
146
- t.string "crop_from"
147
- t.string "crop_size"
148
- t.string "render_size"
149
- end
150
- end
151
-
152
- unless table_exists?('alchemy_essence_richtexts')
153
- create_table "alchemy_essence_richtexts" do |t|
154
- t.text "body"
155
- t.text "stripped_body"
156
- t.boolean "do_not_index", default: false
157
- t.boolean "public"
158
- t.integer "creator_id"
159
- t.integer "updater_id"
160
- t.datetime "created_at", null: false
161
- t.datetime "updated_at", null: false
162
- end
163
- end
164
-
165
- unless table_exists?('alchemy_essence_selects')
166
- create_table "alchemy_essence_selects" do |t|
167
- t.string "value"
168
- t.datetime "created_at", null: false
169
- t.datetime "updated_at", null: false
170
- t.integer "creator_id"
171
- t.integer "updater_id"
172
- end
173
- add_index "alchemy_essence_selects", ["value"], name: "index_alchemy_essence_selects_on_value"
174
- end
175
-
176
- unless table_exists?('alchemy_essence_texts')
177
- create_table "alchemy_essence_texts" do |t|
178
- t.text "body"
179
- t.string "link"
180
- t.string "link_title"
181
- t.string "link_class_name"
182
- t.boolean "public", default: false
183
- t.boolean "do_not_index", default: false
184
- t.string "link_target"
185
- t.integer "creator_id"
186
- t.integer "updater_id"
187
- t.datetime "created_at", null: false
188
- t.datetime "updated_at", null: false
189
- end
190
- end
191
-
192
- unless table_exists?('alchemy_folded_pages')
193
- create_table "alchemy_folded_pages" do |t|
194
- t.integer "page_id"
195
- t.integer "user_id"
196
- t.boolean "folded", default: false
197
- end
198
- end
199
-
200
- unless table_exists?('alchemy_languages')
201
- create_table "alchemy_languages" do |t|
202
- t.string "name"
203
- t.string "language_code"
204
- t.string "frontpage_name"
205
- t.string "page_layout", default: "intro"
206
- t.boolean "public", default: false
207
- t.datetime "created_at", null: false
208
- t.datetime "updated_at", null: false
209
- t.integer "creator_id"
210
- t.integer "updater_id"
211
- t.boolean "default", default: false
212
- t.string "country_code", default: "", null: false
213
- t.integer "site_id"
214
- end
215
- add_index "alchemy_languages", ["language_code", "country_code"], name: "index_alchemy_languages_on_language_code_and_country_code"
216
- add_index "alchemy_languages", ["language_code"], name: "index_alchemy_languages_on_language_code"
217
- add_index "alchemy_languages", ["site_id"], name: "index_alchemy_languages_on_site_id"
218
- end
219
-
220
- unless table_exists?('alchemy_legacy_page_urls')
221
- create_table "alchemy_legacy_page_urls" do |t|
222
- t.string "urlname", null: false
223
- t.integer "page_id", null: false
224
- t.datetime "created_at", null: false
225
- t.datetime "updated_at", null: false
226
- end
227
- add_index "alchemy_legacy_page_urls", ["urlname"], name: "index_alchemy_legacy_page_urls_on_urlname"
228
- end
229
-
230
- unless table_exists?('alchemy_pages')
231
- create_table "alchemy_pages" do |t|
232
- t.string "name"
233
- t.string "urlname"
234
- t.string "title"
235
- t.string "language_code"
236
- t.boolean "language_root"
237
- t.string "page_layout"
238
- t.text "meta_keywords"
239
- t.text "meta_description"
240
- t.integer "lft"
241
- t.integer "rgt"
242
- t.integer "parent_id"
243
- t.integer "depth"
244
- t.boolean "visible", default: false
245
- t.boolean "public", default: false
246
- t.boolean "locked", default: false
247
- t.integer "locked_by"
248
- t.boolean "restricted", default: false
249
- t.boolean "robot_index", default: true
250
- t.boolean "robot_follow", default: true
251
- t.boolean "sitemap", default: true
252
- t.boolean "layoutpage", default: false
253
- t.datetime "created_at", null: false
254
- t.datetime "updated_at", null: false
255
- t.integer "creator_id"
256
- t.integer "updater_id"
257
- t.integer "language_id"
258
- t.text "cached_tag_list"
259
- end
260
- add_index "alchemy_pages", ["language_id"], name: "index_pages_on_language_id"
261
- add_index "alchemy_pages", ["parent_id", "lft"], name: "index_pages_on_parent_id_and_lft"
262
- add_index "alchemy_pages", ["urlname"], name: "index_pages_on_urlname"
263
- end
264
-
265
- unless table_exists?('alchemy_pictures')
266
- create_table "alchemy_pictures" do |t|
267
- t.string "name"
268
- t.string "image_file_name"
269
- t.integer "image_file_width"
270
- t.integer "image_file_height"
271
- t.datetime "created_at", null: false
272
- t.datetime "updated_at", null: false
273
- t.integer "creator_id"
274
- t.integer "updater_id"
275
- t.string "upload_hash"
276
- t.text "cached_tag_list"
277
- t.string "image_file_uid"
278
- t.integer "image_file_size"
279
- end
280
- end
281
-
282
- unless table_exists?('alchemy_sites')
283
- create_table "alchemy_sites" do |t|
284
- t.string "host"
285
- t.string "name"
286
- t.datetime "created_at", null: false
287
- t.datetime "updated_at", null: false
288
- t.boolean "public", default: false
289
- t.text "aliases"
290
- t.boolean "redirect_to_primary_host"
291
- end
292
- add_index "alchemy_sites", ["host", "public"], name: "alchemy_sites_public_hosts_idx"
293
- add_index "alchemy_sites", ["host"], name: "index_alchemy_sites_on_host"
294
- end
295
- end
296
-
297
- def down
298
- if table_exists?('alchemy_attachments')
299
- drop_table "alchemy_attachments"
300
- end
301
-
302
- if table_exists?('alchemy_cells')
303
- drop_table "alchemy_cells"
304
- end
305
-
306
- if table_exists?('alchemy_contents')
307
- drop_table "alchemy_contents"
308
- end
309
-
310
- if table_exists?('alchemy_elements')
311
- drop_table "alchemy_elements"
312
- end
313
-
314
- if table_exists?('alchemy_elements_alchemy_pages')
315
- drop_table "alchemy_elements_alchemy_pages"
316
- end
317
-
318
- if table_exists?('alchemy_essence_booleans')
319
- drop_table "alchemy_essence_booleans"
320
- end
321
-
322
- if table_exists?('alchemy_essence_dates')
323
- drop_table "alchemy_essence_dates"
324
- end
325
-
326
- if table_exists?('alchemy_essence_files')
327
- drop_table "alchemy_essence_files"
328
- end
329
-
330
- if table_exists?('alchemy_essence_htmls')
331
- drop_table "alchemy_essence_htmls"
332
- end
333
-
334
- if table_exists?('alchemy_essence_links')
335
- drop_table "alchemy_essence_links"
336
- end
337
-
338
- if table_exists?('alchemy_essence_pictures')
339
- drop_table "alchemy_essence_pictures"
340
- end
341
-
342
- if table_exists?('alchemy_essence_richtexts')
343
- drop_table "alchemy_essence_richtexts"
344
- end
345
-
346
- if table_exists?('alchemy_essence_selects')
347
- drop_table "alchemy_essence_selects"
348
- end
349
-
350
- if table_exists?('alchemy_essence_texts')
351
- drop_table "alchemy_essence_texts"
352
- end
353
-
354
- if table_exists?('alchemy_folded_pages')
355
- drop_table "alchemy_folded_pages"
356
- end
357
-
358
- if table_exists?('alchemy_languages')
359
- drop_table "alchemy_languages"
360
- end
361
-
362
- if table_exists?('alchemy_legacy_page_urls')
363
- drop_table "alchemy_legacy_page_urls"
364
- end
365
-
366
- if table_exists?('alchemy_pages')
367
- drop_table "alchemy_pages"
368
- end
369
-
370
- if table_exists?('alchemy_pictures')
371
- drop_table "alchemy_pictures"
372
- end
373
-
374
- if table_exists?('alchemy_sites')
375
- drop_table "alchemy_sites"
376
- end
377
- end
378
- end