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

Convert base from Coffeescript to Javascript #2550

Merged
merged 4 commits into from
Sep 15, 2023

Conversation

sascha-karnatz
Copy link
Contributor

@sascha-karnatz sascha-karnatz commented Aug 3, 2023

What is this pull request for?

Also move file to app/javascript - folder. Remove getUrlParam - method because it isn't used anywhere.

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

@sascha-karnatz sascha-karnatz added this to the 7.1 milestone Aug 3, 2023
@sascha-karnatz sascha-karnatz requested a review from a team August 3, 2023 07:17
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.

Let's make modules out of these functions.

The commit message still refers to a removal, that was already extracted. Would you mind to update the message?

app/javascript/alchemy_admin/base.js Outdated Show resolved Hide resolved
@sascha-karnatz
Copy link
Contributor Author

Let's make modules out of these functions.

The commit message still refers to a removal, that was already extracted. Would you mind to update the message?

Done. I reworded the message. It was an old commit, that I cherry picked.

app/javascript/alchemy_admin/picture_selector.js Outdated Show resolved Hide resolved
app/javascript/alchemy_admin/picture_selector.js Outdated Show resolved Hide resolved
app/javascript/alchemy_admin/select_box.js Show resolved Hide resolved
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-base branch 3 times, most recently from b10fbe0 to 704f0c3 Compare September 4, 2023 13:26
Also move file to app/javascript - folder.
Create a javascript file for each function. They are not related to each other.
try to reduce the jQuery usage and migrate the picture selector section from jQuery to vanilla Javascript.
The overlay is now a web component and a bit easier to use. The API is still the same, but the component is using the same mechanic as the Spinner.
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

@tvdeyen tvdeyen merged commit 422fce2 into AlchemyCMS:main Sep 15, 2023
14 checks passed
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