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
@@ -7,7 +7,7 @@
7
7
  <div class="button_with_label">
8
8
  <%= form_tag alchemy.unlock_admin_page_path(@page, redirect_to: @layoutpage ? alchemy.admin_layoutpages_path : alchemy.admin_pages_path), id: 'unlock_page_form' do %>
9
9
  <button class="icon_button" title="<%= Alchemy.t(:explain_unlocking) %>" data-alchemy-hotkey="alt+x">
10
- <%= render_icon('close') %>
10
+ <%= render_icon('sign-out-alt', transform: 'flip-horizontal') %>
11
11
  </button>
12
12
  <label><%= Alchemy.t(:unlock_page) %></label>
13
13
  <% end %>
@@ -17,7 +17,7 @@
17
17
  <div class="button_with_label">
18
18
  <%= form_tag alchemy.visit_admin_page_path(@page), id: 'visit_page_form' do %>
19
19
  <button class="icon_button" title="<%= Alchemy.t('Visit page') %>">
20
- <%= render_icon('visit_page') %>
20
+ <%= render_icon('external-link-alt') %>
21
21
  </button>
22
22
  <label><%= Alchemy.t("Visit page") %></label>
23
23
  <% end %>
@@ -25,7 +25,7 @@
25
25
  <% end %>
26
26
  <div class="button_with_label">
