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
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-base branch from 31c41ae to 59883f3 Compare August 3, 2023 09:31
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 sascha-karnatz force-pushed the update_javascript/move-base branch from becbd97 to 0b8d900 Compare August 4, 2023 07:34
@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 from 0b8d900 to 3ec1b2c Compare August 25, 2023 11:45
@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
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-base branch from 704f0c3 to dfea032 Compare September 14, 2023 07:53
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.
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-base branch from dfea032 to e28a6ce Compare September 15, 2023 12:30
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
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