Commit Graph

2083 Commits

Author SHA1 Message Date
Andy Miller
26bb3508ba Merge branch 'release/1.2.0' into develop 2016-09-07 17:01:24 -06:00
Andy Miller
0fa2aedc6c version update 2016-09-07 17:01:13 -06:00
Andy Miller
8dd555e4f9 version update 1.2.0-rc.2 2016-09-06 18:07:14 -06:00
Andy Miller
a1486a6d5a version update for Forms plugin 2016-09-06 17:49:15 -06:00
Andy Miller
4983bd65c2 Forms compatibility 2016-09-06 17:41:23 -06:00
Andy Miller
e108fa3d06 updated Grav version 1.2.0-rc.1 2016-09-06 17:24:35 -06:00
Andy Miller
66cf9516ed updated version 2016-09-06 17:17:10 -06:00
Andy Miller
ee383d834b Changelog updates 2016-09-06 16:58:11 -06:00
Andy Miller
75321d3ca9 Updated vendor libs 2016-09-06 16:54:52 -06:00
Flavio Copes
e7ca469167 Fixed composer dependencies missing error message 2016-09-06 15:42:36 +02:00
Flavio Copes
11666e3329 pagemediaselect is now an extend of filepicker. Add default for folder field. Fill changelog. 2016-09-05 15:12:27 +02:00
Flavio Copes
ee8e3250f9 Fix #754 lowercase plugin name upon search 2016-09-03 11:30:29 +02:00
Flavio Copes
8a39b36603 Filepicker form field (#750)
# What this PR introduces
This PR introduces a `filepicker` field which is a replacement for the `pagemediaselect` field. 

This field loads the files list via AJAX each time it's triggered. This means you can now upload a file via FTP or via Admin and the new file is immediately available to be selected.

Previously, `pagemediaselect` required a page reload to see the newly added files.
--

### Options

#### `accept`

`accept` allows file extensions. For example, to only allow `yaml` and `json` files:

```yaml
accept:
  - .yaml
  - .json
```

By default, any file is listed.

#### `folder`
```yaml
folder: 'user/plugins/testing`
```

folder has been enhanced to allow `self@` as well as `page@:` and `theme@:` prefixes.
Example of usage, assuming we have a blog item at the route `/blog/ajax-upload` (physical location being `user/pages/02.blog/ajax-upload`), with the `page@:` prefix the folder would be:

```yaml
folder: 'page@:/blog/ajax-upload'
```

#### `preview_images`
```yaml
preview_images: true
```

If enabled, shows a preview for the images file types

> ### NOTE: `self@` is not allowed outside of the Pages scope, an error will be thrown. 


## Example usage


```
            header.a_file:
              type: filepicker
              folder: 'user/plugins/admin'
              label: Select a file
```
2016-09-02 18:29:47 +02:00
Djamil Legato
6b34336599 [WIP] Ajax Files Upload (#748)
* Reworked the `file` field. All files get uploaded via Ajax and are stored upon Save

This improves the Save task tremendously as now there is no longer the need of waiting for the files to finish uploading. Fully backward compatible, `file` field now includes also a `limit` and `filesize` option in the blueprints. The former determines how many files are allowed to be uploaded when in combination with `multiple: true` (default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)

* Added support for `accept: [‘*’]` to allow any file type

* Minor tweaks in the comments and messages

* Delete any orphan file when discarding the uploaded files session

* Minor optimization

* Fixed issue with `_json` elements where nested fields merging would get stored in an unexpected way

* Potential fix for wrong order of value in Datetime

* Fixed nested fields for files

* Fixed tmp streams

* Minor cleanup

* Update JSON data when removing a file. Implemented task to remove files that haven’t been saved yet, from the flash object session

* Ensure temporary files are deleted when removing un-saved files from the flash object session

* Fixed wrong reference of HTML file field when clicking on the drop zone area to pick a file

* Added JSON template for pages

* fix a CSS issue in page order

* More CSS fixes

* Trigger file field mutation when adding or removing a file

* Recompiled JS

* Removed twig templates that are no longer needed

* Fixed issue with nested header fields in a page, not properly merging data

* [internal] Fixed issue with collections not capable of handling both param and dot notations at the same time

* Reorganized FileField structure to be more consistent with the other fields

* Added support for dynamically created file fields (ie, autoinitialization on new lists items)

* Added translationable strings for file uploads errors

* Added translasions for all Dropzone available strings

* Changed default values
2016-08-29 11:12:09 -07:00
Djamil Legato
2c07a1f209 Allowing some actions to always reload the page, even when there are changes 2016-08-27 11:45:24 -07:00
Djamil Legato
50268dc78b Fixed beforeunload and preventClickAway event not prompting to offer the choice to stay on the page in case of unsaved changes 2016-08-27 11:01:23 -07:00
Andy Miller
bccaa47544 Better date format guesser 2016-08-26 17:28:55 -06:00
Andy Miller
37ed984989 Updated changelog 2016-08-26 14:32:23 -06:00
Andy Miller
d3efa4226a unified JSON twig templates 2016-08-26 14:32:11 -06:00
Andy Miller
2dc2feca32 Fixed broken page types filtering 2016-08-26 13:45:22 -06:00
Andy Miller
f527af9edb fixed notification note button style 2016-08-26 10:33:14 -06:00
Flavio Copes
8b3f7f73ef Push admin.min.js 2016-08-26 18:20:54 +02:00
Flavio Copes
54b2d16476 Changelog, minified js 2016-08-26 18:14:15 +02:00
Flavio Copes
6c188a222c Fix notifications with html issue in feed 2016-08-26 18:13:10 +02:00
Andy Miller
a472a438e6 fixed up changelog 2016-08-26 09:37:44 -06:00
Andy Miller
252444cfdf updated changelog 2016-08-26 09:33:31 -06:00
Andy Miller
c0c885b318 various notification style fixes 2016-08-26 09:32:44 -06:00
Andy Miller
cdeb11100f Added clear-tmp to clear dropdown 2016-08-25 21:40:37 -06:00
Andy Miller
4c71b38746 minor lang dropdown css fix 2016-08-25 17:32:34 -06:00
Djamil Legato
86c9d33b64 Fixed tmp find resource 2016-08-25 12:44:33 -07:00
Flavio Copes
240dc7a7f3 Translations for session path and custom base url options 2016-08-25 15:52:09 +02:00
Djamil Legato
19799ce2db Updated Selfupgrade and Install tasks to use tmp:// for storing the downloaded packages 2016-08-23 16:35:41 -07:00
Flavio Copes
3170b236d0 Fix #739 avoid requiring admin.super for ajax calls 2016-08-22 14:41:00 +02:00
Andy Miller
e982490f85 lang update for EXTERNAL_URL 2016-08-17 14:19:48 -06:00
Djamil Legato
e15d188270 Better error handling for 500 Internal Server Errors, when Fetch fails. 2016-08-15 13:16:31 -07:00
Andy Miller
3cf84ddf92 Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop 2016-08-15 10:47:22 -06:00
Andy Miller
18c3b3e39f Potential Curl fix for invalid cert errors with News Feeds 2016-08-15 10:45:58 -06:00
Andy Miller
828e1294ec Merge branch 'release/1.1.4' into develop 2016-08-14 10:46:44 -06:00
Andy Miller
6f8c7ff59e version update 2016-08-14 10:46:35 -06:00
Andy Miller
e88a9ea015 Fix for Firefox News Feed dashboard widget 2016-08-12 18:26:29 -06:00
Andy Miller
2e904be833 Merge branch 'release/1.1.3' into develop 2016-08-11 12:40:05 -06:00
Andy Miller
73b089b3ea version update 2016-08-11 12:38:56 -06:00
Andy Miller
6b7f3f3f2d Make use of new list features in media.yaml 2016-08-11 12:36:52 -06:00
Djamil Legato
b6712a057d More lists fixes 2016-08-11 11:27:00 -07:00
Djamil Legato
32c1020bf2 Cherry-picked the new lists implementation 2016-08-11 11:16:33 -07:00
Andy Miller
f95c4957e8 changelog updates 2016-08-11 11:55:31 -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
Flavio Copes
c837942669 Allow translating field description fix #729 2016-08-04 16:18:10 +02:00
Flavio Copes
4a50d2f0e2 Only avoid overwriting files (introduced in b159581156) if avoid_overwriting is set on the field 2016-08-02 17:48:07 +02:00
Flavio Copes
acfe5e5954 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	CHANGELOG.md
2016-08-02 16:23:01 +02:00