Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace turbolinks with turbo #2499

Merged

Conversation

sascha-karnatz
Copy link
Contributor

What is this pull request for?

Replace Turbolinks with Turbo. Turbolinks are deprecated and the newer implementation of the same technique is Turbo.

Notable changes (remove if none)

  • The Gemspec and a Javascript dependency was updated.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added this to the 7.0 milestone Jun 28, 2023
@sascha-karnatz sascha-karnatz force-pushed the replace-turbolinks-with-turbo branch from 2b1a48b to 5c44481 Compare June 29, 2023 12:09
@sascha-karnatz sascha-karnatz changed the title Draft: Replace turbolinks with turbo Replace turbolinks with turbo Jun 29, 2023
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

config/importmap.rb Outdated Show resolved Hide resolved
@@ -20,7 +20,7 @@

<% if element.editable? %>
<%= form_for [alchemy, :admin, element], remote: true,
html: {id: "element_#{element.id}_form".html_safe, class: 'element-body'} do |f| %>
html: {id: "element_#{element.id}_form".html_safe, class: 'element-body', 'data-turbo': false} do |f| %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed now that we use the "turbo:load" event in pages/edit.html.erb

Turbolinks is archived and was replaced by Turbo. All Turbolinks usages are replace by Turbo Drive for now.
@sascha-karnatz sascha-karnatz force-pushed the replace-turbolinks-with-turbo branch from 5c44481 to a236c26 Compare June 29, 2023 13:06
@tvdeyen tvdeyen merged commit 88ef341 into AlchemyCMS:main Jun 29, 2023
@sascha-karnatz sascha-karnatz deleted the replace-turbolinks-with-turbo branch July 31, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants