Commit Graph

142 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
d7e1dd7206
Extract Console dependencies from constructor
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-08-20 15:52:06 -03:00
Maurício Meneghini Fauth
87d695f2c8
Extract js/messages.php entry point into a route
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-08-06 22:25:32 -03:00
Maurício Meneghini Fauth
431b594ec3
Change doclinks.js to use JS modules
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-07-05 15:47:12 -03:00
Maurício Meneghini Fauth
4e19a88a1e
Extract Webpack runtime to the runtime.js file
This is needed since it has multiple entry points per page.

https://bundlers.tooling.report/code-splitting/multi-entry/

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-07-02 14:50:52 -03:00
Maurício Meneghini Fauth
ef299ea809
Extract side effects from page_settings.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-30 02:01:21 -03:00
Maurício Meneghini Fauth
f7379a6a2b
Extract side effects from common.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-30 01:33:05 -03:00
Maurício Meneghini Fauth
76e72d7ad5
Extract side effects from indexes.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-30 01:24:04 -03:00
Maurício Meneghini Fauth
ac55dab1eb
Extract side effects from navigation.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-30 00:51:13 -03:00
Maurício Meneghini Fauth
9c09feb78d
Extract side effects from the functions.js file
And some minor code style changes.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-29 23:30:52 -03:00
Maurício Meneghini Fauth
3feb1f73f1
Extract side effects from config.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-28 01:46:24 -03:00
Maurício Meneghini Fauth
3560dcfdd4
Extract cross_framing_protection.js side effect into main.js
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-28 01:39:52 -03:00
Maurício Meneghini Fauth
4a30c8ccbd
Extract keyhandler.js side effects into main.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-28 01:39:51 -03:00
Maurício Meneghini Fauth
bdbf82b11f
Extract ajax.js side effects into main.js file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-28 01:39:51 -03:00
Maurício Meneghini Fauth
78b2c1f4eb
Extract function from cross_framing_protection.js
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-26 13:31:49 -03:00
Maurício Meneghini Fauth
7403cffab4
Assign CommonParams and CommonActions to the window object
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-06-22 15:04:03 -03:00
Maurício Meneghini Fauth
d668e331b5
Remove jquery-debounce-throttle JS dependency
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-05-11 16:21:53 -03:00
Maurício Meneghini Fauth
6dc859cbc2
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-04-28 15:56:18 -03:00
Maurício Meneghini Fauth
49e2b081ba
Merge branch 'QA_5_1' into QA_5_2
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-04-28 15:26:35 -03:00
Maurício Meneghini Fauth
0312396a75 Remove jQuery Mousewheel JS dependency
This dependency was removed by
https://github.com/phpmyadmin/phpmyadmin/pull/17032.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-04-27 21:21:25 -03:00
Maurício Meneghini Fauth
5950693fb3
Fix possible undefined globals
Related to https://github.com/phpmyadmin/phpmyadmin/pull/17427.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-10 18:05:21 -03:00
Maurício Meneghini Fauth
e16682d57a
Remove IS_TRANSFORMATION_WRAPPER constant
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-09 21:59:06 -03:00
Maurício Meneghini Fauth
1438cb211e
Replace global keyword with $GLOBALS
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-07 17:31:11 -03:00
Maurício Meneghini Fauth
a8ca6894a7
Create the validator-messages.js file
- Extracts the validator messages from the javascript/variables template
  into a new file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-15 15:13:59 -03:00
Maurício Meneghini Fauth
e514bda5b1
Create datetimepicker.js file
Extracts the datepicker and timepicker translations logic from
the javascript/variables template into the new datetimepicker.js file.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-15 14:04:46 -03:00
Maurício Meneghini Fauth
c482cd47ef
Remove gridEditingConfig JS global
- Uses data attribute instead.
- Uses Bootstrap's tooltip instead of the jQuery plugin.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-14 23:19:29 -03:00
Maurício Meneghini Fauth
a0337bf220
Refactor JavaScriptMessagesController controller
- Removes the dependency of the cfg and theme PHP globals.
- Handles the errors when encoding the messages to JSON.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-14 18:09:57 -03:00
Maurício Meneghini Fauth
c50f795e0e
Remove missing rte.js file
Fixes #17354.
Related to 89dba07132.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-07 20:17:06 -03:00
William Desportes
65c9f49c1e
Merge branch 'QA_5_1' into QA_5_2
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-02-06 15:45:57 +01:00
William Desportes
29ff729981
Fix #17288 - "First day of calendar" has no effect
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-02-04 18:28:01 +01:00
William Desportes
1262c30084
Ref #17288 - fix importing settings that are saved in the browser
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-02-04 16:46:24 +01:00
Maurício Meneghini Fauth
44fe103b9c
Remove @access annotations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-22 11:43:45 -03:00
Maurício Meneghini Fauth
c411121fd8
Move Relation classes into the ConfigStorage namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-17 12:09:13 -03:00
Kamil Tekiela
7b95a4b6d2 Use DI for $dbi in Menu.php
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-11-28 19:12:30 +00:00
Maurício Meneghini Fauth
78104be8fb
Remove print view mode
- Removes the print.css file.
- Data ditionary now opens like other pages. Printing the page works
  like before.

Fixes #17169
Closes #17170

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-10-31 13:22:07 -03:00
Maurício Meneghini Fauth
f00d70cccb
Remove useless whitespaces
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-15 17:05:40 -03:00
William Desportes
3a87667cab
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-20 17:52:16 +02:00
William Desportes
2389c6a07b
Fix reported "Undefined index: FirstDayOfCalendar"
Reported on error reporting server

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-20 01:30:37 +02:00
William Desportes
5f8bfbbae1
Ref #16939 - Remove not used params from Header::getJsParams
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-15 02:43:41 +02:00
Maurício Meneghini Fauth
c985faf9a1
Build response headers before sending them out
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-01 16:08:03 -03:00
Maurício Meneghini Fauth
1c084de30b
Fix coding standard errors
Related to 62f142c9fa.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-03 16:50:33 -03:00
William Desportes
ba35901594
Merge branch 'origin/QA_5_1' into master
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-17 00:53:14 +02:00
Saksham Gupta
68c1d7cab8 Remove redundant jQuery Event Drag plugin
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
2021-04-16 17:58:53 +05:30
fliespl
ef6fb5e3bc drop nocache & server query string param from theme.css stylesheet
Signed-off-by: Arkadiusz Rzadkowolski <a.rzadkowolski@gmail.com>
2021-03-20 22:48:07 +01:00
Maurício Meneghini Fauth
207901e992
Remove the js/src/microhistory.js file
There is no need for the MicroHistory anymore now that the History
API is available in all supported browsers.

Also removes the jQuery hashchange plugin.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-10 17:06:21 -03:00
Maurício Meneghini Fauth
33d711215d
Remove the PMA_VERSION constant
Uses the PhpMyAdmin\Version::VERSION constant instead.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-08 22:22:55 -03:00
Maurício Meneghini Fauth
7e33d227f5
Rename the PMA_Config global variable to config
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-08 15:03:12 -03:00
Maurício Meneghini Fauth
2c2127b369
Rename PMA_Theme global variable to theme
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-07 15:15:27 -03:00
Maurício Meneghini Fauth
1a9ecb6d76
Rename variables to use camel case format
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-07 13:03:12 -03:00
Maurício Meneghini Fauth
d83abf63e7
Use PSR-12 for control structures spacing
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-05 15:27:03 -03:00
Maurício Meneghini Fauth
0b8edc5bde
Use PSR-12 for namespace use statements
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-05 14:18:35 -03:00