alchemy_cms 7.1.11 → 7.2.0.b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +132 -24
  3. data/Gemfile +2 -4
  4. data/LICENSE +1 -1
  5. data/README.md +5 -6
  6. data/SECURITY.md +1 -1
  7. data/alchemy_cms.gemspec +3 -4
  8. data/app/assets/javascripts/alchemy/admin.js +0 -9
  9. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +5 -15
  10. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +5 -4
  11. data/app/assets/javascripts/alchemy/templates/index.js +0 -1
  12. data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
  13. data/app/assets/javascripts/alchemy/templates/page_folder.hbs +1 -1
  14. data/app/assets/javascripts/tinymce/plugins/alchemy_link/plugin.min.js +20 -7
  15. data/app/assets/stylesheets/alchemy/_custom-properties.scss +12 -0
  16. data/app/assets/stylesheets/alchemy/_mixins.scss +10 -6
  17. data/app/assets/stylesheets/alchemy/_variables.scss +3 -0
  18. data/app/assets/stylesheets/alchemy/admin.scss +2 -2
  19. data/app/assets/stylesheets/alchemy/archive.scss +4 -3
  20. data/app/assets/stylesheets/alchemy/attachment-select.scss +19 -0
  21. data/app/assets/stylesheets/alchemy/base.scss +31 -18
  22. data/app/assets/stylesheets/alchemy/buttons.scss +3 -4
  23. data/app/assets/stylesheets/alchemy/dashboard.scss +1 -1
  24. data/app/assets/stylesheets/alchemy/dialogs.scss +2 -5
  25. data/app/assets/stylesheets/alchemy/elements.scss +73 -41
  26. data/app/assets/stylesheets/alchemy/flash.scss +20 -70
  27. data/app/assets/stylesheets/alchemy/forms.scss +41 -36
  28. data/app/assets/stylesheets/alchemy/frame.scss +12 -3
  29. data/app/assets/stylesheets/alchemy/icons.scss +34 -2
  30. data/app/assets/stylesheets/alchemy/image_library.scss +18 -9
  31. data/app/assets/stylesheets/alchemy/{filter_field.scss → list_filter.scss} +8 -7
  32. data/app/assets/stylesheets/alchemy/lists.scss +1 -1
  33. data/app/assets/stylesheets/alchemy/navigation.scss +9 -12
  34. data/app/assets/stylesheets/alchemy/node-select.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/nodes.scss +15 -13
  36. data/app/assets/stylesheets/alchemy/notices.scss +56 -39
  37. data/app/assets/stylesheets/alchemy/page-select.scss +1 -4
  38. data/app/assets/stylesheets/alchemy/pagination.scss +11 -1
  39. data/app/assets/stylesheets/alchemy/preview_window.scss +3 -3
  40. data/app/assets/stylesheets/alchemy/search.scss +4 -4
  41. data/app/assets/stylesheets/alchemy/selects.scss +13 -7
  42. data/app/assets/stylesheets/alchemy/shoelace.scss +33 -2
  43. data/app/assets/stylesheets/alchemy/sitemap.scss +155 -159
  44. data/app/assets/stylesheets/alchemy/tables.scss +49 -12
  45. data/app/assets/stylesheets/alchemy/tags.scss +17 -11
  46. data/app/assets/stylesheets/alchemy/toolbar.scss +2 -2
  47. data/app/assets/stylesheets/alchemy/typography.scss +41 -22
  48. data/app/assets/stylesheets/alchemy/upload.scss +5 -4
  49. data/app/components/alchemy/admin/attachment_select.rb +39 -0
  50. data/app/components/alchemy/admin/icon.rb +72 -0
  51. data/app/components/alchemy/admin/link_dialog/anchor_tab.rb +41 -0
  52. data/app/components/alchemy/admin/link_dialog/base_tab.rb +75 -0
  53. data/app/components/alchemy/admin/link_dialog/external_tab.rb +42 -0
  54. data/app/components/alchemy/admin/link_dialog/file_tab.rb +45 -0
  55. data/app/components/alchemy/admin/link_dialog/internal_tab.rb +66 -0
  56. data/app/components/alchemy/admin/link_dialog/tabs.rb +33 -0
  57. data/app/components/alchemy/admin/list_filter.rb +42 -0
  58. data/app/components/alchemy/admin/message.rb +19 -0
  59. data/app/components/alchemy/admin/tags_autocomplete.rb +25 -0
  60. data/app/components/alchemy/admin/toolbar_button.rb +111 -0
  61. data/app/components/alchemy/ingredients/link_view.rb +1 -7
  62. data/app/components/alchemy/ingredients/picture_view.rb +2 -2
  63. data/app/components/alchemy/ingredients/text_view.rb +1 -2
  64. data/app/controllers/alchemy/admin/base_controller.rb +1 -1
  65. data/app/controllers/alchemy/admin/elements_controller.rb +4 -2
  66. data/app/controllers/alchemy/admin/ingredients_controller.rb +2 -0
  67. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  68. data/app/controllers/alchemy/admin/layoutpages_controller.rb +0 -19
  69. data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +12 -4
  70. data/app/controllers/alchemy/admin/nodes_controller.rb +26 -0
  71. data/app/controllers/alchemy/admin/pages_controller.rb +11 -78
  72. data/app/controllers/alchemy/admin/picture_descriptions_controller.rb +15 -0
  73. data/app/controllers/alchemy/admin/pictures_controller.rb +18 -1
  74. data/app/controllers/alchemy/admin/resources_controller.rb +15 -10
  75. data/app/controllers/alchemy/api/attachments_controller.rb +44 -0
  76. data/app/controllers/alchemy/api/pages_controller.rb +10 -6
  77. data/app/controllers/alchemy/base_controller.rb +2 -2
  78. data/app/controllers/alchemy/messages_controller.rb +3 -3
  79. data/app/controllers/alchemy/pages_controller.rb +8 -6
  80. data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -11
  81. data/app/controllers/concerns/alchemy/legacy_page_redirects.rb +1 -1
  82. data/app/decorators/alchemy/element_editor.rb +2 -2
  83. data/app/helpers/alchemy/admin/base_helper.rb +8 -60
  84. data/app/helpers/alchemy/admin/elements_helper.rb +1 -1
  85. data/app/helpers/alchemy/admin/ingredients_helper.rb +1 -1
  86. data/app/helpers/alchemy/base_helper.rb +9 -91
  87. data/app/helpers/alchemy/elements_helper.rb +3 -3
  88. data/app/helpers/alchemy/pages_helper.rb +16 -9
  89. data/app/javascript/alchemy_admin/components/attachment_select.js +24 -0
  90. data/app/javascript/alchemy_admin/components/button.js +3 -0
  91. data/app/javascript/alchemy_admin/components/clipboard_button.js +3 -2
  92. data/app/javascript/alchemy_admin/components/dialog_link.js +10 -7
  93. data/app/javascript/alchemy_admin/components/dom_id_select.js +69 -0
  94. data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +42 -0
  95. data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +4 -2
  96. data/app/javascript/alchemy_admin/components/element_editor.js +21 -13
  97. data/app/javascript/alchemy_admin/components/elements_window.js +87 -0
  98. data/app/javascript/alchemy_admin/components/growl.js +13 -0
  99. data/app/javascript/alchemy_admin/components/icon.js +51 -0
  100. data/app/javascript/alchemy_admin/components/index.js +24 -0
  101. data/app/javascript/alchemy_admin/components/ingredient_group.js +6 -0
  102. data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +21 -11
  103. data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +2 -1
  104. data/app/javascript/alchemy_admin/components/link_buttons.js +1 -0
  105. data/app/javascript/alchemy_admin/components/list_filter.js +68 -0
  106. data/app/javascript/alchemy_admin/components/message.js +69 -0
  107. data/app/javascript/alchemy_admin/components/node_select.js +1 -1
  108. data/app/javascript/alchemy_admin/components/overlay.js +6 -6
  109. data/app/javascript/alchemy_admin/components/page_select.js +3 -7
  110. data/app/javascript/alchemy_admin/components/preview_window.js +121 -0
  111. data/app/javascript/alchemy_admin/components/remote_select.js +4 -1
  112. data/app/javascript/alchemy_admin/components/select.js +37 -1
  113. data/app/javascript/alchemy_admin/components/tags_autocomplete.js +57 -0
  114. data/app/javascript/alchemy_admin/components/uploader/file_upload.js +4 -3
  115. data/app/javascript/alchemy_admin/components/uploader/progress.js +1 -1
  116. data/app/javascript/alchemy_admin/confirm_dialog.js +133 -0
  117. data/app/javascript/alchemy_admin/dirty.js +19 -14
  118. data/app/javascript/alchemy_admin/fixed_elements.js +24 -0
  119. data/app/javascript/alchemy_admin/growler.js +15 -0
  120. data/app/javascript/alchemy_admin/gui.js +2 -4
  121. data/app/javascript/alchemy_admin/hotkeys.js +60 -0
  122. data/app/javascript/alchemy_admin/image_loader.js +2 -2
  123. data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -3
  124. data/app/javascript/alchemy_admin/initializer.js +1 -8
  125. data/app/javascript/alchemy_admin/link_dialog.js +131 -0
  126. data/app/javascript/alchemy_admin/locales/en.js +3 -0
  127. data/app/javascript/alchemy_admin/node_tree.js +4 -3
  128. data/app/javascript/alchemy_admin/page_sorter.js +23 -14
  129. data/app/javascript/alchemy_admin/picture_editors.js +6 -5
  130. data/app/javascript/alchemy_admin/shoelace_theme.js +60 -0
  131. data/app/javascript/alchemy_admin/sitemap.js +9 -3
  132. data/app/javascript/alchemy_admin/sortable_elements.js +4 -6
  133. data/app/javascript/alchemy_admin.js +18 -42
  134. data/app/models/alchemy/current.rb +26 -0
  135. data/app/models/alchemy/element.rb +1 -1
  136. data/app/models/alchemy/ingredients/audio.rb +0 -11
  137. data/app/models/alchemy/ingredients/headline.rb +8 -1
  138. data/app/models/alchemy/ingredients/picture.rb +6 -0
  139. data/app/models/alchemy/ingredients/video.rb +0 -12
  140. data/app/models/alchemy/language.rb +8 -6
  141. data/app/models/alchemy/node.rb +2 -2
  142. data/app/models/alchemy/page/page_elements.rb +8 -8
  143. data/app/models/alchemy/page/page_layouts.rb +3 -3
  144. data/app/models/alchemy/page/page_natures.rb +13 -9
  145. data/app/models/alchemy/page/page_scopes.rb +2 -2
  146. data/app/models/alchemy/page/publisher.rb +1 -0
  147. data/app/models/alchemy/page.rb +13 -28
  148. data/app/models/alchemy/picture.rb +8 -0
  149. data/app/models/alchemy/picture_description.rb +8 -0
  150. data/app/models/alchemy/picture_variant.rb +1 -1
  151. data/app/models/alchemy/site.rb +10 -7
  152. data/app/serializers/alchemy/attachment_serializer.rb +8 -0
  153. data/app/serializers/alchemy/page_node_serializer.rb +9 -0
  154. data/app/views/alchemy/_menubar.html.erb +1 -1
  155. data/app/views/alchemy/_preview_mode_code.html.erb +1 -1
  156. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +2 -2
  157. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
  158. data/app/views/alchemy/admin/attachments/edit.html.erb +3 -4
  159. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  160. data/app/views/alchemy/admin/clipboard/index.html.erb +1 -1
  161. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  162. data/app/views/alchemy/admin/clipboard/remove.js.erb +1 -1
  163. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
  164. data/app/views/alchemy/admin/dashboard/_sites.html.erb +1 -1
  165. data/app/views/alchemy/admin/dashboard/help.html.erb +48 -12
  166. data/app/views/alchemy/admin/dashboard/index.html.erb +1 -1
  167. data/app/views/alchemy/admin/dashboard/info.html.erb +5 -8
  168. data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +1 -1
  169. data/app/views/alchemy/admin/elements/_element.html.erb +5 -5
  170. data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
  171. data/app/views/alchemy/admin/elements/_header.html.erb +6 -2
  172. data/app/views/alchemy/admin/elements/_toolbar.html.erb +8 -6
  173. data/app/views/alchemy/admin/elements/create.js.erb +0 -5
  174. data/app/views/alchemy/admin/elements/index.html.erb +70 -34
  175. data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +1 -2
  176. data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -5
  177. data/app/views/alchemy/admin/languages/_language.html.erb +1 -1
  178. data/app/views/alchemy/admin/languages/index.html.erb +2 -2
  179. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +18 -18
  180. data/app/views/alchemy/admin/layoutpages/edit.html.erb +4 -5
  181. data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
  182. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +10 -11
  183. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +15 -17
  184. data/app/views/alchemy/admin/legacy_page_urls/_table.html.erb +16 -0
  185. data/app/views/alchemy/admin/legacy_page_urls/_update.turbo_stream.erb +12 -0
  186. data/app/views/alchemy/admin/legacy_page_urls/create.turbo_stream.erb +8 -0
  187. data/app/views/alchemy/admin/legacy_page_urls/destroy.turbo_stream.erb +1 -0
  188. data/app/views/alchemy/admin/legacy_page_urls/edit.html.erb +27 -0
  189. data/app/views/alchemy/admin/legacy_page_urls/show.html.erb +1 -0
  190. data/app/views/alchemy/admin/legacy_page_urls/update.turbo_stream.erb +1 -0
  191. data/app/views/alchemy/admin/nodes/_form.html.erb +12 -11
  192. data/app/views/alchemy/admin/nodes/_label.html.erb +1 -0
  193. data/app/views/alchemy/admin/nodes/_node.html.erb +19 -19
  194. data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +48 -0
  195. data/app/views/alchemy/admin/nodes/_update.turbo_stream.erb +9 -0
  196. data/app/views/alchemy/admin/nodes/create.turbo_stream.erb +1 -0
  197. data/app/views/alchemy/admin/nodes/destroy.turbo_stream.erb +1 -0
  198. data/app/views/alchemy/admin/nodes/index.html.erb +3 -3
  199. data/app/views/alchemy/admin/pages/_form.html.erb +3 -4
  200. data/app/views/alchemy/admin/pages/_legacy_urls.html.erb +4 -15
  201. data/app/views/alchemy/admin/pages/_page.html.erb +39 -39
  202. data/app/views/alchemy/admin/pages/_table_row.html.erb +3 -3
  203. data/app/views/alchemy/admin/pages/_toolbar.html.erb +2 -2
  204. data/app/views/alchemy/admin/pages/configure.html.erb +6 -0
  205. data/app/views/alchemy/admin/pages/edit.html.erb +15 -62
  206. data/app/views/alchemy/admin/pages/unlock.js.erb +3 -3
  207. data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +3 -1
  208. data/app/views/alchemy/admin/partials/_flash_notices.html.erb +4 -2
  209. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
  210. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +5 -2
  211. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  212. data/app/views/alchemy/admin/partials/_search_form.html.erb +2 -2
  213. data/app/views/alchemy/admin/partials/_site_select.html.erb +1 -1
  214. data/app/views/alchemy/admin/picture_descriptions/_form.html.erb +11 -0
  215. data/app/views/alchemy/admin/picture_descriptions/edit.html.erb +6 -0
  216. data/app/views/alchemy/admin/pictures/_form.html.erb +4 -3
  217. data/app/views/alchemy/admin/pictures/_infos.html.erb +1 -1
  218. data/app/views/alchemy/admin/pictures/_picture_description_field.html.erb +29 -0
  219. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +2 -2
  220. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +0 -2
  221. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +3 -3
  222. data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
  223. data/app/views/alchemy/admin/resources/_form.html.erb +3 -4
  224. data/app/views/alchemy/admin/resources/_per_page_select.html.erb +1 -1
  225. data/app/views/alchemy/admin/resources/_tag_list.html.erb +2 -2
  226. data/app/views/alchemy/admin/resources/index.html.erb +2 -2
  227. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  228. data/app/views/alchemy/admin/styleguide/index.html.erb +29 -24
  229. data/app/views/alchemy/admin/tags/_tag.html.erb +1 -1
  230. data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
  231. data/app/views/alchemy/admin/tags/index.html.erb +1 -1
  232. data/app/views/alchemy/base/500.html.erb +7 -18
  233. data/app/views/alchemy/base/error_notice.html.erb +3 -1
  234. data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
  235. data/app/views/alchemy/ingredients/_datetime_editor.html.erb +1 -1
  236. data/app/views/alchemy/ingredients/_headline_editor.html.erb +13 -8
  237. data/app/views/alchemy/ingredients/_picture_editor.html.erb +1 -1
  238. data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +1 -1
  239. data/app/views/alchemy/language_links/_language.html.erb +1 -1
  240. data/app/views/kaminari/alchemy/_first_page.html.erb +2 -2
  241. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  242. data/app/views/kaminari/alchemy/_last_page.html.erb +2 -2
  243. data/app/views/kaminari/alchemy/_next_page.html.erb +2 -2
  244. data/app/views/kaminari/alchemy/_prev_page.html.erb +2 -2
  245. data/app/views/layouts/alchemy/admin.html.erb +2 -1
  246. data/bundles/shoelace.js +3 -1
  247. data/config/locales/alchemy.en.yml +16 -3
  248. data/config/routes.rb +4 -2
  249. data/db/migrate/20240314105244_create_alchemy_picture_descriptions.rb +11 -0
  250. data/lib/alchemy/configuration_methods.rb +1 -1
  251. data/lib/alchemy/controller_actions.rb +3 -3
  252. data/lib/alchemy/element_definition.rb +10 -6
  253. data/lib/alchemy/engine.rb +19 -2
  254. data/lib/alchemy/page_layout.rb +10 -6
  255. data/lib/alchemy/permissions.rb +4 -3
  256. data/lib/alchemy/routing_constraints.rb +1 -1
  257. data/lib/alchemy/seeder.rb +2 -2
  258. data/lib/alchemy/test_support/capybara_helpers.rb +4 -0
  259. data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
  260. data/lib/alchemy/test_support/shared_contexts.rb +8 -0
  261. data/lib/alchemy/tinymce.rb +2 -1
  262. data/lib/alchemy/version.rb +1 -1
  263. data/lib/alchemy.rb +36 -0
  264. data/lib/alchemy_cms.rb +0 -1
  265. data/lib/generators/alchemy/menus/templates/node.html.erb +2 -2
  266. data/lib/generators/alchemy/menus/templates/node.html.haml +2 -2
  267. data/lib/generators/alchemy/menus/templates/node.html.slim +2 -2
  268. data/lib/generators/alchemy/menus/templates/wrapper.html.erb +1 -1
  269. data/lib/generators/alchemy/menus/templates/wrapper.html.haml +1 -1
  270. data/lib/generators/alchemy/menus/templates/wrapper.html.slim +1 -1
  271. data/lib/tasks/alchemy/sitemap.rake +97 -0
  272. data/lib/tasks/alchemy/tidy.rake +1 -0
  273. data/package.json +8 -8
  274. data/vendor/assets/fonts/remixicon.symbol.svg +11 -0
  275. data/vendor/javascript/shoelace.min.js +333 -118
  276. data/vendor/javascript/sortable.min.js +1 -1
  277. data/vendor/javascript/tinymce.min.js +1 -1
  278. data/vendor/javascript/ungap-custom-elements.min.js +1 -1
  279. metadata +61 -55
  280. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +0 -85
  281. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +0 -107
  282. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +0 -66
  283. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +0 -45
  284. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +0 -24
  285. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +0 -49
  286. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -0
  287. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +0 -230
  288. data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +0 -49
  289. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +0 -82
  290. data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +0 -11
  291. data/app/assets/javascripts/alchemy/templates/page.hbs +0 -19
  292. data/app/javascript/alchemy_admin/tags_autocomplete.js +0 -46
  293. data/app/models/alchemy/tree_node.rb +0 -7
  294. data/app/views/alchemy/admin/elements/destroy.js.erb +0 -8
  295. data/app/views/alchemy/admin/legacy_page_urls/_form.html.erb +0 -5
  296. data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +0 -9
  297. data/app/views/alchemy/admin/legacy_page_urls/destroy.js.erb +0 -6
  298. data/app/views/alchemy/admin/legacy_page_urls/update.js.erb +0 -2
  299. data/app/views/alchemy/admin/pages/_anchor_link.html.erb +0 -22
  300. data/app/views/alchemy/admin/pages/_external_link.html.erb +0 -31
  301. data/app/views/alchemy/admin/pages/_file_link.html.erb +0 -31
  302. data/app/views/alchemy/admin/pages/_internal_link.html.erb +0 -35
  303. data/app/views/alchemy/admin/pages/link.html.erb +0 -26
  304. data/app/views/alchemy/admin/partials/_flash.html.erb +0 -4
  305. data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +0 -29
  306. data/lib/alchemy/test_support/current_language_shared_examples.rb +0 -33
  307. data/vendor/assets/fonts/remixicon.eot +0 -0
  308. data/vendor/assets/fonts/remixicon.svg +0 -7816
  309. data/vendor/assets/fonts/remixicon.ttf +0 -0
  310. data/vendor/assets/fonts/remixicon.woff +0 -0
  311. data/vendor/assets/fonts/remixicon.woff2 +0 -0
  312. data/vendor/assets/stylesheets/remixicon.scss +0 -10480
