Commit Graph

5298 Commits

Author SHA1 Message Date
Piyush Vijay
bfc9d62d43 Replace .js extension from db_export and db_import.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:25 +05:30
Piyush Vijay
b8bbd86558 Add central columns to the modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:25 +05:30
Piyush Vijay
353fa83e2a Add db_tracking.js for tracking tables of database in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:25 +05:30
Piyush Vijay
9fc572d4fc Create FileHandler class to manage loading of files on the basis of page and on the basis of user preferences.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:25 +05:30
Piyush Vijay
0a979865e1 Add db_operations.js to modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:24 +05:30
Piyush Vijay
5e10b2c6b7 Edit js/src/functions.js to add functions required for create table in db_structure.php.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:12 +05:30
Piyush Vijay
6e790e72e5 Add CreateTable and TableColumns module for adding table in db_structure.php.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:12 +05:30
Piyush Vijay
eae0c753bb Add prepare_ajax_request and preview_sql to modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:55:10 +05:30
Piyush Vijay
f2cc2344d5 Bug fix for ajax server side error.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-17 13:54:29 +05:30
Piyush Vijay
65943162ae Add db_structure.js in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-16 20:37:21 +05:30
Piyush Vijay
fd21247e53
Resolve merge conflicts
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-15 15:28:25 +05:30
Piyush Vijay
6a4496ee42 Add multi column sort for tbl_sql.php and db_sql.php
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-15 15:15:00 +05:30
Piyush Vijay
a407ac90fc Bug fix for teardown of page.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-15 15:15:00 +05:30
Piyush Vijay
5b7079e9ff Profiling working on table browsing and on running sql queries.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-15 15:14:42 +05:30
Piyush Vijay
6f20ffdf64 Resolving merge errors.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-14 18:31:51 +05:30
Piyush Vijay
1e00de8e3a Separating sorting functions from multi_column_sort file.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-14 18:11:20 +05:30
Piyush Vijay
1c3660d213 Comment code in js/functions.js to disable tirggering of codemirror loading from js/functions.js
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-14 18:11:18 +05:30
Piyush Vijay
5e3e36e61d Add multi column sort in server_sql for add and remove column sort on table browse.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:47 +05:30
Piyush Vijay
3ae93ad307 Add modular Sql.js to table sql and database sql and SqlQueryForm modified accordingly
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:47 +05:30
Piyush Vijay
661c9f74d4 Ctrl plus enter to submit query event in functions.js
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:47 +05:30
Piyush Vijay
cc754839e7 Updating Sql utility function file, sql source file containing code for 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>
2018-08-10 13:38:47 +05:30
Piyush Vijay
7d472508b7 Adding variable used for codemirror in the head of the page at the top of the scripts.
Imports changes as per new directory stucture for sql.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:42 +05:30
Piyush Vijay
8506ce9d91 Adding codemirror in pma console.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:32 +05:30
Piyush Vijay
2c9118e781 Edit codemirror sql plugin for modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:38:21 +05:30
Piyush Vijay
c9ac456d97 Separating basic functions needed for initialising codemirror and inline codemirror, saving and getting saved queries and making profiling charts.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:37:39 +05:30
Piyush Vijay
91afae1798 No need to review this commit as these files are directly copied from 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>
2018-08-10 13:37:39 +05:30
Piyush Vijay
63a54d14f3 Adding jQplot package and its plugins and tablesorter are as module in js files and removed from php files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-10 13:37:25 +05:30
Piyush Vijay
8c986d8308 Weekly progress.
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>
2018-08-10 13:36:58 +05:30
Piyush Vijay
b4237acf18
Use import * for files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-09 19:12:28 +05:30
Piyush Vijay
c0810f98b2 Some more javascript files structured properly.
Shortcut handler and page settings js files added in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-09 18:44:36 +05:30
Piyush Vijay
91340d18e5 Test files changed as per the new chages in FormDisplayTemplate.
Js code is stuctured properly with comments.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-07 18:34:12 +05:30
Piyush Vijay
733b0296b3
Test fixtures for travis.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-03 18:04:59 +05:30
Piyush Vijay
0b5c9b3eea Add isStorageSupport in functions.js for code compatibility and add config.js in file loading object.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-02 20:54:53 +05:30
Piyush Vijay
5463dabca7 Commented code removed and debug statements removed.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-02 20:54:50 +05:30
Piyush Vijay
3a754dc340 Config.js is modularised.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-01 20:03:06 +05:30
Piyush Vijay
5e04669d74
Add config related imports in files to use config.js in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-01 20:02:33 +05:30
Piyush Vijay
d111a2ca81 Add event for submit of export sql form to remove error of undefined function.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:10:53 +05:30
Piyush Vijay
85c16c14f8 Remove some functions to make this pr reproduceable on local machine.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:10:44 +05:30
Piyush Vijay
a99acfef71 Modularize server related remaining files like replication, plugins, queries, processes.
Sever monitor is also modularised and is not working but jQplot is not imported as it is giving error with webpack.
Another issue with these files is that table sorter is also not woking
working properly as it is not available on npm as plugin.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:08:28 +05:30
Piyush Vijay
f92e1ebccd Edit ndex files and more files whitelisted in ajax.js and files.js for
adding them in modular code.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:07:43 +05:30
Piyush Vijay
9727a9450f Remove caching of common_params.php to avoid stoing token in cache on login and logout again.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 01:37:44 +05:30
Piyush Vijay
2f3eeae68d Fallback for new Modularize navigation. Both old and new code included in Header.php
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 01:37:44 +05:30
Piyush Vijay
5c54cdcb69 File names changed for revamped javascript files in php files.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 01:37:42 +05:30
Piyush Vijay
b52b7a3422 Navigation revamped, navigation functions separated from main file. More file names added in ajax and index.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-29 17:08:10 +05:30
Piyush Vijay
0ae42e5aa9 Import highlight_sql module in show_ajax_messages.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-29 17:07:42 +05:30
Piyush Vijay
84d0e8045b
Big fix for kill button and autoRefresh button on server_status_processes.php page.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-28 18:02:58 +05:30
Piyush Vijay
b7ee22a203 remove .js extension from relevant php files and add those files in ajax for dynamic loading.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-27 22:19:42 +05:30
Piyush Vijay
30b5f072f9 Commented code and debug statements removed from server status related files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-27 22:19:42 +05:30
Piyush Vijay
a85fb3d3f6 Revamp server_status_advisor, server_status_variables, sever_status_processes.
Add codemirror package in server_privileges.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-27 22:19:17 +05:30
Piyush Vijay
de78e7911b Bug fix for undefined variables and PMA_Console in working state now.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-27 20:53:09 +05:30