-
-
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
Add Modular code for sql query box (page) and codemirror related pages #14493
Add Modular code for sql query box (page) and codemirror related pages #14493
Conversation
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
1 similar comment
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
1 similar comment
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
Please rebase |
374c8d9
to
f503797
Compare
Please rebase. |
912910f
to
7cc998d
Compare
1). Microhistory added in classes for modular code 2). Code is structured and camel casing of varables is done for removing linter warnings. 3). JQuery plugins are added in some files. 4). jQplot is working for server_status_queries and server_status_monitor. 5). Work started for Dabatase, SQl and Table files. Some changes are stll left for server_status_monitor and sql.js Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…nd script for creating production build edited Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…n js files and removed from php files. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
… old vendor and plugins folder. These files can be ignored during review. They are not availabe as npm mpdule right now and their alternative are largerr in size with the same functionality. So they are being used as it is. Their size will be reduced in the outpul bundle after using webpack plugins to emove comments from js files. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…ine codemirror, saving and getting saved queries and making profiling charts. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
7cc998d
to
fe5def0
Compare
…p of the scripts. Imports changes as per new directory stucture for sql. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…or various sql related events, adding function for sql editor and inline sql editor in functions.js Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…ified accordingly Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
… table browse. Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
57d7f2f
to
3b11fca
Compare
Codecov Report
@@ Coverage Diff @@
## gsoc-js-refactoring #14493 +/- ##
=========================================================
+ Coverage 50.53% 50.56% +0.03%
- Complexity 14434 14439 +5
=========================================================
Files 501 501
Lines 68012 68002 -10
=========================================================
+ Hits 34372 34388 +16
+ Misses 33640 33614 -26 |
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.
Great job on this, I acknowledge these files were indeed tricky to manage given their dependencies strewn throughout.
db_search.php
Outdated
$scripts->addFile('sql.js'); | ||
$scripts->addFile('makegrid.js'); | ||
// $scripts->addFile('makegrid.js'); |
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.
Please remove if not needed
js/functions.js
Outdated
if (codemirror_editor) { | ||
$(codemirror_editor.getWrapperElement()).off('keydown'); | ||
} | ||
// $(document).off('click', 'a.inline_edit_sql'); |
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.
Please remove if not needed
@@ -24,7 +25,7 @@ | |||
"js-cookie": "2.2.0", | |||
"sprintf-js": "^1.1.1", | |||
"tracekit": "0.4.5", | |||
"updated-jqplot": "1.0.9", | |||
"updated-jqplot": "1.0.9-2", |
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.
Is such a specific version required?
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.
The previous version was not working with webpack. It was giving some errors related to global scoping. so I have added this updated package.
server_sql.php
Outdated
$scripts->addFile('makegrid.js'); | ||
$scripts->addFile('vendor/jquery/jquery.uitablefilter.js'); | ||
$scripts->addFile('sql.js'); | ||
// $scripts->addFile('makegrid.js'); |
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.
Remove if not required
82edabc
to
bc42ec9
Compare
…oading from js/functions.js Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
bc42ec9
to
5240ca6
Compare
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
This pr contains the files needed for modular code for making sql queries.
This pr is in continuation of the pr Mod_Js_Structuring_1. Before reviewing this pr review and merge Mod_Js_Structuring_1
Before submitting pull request, please check that every commit: