Commit Graph

126881 Commits

Author SHA1 Message Date
phpMyAdmin bot
381efb44b8 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2023-07-02 00:23:19 +00:00
Maurício Meneghini Fauth
d53daaa752
Add --only-covering-test-cases option to Infection test
Execute only those test cases that cover mutated line, not the whole
file with covering test cases.

[ci skip]

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-07-01 14:38:56 -03:00
William Desportes
7d10e2f87d
Merge #18516 - Fix #18392 - Format query not working inside view modal
Fixes: #18392
Pull-request: #18516

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-06-29 12:50:38 +02:00
William Desportes
74b7253f6b
Merge branch 'QA_5_2'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-06-29 12:47:18 +02:00
William Desportes
42f0b8fe0f
Add a ChangeLog entry for #18403
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-06-29 12:43:42 +02:00
William Desportes
9162f1afe9
Merge #18518 - Fix #18403 - Uncaught SyntaxError: JSON.parse
Fixes: #18403
Pull-request: #18518

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-06-29 12:42:39 +02:00
William Desportes
cbc8595258
Update the ChangeLog entry for #17420
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-06-29 12:40:29 +02:00
Maurício Meneghini Fauth
3abe8ed8d9
Improve Util::formatByteDown() return type hint
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-28 22:36:50 -03:00
Maurício Meneghini Fauth
1f935e57f7
Move the Import class to the Import namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-28 12:44:04 -03:00
Maurício Meneghini Fauth
f23ab54ca9
Move the Export class to the Export namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-28 12:28:38 -03:00
Sachin Bahukhandi
566a51ab18
Incorrect argument type fix (#18458)
* Incorrect argument type to variable

Signed-off-by: SachinBahukhandi <sachinb0013@gmail.com>

* Linted code

Signed-off-by: SachinBahukhandi <sachinb0013@gmail.com>

---------

Signed-off-by: SachinBahukhandi <sachinb0013@gmail.com>
2023-06-28 10:26:22 -03:00
Sachin Bahukhandi
aad3b57792
Fixed the test cases (#18479)
* Fixed the test cases

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* Modified the docblocks as suggested

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* Update test/classes/Controllers/Table/ImportControllerTest.php

Added the changes suggested by team

Co-authored-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* modified the docblock

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* modified the docblock

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* modified the docblock

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* modified the docblock

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

* Removed sodium extension required check  as suggested

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>

---------

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
2023-06-28 09:07:17 -03:00
Maurício Meneghini Fauth
531d6ad2c5
Merge pull request #18374 from MoonE/test-query-return-value
Fix dummy query return value in tests
2023-06-28 09:02:28 -03:00
cbasguti
0d9fb3100d fix: Uncaught SyntaxError: JSON.parse
JSON.parse: unexpected character at line 1 column 1 of the JSON data

Signed-off-by: cbasguti <sebastian.gutierrezj@udea.edu.co>
2023-06-28 08:29:09 +02:00
cbasguti
2a66496d61 fix: Format query not working inside view modal
Query formatting didn't work inside Create view modal, when table has 0 rows.

Signed-off-by: cbasguti <sebastian.gutierrezj@udea.edu.co>
2023-06-27 22:46:49 +02:00
Maurício Meneghini Fauth
98e0676a70
Merge pull request #18514 from MauricioFauth/routes
Move the routes from routes.php to the Routes class
2023-06-27 10:58:20 -03:00
Maurício Meneghini Fauth
053ee31d11
Move the routes from routes.php to the Routes class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-26 21:16:50 -03:00
Maurício Meneghini Fauth
50d97afd0e
Move Routing class to the Routing namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-26 18:16:59 -03:00
Maurício Meneghini Fauth
9d3cb68596
Update PHPStan/Psalm baselines
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-26 17:26:02 -03:00
Kamil Tekiela
f8111a7a7e
Replace inline static with class static (#18490)
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-26 16:00:51 -03:00
ru-asdx
62a2b7fa34
Replace superglobals with serverrequest in ReplaceController (#18501)
* Replace superglobals with serverrequest in ReplaceController

Signed-off-by: Evgeny Skorlov <eugene@skorlov.name>

* fixes

Signed-off-by: Evgeny Skorlov <eugene@skorlov.name>

---------

Signed-off-by: Evgeny Skorlov <eugene@skorlov.name>
2023-06-26 14:48:40 -03:00
Sakis bal
8e3615eca8
fix: table columns with names of ' or "" or `` could not be dropped (#18506)
* fix: table columns with names of ' or "" or `` could not be dropped

    Unsafe javascript string was passed to the currColumnName var. By using
    escapeJsString from /modules/functions/escape.ts the unsafe string becomes
    a safe string and the rest of the code runs as expected. fixes issue #18448

    Signed-off-by: Thanasis Mpalatsoukas <thanasismpalatsoukas@gmail.com>

* fix: added an extra space below and added a signoff additionally

Signed-off-by: Thanasis Mpalatsoukas <thanasismpalatsoukas@gmail.com>

---------

Signed-off-by: Thanasis Mpalatsoukas <thanasismpalatsoukas@gmail.com>
2023-06-25 16:53:07 -03:00
phpMyAdmin bot
170cc40ed6 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2023-06-25 00:23:41 +00:00
Maurício Meneghini Fauth
826b1c7aaf
Replace system monitor setting popup with a collapse button
Also replace settings links with buttons.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-19 21:31:21 -03:00
Maurício Meneghini Fauth
ddbc1afd28
Replace system monitor tab links with buttons
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-19 21:28:34 -03:00
Maurício Meneghini Fauth
7196073b00
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-19 21:16:27 -03:00
Maurício Meneghini Fauth
506175861a
Fix error when changing the chart columns in the monitor page
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/18159

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-19 21:09:40 -03:00
Yevhen Bronza
445ad1df66
Translated using Weblate (Ukrainian)
Currently translated at 99.8% (3422 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/uk/
Signed-off-by: Yevhen Bronza <zhenya.bronza@gmail.com>
2023-06-19 20:48:49 +02:00
Maurício Meneghini Fauth
a019334cf1
Merge pull request #18508 from MauricioFauth/profiling-chart
Replace jqPlot with Chart.js for the profiling chart
2023-06-17 23:57:43 -03:00
Maurício Meneghini Fauth
6cda25211e
Replace jqPlot with Chart.js for the profiling chart
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 23:44:04 -03:00
phpMyAdmin bot
f22985ab15 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2023-06-18 00:21:57 +00:00
Maurício Meneghini Fauth
c72bf239d7
Replace .text-muted with .text-body-secondary
The CSS class .text-muted is deprecated and will be replaced by
.text-body-secondary.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 17:09:41 -03:00
Maurício Meneghini Fauth
6427b1b931
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 16:54:34 -03:00
Maurício Meneghini Fauth
00768c0efd
Upgrade JavaScript dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 16:32:27 -03:00
Maurício Meneghini Fauth
5f7499abb0
Fix profiling chart not loading when profiling is activated
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 15:26:19 -03:00
Sakis bal
be3223ad1f
fix: empty html options need to have a label (#18503)
* fix: empty html options need to have a label

empty options are errors in html validators and they need
to have at least a label to be correct. By adding a label
we solve the problem with the validator while keeping the
code functionallity the same. Related to #12747

Signed-off-by: Thanasis Mpalatsoukas <thanasismpalatsoukas@gmail.com>

* Update templates/config/form_display/input.twig

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>

---------

Signed-off-by: Thanasis Mpalatsoukas <thanasismpalatsoukas@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-17 14:37:50 -03:00
Maurício Meneghini Fauth
af6f448842
Remove JS media type from HTML script tags
The type attribute is unnecessary for JavaScript resources.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 20:39:27 -03:00
Maurício Meneghini Fauth
b25924c819
Merge pull request #18502 from MauricioFauth/select-all-arrow-image
Fix select all arrow image dark color issue with Bootstrap theme
2023-06-16 20:15:47 -03:00
Maurício Meneghini Fauth
0b1a743fa0
Fix select all arrow image dark color issue with Bootstrap theme
Replaces RTL images with CSS transformation.

- Fixes https://github.com/phpmyadmin/phpmyadmin/issues/18368

Co-authored-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 18:28:22 -03:00
Maurício Meneghini Fauth
59d17854f0
Fix form input color issues on the Settings page
Related to https://github.com/phpmyadmin/phpmyadmin/issues/18368.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 16:52:23 -03:00
Maurício Meneghini Fauth
ff2141cb18
Merge pull request #18500 from MauricioFauth/application-class-di
Extract some dependencies from the Application class
2023-06-16 16:16:35 -03:00
Maurício Meneghini Fauth
f6e74de251
Extract some dependencies from the Application class
- Extracts the ErrorHandler, Config and Template dependencies from the
  Application class.
- Loads HTTP ServerRequest object after loading the user config.
- Requires a Config object for the Template class.
- Disables Twig's cache if an exception is thrown before loading the
  user config. This way a possible different cache directory will not be
  used.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 15:55:20 -03:00
Maurício Meneghini Fauth
ec4706f659
Fix codemirror colors for the Bootstrap theme
Remove Metro and Pmahomme codemirror colors as they were not used.

Related to https://github.com/phpmyadmin/phpmyadmin/issues/18368.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-14 19:41:35 -03:00
Maurício Meneghini Fauth
d63a16cb27
Fix DB designer dark mode colors for Bootstrap theme
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-14 17:16:47 -03:00
Maurício Meneghini Fauth
1d0dd3e5d7
Fix nav search clause clear button color for dark mode
[ci skip]

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-14 10:12:09 -03:00
Maurício Meneghini Fauth
e0011b28ae
Fix move table columns dark color issues for Bootstrap theme
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-14 10:05:07 -03:00
Maurício Meneghini Fauth
c6f04fbedc
Fix results table header with transparent background
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-14 09:55:29 -03:00
Maurício Meneghini Fauth
1b7fbb9806
Merge pull request #18496 from MauricioFauth/common-class
Rename the Common class to Application
2023-06-14 09:04:51 -03:00
Maurício Meneghini Fauth
78e446e073
Merge pull request #18461 from kamil-tekiela/Globals-in-Manage
Globals in ManageController
2023-06-13 22:22:40 -03:00
Maurício Meneghini Fauth
b50b80da02
Fix Table\StructureControllerTest failing test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-13 22:07:44 -03:00