Skip to content

Commit

Permalink
update plugins
Browse files Browse the repository at this point in the history
soraarticle, admin, form, flexobjects, login
  • Loading branch information
fannymugnier committed Mar 5, 2021
1 parent 6262572 commit 7ea533f
Show file tree
Hide file tree
Showing 137 changed files with 9,893 additions and 1,981 deletions.
42 changes: 42 additions & 0 deletions user/plugins/admin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# v1.10.6
## 02/23/2021

1. [](#new)
* Vastly improved support for RTL languages [#2078](https://github.com/getgrav/grav-plugin-admin/pull/2078)
1. [](#improved)
* Flex pages admin better uses available space [#2075](https://github.com/getgrav/grav/issues/2075)
1. [](#bugfix)
* Regression: Fixed enabling/disabling plugin or theme corrupting configuration
* Fixed unnecessary closing bracket cuasing JS error [#2079](https://github.com/getgrav/grav-plugin-admin/issues/2079)
* Fixed wrong language in Admin Tools [#2077](https://github.com/getgrav/grav-plugin-admin/issues/2077)

# v1.10.5
## 02/18/2021

1. [](#bugfix)
* Regression: Fixed fatal error in admin if POST request has `data` in it [#2074](https://github.com/getgrav/grav-plugin-admin/issues/2074)
* Fixed Admin creating empty `user/config/info.yaml` file (the file can be safely removed, it is not in use)
* Fixed ACL for users with mixed case usernames [#2073](https://github.com/getgrav/grav-plugin-admin/issues/2073)

# v1.10.4
## 02/17/2021

1. [](#new)
* Added support to include new page creation modals in other pages by using `form_action` twig variable [#2024](https://github.com/getgrav/grav-plugin-admin/pull/2024)
* Updated all languages from [Crowdin](https://crowdin.com/project/grav-admin) - Please update any translations here
1. [](#improved)
* Removed `noscript` template, because 2021...
* List field: added new `placement` property to decide wether to add new items at the top, bottom or based on the *position* of the clicked button [#2055](https://github.com/getgrav/grav-plugin-admin/pull/2055)
* Ensure admin default CSS styles load **first**, and presets loads **last**
* Tweaked handling of uploaded files [#1429](https://github.com/getgrav/grav-plugin-admin/issues/1429)
* Provide media object and filename in `onAdminAfterDelMedia` event [#1905](https://github.com/getgrav/grav-plugin-admin/pull/1905)
1. [](#bugfix)
* Fixed case-sensitive `accept` in `filepicker` field
* Fixed HTML Entities in titles [#2028](https://github.com/getgrav/grav-plugin-admin/issues/2028)
* Fixed deleting list field options completely, didn't save changes [#2056](https://github.com/getgrav/grav-plugin-admin/issues/2056)
* Fixed `onAdminAfterAddMedia` and `onAdminAfterDelMedia` events always pointing to the home page
* Fixed ACL for Configuration tabs [#771](https://github.com/getgrav/grav-plugin-admin/issues/771)
* Fixed changelog button showing up in Info page even if user cannot access it
* Fixed toggleable checkboxes being unchecked in fieldset columns [#2063](https://github.com/getgrav/grav-plugin-admin/issues/2063)
* Fixed issue with max backups of zero [#2070](https://github.com/getgrav/grav-plugin-admin/issues/2070)

# v1.10.3
## 02/01/2021

Expand Down
17 changes: 11 additions & 6 deletions user/plugins/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,12 @@ public function onAdminDashboard()
*/
public function onAdminTools(Event $event)
{
$lang = $this->grav['language'];
$event['tools'] = array_merge($event['tools'], [
'backups' => [['admin.maintenance', 'admin.super'], $lang->translate('PLUGIN_ADMIN.BACKUPS')],
'scheduler' => [['admin.super'], $lang->translate('PLUGIN_ADMIN.SCHEDULER')],
'logs' => [['admin.super'], $lang->translate('PLUGIN_ADMIN.LOGS')],
'reports' => [['admin.super'], $lang->translate('PLUGIN_ADMIN.REPORTS')],
'direct-install' => [['admin.super'], $lang->translate('PLUGIN_ADMIN.DIRECT_INSTALL')],
'backups' => [['admin.maintenance', 'admin.super'], 'PLUGIN_ADMIN.BACKUPS'],
'scheduler' => [['admin.super'], 'PLUGIN_ADMIN.SCHEDULER'],
'logs' => [['admin.super'], 'PLUGIN_ADMIN.LOGS'],
'reports' => [['admin.super'], 'PLUGIN_ADMIN.REPORTS'],
'direct-install' => [['admin.super'], 'PLUGIN_ADMIN.DIRECT_INSTALL'],
]);

return $event;
Expand Down Expand Up @@ -858,6 +857,9 @@ public function onAdminMenu()
'authorize' => [
'admin.configuration.system',
'admin.configuration.site',
'admin.configuration.media',
'admin.configuration.security',
'admin.configuration.info',
'admin.super'],
'priority' => 9
];
Expand Down Expand Up @@ -1064,6 +1066,9 @@ protected function initializeAdmin()
// Double check we have system.yaml, site.yaml etc
$config_path = $this->grav['locator']->findResource('user://config');
foreach ($this->admin::configurations() as $config_file) {
if ($config_file === 'info') {
continue;
}
$config_file = "{$config_path}/{$config_file}.yaml";
if (!file_exists($config_file)) {
touch($config_file);
Expand Down
Loading

0 comments on commit 7ea533f

Please sign in to comment.