Commit Graph

2244 Commits

Author SHA1 Message Date
Djamil Legato
e16f1243cc Added refresh action button for Folder to ease the regeneration of the slug based on the title. Available also as API entry Grav.default.Forms.Fields.FolderField.Regenerate() (#1738) 2021-04-20 15:45:56 -07:00
Andy Miller
0ad907be01 Support native spell checkers in codemirror editor #1266 2021-04-20 14:13:01 -06:00
Djamil Legato
d02f3a12e2 Fixed issue preventing Drag & Drop of media files while in Expert Mode (fixes #1927) 2021-04-20 12:18:58 -07:00
Djamil Legato
9ab6b2a797 Removed sourcemaps references from fork-awesome.min.css (fixes #2122) 2021-04-20 12:12:40 -07:00
Djamil Legato
f45e2ce646 Fixed audit vulnerabilities in module dependencies and house cleanup (fixes #2096) 2021-04-20 11:51:53 -07:00
Djamil Legato
a2fe02bb0a Prevent Save actions from Flex Objects to trigger the unsaved unload notice (fixes #2125) 2021-04-20 10:42:30 -07:00
Krzysztof Kula
8336b57cda Fix side-tabs navigation in page edit (#2117) 2021-04-19 10:37:30 -06:00
Matias Griese
da8a7b574c Improve ACL checks for the tasks 2021-04-12 22:06:43 +03:00
Matias Griese
6db7e4a637 Fixed You have been logged out message when entering to 2FA authentication due to /admin/task:getNotifications AJAX call [#2109] 2021-04-08 10:43:47 +03:00
Matias Griese
9fca08ab43 Regression: Fixed broken 2FA form [#2109] 2021-04-07 14:14:04 +03:00
Matias Griese
c4d90bfcd3 Fixed missing admin-preset.css in multisite environments 2021-04-07 11:47:05 +03:00
Matias Griese
4e18aef93f Merge remote-tracking branch 'security/advisory-fix-1' into develop
# Conflicts:
#	admin.php
2021-04-06 19:47:34 +03:00
Matias Griese
c97177e0ee Prevent expert editing mode from anyone else than super users [#2094] 2021-03-31 12:16:40 +03:00
Matias Griese
aa4f80eec1 Greatly improve login related actions for Admin
* Better isolate admin to prevent session related vulnerabilities
* Removed support for custom login redirects for improved security
* Shorten forgot password link lifetime from 7 days to 1 hour
* Fixed login related pages being accessible from admin when user has logged in
* Fixed admin user creation and password reset allowing unsafe passwords
* Fixed missing validation when registering the first admin user
* Fixed reset password email not to have session specific token in it
2021-03-26 14:39:37 +02:00
Djamil Legato
c45e9bd45e Fixed and enhanced Range field to be Lists compatible (fixes #2062) 2021-03-22 17:59:13 -07:00
Djamil Legato
c61d91c7a8 Fixed issue where Adding a new page and canceling from within Editing would alter the Parent location of the edited page (fixes #2067) 2021-03-22 17:12:37 -07:00
Djamil Legato
43f16f6491 Fixed issue where Add New modal would close if selecting an item outside of the modal window. It is now necessary go through the Cancel button and clicking the overlay won't trigger the closing of the modal (fixes #2089, fixes #2065) 2021-03-18 16:09:32 -07:00
Djamil Legato
6ff6e9b54a Fixed legacy Pages having old modular reference instead of module (fixes #2093) 2021-03-18 15:39:23 -07:00
Djamil Legato
ea64270d9b Include alt text and title for images added to the editor (#2098) 2021-03-18 15:21:53 -07:00
Djamil Legato
c33c033372 Updated changelog (#2092) 2021-03-18 14:53:19 -07:00
Frederik Schubert
11737be3a9 Fixed issue with replacing * in page flex collections (#2092)
Co-authored-by: Frederik <frederik@ferdynator.de>
2021-03-18 14:47:19 -07:00
Matias Griese
1e67bb8011 Fixed error when checking missing log file [#2088] 2021-03-04 15:50:35 +02:00
Andy Miller
a8116b5431 better fix for flexpage height 2021-02-25 10:35:26 -07:00
Mohammad Anbarestany
eacc62e0d5 Update rtl.css (#2083) 2021-02-24 08:37:56 -08:00
Djamil Legato
d962316740 Recompiled JS and update Changelog (#2078) 2021-02-23 10:22:17 -08:00
Mohammad Anbarestany
d87233c630 Support for RTL languages (#2078)
* RTL-Support

* Standard Format

* shorter code

* default Arabic font

* fix for Configuration section

for "system>Assets>Collections" section to support RTL we should change inline style element created by admin.min.js so i've added an if statement to check <body> direction is RTL or not...

* Update rtl.css

* Multi level fix for RTL

in admin config under system>assets there is an input text which you can add child(s) under it... i've added several if statements to check Page direction and put margin-right instead of margin-left for RTL languages... i also wrote an style to override margin-left just in case ;)

* improvements

* fixes

* fix

* fix

* fix

* Update rtl.css

* first complete RTL style 👍

* Faster computation of direction

* Faster evaluation for margin direction (and simplified)

Co-authored-by: Djamil Legato <djamil+github@djamil.it>
2021-02-23 10:16:33 -08:00
Djamil Legato
8d80d0f75e Fixed unnecessary closing bracket cuasing JS error (fixes #2079) 2021-02-22 09:24:33 -08:00
Andy Miller
40286bd46e flex pages admin better uses available space - fixes #3232 2021-02-19 06:48:53 -07:00
Andy Miller
a60b98932a fixed max backups of zero #2070 2021-02-16 12:48:59 -07:00
Matias Griese
10d81d9df1 Merge remote-tracking branch 'origin/develop' into develop 2021-02-11 20:54:49 +02:00
Matias Griese
fb15acc50c Fixed toggleable checkboxes being unchecked in fieldset columns [#2063] 2021-02-11 20:54:10 +02:00
Djamil Legato
2495083aab Removed noscript template, because 2021... 2021-02-10 15:26:17 -08:00
Matias Griese
3dfa8bca9f Fixed changelog button showing up in Info page even if user cannot access it 2021-02-10 15:34:49 +02:00
Matias Griese
a8983a003d Fixed ACL for Configuration tabs [#771] 2021-02-10 15:26:02 +02:00
Djamil Legato
ecc8939e17 Tweaks in handling of uploaded files (#1429) 2021-02-09 10:59:27 -08:00
Stephan Strate
ba193b84cc conditionally add form action to blueprint creation forms 2021-02-09 18:41:03 +02:00
Stephan Strate
4f0c7e552c allow blueprint creation forms action 2021-02-09 18:41:03 +02:00
Andy Miller
dc23997ad0 Ensure preset.css loads last 2021-02-08 17:12:32 -07:00
Matias Griese
d757a36b8c Fixed HTML Entities in titles [#2028] 2021-02-08 19:38:52 +02:00
Karmalakas
a0b0fa0495 Add item at the top if top button is clicked in list field (#2055)
* Add item at the top if top button is clicked in list field

Pretty much title says it all. IMO it makes much more sense, that top button would add item at the top, because if list is long enough, you are not even seeing if something happens when item is added at the bottom. Created this PR because of [the question asked in forum](https://discourse.getgrav.org/t/blueprint-type-list-new-data-on-top-of-array/15254).

So the solution would be either like this PR suggests, or button actions should be configurable via Admin config somewhere.

* Change added item placement for List field

Add field `palecement` property check.

If `top` or `bottom`, both buttons add item to top or bottom.
If `position`, item is added depending on a clicked button position -
  if top button is clicked, item added to top and if bottom button - item added to bottom.

Defaults to bottom

* Revert empty line at EOF
2021-02-06 20:36:28 -08:00
Djamil Legato
4ff373a8b1 Fixed field type range not taking into account legitimate 0 values 2021-01-25 20:29:15 -08:00
Andy Miller
5de805e340 Added special fonts back 2021-01-22 09:42:38 -07:00
Djamil Legato
b8c47c32b3 Added watch.sh for compiling SCSS with native sass compiler 2021-01-20 10:32:24 -08:00
Andy Miller
41305c9d34 Fixes #2022 2021-01-20 11:26:57 -07:00
Matias Griese
5def01f9fe Merge branch 'develop' of github.com:getgrav/grav-plugin-admin into 1.10
 Conflicts:
	CHANGELOG.md
2021-01-12 16:08:22 +02:00
Matias Griese
9c4ad3eaca Fixed evaluating default value in hidden field 2021-01-12 16:07:46 +02:00
Matias Griese
8e157bac5a Fixed taxonomy field not listing existing options in Flex Pages 2020-12-23 21:07:23 +02:00
Matias Griese
a0fce62e31 Regression: Values inside Fieldset do not display [#1995] 2020-12-23 20:23:55 +02:00
Djamil Legato
72116dcbca Fixed notifications that would not be remembered as hidden + various improvements 2020-12-21 15:29:42 -08:00
Djamil Legato
d383680f96 Fixed missed highlight on the selected page in Parents field 2020-12-17 23:28:53 -08:00