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

Load jQuery via importmap #3049

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Load jQuery via importmap #3049

merged 2 commits into from
Sep 23, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 23, 2024

What is this pull request for?

We still need it for select2 but we want to update and install it via
node modules.

In order for this to work we need to use module script tags. Since
jQuery is loaded via importmap and a JS module (alchemy_admin.js)
it execution is deferred.

Checklist

We still need it for select2 but we want to update and install it via
node modules.

In order for this to work we need to use module script tags. Since
jQuery is loaded via importmap and a JS module (`alchemy_admin.js`)
it execution is deferred.
The language id select is not always present
(ie. if only one language is present).
@tvdeyen tvdeyen added this to the 8.0 milestone Sep 23, 2024
@tvdeyen tvdeyen requested a review from a team as a code owner September 23, 2024 13:56
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.63%. Comparing base (161ae81) to head (5f94d50).
Report is 93 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3049      +/-   ##
==========================================
- Coverage   96.63%   96.63%   -0.01%     
==========================================
  Files         236      236              
  Lines        6332     6331       -1     
==========================================
- Hits         6119     6118       -1     
  Misses        213      213              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit 469f1fb into AlchemyCMS:main Sep 23, 2024
39 checks passed
@tvdeyen tvdeyen deleted the jquery-module branch September 23, 2024 14:39
@tvdeyen tvdeyen modified the milestones: 8.0, 7.4 Jan 3, 2025
@tvdeyen tvdeyen added the backport-to-7.4-stable Needs to be backported to 7.4-stable label Jan 3, 2025
@alchemycms-bot
Copy link
Collaborator

💔 All backports failed

Status Branch Result
7.4-stable Backport failed because of merge conflicts

You might need to backport the following PRs to 7.4-stable:
- Load select2 as node module

Manual backport

To create the backport manually run:

backport --pr 3049

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@tvdeyen
Copy link
Member Author

tvdeyen commented Jan 4, 2025

💚 All backports created successfully

Status Branch Result
7.4-stable

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.4-stable Needs to be backported to 7.4-stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants