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

Remove page JS #889

Merged
merged 13 commits into from
Jun 29, 2024
Merged

Remove page JS #889

merged 13 commits into from
Jun 29, 2024

Conversation

smellsblue
Copy link
Contributor

Convert coffeescript to regular JS using the decaffeinate tool (https://github.com/decaffeinate/decaffeinate). Remove embedded JS because turbolinks does not play well with embedded page JS. I converted the embedded data in the JS to hidden fields with jQuery data attributes that can then be converted to JS object data.

https://github.com/decaffeinate/decaffeinate
Note, I left the improvement suggestion comments as I do not currently have the time to address them
…s, moving the data to hidden inputs with embedded JSON data to be extracted from jQuery

Refactor all other data.categories embedded data to work the same way
Small expose comment fixes
Fix type in ajax calls to be method
Disable turbolinks caches, as it creates rendering issues and the app wasn't built for it
Specify categories routes rather than listing some that aren't used
@smellsblue smellsblue merged commit a7ee366 into master Jun 29, 2024
@smellsblue smellsblue deleted the remove-page-js branch June 29, 2024 18:55
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.

1 participant