-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Modularize JS files related to 'structure' #14524
Modularize JS files related to 'structure' #14524
Conversation
56e5564
to
ad840df
Compare
Codecov Report
@@ Coverage Diff @@
## gsoc-js-refactoring #14524 +/- ##
======================================================
Coverage 50.53% 50.53%
Complexity 14434 14434
======================================================
Files 501 501
Lines 68012 68012
======================================================
Hits 34372 34372
Misses 33640 33640 |
2fc6039
to
d90b2f0
Compare
Js code is stuctured properly with comments. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
d90b2f0
to
2e529f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Just a few minor comments.
js/src/export.js
Outdated
* Module import | ||
*/ | ||
import { | ||
createTemplate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we do a import *
?
js/src/classes/ErrorReport.js
Outdated
@@ -4,7 +4,7 @@ | |||
*/ | |||
import { AJAX } from '../ajax'; | |||
import { PMA_Messages as PMA_messages } from '../variables/export_variables'; | |||
import { PMA_commonParams } from '../variables/common_params'; | |||
import PMA_commonParams from '../variables/common_params'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this PMA_commonParams while it is changed at https://github.com/phpmyadmin/phpmyadmin/pull/14524/files#diff-340666e1d3cfc56d0064172a52016d98R10?
e051e1e
to
c0810f9
Compare
Shortcut handler and page settings js files added in modular code. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of methods still have the PMA_
prefix, but we can tackle that at the end.
@devenbansod I want to work on this issue |
This pr contains the structured code of javascript.
This pr is in continuation of Mod_Js_Config_Js, Before reviewing this pr, review and merge Mod_Js_Config_Js and then review this pr.
Before submitting pull request, please check that every commit: