Flavio Copes
c9b6b01607
Complete remove plugin task. Handle failure.
2016-03-05 20:57:13 +01:00
Flavio Copes
382fd32916
Steps towards deleting dependencies when removing a plugin
2016-03-05 18:46:41 +01:00
Flavio Copes
707a7b71ed
Lint controller
2016-03-05 12:11:13 +01:00
Djamil Legato
f5e1ea01f2
Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
...
# Conflicts:
# themes/grav/css-compiled/template.css
# themes/grav/css-compiled/template.css.map
# themes/grav/scss/template/_editor.scss
# themes/grav/scss/template/_forms.scss
# themes/grav/scss/template/_remodal.scss
# themes/grav/templates/partials/base.html.twig
# themes/grav/templates/partials/dashboard-statistics.html.twig
2016-03-02 11:13:06 -08:00
Djamil Legato
aa73b82832
Implemented Preview button and states abstraction for toolbar
2016-03-01 19:00:29 -08:00
Gavin Roberts
772172821b
Updated taskSave to ensure route is prefixed with a forward slash
2016-02-27 07:54:17 +00:00
Djamil Legato
eed783e1ed
Merge branch 'develop' into feature/es6_revamp
2016-02-18 15:49:58 -08:00
Flavio Copes
3efbf05bea
Clear cache after adding new folder, fix #393
2016-02-12 10:17:19 +01:00
Flavio Copes
c2a1a7b192
Lint
2016-02-12 10:17:19 +01:00
Djamil Legato
22055f8a19
Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
...
# Conflicts:
# languages/en.yaml
# themes/grav/css-compiled/template.css
# themes/grav/css-compiled/template.css.map
# themes/grav/templates/forms/fields/tabs/tabs.html.twig
2016-02-09 13:04:16 -08:00
Flavio Copes
b68a12fd11
Merge branch 'develop' into feature/new-folder-modal
2016-02-04 21:05:00 +01:00
Djamil Legato
35fa588438
Reworked Admin JS with ES6
2016-02-01 11:27:34 -08:00
Matias Griese
77639e71cf
Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
...
# Conflicts:
# classes/controller.php
2016-01-21 09:51:35 +02:00
Matias Griese
0424975657
Improve type hints
2016-01-21 09:46:38 +02:00
Flavio Copes
08135ee843
Fix PHP error happening when uploading file without extension if the JS dropzone uploader is configured to allow empty file extensions
2016-01-16 18:49:42 +01:00
Flavio Copes
f068b48fce
Don't reveal Grav filesystem path when trying to delete non-existing images
2016-01-16 18:30:26 +01:00
Flavio Copes
d5dea81d94
Fix issue when adding folders to subfolders. Also fix when ordering is < 10, and fix when there's no other folder
2016-01-16 17:22:08 +01:00
Flavio Copes
1602f2c870
Fix #396 Check frontmatter for validity prior to saving
...
If saving in Expert mode and the frontmatter field contained invalid
yaml, the page content was changed to the error description.
Instead, avoid saving the page and return an error in the Admin
interface.
2016-01-16 16:24:38 +01:00
Flavio Copes
b775dc189a
Drop unused code
2016-01-15 12:57:17 +01:00
Flavio Copes
0f3101bc95
Save folder controller task
2016-01-15 12:57:09 +01:00
Andy Miller
2725c14334
Added a new onAdminSave event right before saving an object - #384
2016-01-14 17:59:00 -07:00
Flavio Copes
2a36608b59
When no route field is added to a page blueprint, just put it as a root page instead of throwing an error
2016-01-14 00:22:26 +01:00
Flavio Copes
53bbbf9fc2
Docblocks / coding style improvement
2016-01-10 17:39:57 +01:00
Flavio Copes
d493006236
Fix #387 Parent not loaded on admin form on save
2016-01-09 18:59:34 +01:00
Flavio Copes
52ae7bcf80
Fix redirect after saving page
2015-12-29 19:31:02 +01:00
Flavio Copes
c1af35e9ac
Fix for change in 3eb2a5664a
...
Handle in Admin the logic to strip home from Page routes and urls
(optional)
2015-12-29 19:08:48 +01:00
Flavio Copes
9e0a28cd8b
Allow to set the nonce for a POST action in the query url too
2015-12-29 16:06:57 +01:00
Flavio Copes
0eb87ede66
Fix redirect in deleting media from file field. Better format for file field code
2015-12-22 14:06:23 +01:00
Flavio Copes
b76b79e611
Improve File input field for Admin
...
Add removing files from a blueprint to Admin, moved from Pro. Drop
`showuploaded`, `ispluginconfig`, `showuploadedpreview` options from
the File field. Added a "blueprint" option to specify the field name
and type, e.g. `plugins.admin` or `themes.antimatter`. Dropped the
multiple option, as it'd need more handling that now it's not there.
2015-12-21 16:22:04 +01:00
Djamil Legato
fbe778dbae
Prevent upgrade of Grav if PHP min requirement is not met. Gracefully fail with additional information
2015-12-18 13:42:57 -08:00
Flavio Copes
64048e4fff
cleanFilesData now returns just the filename
2015-12-16 15:14:46 +01:00
Flavio Copes
135df6720e
Add files processing to the admin plugin, to be used by the file fileds
2015-12-16 10:20:34 +01:00
Flavio Copes
a5cbf22d77
strtolower the username prior to calling authenticate
2015-12-11 17:25:55 +01:00
Flavio Copes
71e1fdfa7b
Return "Invalid Security Token" instead of "Unauthorized". Also, return that string for AJAX calls
2015-12-03 17:44:56 +01:00
Flavio Copes
3c45f97264
Remove noreply@getgrav.org default address
2015-12-02 18:42:33 +01:00
Flavio Copes
48f6da2bc3
Handle case where the email plugin "from" email is not configured
2015-12-02 18:11:24 +01:00
Andy Miller
586c5bfa3c
Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
2015-12-01 11:02:47 -07:00
Andy Miller
65270c38e3
set enabled/disabled to true/false
2015-12-01 10:57:55 -07:00
Flavio Copes
e82c347508
Merge branch 'develop' into feature/integrate-with-admin-pro
2015-11-30 15:58:40 +01:00
Andy Miller
4372f643c6
Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
2015-11-29 21:22:27 -07:00
Andy Miller
a2275b8b73
Fix for modular preview not functioning as expected #254
2015-11-29 21:22:22 -07:00
Flavio Copes
5591ae6836
Merge branch 'develop' into feature/integrate-with-admin-pro
2015-11-26 12:14:27 +01:00
Flavio Copes
518fef3309
Fix saving after latest changes (Themes class was not used in the controller, so loaded for nothing)
2015-11-25 18:35:45 +01:00
Flavio Copes
31431dc73c
Merge branch 'develop' into feature/integrate-with-admin-pro
2015-11-24 19:45:26 +01:00
Andy Miller
925fe14d7b
Fix issue where _redirect: /plugins was getting stored in the YAML on enable/disable of plugins
2015-11-23 20:00:45 -07:00
Flavio Copes
3d2966c181
Last nonce fixes
2015-11-22 17:41:49 +01:00
Flavio Copes
16d745b377
Merge branch 'develop' into feature/integrate-with-admin-pro
2015-11-21 16:40:18 +01:00
Flavio Copes
59fd550136
Add nonce to backup download link
2015-11-20 20:27:18 +01:00
Flavio Copes
1f6bda7d75
Add nonce verification to all get requests with the task param
2015-11-19 22:54:17 +01:00
Flavio Copes
1c8a33f7a9
Make sure we don't process the nonce as a Data value
2015-11-19 19:17:48 +01:00