alchemy_cms 8.3.0 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/alchemy/admin.css +1 -1
  3. data/app/assets/builds/alchemy/dark-theme.css +1 -1
  4. data/app/assets/builds/alchemy/light-theme.css +1 -1
  5. data/app/assets/builds/alchemy/theme.css +1 -1
  6. data/app/components/alchemy/admin/dashboard/widgets/locked_pages.html.erb +9 -9
  7. data/app/components/alchemy/admin/link_dialog/anchor_tab.rb +1 -1
  8. data/app/components/alchemy/admin/link_dialog/file_tab.rb +1 -1
  9. data/app/controllers/alchemy/admin/pages_controller.rb +6 -5
  10. data/app/stylesheets/alchemy/_themes.scss +2 -2
  11. data/app/stylesheets/alchemy/admin/_tom-select.scss +2 -1
  12. data/app/stylesheets/alchemy/admin/buttons.scss +1 -0
  13. data/app/stylesheets/alchemy/admin/clipboard.scss +2 -0
  14. data/app/stylesheets/alchemy/admin/elements.scss +2 -6
  15. data/app/stylesheets/alchemy/admin/filters.scss +4 -1
  16. data/app/stylesheets/alchemy/admin/forms.scss +19 -1
  17. data/app/stylesheets/alchemy/admin/image_library.scss +10 -0
  18. data/app/stylesheets/alchemy/admin/sitemap.scss +8 -0
  19. data/app/stylesheets/alchemy/admin/tags.scss +1 -6
  20. data/app/views/alchemy/admin/attachments/edit.html.erb +1 -1
  21. data/app/views/alchemy/admin/layoutpages/edit.html.erb +1 -1
  22. data/app/views/alchemy/admin/legacy_page_urls/_table.html.erb +0 -1
  23. data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +1 -1
  24. data/app/views/alchemy/admin/pages/_form.html.erb +1 -1
  25. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  26. data/app/views/alchemy/admin/pages/unlock.turbo_stream.erb +20 -0
  27. data/app/views/alchemy/admin/pictures/_form.html.erb +1 -1
  28. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +1 -1
  29. data/app/views/alchemy/admin/resources/_form.html.erb +1 -1
  30. data/config/locales/alchemy.en.yml +2 -2
  31. data/lib/alchemy/version.rb +1 -1
  32. metadata +2 -2
  33. data/app/views/alchemy/admin/pages/unlock.js.erb +0 -20
@@ -5,7 +5,7 @@
5
5
  <%= link_to alchemy.edit_admin_page_path(locked_page) do %>
6
6
  <%= render 'alchemy/admin/pages/page_infos', page: locked_page %>
7
7
  <% end %>
8
- <%= form_tag(alchemy.unlock_admin_page_path(locked_page), remote: true) do %>
8
+ <%= form_tag(alchemy.unlock_admin_page_path(locked_page)) do %>
9
9
  <button class="icon_button small" title="<%= Alchemy.t(:explain_unlocking) %>">
10
10
  <%= render_icon(:close, size: '1x') %>
11
11
  </button>
@@ -0,0 +1,20 @@
1
+ <alchemy-growl><%= @notice %></alchemy-growl>
2
+ <%= turbo_stream.remove "locked_page_#{@page.id}" %>
3
+ <% if @page.layoutpage %>
4
+ <%= turbo_stream.replace "page_#{@page.id}" do %>
5
+ <%= render "alchemy/admin/layoutpages/layoutpage", layoutpage: @page %>
6
+ <% end %>
7
+ <% else %>
8
+ <%= turbo_stream.replace "alchemy_pages_tree" do %>
9
+ <%= turbo_frame_tag "alchemy_pages_tree", src: alchemy.tree_admin_pages_path do %>
10
+ <alchemy-spinner></alchemy-spinner>
11
+ <% end %>
12
+ <% end %>
13
+ <% end %>
14
+ <% ["LockedPages", "RecentPages"].each do |widget| %>
15
+ <%= turbo_stream.replace widget do %>
16
+ <%= turbo_frame_tag widget, src: alchemy.admin_dashboard_widget_path(id: widget) do %>
17
+ <alchemy-spinner size="small"></alchemy-spinner>
18
+ <% end %>
19
+ <% end %>
20
+ <% end %>
@@ -11,7 +11,7 @@
11
11
  class: "picture-form" do |f| %>
12
12
  <%= f.input :name %>
13
13
  <%= render "alchemy/admin/pictures/picture_description_field", f: f %>
