-
Notifications
You must be signed in to change notification settings - Fork 397
Convert wicket ajax to typescript #363
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 wicket ajax to typescript #363
Conversation
|
I am +1 to make these changes! |
|
Another important point to discuss is a format. The IIFE is currently configured is good to make it compatible with Wicket 8 stuff. Essentially what I have here supposed to be a drop in replacement of existing wicket-modal-jquery, and could potentially be backported to Wicket 8. I think for future Wicket releases we can consider other options such as AMD, UMD or CommonJS, or make to have a few JS files built in and allow end developers to pick whichever is more convenient for them. |
I do not see a reason for this. No one ever asked for any of those. Let's not over-engineer it for no reason. P.S. ... and I believe the future is in ESM. Even Node.js added support for it in v12 |
|
It seems to work pretty well. Should I continue and try adding a WICKET-6667 #359 into this one? |
|
I am +1 but others didn't give their opinion yet.
Let's discuss at dev@ first before wasting your time.
…On Fri, May 17, 2019, 04:43 Andrew Kondratev ***@***.***> wrote:
It seems to work pretty well. Should I continue and try adding a
WICKET-6667 #359 <#359> into this
one?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#363?email_source=notifications&email_token=AABYUQUJI6AF3PPNMMDYPC3PVYETBA5CNFSM4HMOSLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVTPVFY#issuecomment-493288087>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABYUQRXRL6REOKF5SCPUATPVYETBANCNFSM4HMOSLWQ>
.
|
@martin-g do you refer to the dev@wicket.apache.org mail list? |
|
i am +1 on this as long as it is committed in such a way that git log --follow will stick pick up the history of the old js files.. |
|
@ivaynberg It's achevable. I can do it with moving and merging back which will lead to a bunch of commits for each ts file in the history. Please let me know if you think it's going to be a problem or you know a better way. |
Yes. |
|
Closing this PR because it has been decided to not proceed with these changes. |
Continuing discussion about converting wicket-ajax-jquery.js into TypeScript.
Finally I reached the stage when all tests passing and I can run ajax section in wicket examples, so I decided to create a proper PR to continue discussion.
I created some utility objects as "modules" which which means they may not be mutated on runtime (transpiled with Object.freeze):
Wicket.Class
Wicket.DOM
Wicket.Xml
Wicket.Form
Wicket.Head
Wicket.Head.Contributor
I'm not sure if it's correct, please let me know if you think that these modules should be converted into classes with static methods or simply into JS objects.