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

util.js: remove jquery and convert to typescript #4849

Merged
merged 9 commits into from
Aug 4, 2023

Conversation

freyavs
Copy link
Contributor

@freyavs freyavs commented Jul 30, 2023

This PR converts util.js to typescript and removes jquery (also removes jquery from copy.ts).

There are also slight changes/fixes in the tooltip for the clipboard copying used in copy.ts. It works the same as before the changes (with a slightly longer time because it was disappearing very quickly), though I think it can be improved/looked at a bit more (but maybe not in this PR).

Also util.ts is now renamed to utilities.ts because it was confusing imports of "util" with another module of the same name (so renamed to avoid generic names).

This is progress on #3590

@freyavs freyavs added the chore Repository/build/dependency maintenance label Jul 30, 2023
@freyavs freyavs self-assigned this Jul 30, 2023
@freyavs freyavs marked this pull request as ready for review August 2, 2023 07:04
@freyavs freyavs requested a review from a team as a code owner August 2, 2023 07:04
@freyavs freyavs requested review from bmesuere and niknetniko and removed request for a team August 2, 2023 07:04
Copy link
Contributor

@jorg-vr jorg-vr left a comment

Choose a reason for hiding this comment

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

Looks good, some minor changes requested in the comments.

The copy button code will probably be removed in this issue #4499. So no need to work on it further now

app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
app/assets/javascripts/utilities.ts Show resolved Hide resolved
app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
app/assets/javascripts/utilities.ts Show resolved Hide resolved
app/assets/javascripts/utilities.ts Outdated Show resolved Hide resolved
Copy link
Member

@niknetniko niknetniko left a comment

Choose a reason for hiding this comment

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

No other remarks from me

@bmesuere bmesuere mentioned this pull request Aug 2, 2023
9 tasks
@jorg-vr jorg-vr merged commit 7e64ef0 into main Aug 4, 2023
@jorg-vr jorg-vr deleted the chore/util-jquery-removal branch August 4, 2023 10:21
@jorg-vr jorg-vr temporarily deployed to naos August 4, 2023 10:22 — with GitHub Actions Inactive
@jorg-vr jorg-vr temporarily deployed to production August 4, 2023 10:25 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Repository/build/dependency maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants