Commit Graph

914 Commits

Author SHA1 Message Date
Flavio Copes
ad1a21e44e Drop comment leftover 2017-04-07 20:06:45 +02:00
mbeller-weltenbauer
ae451055f9 Update admincontroller.php (#1053)
check if variable "folder" is set in $input
2017-04-07 20:06:18 +02:00
Frédéric Potvin
1716016f2f Clean temporary package folders on error (#1047)
As requested by @rhukster at https://git.io/vSlWG
2017-04-02 18:46:19 -06:00
Andy Miller
ab01bf178b Fix for Undefined index: file_path error with Direct Install #1043 2017-03-31 13:39:39 -06:00
Andy Miller
7af4d3b767 Added support for user-uploadable avatar 2017-03-29 22:41:24 -07:00
Andy Miller
32d24c0d6d Fix for taskCopy and taskMove 2017-03-28 21:34:32 -07:00
Andy Miller
1809e41fd3 Fix for Page copy #1042 2017-03-28 21:21:07 -07:00
Andy Miller
f5285ec2b9 Fix for hard-coded 1000 in new folder name - https://github.com/getgrav/grav/issues/1386 2017-03-26 19:46:02 -07:00
Andy Miller
306f4cef16 Merge branch 'feature/ordering-refactor' into develop
# Conflicts:
#	themes/grav/css-compiled/preset.css
#	themes/grav/css-compiled/preset.css.map
2017-03-22 12:09:15 -06:00
Andy Miller
bf9dd97aee Allow renaming and reording at the same time 2017-03-21 20:19:35 -06:00
Andy Miller
dab03ac9df Ordering is now working 2017-03-21 15:35:33 -06:00
Andy Miller
5e4a829625 Make filenames more windows-friendly to avoid issues 2017-03-20 13:32:03 -06:00
Andy Miller
1a60f43d3b Properly fixed session delete of files 2017-03-13 17:57:05 -06:00
Andy Miller
b6caeecb0e Fix for not removing Flash object on filesSessionRemove() 2017-03-13 16:05:15 -06:00
Andy Miller
96bba05217 Added Tribly to "official" status 2017-03-10 16:53:01 -07:00
Andy Miller
11850a148f Changed default media field from 150x100 -> 200x150 2017-03-10 12:42:14 -07:00
Andy Miller
137673e6bb Added a task to get childTypes 2017-03-05 17:45:10 -07:00
Flavio Copes
ebf2de5aea Reinstall now uses direct install internally 2017-02-26 20:09:50 +01:00
Flavio Copes
47beb2d5a6 Auto lint 2017-02-26 19:36:01 +01:00
Flavio Copes
c7256134ba [WORK IN PROGRESS] First draft of a Tools menu with direct install (#990)
* First draft of a Tools menu with direct install

* Basic styling

* Translate GPM messages

* Basic frontend validation

* Fix form action path

* Added lang strings for offical_gpm_only toggle
2017-02-22 13:34:21 -07:00
Andy Miller
d832a523c6 Add gpm::directInstall method (#986) 2017-02-21 16:23:09 +01:00
Flavio Copes
0c91ca5757 Added an option to reinstall a plugin/theme already installed #984 2017-02-19 19:16:03 +01:00
Andy Miller
b7bcb1eba9 fixed GPM::Install() 2017-02-17 16:05:00 -07:00
Andy Miller
810a263544 Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2017-02-16 15:03:36 -07:00
Andy Miller
b849f040f1 Moved GPM get updates to standard method 2017-02-16 15:03:30 -07:00
Flavio Copes
2ca6f80e5b Fix issue with validating page when switching language #963 2017-02-13 18:30:45 +01:00
Flavio Copes
b775ff934d Fix removing responsive image from page media re #111 re #952 2017-02-06 18:03:14 +01:00
Flavio Copes
f7401543df Fixed issue admin.super or admin.users users changing the account when saving another user [#713] 2017-01-31 11:11:27 +01:00
Flavio Copes
8ecf367356 Add method to clear the media cache 2017-01-28 19:09:30 +01:00
Flavio Copes
3627e0ec59 Handle removing a media also if it's not a json request
Was not working after
https://github.com/getgrav/grav-plugin-admin/commit/6b343365996ce838759d
80fa3917d4d994f1aeb4
2017-01-28 19:08:58 +01:00
Flavio Copes
4faf0c0b95 Fix #943 allow non admin.super users to change their account information. Allow admin.super and admin.users to change other users information. 2017-01-28 16:48:11 +01:00
Flavio Copes
2c58db3418 Allow to see plugins and themes list without internet connection. Also add a more helpful message in the "add" view. re https://github.com/getgrav/grav/issues/1008 2017-01-22 15:50:37 +01:00
Djamil Legato
81b7dd10c7 Cleanup 2017-01-20 13:55:03 -08:00
Djamil Legato
39ef71f5d2 Fixed issue with downloaded package when installing a testing release 2017-01-19 12:56:58 -08:00
Andy Miller
8b6d97da29 Merge branch 'feature/exit_after_removel_package' into develop
# Conflicts:
#	CHANGELOG.md
2017-01-12 12:00:34 -07:00
Flavio Copes
6a1ee7481a Remove unnneded code, related to ca00a9b150 2017-01-12 19:55:43 +01:00
Flavio Copes
ca00a9b150 Fix #920 bug in deleting a file uploaded with the file field 2017-01-12 19:36:13 +01:00
Andy Miller
78a7d60c82 Fix for processing exiting after removing package so events are not fired on missing plugins 2017-01-11 20:05:07 -07:00
Flavio Copes
964a4f8ea3 Fixed saving the configuration if not admin.super 2017-01-03 10:58:24 +01:00
Flavio Copes
92eb33493e Allow to clear the cache if admin.maintenance, as stated in the docs 2016-12-31 11:21:38 +01:00
Andy Miller
bd87afd3e5 Added several new onAdminAfter...() events for 3rd party interaction 2016-12-07 05:46:43 -07:00
Flavio Copes
a8d8b048bd Fix updating/installing packages from admin 2016-11-24 15:13:47 +01:00
Amélie Turgeon
91bda37957 added 'afterAdminSave' hook (#866)
* added 'afterAdminSave' hook

this event is fired just after the save was correctly completed from Admin plugin

* Change of the new event hook name

consistency oblige, new name is `onAdminAfterSave`
2016-11-19 11:24:54 -07:00
Flavio Copes
63c83d785c Fix #857 login to admin with permission inherited from group 2016-11-08 16:42:57 +01:00
Andy Miller
f361addd60 Feature/admin fragmentation (#856)
* Separated Admin Controller into a generic and extendable Base controller. Added Autoload for properly loading classes

* Implemented custom class loader to force lowercase

* Removed composer autoloader for classes

* Updates

* Ability to pass custom upload URL for files

* Added new onAdminCanSave event for 3rd party plugins

* Moved files upload GC in onOutputGenerated event

* Cleanup

* Moved autoloader so it is always registering

* Fixed onOutputGenerated event location

* Moved `taskRemoveFileFromBlueprint`,  `taskRemoveMedia `, `canEditMedia` methods to admin base controller

* Allow to globally define `blueprint_type` and `file_url_remove` for the file field

* Moved `isMultilang()` into base controller

* Properly generate thumbnails in proportions for file fields

* Simplified execute restrictions with blacklist
2016-11-07 09:54:10 -07:00
Renata
3d829f4d21 Removed the possibility to enumerate the users (#849)
Using the forgot password feature.
2016-11-03 15:20:03 +01:00
Flavio Copes
9697b07aa6 Fix #843 use rawRoute for parent too when saving 2016-10-31 19:23:33 +01:00
Fredrik Ekelund
a42fd33c4f Use Media class to retrieve files in AdminController#taskGetFilesInFolder (#842)
Using the same class that's used to list media when rendering
pages ensures a consistent experience. The goal here was to avoid
listing image alternatives, but retain all the files available
through $page->media()->all()
2016-10-27 11:28:09 +02:00
Fredrik Ekelund
96ac75379f Always delete image alternatives in AdminController#taskDelmedia (#814)
* Always delete image alternatives in AdminController#taskDelmedia

Previously, image alternatives would only be deleted if the base
image wasn't found, and only the first three alternatives would
be removed. This commit changes that, so that all image
alternatives are always deleted when the base image is.

* Remove use of $deleteCount in AdminController#taskDelmedia
2016-10-27 11:12:01 +02:00
Andy Miller
4dbeb5ab57 Added getRouteDetails() method 2016-10-26 17:52:26 -06:00