Jakub Vrana
b0e5c1d6e4
Defer syntax highlighting
2025-04-07 14:58:19 +02:00
Jakub Vrana
e6810258bd
Accessibility: Use <option>(label) as label
2025-04-07 11:43:52 +02:00
Jakub Vrana
7ff1d82903
New plugin: Configure menu table links
2025-04-06 07:29:23 +02:00
Jakub Vrana
cca943015f
New plugin: Configure options by end-users and store them to a cookie
2025-04-06 07:29:16 +02:00
Jakub Vrana
01ea001f22
Explicitly mark nullable params (thanks to @dg)
2025-04-01 19:09:46 +02:00
Jakub Vrana
712d96b22c
Use connection() instead of $connection
2025-03-29 22:10:20 +01:00
Jakub Vrana
168ea5ae6d
Use driver() instead of $driver
2025-03-29 22:05:31 +01:00
Jakub Vrana
845445baad
Use adminer() instead of $adminer
2025-03-29 21:43:29 +01:00
Jakub Vrana
87f149ce1d
Move HTML function, fix types
2025-03-29 18:10:32 +01:00
Jakub Vrana
79fbf9c58a
CSS: Hide menu on mobile
2025-03-29 11:11:57 +01:00
Jakub Vrana
3cfae4b8f4
Pass $error as param
2025-03-28 19:04:13 +01:00
Jakub Vrana
e219ef9ad1
Move $token to get_token()
2025-03-28 19:04:11 +01:00
Jakub Vrana
195341d075
Split editFunctions
2025-03-28 15:41:38 +01:00
Jakub Vrana
46f6a96c95
Doc-comments: Fix type errors
2025-03-28 15:41:36 +01:00
Jakub Vrana
e3a4a214e6
Doc-comments: Remove redundant info
2025-03-28 12:47:09 +01:00
Jakub Vrana
a9143ccbdc
Doc-comments: Fix type errors
2025-03-28 12:47:09 +01:00
Jakub Vrana
5e88dae4e2
Doc-comments: Format
2025-03-28 12:45:02 +01:00
Jakub Vrana
45c045382a
Doc-comments: Move return types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
641ee4ff26
Doc-comments: Move param types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
911f3b71b7
Doc-comments: Add param names
2025-03-28 12:45:02 +01:00
Jakub Vrana
b23bf6c055
PHPStan: Fix more errors
2025-03-27 18:39:48 +01:00
Jakub Vrana
d3b53d9d9c
PHPStan: Fix level 6 errors
2025-03-26 21:54:00 +01:00
Jakub Vrana
c96894ecd4
PHPStan: Fix level 5 errors
2025-03-26 19:29:50 +01:00
Jakub Vrana
309fdb0d86
PHPStan: Fix level 3 errors
2025-03-26 16:57:58 +01:00
Jakub Vrana
7e5757f8b4
PHPStan: Fix level 2 errors
2025-03-26 16:22:15 +01:00
Jakub Vrana
3de9b23156
PHPStan: Use @return void
...
PHPStan then warns abouts using the return value
2025-03-26 13:14:12 +01:00
Jakub Vrana
1b8a428d2f
Notices: Avoid accessing offset on null
...
Thanks to @peterpp at 62017e3
.
2025-03-26 07:20:10 +01:00
Jakub Vrana
41aad5bc37
Doc-comment: Use type aliases for arrays
...
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases ) or just for a class.
I prefer having them at the place where they are created.
2025-03-26 02:43:08 +01:00
Jakub Vrana
cd207238b7
Move icons to CSS
2025-03-26 00:08:16 +01:00
Jakub Vrana
2ee325183b
Doc-comment: Improve array @param
...
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays .
int[] means an array of ints with arbitrary keys (usually strings)
list<string> means an array of strings with sequential integer keys starting at 0
list<string>[] means an arbitrary array of string lists
list<string[]> means list of arbitrary string arrays
string[][] means two dimensional array with arbitrary keys in both dimensions
array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
2025-03-25 14:31:27 +01:00
Jakub Vrana
88821a5780
Move beforeunload to plugin
2025-03-24 16:55:40 +01:00
Jakub Vrana
c47590bb0d
Fix JS error on AI column input
2025-03-24 12:18:24 +01:00
Jakub Vrana
60555c5736
Editor: Fix pre-selecting empty enum
2025-03-24 07:30:22 +01:00
Jakub Vrana
aaca1eee8e
JS: Unsupport event.srcElement
2025-03-21 23:58:45 +01:00
Jakub Vrana
a705be7a94
Confirm before exiting edited edit form
2025-03-20 17:15:18 +01:00
Jakub Vrana
f38bbff5bf
Increase maximum width of string edit (bug #930 )
2025-03-20 15:39:55 +01:00
Peter Knut
09720b31f1
Remove hardcoded textarea height
2025-03-20 15:26:06 +01:00
Jakub Vrana
1f5a7fa717
JS: Use arrow functions
...
All function () {} left in the code reference `this` and thus couldn't use arrow functions.
2025-03-20 10:35:08 +01:00
Jakub Vrana
bc9de24d77
Add helper for <input type=hidden>
2025-03-18 17:15:10 +01:00
Jakub Vrana
9cfea02e19
Avoid excessive PHP and HTML mixing
2025-03-18 16:45:15 +01:00
Jakub Vrana
5069e5a400
JSON: Remove unnecessary escape
2025-03-18 11:15:03 +01:00
Jakub Vrana
33b69ed82b
Edit: prefer JSON over text
2025-03-18 11:12:07 +01:00
Jakub Vrana
4e4f280061
Table-less drivers: display empty field only without fields()
2025-03-18 11:00:57 +01:00
Jakub Vrana
e1f0fded69
Add helper for <input type=hidden name=token>
2025-03-17 18:45:08 +01:00
Jakub Vrana
22a3efe4ed
Code style: avoid excesive mixing of PHP and HTML
2025-03-17 00:02:41 +01:00
Jakub Vrana
6d71cd678e
Separate HTML functions
2025-03-16 19:03:02 +01:00