Flavio Copes
419ca2181b
Extract getPackageFromGPM
2016-03-04 19:20:57 +01:00
Flavio Copes
aed9f90e16
Return a flat array of direct dependencies from dependenciesThatCanBeRemovedWhenRemoving, not recurse into packages
2016-03-04 19:20:48 +01:00
Flavio Copes
fecb1b179a
Rename dependencies to dependenciesThatCanBeRemovedWhenRemoving, be more specific. Remove unused parameter
2016-03-04 18:08:30 +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
Flavio Copes
97e17500f4
Add dependencies() method in Admin
...
Generate an array of nested dependencies for a package, optionally
without duplicates
2016-03-01 19:52:24 +01:00
Flavio Copes
4e2be47479
Lint gpm
2016-03-01 19:50:12 +01: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
Djamil Legato
6271eeddff
Added new DateTime field
2016-02-05 23:49:39 -08:00
Andy Miller
f950183a39
typo in use
2016-02-04 15:42:43 -07:00
Flavio Copes
b68a12fd11
Merge branch 'develop' into feature/new-folder-modal
2016-02-04 21:05:00 +01:00
Flavio Copes
0d9a3e4bdc
GravTrait changes in Admin
2016-02-04 20:59:11 +01:00
Flavio Copes
d200f7a72c
🎨 Code hints, docblocks
2016-02-04 20:59:11 +01:00
Flavio Copes
30a08f6203
🚧 Simplify admin translate method
2016-02-04 20:59:11 +01:00
Flavio Copes
5170a9d2c4
🎨 Drop unused code, format, PHPDoc
2016-02-04 20:59:11 +01:00
Djamil Legato
35fa588438
Reworked Admin JS with ES6
2016-02-01 11:27:34 -08:00
Flavio Copes
c62fb6bdb5
Fix #390 Incorrect number of pages being displayed
2016-01-28 14:03:53 +01:00
Matias Griese
d902c9f8b4
Improve support for user defined blueprints in Configuration
2016-01-22 21:52:25 +02: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
Andy Miller
585b83d6a7
Fix for wrong page count - #390
2016-01-14 17:52:11 -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
8e34aa3c30
Drop old logs code
2016-01-10 18:22:06 +01:00
Flavio Copes
53bbbf9fc2
Docblocks / coding style improvement
2016-01-10 17:39:57 +01:00
Andy Miller
45c8d83666
should use implicit toString()
2016-01-09 15:41:03 -07:00
Andy Miller
7804880826
Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
2016-01-09 15:30:50 -07:00
Andy Miller
196b6736ab
more robust .yaml filename checker
2016-01-09 15:30:45 -07:00
Flavio Copes
d493006236
Fix #387 Parent not loaded on admin form on save
2016-01-09 18:59:34 +01:00
Djamil Legato
cb64ded1b4
Also return the path with the new extension appended
2016-01-06 11:56:16 -08:00
Djamil Legato
3c72bcad27
Ensure the downloaded package has ZIP extension, just in case.
2016-01-06 10:55:31 -08:00
Flavio Copes
c913d0adb7
Merge pull request #377 from getgrav/feature/show-custom-configurations
...
Show any configuration item Grav finds under user/config, if there is an associated blueprint provided
2016-01-05 13:35:46 +01:00
Flavio Copes
a7c3401a81
Use Grav::instance
2016-01-04 21:04:12 +01:00
Flavio Copes
ae1b2a074c
Show any configuration item Grav finds under user/config, if there is an associated blueprint provided
...
Also, organize current system/site/info files under a common
config.html.twig. Delete info/site/system twig files. Preserve BC by
setting the template of system/site/info to "config", in the pages.
2016-01-03 17:53:04 +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
Flavio Copes
db0227320a
Check method exists prior to calling meetsRequirements
...
As Grav might not yet have been updated
2015-12-19 20:21:13 +01:00