@@ -1,24 +1,55 @@
1
- $sitemap-url-large-width: 250px;
2
- $sitemap-url-xlarge-width: 350px;
3
- $sitemap-url-header-offset: 110px;
4
-
5
- #sort_panel {
6
- background: $light-gray;
7
- padding: 47px 0 8px 0;
8
- position: fixed;
9
- top: 29px;
10
- left: 0;
11
- z-index: 1;
12
- width: 100%;
13
- border-bottom: $default-border;
14
-
15
- div.info {
16
- margin: 16px 12px 8px 163px;
1
+ :root {
2
+ --sitemap-url-width: 420px;
3
+ --sitemap-url-header-offset: 0;
4
+ --sitemap-status-width-base: 90px;
5
+ --sitemap-status-length: 2;
6
+
7
+ @media screen and (min-width: $large-screen-break-point) {
8
+ --sitemap-url-width: 520px;
9
+ }
10
+
11
+ @media screen and (min-width: $xlarge-screen-break-point) {
12
+ --sitemap-url-width: 620px;
17
13
  }
18
14
 
19
- .buttons {
20
- margin: 0 12px 0 163px;
21
- text-align: right;
15
+ @media screen and (min-width: $xxlarge-screen-break-point) {
16
+ --sitemap-url-width: 820px;
17
+ }
18
+ }
19
+
20
+ #sitemap_heading {
21
+ display: flex;
22
+ padding: 0;
23
+ line-height: 28px;
24
+
25
+ .page_name {
26
+ margin-left: 43px;
27
+ }
28
+
29
+ .page_urlname {
30
+ display: none;
31
+ margin-left: auto;
32
+ padding-left: $default-padding;
33
+ width: calc(var(--sitemap-url-width) - 60px);
34
+
35
+ @media screen and (min-width: $large-screen-break-point) {
36
+ display: block;
37
+ }
38
+ }
39
+
40
+ .page_status {
41
+ display: none;
42
+ padding-left: 2 * $default-padding;
43
+ margin-right: 190px;
44
+ margin-left: auto;
45
+
46
+ @media screen and (min-width: $medium-screen-break-point) {
47
+ display: block;
48
+ }
49
+
50
+ @media screen and (min-width: $large-screen-break-point) {
51
+ margin-left: initial;
52
+ }
22
53
  }
23
54
  }
24
55
 
@@ -27,49 +58,49 @@ $sitemap-url-header-offset: 110px;
27
58
  min-height: calc(100vh - 148px);
28
59
  }