27
27
  <%= link_to_dialog(
28
- render_icon('info'),
28
+ render_icon('info-circle'),
29
29
  alchemy.info_admin_page_path(@page),
30
30
  {
31
31
  title: Alchemy.t(:page_infos),
@@ -41,7 +41,7 @@
41
41
  <div class="button_with_label">
42
42
  <% if @page.layoutpage? %>
43
43
  <%= link_to_dialog(
44
- render_icon('settings'),
44
+ render_icon(:cog),
45
45
  alchemy.edit_admin_layoutpage_path(@page),
46
46
  {
47
47
  title: Alchemy.t(:edit_page_properties),
@@ -53,7 +53,7 @@
53
53
  ) %>
54
54
  <% else %>
55
55
  <%= link_to_dialog(
56
- render_icon('settings'),
56
+ render_icon(:cog),
57
57
  alchemy.configure_admin_page_path(@page),
58
58
  {
59
59
  title: Alchemy.t(:edit_page_properties),
@@ -70,7 +70,7 @@
70
70
  <div class="button_with_label">
71
71
  <%= form_tag alchemy.publish_admin_page_path(@page), id: 'publish_page_form' do %>
72
72
  <%= button_tag class: 'icon_button', title: Alchemy.t(:explain_publishing) do %>
73
- <%= render_icon('publish') %>
73
+ <%= render_icon('cloud-upload-alt') %>
74
74
  <% end %>
75
75
  <label><%= Alchemy.t("Publish page") %></label>
76
76
  <% end %>
@@ -89,7 +89,7 @@
89
89
  </div>
90
90
  <div class="toolbar_spacer"></div>
91
91
  <div class="button_with_label">
92
- <%= link_to render_icon(:reload), '#', {
92
+ <%= link_to render_icon(:redo), nil, {
93
93
  title: Alchemy.t('Reload Preview'),
94
94
  class: 'icon_button',
95
95
  id: 'reload_preview_button'
@@ -99,7 +99,7 @@
99
99
  </div>
100
100
  <div class="toolbar_buttons right">
101
101
  <div class="button_with_label" id="element_window_button">
102
- <%= link_to render_icon(:element_window), '', {
102
+ <%= link_to render_icon(:bars), nil, {
103
103
  title: Alchemy.t(:hide_elements),
104
104
  class: 'icon_button'
105
105
  } %>
@@ -142,7 +142,7 @@
142
142
  title: '<%= Alchemy.t("New Element") %>',
143
143
  label: '<%= Alchemy.t("New Element") %>',
144
144
  hotkey: 'alt+n',
145
- iconClass: 'new_element',
145
+ iconClass: 'plus',
146
146
  onClick: function() {
147
147
  Alchemy.openDialog('<%= alchemy.new_admin_element_path(page_id: @page.id) %>', {
148
148
  title: '<%= Alchemy.t("New Element") %>',
@@ -153,7 +153,7 @@
153
153
  {
154
154
  title: '<%= Alchemy.t("Clipboard") %>',
155
155
  label: '<%= Alchemy.t("Show clipboard") %>',
156
- iconClass: 'clipboard<%= clipboard_empty?("elements") ? "" : " full" %>',
156
+ iconClass: '<%= clipboard_empty?("elements") ? "clipboard" : "paste" %>',
157
157
  buttonId: 'clipboard_button',
158
158
  onClick: function() {
159
159
  Alchemy.openDialog('<%= alchemy.admin_clipboard_path(remarkable_type: "elements") %>', {
@@ -165,7 +165,7 @@
165
165
  {
166
166
  title: '<%= Alchemy.t("Show trash") %>',
167
167
  label: '<%= Alchemy.t("Show trash") %>',
168
- iconClass: 'trash<%= trash_empty?("elements") ? "" : " full" %>',
168
+ iconClass: 'trash-alt<%= trash_empty?("elements") ? "" : " full" %>',
169
169
  buttonId: 'element_trash_button',
170
170
  onClick: function() {
171
171
  Alchemy.TrashWindow.open(<%= @page.id %>, '<%= Alchemy.t("Trash") %>');
@@ -178,7 +178,12 @@
178
178
  Alchemy.ElementEditors.init();
179
179
  Alchemy.SelectBox('.element-editor');
180
180
  Alchemy.Tinymce.init(<%= @page.richtext_contents_ids.to_json %>);
181
- $('#cells').tabs().tabs('paging', { follow: true, followOnSelect: true } );
181
+ $('#cells').tabs().tabs('paging', {
182
+ follow: true,
183
+ followOnSelect: true,
184
+ prevButton: '<i class="fas fa-angle-double-left"></i>',
185
+ nextButton: '<i class="fas fa-angle-double-right"></i>'
186
+ });
182
187
  Alchemy.ElementDirtyObserver('#element_area');
183
188
  if (window.location.hash) {
184
189
  $(window.location.hash).trigger('FocusElementEditor.Alchemy');
@@ -195,17 +200,13 @@
195
200
  $('#top_menu').css('z-index', 30);
196
201
  });
197
202
 
198
- $('select#preview_size').on('change', function(e) {
203
+ $('select#preview_size').on('change', function() {
199
204
  var width = this.value;
200
- if (this.value === 'auto') {
201
- width = Alchemy.PreviewWindow.currentWidth;
205
+ if (width === 'auto') {
206
+ Alchemy.PreviewWindow.currentWindow.css('width', '');
207
+ } else {
208
+ Alchemy.PreviewWindow.resize(width);
202
209
  }
203
- Alchemy.PreviewWindow.currentWindow.css('width', width);
204
- });
205
-
206
- $(window).resize(function() {
207
- Alchemy.PreviewWindow.resize();
208
- Alchemy.ElementsWindow.resize();
209
210
  });
210
211
  });
211
212
 
@@ -1,7 +1,3 @@
1
- <% content_for :javascript_includes do %>
2
- <meta name="turbolinks-cache-control" content="no-cache">
3
- <% end %>
4
-
5
1
  <% content_for :toolbar do %>
6
2
  <div class="toolbar_buttons">
7
3
  <%= render 'alchemy/admin/partials/site_select' %>
@@ -9,7 +5,7 @@
9
5
  <% if can?(:flush, Alchemy::Page) %>
10
6
  <div class="button_with_label">
11
7
  <%= link_to(
12
- render_icon('flush'),
8
+ render_icon(:eraser),
13
9
  alchemy.flush_admin_pages_path,
14
10
  :remote => true,
15
11
  :method => :post,
@@ -22,10 +18,10 @@
22
18
  <% if can?(:sort, Alchemy::Page) %>
23
19
  <div class="button_with_label">
24
20
  <%= link_to(
25
- render_icon(:sort),
21
+ render_icon(:random),
26
22
  alchemy.sort_admin_pages_path,
27
23
  method: :get,
28
- class: 'icon_button please_wait',
24
+ class: 'icon_button',
29
25
  title: Alchemy.t('Sort pages')
30
26
  ) %>
31
27
  <label><%= Alchemy.t('Sort pages') %></label>
@@ -33,7 +29,7 @@
33
29
  <% end %>
34
30
  <div class="button_with_label" id="clipboard_button">
35
31
  <%= link_to_dialog(
36
- render_icon("clipboard#{clipboard_empty?('pages') ? '' : ' full'}"),
32
+ render_icon(clipboard_empty?('pages') ? :clipboard : :paste),
37
33
  alchemy.admin_clipboard_path(:remarkable_type => 'pages'),
38
34
  {
39
35
  :title => Alchemy.t('Clipboard'),
@@ -51,7 +47,7 @@
51
47
  placeholder: Alchemy.t(:search),
52
48
  id: nil %>
53
49
  <%= render_icon :search %>
54
- <%= link_to('', '#', {
50
+ <%= link_to(render_icon(:times, size: 'xs'), '#', {
55
51
  class: "js_filter_field_clear",
56
52
  title: Alchemy.t(:click_to_show_all)
57
53
  }) %>
@@ -60,18 +56,6 @@
60
56
 
61
57
  <div id="archive_all">
62
58
  <% if @page_root %>
63
-
64
- <div id="sort_panel" style="display: none">
65
- <div class="info">
66
- <%= render_icon('info') %>
67
- <%= Alchemy.t(:explain_sitemap_dragndrop_sorting) %>
68
- </div>
69
- <div class="buttons">
70
- <%= link_to( Alchemy.t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>&nbsp;
71
- <%= submit_tag( Alchemy.t('save order'), :id => 'save_page_order', :class => 'button' ) %>
72
- </div>
73
- </div>
74
-
75
59
  <h1 id="page_filter_result"></h1>
76
60
 
77
61
  <%= render 'sitemap', page_partial: 'page', full: !!@sorting %>
@@ -26,26 +26,26 @@
26
26
  <label><%= Alchemy.t(:page_status) %></label>
27
27
  <p>
28
28
  <span class="page_status">
29
- <%= render_icon @page.public? ? :public : :not_public %>
29
+ <%= render_icon(:compass, transform: 'shrink-2', class: @page.public? ? nil : 'disabled') %>
30
30
  <%= @page.status_title(:public) %>
31
31
  </span>
32
32
  <span class="page_status">
33
- <%= render_icon @page.visible? ? :visible : :not_visible %>
33
+ <%= render_icon(:eye, transform: 'shrink-2', class: @page.visible? ? nil : 'disabled') %>
34
34
  <%= @page.status_title(:visible) %>
35
35
  </span>
36
36
  <span class="page_status">
37
- <%= render_icon @page.restricted? ? :restricted : :not_restricted %>
37
+ <%= render_icon(:lock, transform: 'shrink-2', class: @page.restricted? ? nil : 'disabled') %>
38
38
  <%= @page.status_title(:restricted) %>
39
39
  </span>
40
40
  </p>
41
41
  </div>
42
42
  <div class="value">
43
43
  <label><%= Alchemy.t(:page_was_created) %></label>
44
- <p><%= Alchemy.t(:from_at) % {by: @page.creator_name, at: l(@page.created_at, format: :page_status)} %></p>
44
+ <p><%= Alchemy.t(:from_at) % {by: @page.creator_name, at: l(@page.created_at, format: :'alchemy.page_status')} %></p>
45
45
  </div>
46
46
  <div class="value">
47
47
  <label><%= Alchemy.t(:page_was_updated) %></label>
48
- <p><%= Alchemy.t(:from_at) % {by: @page.updater_name, at: l(@page.updated_at, format: :page_status)} %></p>
48
+ <p><%= Alchemy.t(:from_at) % {by: @page.updater_name, at: l(@page.updated_at, format: :'alchemy.page_status')} %></p>
49
49
  </div>
50
50
  <% if @page.locked? %>
51
51
  <div class="value">
@@ -1,7 +1,7 @@
1
1
  <% content_for :toolbar do %>
2
2
  <div class="button_with_label">
3
3
  <%= link_to alchemy.admin_pages_path, class: 'icon_button' do %>
4
- <%= render_icon :back %>
4
+ <%= render_icon 'angle-double-left' %>
5
5
  <% end %>
6
6
  <label><%= Alchemy.t(:cancel) %></label>
7
7
  </div>
@@ -1,8 +1,6 @@
1
1
  (function($) {
2
2
  $('#locked_page_<%= @page.id -%>').remove();
3
- $('#page_<%= @page.id -%> .sitemap_page').removeClass('locked');
4
- <%- if @pages_locked_by_user.blank? -%>
5
- $('#locked_pages label').hide();
6
- <%- end -%>
3
+ $('#page_<%= @page.id -%> .sitemap_left_images .with-hint').remove();
4
+ $('#page_<%= @page.id -%> .sitemap_left_images').append('<%= j render_icon(:file, style: 'regular', size: 'lg') %>');
7
5
  Alchemy.growl('<%= flash[:notice] -%>');
8
6
  })(jQuery);
@@ -1,4 +1,4 @@
1
1
  <div class="flash <%= flash_type %>">
2
- <%= render_icon(flash_type.to_s) %>
2
+ <%= render_icon message_icon_class(flash_type) %>
3
3
  <%= message %>
4
4
  </div>
@@ -3,10 +3,14 @@
3
3
  <%= link_to url_for_module(alchemy_module) do %>
4
4
  <% if navigation["image"] %>
5
5
  <%= image_tag(navigation["image"]) %>
6
+ <% elsif navigation["inline_image"] %>
7
+ <span class="icon fa-fw">
8
+ <%== navigation["inline_image"] %>
9
+ </span>
6
10
  <% elsif navigation["icon"] %>
7
- <span class="module icon <%= navigation["icon"] %>"></span>
11
+ <i class="module icon fas fa-<%= navigation["icon"] %> fa-lg fa-fw"></i>
8
12
  <% else %>
9
- <span class="module icon"></span>
13
+ <i class="module icon fas fa-table fa-lg fa-fw"></i>
10
14
  <% end %>
11
15
  <label><%= Alchemy.t(navigation['name']) %></label>
12
16
  <% end %>
@@ -11,7 +11,7 @@
11
11
  placeholder: Alchemy.t(:search),
12
12
  class: 'search_input_field',
13
13
  id: nil %>
14
- <%= link_to '', url_for(
14
+ <%= link_to render_icon(:times, size: 'xs'), url_for(
15
15
  action: 'index',
16
16
  element_id: @element.blank? ? '' : @element.id,
17
17
  content_id: @content.blank? ? '' : @content.id,
@@ -22,6 +22,6 @@
22
22
  remote: true,
23
23
  class: 'search_field_clear',
24
24
  title: Alchemy.t(:click_to_show_all),
25
- style: params[:q].blank? ? 'display: none' : 'display: block' %>
25
+ style: search_filter_params[:q].blank? ? 'display: none' : 'display: block' %>
26
26
  </div>
27
27
  <% end %>
@@ -9,13 +9,13 @@
9
9
  <% local_assigns.fetch(:additional_query_fields, []).each do |field| %>
10
10
  <%= f.hidden_field field %>
11
11
  <% end %>
12
- <%= link_to '', url,
12
+ <%= link_to render_icon(:times, size: 'xs'), url,
13
13
  class: 'search_field_clear',
14
14
  id: 'search_field_clear',
15
15
  title: Alchemy.t(:click_to_show_all),
16
- style: params.fetch(:q, {}).fetch(resource_handler.search_field_name, '').present? ? 'display: block' : 'display: none' %>
16
+ style: search_filter_params.fetch(:q, {}).fetch(resource_handler.search_field_name, '').present? ? 'display: block' : 'display: none' %>
17
17
  <% local_assigns.fetch(:additional_params, []).each do |additional_param| %>
18
- <%= hidden_field_tag additional_param, params[additional_param] %>
18
+ <%= hidden_field_tag additional_param, search_filter_params[additional_param] %>
19
19
  <% end %>
20
20
  </div>
21
21
  <% end %>
@@ -1,21 +1,25 @@
1
1
  <div id="library_sidebar">
2
2
  <%= render 'filter_bar' %>
3
- <div class="tag-list with_filter_bar<%= params[:tagged_with].present? ? ' filtered' : '' %>">
4
- <%= render 'tag_list' %>
5
- </div>
3
+
4
+ <% if Alchemy::Picture.tag_counts.any? %>
5
+ <div class="tag-list with_filter_bar<%= ' filtered' if search_filter_params[:tagged_with].present? %>">
6
+ <%= render 'tag_list' %>
7
+ </div>
8
+ <% end %>
6
9
  </div>
10
+
7
11
  <%= form_tag delete_multiple_admin_pictures_path, method: :delete do %>
8
12
  <div class="selected_item_tools">
9
13
  <h2><%= Alchemy.t(:edit_selected_pictures) %></h2>
10
14
  <%= link_to(
11
- render_icon('edit') + Alchemy.t("Edit"),
15
+ render_icon(:edit, size: 'xs') + Alchemy.t("Edit"),
12
16
  edit_multiple_admin_pictures_path,
13
17
  class: 'button with_icon',
14
18
  title: Alchemy.t('Edit multiple pictures'),
15
19
  id: 'edit_multiple_pictures',
16
20
  style: 'float: none'
17
21
  ) %>
18
- <%= button_tag render_icon('destroy') + Alchemy.t("Delete"), 'data-alchemy-confirm' => {
22
+ <%= button_tag render_icon(:minus, size: 'xs') + Alchemy.t("Delete"), 'data-alchemy-confirm' => {
19
23
  title: Alchemy.t(:please_confirm),
20
24
  message: Alchemy.t(:confirm_to_delete_images_from_server),
21
25
  ok_label: Alchemy.t("Yes"),
@@ -23,28 +27,26 @@
23
27
  }.to_json, class: 'button with_icon' %>
24
28
  &nbsp;<%= Alchemy.t(:or) %>&nbsp;
25
29
  <%= link_to(
26
- render_icon('delete-small') + Alchemy.t("Clear selection"),
30
+ render_icon(:times, size: 'xs') + Alchemy.t("Clear selection"),
27
31
  admin_pictures_path(
28
- q: params[:q],
29
- tagged_with: params[:tagged_with],
32
+ q: search_filter_params[:q],
33
+ tagged_with: search_filter_params[:tagged_with],
30
34
  size: params[:size],
31
- filter: params[:filter]
35
+ filter: search_filter_params[:filter]
32
36
  ),
33
- class: 'button with_icon',
37
+ class: 'secondary button with_icon',
34
38
  style: 'float: none'
35
39
  ) %>
36
40
  </div>
37
41
  <div id="pictures">
38
- <% if @pictures.blank? and @recent_pictures.blank? and params[:q].blank? %>
39
- <div class="info">
40
- <%= render_icon('info') %>
42
+ <% if @pictures.blank? and @recent_pictures.blank? and search_filter_params[:q].blank? %>
43
+ <%= render_message do %>
41
44
  <%= Alchemy.t(:no_images_in_archive) %>
42
- </div>
45
+ <% end %>
43
46
  <% elsif @pictures.blank? and @recent_pictures.blank? %>
44
- <div class="info">
45
- <%= render_icon('info') %>
47
+ <%= render_message do %>
46
48
  <%= Alchemy.t(:no_search_results) %>
47
- </div>
49
+ <% end %>
48
50
  <% else %>
49
51
  <%= render partial: 'picture', collection: @pictures %>
50
52
  <%= paginate @pictures, theme: 'alchemy' %>
@@ -1,7 +1,7 @@
1
1
  <div id="overlay_toolbar">
2
2
  <%= render 'filter_and_size_bar' %>
3
3
  </div>
4
- <div id="assign_image_list" class="with_padding<%= params[:tagged_with].present? ? ' filtered' : '' %>">
4
+ <div id="assign_image_list" class="with_padding<%= search_filter_params[:tagged_with].present? ? ' filtered' : '' %>">
5
5
  <div id="library_sidebar">
6
6
  <%= render 'filter_bar' %>
7
7
  <div class="tag-list">
@@ -6,7 +6,7 @@
6
6
  file_attribute: 'image_file',
7
7
  in_dialog: true,
8
8
  redirect_url: alchemy.admin_pictures_path(
9
- size: params[:size],
9
+ size: search_filter_params[:size],
10
10
  filter: 'last_upload',
11
11
  content_id: @content.try(:id),
12
12
  element_id: @element.try(:id),
@@ -17,15 +17,15 @@
17
17
  <div class="button_group">
18
18
  <div class="button_with_label">
19
19
  <%= link_to(
20
- render_icon('zoom-out'),
20
+ render_icon('search-minus'),
21
21
  alchemy.admin_pictures_path({
22
22
  size: "small",
23
23
  content_id: @content,
24
24
  element_id: @element,
25
- q: params[:q],
25
+ q: search_filter_params[:q],
26
26
  options: options_from_params,
27
- filter: params[:filter],
28
- tagged_with: params[:tagged_with]
27
+ filter: search_filter_params[:filter],
28
+ tagged_with: search_filter_params[:tagged_with]
29
29
  }),
30
30
  remote: true,
31
31
  title: Alchemy.t(:small_thumbnails),
@@ -34,15 +34,15 @@
34
34
  </div>
35
35
  <div class="button_with_label">
36
36
  <%= link_to(
37
- render_icon('zoom-equal'),
37
+ render_icon('search'),
38
38
  alchemy.admin_pictures_path({
39
39
  size: "medium",
40
40
  content_id: @content,
41
41
  element_id: @element,
42
- q: params[:q],
42
+ q: search_filter_params[:q],
43
43
  options: options_from_params,
44
- filter: params[:filter],
45
- tagged_with: params[:tagged_with]
44
+ filter: search_filter_params[:filter],
45
+ tagged_with: search_filter_params[:tagged_with]
46
46
  }),
47
47
  remote: true,
48
48
  title: Alchemy.t(:medium_thumbnails),
@@ -51,15 +51,15 @@
51
51
  </div>
52
52
  <div class="button_with_label">
53
53
  <%= link_to(
54
- render_icon('zoom-in'),
54
+ render_icon('search-plus'),
55
55
  alchemy.admin_pictures_path({
56
56
  size: "large",
57
57
  content_id: @content,
58
58
  element_id: @element,
59
- q: params[:q],
59
+ q: search_filter_params[:q],
60
60
  options: options_from_params,
61
- filter: params[:filter],
62
- tagged_with: params[:tagged_with]
61
+ filter: search_filter_params[:filter],
62
+ tagged_with: search_filter_params[:tagged_with]
63
63
  }),
64
64
  remote: true,
65
65
  title: Alchemy.t(:big_thumbnails),