Commit Graph

6420 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
0c5de8aba8
Merge pull request #19530 from liviuconcioiu/19138
Fix #19138 - Adjust chart size in System Monitor
2025-01-25 16:21:48 -03:00
Maurício Meneghini Fauth
c019117ee9
Fix missing tooltip in status monitor log table
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-01-22 22:26:52 -03:00
Maurício Meneghini Fauth
ddb426268f
Merge pull request #19528 from liviuconcioiu/18980
Fix #18980 - Escape table name when counting rows
2025-01-17 21:17:59 -03:00
Maurício Meneghini Fauth
07d74b8c65
Update Yarn dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-01-17 11:55:17 -03:00
Liviu-Mihail Concioiu
0f439af280 Adjust chart size in System Monitor
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2025-01-17 15:02:47 +01:00
Liviu-Mihail Concioiu
f11212a4bf Escape table name
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2025-01-17 10:45:47 +01:00
Liviu-Mihail Concioiu
2729f16d1c Fix sql editor height on multi-table query
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2025-01-12 21:57:06 +01:00
William Desportes
2baf6b33b8
Fix adding a blank row in "copy to clipboard" for each repeating header row
Signed-off-by: William Desportes <williamdes@wdes.fr>
2025-01-07 13:48:50 +01:00
Antony K. S
8ad3c2c27e
Allow opening server breadcrumb links in new tab with Ctrl/Meta key
Signed-off-by: Antony K. S. <github@smankusors.com>
2025-01-06 03:21:48 +01:00
Maximilian Krög
61b4f6739d Don't abuse name attribute of svg elements
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-11-28 09:49:39 -03:00
Faissal Wahabali
b32e907f7c
Fix #19363 - Wrong query when using backtick in table name (#19396)
Fixes: #19363
Pull-request: #19396

* fix query when backtick in table name

Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-11-19 23:09:01 +00:00
Liviu-Mihail Concioiu
d1cd8ba840 Fix window.makeGrid is not a function
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-10-22 22:46:19 +02:00
Maurício Meneghini Fauth
29018a5b47
Upgrade Yarn dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-09-03 14:38:31 -03:00
Liviu-Mihail Concioiu
8e64fa51ef
Fix #19254 - Trim spaces around index name (#19257)
* Trim spaces around index name

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Trim only trailing space

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Trim only trailing space around column name

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

Fixes #19254

---------

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2024-08-16 19:27:19 -03:00
Maurício Meneghini Fauth
80bab0e272
Merge #19217 SyntaxError thrown when updating existing NULL JSON cell in grid
- Closes #19217
- Fixes #19216

Fix #19216 - SyntaxError thrown when updating existing NULL JSON cell in grid
2024-07-29 21:04:35 -03:00
Maurício Meneghini Fauth
c8525a89d8
Merge #19203 Fix Query Generator single quotes and backslashes
- Closes #19203

Hello 👋

This PR fixes the generated query when the criteria text contains single quotes or backslashes.

For now it only escapes the first `single quote` and the first `backslash`, which generates an invalid query.

![Screenshot from 2024-06-19 18-49-43](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/264f2fc9-8d7c-47be-8114-153f6dfbda2f)

After merging this PR it will escape all the `single quotes` and all the `backslashes`.

![Screenshot from 2024-06-19 18-44-15](https://github.com/phpmyadmin/phpmyadmin/assets/60013703/b1050188-7750-4b9e-90a6-a57a6c1f90f6)

- phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-17 12:37:08 -03:00
faissaloux
95866fd8cf
Query generator support for IN() and NOT IN()
Query Generator IN() support

Signed-off-by: faissaloux <fwahabali@gmail.com>

Query Generator NOT IN() support

Signed-off-by: faissaloux <fwahabali@gmail.com>

fix hint duplicates

Signed-off-by: faissaloux <fwahabali@gmail.com>

dont escape single quote on IN() and NOT IN()

Signed-off-by: faissaloux <fwahabali@gmail.com>

makes linter happy

Signed-off-by: faissaloux <fwahabali@gmail.com>

refactor

Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-07-17 12:32:04 -03:00
faissaloux
6aa461cb52
Fix Query Generator criteria on column *
add op column

Signed-off-by: faissaloux <fwahabali@gmail.com>

use op column to generate condition

Signed-off-by: faissaloux <fwahabali@gmail.com>

var -> const

Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-07-17 12:12:16 -03:00
faissaloux
506d2c561b
fix Query Generator IS NULL / IS NOT NULL
Signed-off-by: faissaloux <fwahabali@gmail.com>

hide criteria on operators without arg

clear criteria input when hide it
2024-07-17 12:03:43 -03:00
Maurício Meneghini Fauth
bd3598cf28
Upgrade JavaScript dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-13 12:34:27 -03:00
Skully
fa14401e63
safe parse JSON for current editing cell
Signed-off-by: Skully <contact@skully.tech>
2024-07-01 21:05:20 +01:00
faissaloux
81dffc5b4f fix escapeSingleQuote()
Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-06-19 18:53:26 +01:00
Maurício Meneghini Fauth
e7983661ec
Update JS dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-06-12 15:27:02 -03:00
Maurício Meneghini Fauth
9a3d2b8ca7
Merge pull request #19174 from faissaloux/prevent-use-alias-with-asterisk
Fix `Query Generator` column alias with asterisk
2024-05-24 11:31:55 -03:00
faissaloux
5fb7565d25 disable col alias when asterisk choosen for column
Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-05-20 17:40:09 +01:00
faissaloux
0449ec2087 fix Query Generator backticks
Signed-off-by: faissaloux <fwahabali@gmail.com>
2024-05-12 14:54:53 +01:00
Faissal Wahabali
de7a96467f
Fix notification links (#18243)
* fix not working notification copy link

Signed-off-by: faissaloux <fwahabali@gmail.com>

* fix not working notification links

Signed-off-by: faissaloux <fwahabali@gmail.com>

* fix notification links tooltip messages

Signed-off-by: faissaloux <fwahabali@gmail.com>

* update Edit Query message

Signed-off-by: faissaloux <fwahabali@gmail.com>

* remove unused event param

Signed-off-by: faissaloux <fwahabali@gmail.com>

* refactor

Signed-off-by: faissaloux <fwahabali@gmail.com>

* revert Edit Query message

Signed-off-by: faissaloux <fwahabali@gmail.com>

* refactor

Signed-off-by: faissaloux <fwahabali@gmail.com>

* code style

Signed-off-by: faissaloux <fwahabali@gmail.com>

* refactor

Signed-off-by: faissaloux <fwahabali@gmail.com>

---------

Signed-off-by: faissaloux <fwahabali@gmail.com>



Fixes #18241

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-30 16:08:56 -03:00
William Desportes
55a60c019e
Merge #19136 - Fix #18674 - formatted sql in grid should be inline text
Pull-request: #19136
Fixes: #18674

Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-04-28 16:15:25 +02:00
William Desportes
0bcc3e402d
Merge #19105 - Fix #17920, Fix #18006, Fix #18962 - Preserve check constraint during column move
Pull-request: #19105
Fixes: #17920
Fixes: #18006
Fixes: #18962

Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-04-28 10:46:15 +02:00
Maximilian Krög
524dcc2b5c
Fix formatted sql in grid should be inline text
The css expects all table cells to have a wrapping span, but
the wrapping was only done when no span existed in the cell.
If the formatting is done before the wrapping there already exist
nested spans and no top-level span is created. In this case the
style that makes the sql displayed inline did not apply.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-04-28 01:53:48 +02:00
Maximilian Krög
d5e0d711bd
Fix linter annotations for special editors
When the sql string to lint isa changed, the result positions
need to be adjusted accordingly.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-04-22 21:42:36 +02:00
Maximilian Krög
3b992e6a13
Preserve check constraint during column move
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-04-19 22:01:43 +02:00
Liviu-Mihail Concioiu
2cb219b774 Prevent pma_errors div being removed
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2023-12-16 10:33:03 +01:00
William Desportes
b8f7d3f5ee
Fix #18792 - Avoid JS crashes when trying to remove rules of a field
It was probably added by #16632

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-16 15:31:47 +01:00
Gaurav Singh
e4642a7dfb
fix #18563 - can't access property toString, data[j][0] is null (#18736)
* fix #18563 - can't access property toString, data[j][0] is null

Signed-off-by: Gaurav Singh <talktoogaurav@gmail.com>

* Update js/src/chart.js

---------

Signed-off-by: Gaurav Singh <talktoogaurav@gmail.com>
Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-15 19:45:36 -03:00
Maurício Meneghini Fauth
f26e7d415b
Fix issue when adding System Monitor charts
- Fixes #18561
- Closes #18739

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-15 18:31:01 -03:00
William Desportes
85624b9115
Fix JS number validation when the input is empty
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-12 18:22:44 +01:00
William Desportes
119208b39c
Fix BETWEEN search does not validate input since there is a space "1, 2" instead of "1,2"
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-12 18:09:19 +01:00
William Desportes
77820a32b6
Fix #17347 - TypeErrors in some special cases on index management
One was added in #14984

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-12 17:32:31 +01:00
William Desportes
c2967d6c6a
Fix #14402 - PRIMARY label is not removed when two PRIMARY where defined
Added in #14984

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-12 17:32:11 +01:00
William Desportes
0a4c4db504
Fix #17381, Fix #17347 - TypeError when removing indexes on columns
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-11-12 17:16:18 +01:00
Maurício Meneghini Fauth
6b61053292
Upgrade JavaScript dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-10-16 14:27:31 -03:00
Maurício Meneghini Fauth
d59645d8fb
Merge pull request #18670 from MoonE/fix-simulate-query2
Fix simulate query #2
2023-10-03 16:56:38 -03:00
Maurício Meneghini Fauth
2a96c4b98e
Merge pull request #18722 from MauricioFauth/git-hash-info-error
Improve git hash info error handling in home.js
2023-09-21 08:04:32 -03:00
Maximilian Krög
d1f09b0a81
Resize editor overlay and its textarea on page resize
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-09-20 22:48:29 +02:00
Maurício Meneghini Fauth
5e8ec69240
Improve git hash info error handling in home.js
Instead of showing a generic error message alert when an error occurs,
it displays an error message at the same place where the success output
goes.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-09-20 14:14:28 -03:00
Maurício Meneghini Fauth
80865af230
Merge pull request #18712 from MoonE/gis-button-classes
Fix GIS editor form layout
2023-09-20 11:29:56 -03:00
Maurício Meneghini Fauth
b06c773360
Merge pull request #18713 from MoonE/fix-column-type-lost
Fix gis editor changing geometry type and opening in search views
2023-09-20 11:22:26 -03:00
Kamil Tekiela
dba0086b90 Fix AJAX real-row-count
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-09-15 21:01:15 +01:00
Maurício Meneghini Fauth
67ac099b40
Update JavaScript dependencies
- Updates jQuery to 3.7.1
- Updates Bootstrap to 5.3.2

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-09-14 20:12:47 -03:00