29
60
 
30
- .sitemap_pagename_link {
31
- display: block;
32
- padding: 0 10px;
33
- margin: 2px;
34
- text-decoration: none;
35
- white-space: nowrap;
36
- text-overflow: ellipsis;
37
- overflow: hidden;
61
+ #sitemap {
62
+ padding: 0 0 104px 0;
38
63
 
39
- &.inactive {
40
- color: #656565;
64
+ .page-icon {
65
+ display: inline-flex;
41
66
  }
42
- }
43
67
 
44
- .sitemap_url {
45
- display: none;
46
- float: right;
47
- background-color: $sitemap-info-background-color;
48
- line-height: $sitemap-line-height - 2px;
49
- font-size: $small-font-size;
50
- padding: 0 2 * $default-padding;
51
- white-space: nowrap;
52
- overflow: hidden;
53
- text-overflow: ellipsis;
54
- border: 1px solid $sitemap-page-background-color;
68
+ .handle {
69
+ cursor: move;
70
+ }
55
71
 
56
- @media screen and (min-width: $large-screen-break-point) {
57
- display: block;
58
- width: $sitemap-url-large-width;
72
+ .page_folder {
73
+ position: absolute;
74
+ left: -$sitemap-line-height;
75
+ top: 0;
76
+ width: $sitemap-line-height;
77
+ height: $sitemap-line-height;
59
78
  }
60
79
 
61
- @media screen and (min-width: 1440px) {
62
- width: $sitemap-url-xlarge-width;
80
+ .placeholder {
81
+ background-color: $medium-gray;
82
+ margin-bottom: 0px;
83
+ margin-left: 22px;
63
84
  }
64
- }
65
85
 
66
- .sitemap_line_spacer {
67
- float: left;
68
- width: 20px;
69
- height: 28px;
86
+ ul {
87
+ margin: 0;
88
+ padding: 0;
89
+ }
90
+
91
+ li {
92
+ padding-left: 0;
93
+
94
+ li {
95
+ padding-left: $sitemap-line-height;
96
+ padding-right: 0;
97
+ }
98
+ }
70
99
  }
71
100
 
72
101
  .sitemap_page {
102
+ display: flex;
103
+ align-items: center;
73
104
  height: $sitemap-line-height;
74
105
  margin: 3 * $default-margin 0;
75
106
  position: relative;
@@ -87,89 +118,65 @@ $sitemap-url-header-offset: 110px;
87
118
  background-color: $sitemap-page-hover-color;
88
119
  border-radius: $default-border-radius;
89
120
  }
90
- }
91
-
92
- .sitemap_sitename {
93
- @include border-left-radius($default-border-radius);
94
- line-height: $sitemap-line-height - 4;
95
- overflow: hidden;
96
- background-color: $sitemap-page-background-color;
97
121
 
98
- &.without-status {
99
- @include border-right-radius($default-border-radius);
122
+ &:has(.page_infos :nth-child(3)) {
123
+ --sitemap-status-length: 3;
100
124
  }
125
+
126
+ --sitemap-status-width: calc(
127
+ var(--sitemap-status-width-base) * var(--sitemap-status-length)
128
+ );
101
129
  }
102
130
 
103
131
  .sitemap_left_images {
104
132
  position: relative;
105
- width: 32px;
106
- line-height: $sitemap-line-height;
107
- float: left;
108
- text-align: center;
109
- }
110
-
111
- .sitemap_right_tools {
133
+ justify-content: center;
112
134
  display: flex;
113
135
  align-items: center;
114
- gap: $default-padding;
136
+ flex-shrink: 0;
137
+ width: 32px;
115
138
  height: $sitemap-line-height;
116
- padding: 0 2 * $default-padding;
117
- float: right;
118
-
119
- .sitemap_tool {
120
- width: $sitemap-line-height;
121
- height: $sitemap-line-height;
122
- line-height: $sitemap-line-height;
123
- text-align: center;
124
- margin: 0;
125
-
126
- &.disabled .icon {
127
- opacity: 0.25;
128
- filter: grayscale(100%);
129
- }
130
- }
131
-
132
- .icon.blank {
133
- margin-left: 2px;
134
- float: left;
135
- margin-top: 3px;
136
- margin-right: 3px;
137
- }
138
139
  }
139
140
 
140
- #sitemap {
141
- padding: 0 0 104px 0;
142
-
143
- .handle {
144
- cursor: move;
145
- }
141
+ .sitemap_sitename {
142
+ flex-grow: 1;
143
+ @include border-left-radius($default-border-radius);
144
+ line-height: $sitemap-line-height - 4;
145
+ overflow: hidden;
146
+ background-color: $sitemap-page-background-color;
146
147
 
147
- .page_folder {
148
- position: absolute;
149
- left: -$sitemap-line-height;
150
- top: 0;
151
- width: $sitemap-line-height;
152
- height: $sitemap-line-height;
148
+ &.without-status {
149
+ @include border-right-radius($default-border-radius);
153
150
  }
154
151
 
155
- .placeholder {
156
- background-color: $medium-gray;
157
- margin-bottom: 0px;
158
- margin-left: 22px;
159
- }
152
+ .sitemap_pagename_link {
153
+ display: block;
154
+ padding: 0 10px;
155
+ margin: 2px;
156
+ white-space: nowrap;
157
+ text-overflow: ellipsis;
158
+ overflow: hidden;
160
159
 
161
- ul {
162
- margin: 0;
163
- padding: 0;
160
+ &.inactive {
161
+ color: #656565;
162
+ }
164
163
  }
164
+ }
165
165
 
166
- li {
167
- padding-left: 0;
166
+ .sitemap_url {
167
+ display: none;
168
+ background-color: $sitemap-info-background-color;
169
+ line-height: $sitemap-line-height - 2px;
170
+ font-size: $small-font-size;
171
+ padding: 0 2 * $default-padding;
172
+ white-space: nowrap;
173
+ overflow: hidden;
174
+ text-overflow: ellipsis;
175
+ border: 1px solid $sitemap-page-background-color;
176
+ width: calc(var(--sitemap-url-width) - var(--sitemap-status-width));
168
177
 
169
- li {
170
- padding-left: $sitemap-line-height;
171
- padding-right: 0;
172
- }
178
+ @media screen and (min-width: $large-screen-break-point) {
179
+ display: block;
173
180
  }
174
181
  }
175
182
 
@@ -177,10 +184,9 @@ $sitemap-url-header-offset: 110px;
177
184
  @extend .right-rounded-border;
178
185
  background-color: $sitemap-page-background-color;
179
186
  border-left: 1px solid $light-gray;
180
- float: right;
181
187
  display: none;
182
188
  justify-content: end;
183
- width: 170px;
189
+ width: var(--sitemap-status-width);
184
190
  height: $sitemap-line-height;
185
191
  line-height: $sitemap-line-height;
186
192
 
@@ -195,58 +201,48 @@ $sitemap-url-header-offset: 110px;
195
201
  }
196
202
  }
197
203
 
198
- .page_status_and_name .page_status {
199
- margin-left: 2px;
200
- }
201
-
202
- .page_status {
203
- display: inline-block;
204
-
205
- .alchemy-dialog & {
206
- display: block;
207
- }
208
- }
209
-
210
- #sitemap_heading {
211
- display: flex;
212
- padding: 0;
213
- line-height: 28px;
204
+ .sitemap_right_tools {
205
+ display: none;
206
+ align-items: center;
207
+ gap: $default-padding;
208
+ height: $sitemap-line-height;
209
+ padding: 0 2 * $default-padding;
214
210
 
215
- .page_name {
216
- margin-left: 43px;
211
+ @media screen and (min-width: $small-screen-break-point) {
212
+ display: flex;
217
213
  }
218
214
 
219
- .page_urlname {
220
- display: none;
221
- margin-left: auto;
222
- padding-left: $default-padding;
223
-
224
- @media screen and (min-width: $large-screen-break-point) {
225
- display: block;
226
- width: $sitemap-url-large-width + $sitemap-url-header-offset;
227
- }
215
+ .sitemap_tool {
216
+ width: $sitemap-line-height;
217
+ height: $sitemap-line-height;
218
+ line-height: $sitemap-line-height;
219
+ text-align: center;
220
+ margin: 0;
228
221
 
229
- @media screen and (min-width: 1440px) {
230
- width: $sitemap-url-xlarge-width + $sitemap-url-header-offset;
222
+ &.disabled .icon {
223
+ opacity: 0.25;
224
+ filter: grayscale(100%);
231
225
  }
232
226
  }
227
+ }
233
228
 
234
- .page_status {
235
- display: none;
236
- padding-left: 2 * $default-padding;
237
- margin-right: 190px;
238
- margin-left: auto;
239
-
240
- @media screen and (min-width: $medium-screen-break-point) {
241
- display: block;
242
- }
229
+ .page_status_and_name .page_status {
230
+ margin-left: $default-margin;
231
+ margin-bottom: -1px;
243
232
 
244
- @media screen and (min-width: $large-screen-break-point) {
245
- margin-left: initial;
246
- }
233
+ // The lock icon is a bit too high, so we need to adjust it
234
+ &:last-child {
235
+ margin-bottom: 0;
247
236
  }
248
237
  }
249
238
 
239
+ .page_status {
240
+ display: inline-flex;
241
+ justify-content: center;
242
+ align-items: center;
243
+ gap: $default-margin;
244
+ }
245
+
250
246
  #page_filter_result {
251
247
  display: none;
252
248
  margin-left: 2 * $default-margin;
@@ -11,8 +11,29 @@ table {
11
11
  }
12
12
  }
13
13
 
14
+ .table {
15
+ display: flex;
16
+ flex-direction: column;
17
+ row-gap: $default-padding;
18
+
19
+ .row,
20
+ header {
21
+ display: flex;
22
+ }
23
+
24
+ .col {
25
+ flex: 1;
26
+ }
27
+
28
+ .tools {
29
+ flex: 0;
30
+ white-space: nowrap;
31
+ }
32
+ }
33
+
14
34
  .list td,
15
- .list th {
35
+ .list th,
36
+ .table .col {
16
37
  padding: 2 * $default-padding 3 * $default-padding;
17
38
  vertical-align: top;
18
39
  line-height: 22px;
@@ -42,7 +63,8 @@ table {
42
63
  }
43
64
  }
44
65
 
45
- th {
66
+ th,
67
+ .table header .col {
46
68
  white-space: nowrap;
47
69
  text-align: left;
48
70
  vertical-align: top;
@@ -50,19 +72,26 @@ th {
50
72
  font-weight: bold;
51
73
  }
52
74
 
53
- tr.even td {
75
+ tr.even td,
76
+ .table .row.even .col {
54
77
  background-color: $table-row-even-background-color;
55
78
  }
56
79
 
57
- tr.odd td {
80
+ tr.odd td,
81
+ .table .row.odd .col {
58
82
  background-color: $table-row-odd-background-color;
59
83
  }
60
84
 
61
- .list tr .tools {
62
- width: 40px;
85
+ .list tr .tools,
86
+ .table .row .col.tools {
63
87
  padding: $default-padding 2 * $default-padding;
64
88
  white-space: nowrap;
65
89
  @extend .disable-user-select;
90
+ background-color: transparent;
91
+ }
92
+
93
+ .list tr .tools {
94
+ width: 40px;
66
95
 
67
96
  &.long {
68
97
  width: 60px;
@@ -75,18 +104,20 @@ td.heading {
75
104
  text-decoration: underline;
76
105
  }
77
106
 
78
- .list .tools .icon,
79
- .list td.icon .icon {
107
+ .list .tools alchemy-icon,
108
+ .list td.icon alchemy-icon {
80
109
  @extend .disable-user-select;
81
- margin: 0 $default-margin;
110
+ margin: 2px 0;
82
111
  }
83
112
 
84
- .list tr:hover td {
113
+ .list tr:hover td,
114
+ .table .row:hover .col {
85
115
  background-color: $table-row-hover-color;
86
116
  }
87
117
 
88
118
  td,
89
- th {
119
+ th,
120
+ .table .col {
90
121
  &.center,
91
122
  &.boolean {
92
123
  text-align: center;
@@ -97,7 +128,8 @@ th {
97
128
  }
98
129
  }
99
130
 
100
- td {
131
+ td,
132
+ .table .col {
101
133
  &.file_name {
102
134
  white-space: nowrap;
103
135
  }
@@ -184,3 +216,8 @@ td#user_roles {
184
216
  min-width: 40%;
185
217
  }
186
218
  }
219
+
220
+ .sort_link {
221
+ display: inline-flex;
222
+ align-items: center;
223
+ }
@@ -7,7 +7,7 @@
7
7
  max-height: 316px;
8
8
  }
9
9
 
10
- .js_filter_field_box {
10
+ alchemy-list-filter {
11
11
  margin: 0;
12
12
 
13
13
  input {
@@ -37,7 +37,7 @@
37
37
  a {
38
38
  @include tag-base;
39
39
  text-decoration: none;
40
- display: block;
40
+ display: flex;
41
41
  }
42
42
 
43
43
  &:hover {
@@ -48,6 +48,10 @@
48
48
  a {
49
49
  background-color: $dark-gray;
50
50
  color: $light-gray;
51
+
52
+ &:before {
53
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255, 255, 255, 0.95)"><path d="M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z"></path></svg>');
54
+ }
51
55
  }
52
56
  }
53
57
  }
@@ -92,7 +96,7 @@
92
96
  }
93
97
 
94
98
  #tags_tag_list {
95
- .js_filter_field_box {
99
+ alchemy-list-filter {
96
100
  margin-top: 0;
97
101
  }
98
102
 
@@ -135,14 +139,16 @@
135
139
  .autocomplete_tag_list {
136
140
  .select2-container.select2-container-multi {
137
141
  .select2-search-choice {
138
- padding: 0;
139
-
140
- div {
141
- @include tag-base(
142
- $padding: $default-padding 6 * $default-padding $default-padding 3 *
143
- $default-padding,
144
- $margin: 0
145
- );
142
+ padding: $default-padding 22px;
143
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#{$icon-color}"><path d="M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z"></path></svg>');
144
+ background-repeat: no-repeat;
145
+ background-position: 6px;
146
+ background-color: $medium-gray;
147
+ background-size: 1rem;
148
+
149
+ > div {
150
+ position: relative;
151
+ top: -1px;
146
152
  }
147
153
  }
148
154
  }
@@ -48,8 +48,8 @@
48
48
 
49
49
  .icon_button {
50
50
  .icon {
51
- font-size: 1.5em;
52
- text-shadow: 0 0 1px rgba(#fff, 0.75);
51
+ width: var(--icon-size-xl);
52
+ height: var(--icon-size-xl);
53
53
  }
54
54
  }
55
55
 
@@ -1,42 +1,57 @@
1
- h1, .h1,
2
- h2, .h2,
3
- h3, .h3,
4
- h4, .h4,
5
- h5, .h5 {
1
+ h1,
2
+ .h1,
3
+ h2,
4
+ .h2,
5
+ h3,
6
+ .h3,
7
+ h4,
8
+ .h4,
9
+ h5,
10
+ .h5 {
6
11
  padding: 0;
7
12
  margin: 1em 0;
8
13
  }
9
14
 
10
- h1, .h1,
11
- h2, .h2,
12
- h3, .h3,
13
- h4, .h4 {
15
+ h1,
16
+ .h1,
17
+ h2,
18
+ .h2,
19
+ h3,
20
+ .h3,
21
+ h4,
22
+ .h4 {
14
23
  font-weight: bold;
15
24
  }
16
25
 
17
- h1, .h1 {
26
+ h1,
27
+ .h1 {
18
28
  font-size: 1.5rem;
19
29
  }
20
30
 
21
- h2, .h2 {
31
+ h2,
32
+ .h2 {
22
33
  font-size: 1.25rem;
23
34
  }
24
35
 
25
- h3, .h3 {
36
+ h3,
37
+ .h3 {
26
38
  font-size: 1.125rem;
27
39
  }
28
40
 
29
- h4, .h4,
30
- h5, .h5 {
41
+ h4,
42
+ .h4,
43
+ h5,
44
+ .h5 {
31
45
  font-size: 1rem;
32
46
  }
33
47
 
34
- h5, .h5 {
48
+ h5,
49
+ .h5 {
35
50
  font-weight: normal;
36
51
  }
37
52
 
38
53
  p {
39
- margin: 0 0 2*$default-margin 0;
54
+ margin: 0 0 2 * $default-margin 0;
40
55
  white-space: normal;
41
56
 
42
57
  a {
@@ -44,12 +59,16 @@ p {
44
59
  }
45
60
  }
46
61
 
47
- kbd {
48
- font-family: Courier, monospaced;
49
- background: $medium-gray;
62
+ kbd,
63
+ code {
50
64
  border: $default-border;
51
- padding: 0.25em 0.5em;
52
- vertical-align: top;
53
- margin-right: 1ex;
54
65
  border-radius: $default-border-radius;
66
+ font-family: Courier, monospaced;
67
+ margin: 0 0.25ex;
68
+ padding: 0.25em 0.5em;
69
+ vertical-align: baseline;
70
+ }
71
+
72
+ code {
73
+ background: $medium-gray;
55
74
  }
@@ -22,11 +22,12 @@
22
22
  &:after {
23
23
  align-items: center;
24
24
  background-color: rgba($dark-gray, 0.6);
25
- color: rgba(255, 255, 255, 0.6);
26
- content: $ri-upload-cloud-line;
25
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255, 255, 255, 0.6)"><path d="M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 13V17H11V13H8L12 8L16 13H13Z"></path></svg>');
26
+ background-repeat: no-repeat;
27
+ background-size: 80px 80px;
28
+ background-position: center;
29
+ content: "";
27
30
  display: flex;
28
- font-family: "remixicon";
29
- font-size: 80px;
30
31
  justify-content: center;
31
32
  height: 100%;
32
33
  left: 0;