Commit Graph

128737 Commits

Author SHA1 Message Date
hoanghuy309
3f2d17b03f
Translated using Weblate (Vietnamese)
Currently translated at 80.7% (2746 of 3402 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/vi/
Signed-off-by: hoanghuy309 <hoanghuy309@gmail.com>
2024-05-29 12:37:40 +02:00
Andrei Stepanov
aeb3c37ea5
Translated using Weblate (Russian)
Currently translated at 100.0% (3402 of 3402 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-05-29 12:37:39 +02:00
전지연
350ff9307d
Translated using Weblate (Korean)
Currently translated at 97.8% (3329 of 3402 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ko/
Signed-off-by: 전지연 <jeeyeon0131@gmail.com>
2024-05-29 12:37:38 +02:00
Burak Yavuz
1f6755b0d2
Translated using Weblate (Turkish)
Currently translated at 100.0% (3402 of 3402 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Burak Yavuz <hitowerdigit@hotmail.com>
2024-05-27 08:09:13 +00:00
Maurício Meneghini Fauth
560cafbbc7
Merge pull request #19180 from MauricioFauth/responserenderer
Refactor ResponseRenderer contructor and response method
2024-05-26 13:21:30 -03:00
phpMyAdmin bot
3ef015e253 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-05-26 00:21:18 +00:00
Maurício Meneghini Fauth
ebf0f11d2d
Refactor ResponseRenderer::response()
Adds HTTP headers to the Response object instead of using the header()
function directly.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-25 14:16:11 -03:00
Maurício Meneghini Fauth
c82888a884
Extract dependencies from ResponseRenderer constructor
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-25 13:01:21 -03:00
Maurício Meneghini Fauth
61e5dfa19f
Merge pull request #19176 from MauricioFauth/footer-modals
Merge header.twig and footer.twig into base.twig
2024-05-24 10:47:47 -03:00
Maurício Meneghini Fauth
ff47ba8e62
Merge pull request #19175 from MauricioFauth/controller-response
Change InvocableController to always return a Response object
2024-05-24 10:47:18 -03:00
Maurício Meneghini Fauth
e4375c250d
Merge header.twig and footer.twig into base.twig
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-23 00:32:18 -03:00
Maurício Meneghini Fauth
4adf5a4cad
Remove isAjax from Header and Footer classes
The header and footer will always be empty when the request is ajax, so
only the content part is necessary.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 20:42:52 -03:00
Maurício Meneghini Fauth
50e5350f62
Remove div#pageSettingsModal from footer.twig
Creates div#pageSettingsModal when needed instead of including the
template for every request.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 19:40:45 -03:00
Maurício Meneghini Fauth
a163d75856
Remove div#addIndexModal from footer.twig
Creates div#addIndexModal when needed instead of including the
template for every request.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 19:19:37 -03:00
Maurício Meneghini Fauth
1be9bfef3f
Remove div#functionConfirmModal from footer.twig
Creates div#functionConfirmModal when needed instead of including the
template for every request.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 17:08:13 -03:00
Maurício Meneghini Fauth
99ad89e07d
Remove null handling from Http\Handler\ApplicationHandler
A Response object is always returned by InvocableController.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 15:35:08 -03:00
Maurício Meneghini Fauth
d2060c56d5
Change InvocableController to always return a Response
When 'null' is returned, ResponseRenderer::response() is called, so
call it early to always return a Response object.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 15:22:56 -03:00
Maurício Meneghini Fauth
1a356d894f
Use the return of the called controller instead of null
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 13:22:08 -03:00
Maurício Meneghini Fauth
cd62509cb3
Make AddKeyController extends AbstractIndexController
Refactors Table\Structure\AddKeyController class to extends
Table\Structure\AbstractIndexController and to remove the dependency on
the Sql\SqlController class.

This helps with the response handling.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 12:18:07 -03:00
Masahiro Fujimoto
2997b5272e
Translated using Weblate (Japanese)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ja/
Signed-off-by: Masahiro Fujimoto <mfujimot@gmail.com>
2024-05-20 10:01:48 +02:00
Mohsen Bakhshande
8775bc8f43
Translated using Weblate (Persian)
Currently translated at 21.7% (742 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/fa/
Signed-off-by: Mohsen Bakhshande <waltonmohsen@gmail.com>
2024-05-20 10:01:47 +02:00
Maurício Meneghini Fauth
6e31406d4e
Merge pull request #19171 from kamil-tekiela/Tracking-refactoring
Tracking refactoring
2024-05-19 16:43:50 -03:00
phpMyAdmin bot
78cd47e3cf Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-05-19 00:20:51 +00:00
Maurício Meneghini Fauth
fefd6d1222
Merge pull request #19169 from MauricioFauth/flash-messages-statement
Add support for statement messages in FlashMessenger class
2024-05-18 20:53:04 -03:00
Andrei Stepanov
6c0ae415eb
Translated using Weblate (Russian)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-05-18 09:01:54 +00:00
Kamil Tekiela
0773e5d9a9 Create LogType enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Kamil Tekiela
1b0df7ecca Rename LogTypeEnum to TrackedDataType
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Kamil Tekiela
6c96e792e3 Compile the HTML string before returning it
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Maurício Meneghini Fauth
b094f33746
Merge pull request #19170 from kamil-tekiela/phpstan
Upgrade PHPStan to 1.11.1
2024-05-16 18:30:27 -03:00
Kamil Tekiela
eed80dde9d Upgrade PHPStan to 1.11.1
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-16 21:51:59 +02:00
Maurício Meneghini Fauth
1a357c3898
Lazy-load session storage in FlashMessenger
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:52:00 -03:00
Maurício Meneghini Fauth
d17e46c486
Extract message type match from Generator::getMessage
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:12:06 -03:00
Maurício Meneghini Fauth
cf44e8beb4
Extract flash messages view into components/flash_messages.twig
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:11:39 -03:00
Maurício Meneghini Fauth
c10d265ae5
Move flash message context to the shaped array
Does not group the messages by context.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 14:41:04 -03:00
Maurício Meneghini Fauth
64a8a9d779
Rename the FlashMessages class to FlashMessenger
This class handles the flash messages instead of being a collection
of flash messages, so FlashMessenger is a better name.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 19:42:35 -03:00
Maurício Meneghini Fauth
24fcf259f3
Add support for statement messages in FlashMessages class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 19:20:37 -03:00
Maurício Meneghini Fauth
256a847af7
Fix invalid value for sql_query global variable
Fixes #19162

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 12:57:29 -03:00
Yaron Shahrabani
2b936050f5
Translated using Weblate (Hebrew)
Currently translated at 43.7% (1488 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/he/
Signed-off-by: Yaron Shahrabani <sh.yaron@gmail.com>
2024-05-15 15:34:40 +02:00
Maurício Meneghini Fauth
4c98f9b348
Merge pull request #19159 from MauricioFauth/response-renderer-disable-removal
Remove the ResponseRenderer::disable() method
2024-05-14 15:12:42 -03:00
Maurício Meneghini Fauth
797fe78516
Merge pull request #19160 from kamil-tekiela/MessageType
Create MessageType enum
2024-05-14 12:36:38 -03:00
Kamil Tekiela
a3818291ee Tidy up getLevel and getContext
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Kamil Tekiela
d265dbbd91 Replace Message constants with enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Kamil Tekiela
99c4d34db2 Create MessageType enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Maurício Meneghini Fauth
578ed90b8f
Remove the ResponseRenderer::disable() method
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 18:13:27 -03:00
Maurício Meneghini Fauth
63fb02ecaf
Remove ResponseRenderer::disable from auth plugins
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 17:07:23 -03:00
Maurício Meneghini Fauth
e3c4e9998d
Remove ResponseRenderer::disable from Export\ExportController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 16:44:36 -03:00
Maurício Meneghini Fauth
278c68b15b
Add unit test for ExportController download file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 16:22:23 -03:00
Maurício Meneghini Fauth
510e442593
Merge pull request #19156 from MauricioFauth/setup-controllers
Refactor setup controllers to implement InvocableController
2024-05-13 11:09:36 -03:00
Oğuz Ersen
6c5c48185f
Translated using Weblate (Turkish)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Oğuz Ersen <oguz@ersen.moe>
2024-05-13 03:02:47 +02:00
Andrei Stepanov
37199bf939
Translated using Weblate (Russian)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-05-13 03:02:46 +02:00