14
- <%= render Alchemy::Admin::TagsAutocomplete.new(additional_class: "input") do %>
14
+ <%= render Alchemy::Admin::TagsAutocomplete.new(additional_class: "input tags") do %>
15
15
  <%= f.label :tag_list %>
16
16
  <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
17
17
  <small class="hint"><%= Alchemy.t('Please seperate the tags with commata') %></small>
@@ -12,7 +12,7 @@
12
12
  <%= text_field_tag :pictures_name %>
13
13
  </div>
14
14
 
15
- <%= render Alchemy::Admin::TagsAutocomplete.new(additional_class: "input") do %>
15
+ <%= render Alchemy::Admin::TagsAutocomplete.new(additional_class: "input tags") do %>
16
16
  <%= label_tag :pictures_tag_list, Alchemy.t(:tags), class: 'control-label' %>
17
17
  <%= text_field_tag :pictures_tag_list, @tags %>
18
18
  <small class="hint"><%= Alchemy.t('Please seperate the tags with commata') %></small>
@@ -18,7 +18,7 @@
18
18
  <% end %>
19
19
  <% end %>
20
20
  <% if f.object.respond_to?(:tag_list) %>
21
- <div class="input">
21
+ <div class="input tags">
22
22
  <%= f.label :tag_list, class: "control-label" %>
23
23
  <%= render Alchemy::Admin::TagsAutocomplete.new do %>
24
24
  <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
@@ -277,7 +277,7 @@ en:
277
277
  "Confirm new password": "Confirm new password"
278
278
  "Copy": "Copy"
279
279
  "Could not load Adobe Flash® Plugin!": "Could not load Adobe Flash® Plugin!"
280
- "Create node on parent:": "Create node on parent:"
280
+ "Create node on parent:": "Attach to menu"
281
281
  "Currently locked pages": "Currently locked pages"
282
282
  "Default language has to be public": "Default language has to be public"
283
283
  "Delete image": "Delete image"
@@ -429,7 +429,7 @@ en:
429
429
  "Create site": "Create a new site"
430
430
  create_language_tree_heading: "Create new homepage"
431
431
  create_menu: "Add a menu"
432
- create_node: "Add a menu node"
432
+ create_node: "Add to menu"
433
433
  create_page: "Create a new subpage"
434
434
  currently_edited_by: "This page is locked by"
435
435
  custom_color: "Custom color"
@@ -3,7 +3,7 @@
3
3
  module Alchemy
4
4
  extend self
5
5
 
6
- VERSION = "8.3.0"
6
+ VERSION = "8.3.1"
7
7
 
8
8
  def version
9
9
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0
4
+ version: 8.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -1207,7 +1207,7 @@ files:
1207
1207
  - app/views/alchemy/admin/pages/publish.turbo_stream.erb
1208
1208
  - app/views/alchemy/admin/pages/show.html.erb
1209
1209
  - app/views/alchemy/admin/pages/tree.html.erb
1210
- - app/views/alchemy/admin/pages/unlock.js.erb
1210
+ - app/views/alchemy/admin/pages/unlock.turbo_stream.erb
1211
1211
  - app/views/alchemy/admin/pages/update.turbo_stream.erb
1212
1212
  - app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb
1213
1213
  - app/views/alchemy/admin/partials/_flash_notices.html.erb
@@ -1,20 +0,0 @@
1
- (function() {
2
- var locked_page_icon_content
3
- var locked_page_tab = document.querySelector('#locked_page_<%= @page.id -%>')
4
- var locked_page_icon = document.querySelector(
5
- '#page_<%= @page.id -%> > .sitemap_page > .sitemap_left_images .like-hint-tooltip'
6
- ) || document.querySelector('[data-page-id="<%= @page.id -%>"] i.icon')
7
- if (locked_page_tab) {
8
- locked_page_tab.remove()
9
- }
10
- if (locked_page_icon) {
11
- if (locked_page_icon.parentElement.classList.contains("handle")) {
12
- locked_page_icon_content = '<span class="handle"><alchemy-icon name="file" size="xl"></alchemy-icon></span>'
13
- } else {
14
- locked_page_icon_content = '<alchemy-icon name="file" size="xl"></alchemy-icon>'
15
- }
16
- locked_page_icon.outerHTML = locked_page_icon_content
17
- }
18
- document.querySelector("#page_<%= @page.id -%> .page_status.locked")?.remove()
19
- Alchemy.growl('<%= flash[:notice] -%>')
20
- })()