Commit Graph

18411 Commits

Author SHA1 Message Date
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
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
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
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
733b0296b3
Test fixtures for travis.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-03 18:04:59 +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
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
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
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
Piyush Vijay
177e101379 Bux fix for onload and teardown of pages on refresh and ajax requests.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:26 +05:30
Piyush Vijay
5402f43840 Modify ajax.js and Header.php for compatibility of both old code and new code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:26 +05:30
Piyush Vijay
ce8d11c858 Add todo for code that will not be used in future after revamping all
the files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:26 +05:30
Piyush Vijay
491b4871a7 Commented code, debug statements and unused variable in Script.php is removed.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:25 +05:30
Piyush Vijay
b712019735 AJAX handler modified and initial loading of the first page handled
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-26 02:31:25 +05:30
Deven Bansod
224ae6d86b
Merge pull request #14464 from Piyush3079/Mod_Js_Config
* Files for babel, eslint and webpack base configuration and add respective modules in package manager.
Add script in package.json for building js files using webpack.

* Module for importing variable defined in messages.php.

* Some changes in the configuration to revamp file by file not whole directory, environment variable introduced

* Update documentation for the new configuration variables introduced
and adding comments for some code handleing new js files.

* Update node version for scrutinizer. Add webpack environment directives in default.config. Introduce webpack_host and webpack_port
directive and updating package.json build scripts.

* Typo fixes for documentation and comments and webpack configuration directives are added in webpack.config
2018-07-18 17:12:43 +05:30
Piyush Vijay
4d3a8c9e5c
Typo fixes for documentation and comments and webpack configuration directives are added in webpack.config
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-16 20:58:33 +05:30
Piyush Vijay
3d9e65674c Update node version for scrutinizer. Add webpack environment directives in default.config. Introduce webpack_host and webpack_port
directive and updating package.json build scripts.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-15 22:00:49 +05:30
Piyush Vijay
3e56b17bc6 Update documentation for the new configuration variables introduced
and adding comments for some code handleing new js files.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-15 22:00:31 +05:30
Piyush Vijay
59ef2b9159 Some changes in the configuration to revamp file by file not whole directory, environment variable introduced
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-15 22:00:21 +05:30
Piyush Vijay
d80a8ba3dd Files for babel, eslint and webpack base configuration and add respective modules in package manager.
Add script in package.json for building js files using webpack.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-15 21:58:14 +05:30
Leonardo Strozzi
3b8746547d Fix php code sniffer errors
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-07-08 18:31:04 -03:00
Leonardo Strozzi
bcad25a84a Refactor table_tracking main tamplates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-07-08 17:40:59 -03:00
Maurício Meneghini Fauth
cf8e559987 Fix error when writing the selected rows to a file
Fix #14434

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-07-05 21:43:21 -03:00
Maurício Meneghini Fauth
b2e4f01dcc
Merge pull request #14414 from williamdes/issue-14390-db-show
Patch - missed instance of 'Avoid passing extension to Util::getImage' and GIS icon
2018-07-04 20:26:54 -03:00
Maurício Meneghini Fauth
5f5515c1dd
Merge pull request #14356 from williamdes/issue-14171-phpgd
Fix for #14171 - 2FA+QR+PHPGD
2018-07-04 19:48:17 -03:00
Maurício Meneghini Fauth
5e2e27dfeb
Merge pull request #14233 from nulll-pointer/recent_table_issue
Fixes issue with recent table list, #14229
2018-07-03 20:46:44 -03:00
Maurício Meneghini Fauth
4001f6592b
Merge pull request #14409 from nulll-pointer/null_default_error
Fix NULL as default not shown, #14333
2018-07-03 19:35:55 -03:00
Leonardo Strozzi
7dc44b2ea9 Fix tests for server_engine
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-29 22:27:37 -03:00
Leonardo Strozzi
36ceaee55a Refactor server_engines templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-29 20:23:26 -03:00
Leonardo Strozzi
28d890f7f7 Refactor server_plugins templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-29 18:05:29 -03:00
Leonardo Strozzi
217a0db2f8 Refactor server_variables templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-29 16:36:36 -03:00
Leonardo Strozzi
15ae8d7fe5 Refactor server_databases templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-29 16:36:36 -03:00
William Desportes
49fae81505
Fix for #14171 - 2FA QR PHPGD
Closes: #14171
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-06-29 21:21:59 +02:00
Isaac Bennetch
f9b55de9f4
Merge pull request #14421 from nulll-pointer/enh_5
Add configuration setting to toggle drag drop file Import
2018-06-29 11:23:31 -04:00
Isaac Bennetch
e4a76a1d12 Merge branch 'QA_4_8' 2018-06-29 10:58:50 -04:00
Lakshay arora
b0ec6b69e9 Fix for #14314, error while naming a database '0'
Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
2018-06-29 10:40:54 -04:00
William Desportes
b3379d7700
Fix - #14382 "Visualize GIS data" icon missing
Closes: #14382
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-06-29 00:17:15 +02:00
William Desportes
ff4785cbf2
Patch - missed instance of 'Avoid passing extension to Util::getImage'
Patch for commit bed6fb4ebd

Fixes: #14390
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-06-29 00:17:08 +02:00
Leonardo Strozzi
491ce9a669 Refactor db_tracking templates
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-25 23:42:22 -03:00
Leonardo Strozzi
f0eab56fc3 Fix code sniffer ServerDatabasesController error
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-25 23:07:05 -03:00
Maurício Meneghini Fauth
3ea6feccb1
Merge pull request #14429 from laps15/bugfix
Fix server databases statistics
2018-06-25 21:19:50 -03:00
Maurício Meneghini Fauth
a2c4827e0b
Merge pull request #14408 from ibennetch/14407
Fix Uncaught TypeError in privilege editor
2018-06-25 20:41:55 -03:00
William Desportes
e816e45c18 phpstan level 0 (#14405)
* Fix phpdoc @return

- Fixed @return typehint

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Fix incorrect case on function calls

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Type hint + typo fix

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Fixes

- @return fix
- @var fix
- Class names
- Throws fix
- test/classes/Plugins/Export/ExportSqlTest.php any() invoked with 1 parameter, 0 required
-  libraries/classes/Controllers/Table/TableStructureController.php Array has 2 duplicate keys with value 'columns_list'
- Call parent constructor  libraries/classes/Error.php

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Update config

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Access to an undefined property

- Access to an undefined property PhpMyAdmin\Plugins\Schema\Pdf\PdfRelationSchema::$diagram_row
- Access to an undefined property PhpMyAdmin\Plugins\Schema\Pdf\Pdf::$cMargin
- Undefined properties

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Update config

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Fix bootstrap-phpstan

Signed-off-by: William Desportes <williamdes@wdes.fr>

* Fix typos and phpstan config

Fixes: #14399
Signed-off-by: William Desportes <williamdes@wdes.fr>
2018-06-25 20:34:46 -03:00
Leonardo Strozzi
05cff7ed58 Fix server databases statistics
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-06-25 18:06:20 -03:00
Lakshay arora
9d08a1dcaf Puts PMA import handler in a separate javascript file.
Makes 'enable_drag_drop_import' as a separate configuration directive, removes it from group of $cfg['IMPORT'] directives.
Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
2018-06-25 12:37:43 +05:30
Lakshay arora
61163cd14b Add configuration setting to toggle drag drop file Import
This commit-
Adds a configuration directive to toggle drag drop Import feature as requested in #13155
TODO:
1. Test it on multiple servers.
2. Disable javascript handlers for drag drop
Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
2018-06-24 14:21:24 +05:30
Maurício Meneghini Fauth
ec4911d20c
Merge pull request #14415 from laps15/refactor
Refactor database templates
2018-06-21 18:45:37 -03:00
Isaac Bennetch
dcf434b635 Fixup from merge
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2018-06-21 14:00:03 -04:00