Commit Graph

165 Commits

Author SHA1 Message Date
Flavio Copes
f700837e92 Introduce the mediapicker field (#1125)
Added a new `mediapicker` form field which allows to select a media from any page
+ 
Provided an option to control how parent select field displays
2017-06-02 16:28:52 +02:00
Andy Miller
3e92bbed73 Use new Utils::getPagePathFromToken() method 2017-05-20 22:21:34 -06:00
Flavio Copes
d9c787681f Drop unused method
Was introduced in
https://github.com/getgrav/grav-plugin-admin/commit/988f4a0389cbd89f402f
d50d298aee88b9d79d71 without actual usage
2017-05-06 16:46:21 +02:00
Flavio Copes
7ff311b8a1 Fix 1039 Default to config file slug if translation is missing, otherwise use translation also in the tab title, not just in the page heading 2017-05-01 19:03:27 +02: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
96bba05217 Added Tribly to "official" status 2017-03-10 16:53:01 -07: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
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
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
Andy Miller
4dbeb5ab57 Added getRouteDetails() method 2016-10-26 17:52:26 -06:00
Djamil Legato
02eeca78e8 Support for Premium Resources (#809)
* Initial premium preparation for licenses and gpm handling

* Premium styling

* Removed unused import

* Synced CSS

* Updated selectize
2016-10-13 10:13:18 -07:00
Flavio Copes
0b42f8e34c Add an onAdminData event to allow plugins to add additional blueprints data 2016-10-04 16:51:41 +02:00
Andy Miller
1ea0a54903 Added new onAdminCreatePageFrontmatter event - https://github.com/getgrav/grav-plugin-admin/pull/781 2016-09-30 08:58:26 -06:00
Andy Miller
5176e5b3ff Use cache/tmp fallback rather than just cache/ 2016-09-08 08:56:48 -06:00
Andy Miller
8a02b72307 Fallback for missing tmp:// stream and unified method 2016-09-07 22:00:57 -06:00
Andy Miller
bccaa47544 Better date format guesser 2016-08-26 17:28:55 -06:00
Andy Miller
18c3b3e39f Potential Curl fix for invalid cert errors with News Feeds 2016-08-15 10:45:58 -06:00
Flavio Copes
988f4a0389 [WIP] Notifications (#599)
Adds a new notifications feature to the Admin plugin. It will now lookup notifications which are set up on getgrav.org and will inform users, and also alert for new updates and provide awareness on various topics.

Also fixes issue with Array field in `value_only` mode, improperly displaying the key when novalue was set, and fixes issue with drag handlers in Array not showing/hiding properly (#950)

Updated FontAwesome to 4.6.3
2016-08-11 19:17:02 +02:00
Andy Miller
7295e2e3ca Fixed up the languages 2016-07-13 17:08:41 -06:00
Flavio Copes
1c19190929 Lint 2016-07-07 18:55:52 +02:00
Flavio Copes
e8ca08ed8d Fix method name 2016-07-07 18:53:37 +02:00
Flavio Copes
64a88c916c Feature: Ability to Login with Email
Thanks to @gsumpster for https://github.com/getgrav/grav-plugin-admin/pull/685

* implemented email-login, close #674
* changed placeholder text
* Fix Utils namespace thing
* Drop use
* Cleanup styling
2016-07-07 18:47:48 +02:00
Flavio Copes
35013859cf Remove unused method 2016-07-04 18:02:24 +02:00
Flavio Copes
c59a8c355f Remove special case of media now that we have types nested under media.types 2016-06-03 10:23:50 +02:00
Andy Miller
1bb97fdea9 Simply fall back to en if no admin language set. - #641 2016-06-02 17:21:34 -06:00
Flavio Copes
45e9e77179 Handle special case of media configuration (#638)
* Handle special case of media configuration

Since it's a list of dynamically generated entries, without parent, we
cannot merge in the post data with the defaults, or the defaults are
always saved, and we cannot remove existing fields

* Correctly handle reading and saving

* Improve implementation
2016-06-02 12:21:35 -06:00
Flavio Copes
e4f128438f Don't try to uninstall admin/form/login/email plugins 2016-05-27 14:41:33 +02:00
Andy Miller
8cd0279b01 Feature/upload improvements (#617)
* various improvements.. needs cleanup

* more progress - supports deeply nested + pages

* Getting close now!

* more progress!

* some cleanup

* use data[_json] to store page-based upload

* Smarter logic to get nested form fields

* some refactoring/cleanup

* Fixed issue with removing multiple files in pages

* Refactor and support `destination: page@:/images` and `destination: self@` syntax for file fields

* Prettifying the upload field

* Handling Files API to better represent the selected files in the input field

* Better plurarl string

* Fixed harcoded height for input field

* revamped CSS!!!

* `fancy: false` turns off fancy styling

* Create folder if not exists

* Add support for @theme/theme@ destination

* Fixed create directory functionality to take into account resolved paths

* Don't allow @self on page to be uploaded to if not created

* added field languages

* css tweaks

* language integration
2016-05-26 14:49:45 -06:00
Andy Miller
a78c017f91 added support for multiple date formats 2016-05-10 16:53:19 -06:00
Andy Miller
710d2c6fd5 Try to guess the format! 2016-05-10 13:32:17 -06:00
Andy Miller
79a49fdcbc Fix for translations not substituting text properly #567 2016-05-06 13:36:16 -06:00
Andy Miller
b5a651eca9 added onAdminRegisterPermissions event 2016-05-04 14:26:27 -06:00
Andy Miller
98a19f01e4 Fixed login/logout message translations. 2016-05-03 13:36:06 -06:00
Andy Miller
a4b50437fd Fix for #551 (visibility toggle on new page not working) 2016-05-03 10:35:11 -06:00
Flavio Copes
33e363affa Merge pull request #524 from getgrav/feature/show-account-page-for-login-acl
Show account page for users with admin.login ACL
2016-04-27 11:48:16 -06:00
Flavio Copes
7128543e8a Fix #500 translate admin login form 2016-04-25 10:18:29 +02:00
Flavio Copes
f81f21e0ae Use scope also in admin registration / login form
BC issue: if using Admin `develop/ 1.1` with Form != latest develop,
the Admin-side registration form (the one that pops up when Admin is
installed but no accounts are found) will not work. Not something users
would stumble upon: only appears when Admin  1.1 it'll be possible to
use config-title@: theme.antimatter.some_config to set the title
dynamically based on a theme config option is installed but it's not
yet configured, and Form is not up to date. When 1.1 will be released,
also the Form plugin will have a newer update that will be installed
automatically.
2016-04-07 13:09:26 +02:00
Flavio Copes
deaeccfffc After login, redirect to the original URL called
Fix an annoying issue in Admin, when loading an inner page
(`/admin/pages/whatever`) and I'm logged out, after login I'm always
sent to the dashboard, while it should bring to the page I called in
the first place
2016-04-01 12:41:40 +02:00
Flavio Copes
a9bb36eb0c Revert "Temporary change - force GPM refresh for admin"
This reverts commit 637637b350.
2016-03-26 18:06:28 +01:00
Flavio Copes
2c00618b87 Handle error when trying to remove a package that other packages depend on. 2016-03-17 15:57:10 +01:00
Flavio Copes
fd6f1691af Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-16 11:46:51 +01:00
Matias Griese
de82a05194 Issue when saving tab-based plugin configuration (#452) 2016-03-16 11:09:48 +02:00
Flavio Copes
637637b350 Temporary change - force GPM refresh for admin
Marked to remove prior to merging the PR
2016-03-15 20:04:56 +01:00
Flavio Copes
6b22932d43 Call GPM::checkPackagesCanBeInstalled() when trying to install/update a package 2016-03-15 19:36:00 +01:00
Flavio Copes
68a183c05c getDependenciesNeededToInstall accepts an array to ease transition to handling multiple packages 2016-03-09 19:40:23 +01:00
Flavio Copes
532093e86d Add getDependenciesNeededToInstall, used by the controller 2016-03-07 11:31:18 +01:00
Flavio Copes
382fd32916 Steps towards deleting dependencies when removing a plugin 2016-03-05 18:46:41 +01:00
Flavio Copes
419ca2181b Extract getPackageFromGPM 2016-03-04 19:20:57 +01:00