Commit Graph

233 Commits

Author SHA1 Message Date
Andy Miller
2d9d71c444 Feature/file upload refactor (#598)
* refactor

* Added support for multiple files

* fixed appearance a bit

* Always store files as full path => obj data

* added some error handling

* Do not go nested when storing file

* Refactored to not need blueprint set in blueprint
2016-05-17 16:46:00 -06:00
Andy Miller
b0ce609c4c escape and lowercase username in all cases #577 2016-05-09 19:29:27 -06:00
Andy Miller
3fd928ac18 Fix forgot/reset password process of sending escaped HTML emails 2016-05-06 13:55:36 -06:00
Andy Miller
50c4b5dc61 fix for username not finding anyone 2016-05-06 13:34:54 -06:00
Andy Miller
c99bedf111 Better error messages for exceptions thrown in obj->validate() #594 2016-05-05 10:35:40 -06:00
Flavio Copes
4afa565382 Fix #563 Invalid argument supplied for foreach 2016-05-05 16:28:56 +02:00
Andy Miller
98a19f01e4 Fixed login/logout message translations. 2016-05-03 13:36:06 -06:00
Flavio Copes
cf72ea93fc Fix passing the correct version property to the json_response 2016-04-29 16:23:45 +02:00
Flavio Copes
ad5aa7588d Fix version in Grav update message 2016-04-29 15:20:45 +02:00
Flavio Copes
45f7665d2d Change user view name 2016-04-27 22:44:42 +02: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
2cc07fe883 Remove leftover return 2016-04-21 09:25:45 +02:00
Djamil Legato
69459ec611 Fixed toggler for stable/testing channel 2016-04-20 15:59:46 -07:00
Flavio Copes
85922f93ac Handle gpm events in Admin (#508)
* Fix removing packages

* npm install "babel-preset-es2015": "^6.6.0"

* Run gulp

* Handle messages in packages install/remove/update procedures
2016-04-20 18:55:58 +02:00
Andy Miller
16d2f0a752 Added new Toggle and Task for switching gpm release 2016-04-15 16:18:02 -06:00
Flavio Copes
927a0f4ad1 Revert "Fix for modular preview not functioning as expected #254"
This reverts commit a2275b8b73.
2016-04-12 14:14:52 +02:00
Flavio Copes
9da5f5595a Return 401 unauthorized and exit if trying to access a file outside the backups folder 2016-04-08 10:49:59 +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
3677c498f9 Fix redirect after switching language in a page exiting context 2016-04-04 11:13:57 +02:00
Flavio Copes
6d9f9a0886 Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-26 18:00:19 +01:00
Flavio Copes
57a7a60efd Avoid returning an error in Admin itself, just in the JSON response
This prevents the error to appear on a subsequent admin page reload
2016-03-19 15:41:46 +01:00
Flavio Copes
1044ffebf1 Show a more meaningful error message if post_max_size is too low to handle a media upload 2016-03-19 11:54:19 +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
6b22932d43 Call GPM::checkPackagesCanBeInstalled() when trying to install/update a package 2016-03-15 19:36:00 +01:00
Flavio Copes
e30a2871e9 Handle errors during install: Install old next-significant-release dependency 2016-03-14 17:52:11 +01:00
Flavio Copes
1da2ce7e8c Detect error while installing packages, show message and cancel button 2016-03-11 15:17:18 +01:00
Flavio Copes
934079fa39 Drop old controller tasks 2016-03-10 22:09:48 +01:00
Flavio Copes
d9ffd603ea More groundwork to allow installing multiple packages at once 2016-03-09 21:19:13 +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
c0f73bf6ed Actually remove a package 2016-03-08 11:37:04 +01:00
Flavio Copes
856a325a17 Add taskPackageDependencies, taskInstallDependenciesOfPackage, taskInstallPackage 2016-03-07 11:33:23 +01:00
Flavio Copes
2417c88ecd Generalize taskRemovePlugin into taskRemovePackage 2016-03-06 11:57:27 +01:00
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