alchemy_cms 4.0.6 → 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 +12 -14
  7. data/CHANGELOG.md +5 -24
  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 +7 -3
  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 +78 -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,6 +1,7 @@
1
1
  @mixin default-focus-style {
2
- border-color: $blue;
3
- box-shadow: 0 0 1px 1px $blue;
2
+ border-color: $focus-color;
3
+ border-radius: $default-border-radius;
4
+ box-shadow: 0 0 0 1px $focus-color;
4
5
  outline: none;
5
6
 
6
7
  &::-moz-focus-inner {
@@ -10,37 +11,38 @@
10
11
  }
11
12
 
12
13
  @mixin button-defaults(
13
- $first-color: $button-gradient-first-color,
14
- $second-color: $button-gradient-second-color,
14
+ $background-color: $button-bg-color,
15
+ $hover-color: $button-hover-bg-color,
16
+ $hover-border-color: $button-hover-border-color,
15
17
  $border-radius: $default-border-radius,
18
+ $border: 1px solid $button-border-color,
16
19
  $padding: $button-padding,
17
- $margin: $button-margin) {
20
+ $margin: $button-margin,
21
+ $color: $button-text-color) {
18
22
  display: inline-block;
19
- font-size: 12px;
23
+ font-family: $default-font-family;
24
+ font-size: $default-font-size;
25
+ font-weight: bold;
26
+ line-height: $form-field-line-height;
20
27
  padding: $padding;
21
28
  cursor: pointer;
22
29
  border-radius: $border-radius;
23
- background-color: $button-bg-color;
24
- background-image: linear-gradient($first-color, $second-color);
25
- box-shadow: white 0 1px 0 inset;
26
- border: 1px solid $button-border-color;
27
- color: $text-color;
28
- text-shadow: $button-text-shadow;
30
+ background-color: $background-color;
31
+ box-shadow: $button-box-shadow;
32
+ border: $border;
33
+ color: $color;
29
34
  margin: $margin;
30
35
  -webkit-appearance: none;
36
+ transition: background-color 250ms;
37
+ @include antialiased-font-smoothing;
31
38
 
32
39
  &:hover {
33
40
  text-decoration: none;
34
- background-color: $button-hover-bg-color;
35
- background-image: linear-gradient(
36
- darken($first-color, 5%),
37
- darken($second-color, 5%)
38
- );
39
- border-color: $button-hover-border-color;
41
+ background-color: $hover-color;
42
+ border-color: $hover-border-color;
40
43
  }
41
44
 
42
45
  &:active, &:active:focus {
43
- box-shadow: #c4c4c4 0 1px 2px inset;
44
46
  border-color: $button-border-color;
45
47
  }
46
48
 
@@ -51,8 +53,7 @@
51
53
  &.disabled, &[disabled],
52
54
  &.disabled:active, &[disabled]:active,
53
55
  &.disabled:hover, &[disabled]:hover {
54
- opacity: 0.6;
55
- background: $second-color;
56
+ background-color: transparentize($button-bg-color, 0.25);
56
57
  cursor: not-allowed;
57
58
  box-shadow: none;
58
59
  }
@@ -63,16 +64,6 @@
63
64
  }
64
65
  }
65
66
 
66
- @mixin default-label-style {
67
- font-size: 10px;
68
- text-shadow: #fff 0 1px 2px;
69
- margin-top: $default-margin;
70
- display: block;
71
- line-height: 100%;
72
- @extend .disable-user-select;
73
- clear: both;
74
- }
75
-
76
67
  @mixin form-label {
77
68
  width: $form-left-width;
78
69
  padding-right: 2*$default-padding;
@@ -83,6 +74,7 @@
83
74
  word-break: normal;
84
75
  float: left;
85
76
  text-align: right;
77
+ font-size: $default-font-size;
86
78
  }
87
79
 
88
80
  @mixin form-heading {
@@ -98,23 +90,23 @@
98
90
  @mixin form-value-display {
99
91
  float: right;
100
92
  width: $form-right-width;
101
- margin: $default-form-field-margin;
93
+ margin: $form-field-margin;
102
94
  padding: $default-padding 2*$default-padding;
103
95
  line-height: 21px;
104
- min-height: $default-form-field-height;
96
+ min-height: $form-field-height;
105
97
  background: white;
106
- @extend %rounded-border;
98
+ border-radius: $default-border-radius;
107
99
  }
108
100
 
109
101
  @mixin form-hint($background-color: $light_yellow, $border-color: $medium-gray) {
110
- font-size: 10px;
102
+ font-size: $small-font-size;
111
103
  line-height: 1.5em;
112
104
  padding: $default-padding;
113
105
  background-color: $background-color;
114
106
  border: 1px solid $border-color;
115
107
  display: block;
116
108
  clear: both;
117
- @extend %rounded-border;
109
+ border-radius: $default-border-radius;
118
110
  }
119
111
 
120
112
  @mixin animate-left {
@@ -144,28 +136,29 @@
144
136
  box-shadow: $shadow;
145
137
  }
146
138
 
147
- @mixin tag-base($margin: 2*$default-margin 0, $padding: $default-padding 4*$default-padding $default-padding 6*$default-padding) {
139
+ @mixin tag-base($margin: 2*$default-margin 0, $padding: $default-padding 3*$default-padding) {
148
140
  padding: $padding;
149
141
  margin: $margin;
150
142
  background-color: $medium-gray;
151
143
  overflow: hidden;
152
144
  position: relative;
153
- @extend %rounded-border;
145
+ border-radius: $default-border-radius;
154
146
 
155
147
  &:before {
156
- position: absolute;
157
- left: 8px;
158
- top: 8px;
159
- font-family: 'Alchemy Icons';
160
- @extend .icon-tag:before;
161
- line-height: 8px;
148
+ content: fa-content($fa-var-tag);
149
+ font-family: 'Font Awesome 5 Free';
150
+ font-weight: 900;
151
+ font-size: 0.8em;
152
+ padding-right: 2*$default-padding;
162
153
  }
163
154
  }
164
155
 
165
156
  @mixin linked-button($border-radius: $default-border-radius) {
166
157
  @include button-defaults(
167
- $first-color: $linked-color,
168
- $second-color: darken($linked-color, 10%),
158
+ $background-color: $linked-button-color,
159
+ $hover-color: darken($linked-button-color, 10%),
160
+ $border: 1px solid $linked-border-color,
161
+ $hover-border-color: darken($linked-border-color, 10%),
169
162
  $border-radius: $border-radius,
170
163
  $padding: 3px,
171
164
  $margin: 0
@@ -193,3 +186,36 @@
193
186
  opacity: 1;
194
187
  transition-delay: .2s;
195
188
  }
189
+
190
+ @mixin clearfix {
191
+ &::after {
192
+ clear: both;
193
+ content: "";
194
+ display: table;
195
+ }
196
+ }
197
+
198
+ @mixin border-top-radius($radius) {
199
+ border-top-left-radius: $radius;
200
+ border-top-right-radius: $radius;
201
+ }
202
+
203
+ @mixin border-bottom-radius($radius) {
204
+ border-bottom-left-radius: $radius;
205
+ border-bottom-right-radius: $radius;
206
+ }
207
+
208
+ @mixin border-left-radius($radius) {
209
+ border-bottom-left-radius: $radius;
210
+ border-top-left-radius: $radius;
211
+ }
212
+
213
+ @mixin border-right-radius($radius) {
214
+ border-bottom-right-radius: $radius;
215
+ border-top-right-radius: $radius;
216
+ }
217
+
218
+ @mixin antialiased-font-smoothing {
219
+ -webkit-font-smoothing: antialiased;
220
+ -moz-osx-font-smoothing: grayscale;
221
+ }
@@ -1,78 +1,147 @@
1
- $text-color: #333333;
2
- $muted-text-color: rgba(0, 0, 0, 0.5);
3
- $light-blue: #cddce5; // #c6dbe7
4
- $blue: darken($light-blue, 15%);
1
+ $light-blue: #cddce5;
5
2
  $very-light-blue: lighten($light-blue, 12%);
6
- $light-gray: #ededed;
7
- $medium-gray: #e3e3e3;
3
+ $blue: #2d5a8d;
4
+ $dark-blue: darken($blue, 10%);
5
+ $light-gray: #f7f7f7;
6
+ $medium-gray: #efefef;
8
7
  $dark-gray: #666666;
9
- $light_yellow: #ffffdc;
10
- $linked-color: #ffd77a;
11
- $white: #f2f2f2;
12
-
13
- $default-font-face: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
14
- $mono-font-face: Menlo, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
15
- $default-font-size: 12px;
16
- $default-font-style: $default-font-size $default-font-face;
17
-
18
- $dialog-header-height: 36px;
19
- $header-color: $light-blue;
20
- $header-text-color: $text-color;
21
- $header-font-size: $default-font-size;
22
-
23
- $default-padding: 4px;
24
- $default-margin: $default-padding;
25
-
26
- $default-border-color: #afafaf;
27
- $border-inset-color: lighten($default-border-color, 20%);
28
- $default-border-width: 1px;
29
- $default-border-style: solid;
30
- $default-border: $default-border-width $default-border-style $default-border-color;
31
- $default-border-radius: 3px;
32
- $default-form-field-margin: $default-margin 0;
33
- $default-form-field-height: 29px;
34
-
35
- $button-bg-color: #f7f7f7;
36
- $button-hover-bg-color: #e6f0f5;
37
- $button-border-color: #9a9a9a;
38
- $button-hover-border-color: #888888;
39
- $button-text-shadow: $white 1px 1px 0;
40
- $button-gradient-first-color: $white !default;
41
- $button-gradient-second-color: darken($button-gradient-first-color, 10%) !default;
8
+ $very-dark-gray: #333;
9
+ $dark-gray-blue: rgb(51, 59, 81);
10
+ $light_yellow: #fbfbd8;
11
+ $orange: #ffd77a;
12
+ $dark-orange: #eca96e;
13
+ $white: #fff;
14
+
15
+ $text-color: rgba($dark-gray-blue, 0.8) !default;
16
+ $muted-text-color: rgba($dark-gray-blue, 0.5) !default;
17
+ $icon-color: rgba($dark-gray-blue, 0.75) !default;
18
+ $linked-color: $orange !default;
19
+
20
+ $body-background-color: $light-gray !default;
21
+
22
+ $default-font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif !default;
23
+ $mono-font-family: Menlo, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace !default;
24
+ $base-font-size: 12px !default;
25
+ $default-font-size: 1em !default;
26
+ $small-font-size: 0.9em !default;
27
+ $default-font-style: $default-font-size $default-font-family !default;
28
+
29
+ $dialog-header-height: 36px !default;
30
+ $dialog-header-color: $dark-blue !default;
31
+ $dialog-header-text-color: $white !default;
32
+ $dialog-header-font-size: $default-font-size !default;
33
+ $dialog-box-shadow: 0 8px 16px rgba(35, 35, 35, 0.5) !default;
34
+ $dialog-overlay-color: rgb(100, 100, 100) !default;
35
+ $dialog-overlay-opacity: 0.4 !default;
36
+ $dialog-background-color: $light-gray !default;
37
+
38
+ $default-padding: 4px !default;
39
+ $default-margin: $default-padding !default;
40
+
41
+ $default-border-color: rgba(#afafaf, 0.5) !default;
42
+ $border-inset-color: lighten($default-border-color, 10%) !default;
43
+ $default-border-width: 1px !default;
44
+ $default-border-style: solid !default;
45
+ $default-border: $default-border-width $default-border-style $default-border-color !default;
46
+ $default-border-radius: 3px !default;
47
+
48
+ $form-field-margin: $default-margin 0 !default;
49
+ $form-field-height: 29px !default;
50
+ $form-field-background-color: $white !default;
51
+ $form-field-border-width: $default-border-width !default;
52
+ $form-field-border-style: $default-border-style !default;
53
+ $form-field-border-color: $default-border-color $default-border-color $border-inset-color $border-inset-color !default;
54
+ $form-field-box-shadow: inset 0px 0 1px $medium-gray !default;
55
+ $form-field-padding: 0.5em 0.75em !default;
56
+ $form-field-font-size: $default-font-size !default;
57
+ $form-field-line-height: 1.25 !default;
58
+ $form-field-text-color: $text-color !default;
59
+ $form-field-disabled-text-color: #888 !default;
60
+ $form-field-disabled-bg-color: rgba($white, 0.5) !default;
61
+
62
+ $focus-color: rgba(#eca96e, 0.75) !default;
63
+
64
+ $button-bg-color: $dark-blue !default;
65
+ $button-hover-bg-color: lighten($button-bg-color, 5%) !default;
66
+ $button-border-color: darken($button-bg-color, 5%) !default;
67
+ $button-hover-border-color: lighten($button-border-color, 5%) !default;
68
+ $button-text-color: $white !default;
69
+ $button-text-shadow: none !default;
70
+ $button-box-shadow: none !default;
42
71
  $button-padding: 0.5em 1.5em !default;
43
- $button-margin: $default-form-field-margin !default;
44
- $linked-button-color: #ffd77a;
72
+ $button-margin: $form-field-margin !default;
45
73
 
46
- $success_border_color: #9cc4a1;
47
- $success_text_color: #2e5934;
48
- $success_background_color: #e2efd3;
74
+ $secondary-button-bg-color: transparent !default;
75
+ $secondary-button-text-color: $button-bg-color !default;
76
+ $secondary-button-border-color: $button-bg-color !default;
49
77
 
50
- $info_border_color: #8392b5;
51
- $info_text_color: #233772;
52
- $info_background_color: #cadbf3;
78
+ $linked-button-color: rgba($linked-color, 0.75) !default;
79
+ $linked-border-color: darken($linked-color, 10%) !default;
53
80
 
54
- $warning_border_color: #c4c19c;
55
- $warning_text_color: #726d23;
56
- $warning_background_color: #f3f0c1;
81
+ $success_border_color: #9cc4a1 !default;
82
+ $success_text_color: #2e5934 !default;
83
+ $success_background_color: #e2efd3 !default;
57
84
 
58
- $error_border_color: #c49c9c;
59
- $error_text_color: #a23434;
60
- $error_background_color: #efd3d3;
85
+ $info_border_color: #8392b5 !default;
86
+ $info_text_color: #233772 !default;
87
+ $info_background_color: #cadbf3 !default;
61
88
 
62
- $form-left-width: 35%;
63
- $form-right-width: 65%;
64
- $sitemap-line-height: 32px;
89
+ $warning_border_color: #c4c19c !default;
90
+ $warning_text_color: #726d23 !default;
91
+ $warning_background_color: #f3f0c1 !default;
92
+
93
+ $error_border_color: #c49c9c !default;
94
+ $error_text_color: #a23434 !default;
95
+ $error_background_color: #efd3d3 !default;
96
+
97
+ $form-left-width: 35% !default;
98
+ $form-right-width: 65% !default;
99
+
100
+ $sitemap-line-height: 32px !default;
101
+ $sitemap-page-background-color: rgba($white, 0.75) !default;
102
+ $sitemap-page-hover-color: rgba($light_yellow, 0.5) !default;
103
+ $sitemap-info-background-color: rgba($linked-color, 0.5) !default;
104
+ $sitemap-highlight-color: rgba(#fffba5, 0.5) !default;
65
105
 
66
106
  $main-menu-width: 150px !default;
67
107
  $collapsed-main-menu-width: 48px !default;
68
- $main-menu-bg-color: #baced9 !default;
69
- $main-menu-active-bg-color: $light-blue !default;
70
- $main-menu-text-color: #222 !default;
108
+ $main-menu-bg-color: $dark-blue !default;
109
+ $main-menu-active-bg-color: $dark-orange !default;
110
+ $main-menu-active-text-color: $very-dark-gray !default;
111
+ $main-menu-text-color: $white !default;
112
+ $main-menu-icon-color: $white !default;
71
113
  $main-menu-entry-max-width: 100px !default;
72
114
  $toolbar-bg-color: $medium-gray !default;
73
115
  $toolbar-height: 46px !default;
74
116
  $element-toolbar-height: 37px !default;
75
117
  $header-height: 29px !default;
118
+ $header-background: #d8d8d8 !default;
76
119
  $text-shadow-light: rgba($white, 0.5) 0 0 4px !default;
77
120
  $transition-duration: 200ms !default;
78
121
  $transition-easing: linear !default;
122
+
123
+ $tooltip-background-color: lighten($dark-gray-blue, 15%) !default;
124
+
125
+ $addon-icon-opacity: 0.85 !default;
126
+
127
+ $table-row-even-background-color: $white !default;
128
+ $table-row-odd-background-color: rgba($white, 0.5) !default;
129
+ $table-row-hover-color: rgba($light_yellow, 0.5) !default;
130
+
131
+ $elements-window-width: 400px !default;
132
+ $element-header-bg-color: $medium-gray !default;
133
+ $top-menu-height: 75px !default;
134
+
135
+ $tabs-height: 31px !default;
136
+
137
+ $datepicker_current_bg: $blue !default;
138
+ $datepicker_current_color: $white !default;
139
+ $datepicker_current_box_shadow: none !default;
140
+ $datepicker_hover_bg: $light_yellow !default;
141
+ $datepicker_hover_color: $text-color !default;
142
+ $datepicker_today_bg: $medium-gray !default;
143
+ $datepicker_today_color: $blue !default;
144
+ $datepicker_header_color: $text-color !default;
145
+ $datepicker_day_bg: $light-gray !default;
146
+ $datepicker_day_border: 1px solid $medium-gray !default;
147
+ $datepicker_day_color: $text-color !default;
@@ -4,6 +4,9 @@
4
4
  *= require_self
5
5
  */
6
6
 
7
+ @import "fontawesome/fontawesome";
8
+ @import "fontawesome/fa-regular";
9
+ @import "fontawesome/fa-solid";
7
10
  @import "alchemy/defaults";
8
11
  @import "alchemy/archive";
9
12
  @import "alchemy/navigation";
@@ -12,25 +15,28 @@
12
15
  @import "alchemy/buttons";
13
16
  @import "alchemy/dialogs";
14
17
  @import "alchemy/toolbar";
18
+ @import "alchemy/clipboard";
15
19
  @import "alchemy/dashboard";
16
20
  @import "alchemy/elements";
17
21
  @import "alchemy/errors";
18
22
  @import "alchemy/flash";
23
+ @import "alchemy/fonts";
19
24
  @import "alchemy/forms";
20
25
  @import "alchemy/form_fields";
21
26
  @import "alchemy/frame";
22
27
  @import "alchemy/hints";
23
28
  @import "alchemy/icons";
24
29
  @import "alchemy/image_library";
25
- @import "alchemy/modules";
26
30
  @import "alchemy/notices";
27
31
  @import "alchemy/pagination";
32
+ @import "alchemy/preview_window";
28
33
  @import "alchemy/resource_info";
29
34
  @import "alchemy/search";
30
35
  @import "alchemy/selects";
31
36
  @import "alchemy/sitemap";
32
37
  @import "alchemy/spinner";
33
38
  @import "alchemy/tables";
39
+ @import "alchemy/trash";
34
40
  @import "alchemy/lists";
35
41
  @import "alchemy/upload";
36
42
  @import "alchemy/jquery-ui";