Commit Graph

2113 Commits

Author SHA1 Message Date
Andy Miller
f13bd7983d Added new Admin cache_enabled option independent of main site. 2016-09-29 18:14:08 -06:00
Djamil Legato
2930625923 Fixed UI for pagemedia notes when files cannot yet be uploaded (fixes #798) 2016-09-29 08:54:17 -07:00
Andy Miller
a77ac2f5be Added new onAdminTaskExecute() event to better support 3rd party plugin tasks 2016-09-27 18:30:55 -06:00
Djamil Legato
6914ad7999 More dynamic save task detector (internal use) 2016-09-27 14:24:17 -07:00
Matias Griese
8e5720f7b9 Improve multi-site support 2016-09-27 18:21:11 +03:00
Djamil Legato
4cd6b52fb0 Handle errors when a resource fails to install 2016-09-24 21:22:18 -07:00
Djamil Legato
0a2b1d790f New verify peer translations 2016-09-18 18:55:04 -07:00
Djamil Legato
a50e269793 Better error handling for Feed when unable to connect 2016-09-18 16:03:53 -07:00
Flavio Copes
58df17dc71 Commit minified JS from previous commit 2016-09-16 18:08:57 +02:00
Flavio Copes
9ebecb7910 Fix #773 allow filepicker work inside lists, respond to mutation event 2016-09-16 15:19:54 +02:00
Djamil Legato
6712b32bed Fixed docs reference 2016-09-15 17:00:15 -07:00
Djamil Legato
aba43374de Clean up POST keys containing square brackets, allows for regex ranges in routes (fixes #776) 2016-09-15 12:57:28 -07:00
Djamil Legato
0512a7f4f6 Media (Page): Do not extend parent metehod for sending files since Safari and IE APIs for FormData don’t implement delete (fixes #772) 2016-09-14 18:04:29 -07:00
Djamil Legato
8e483f101b Fix for newsfeed widget URI 2016-09-14 16:34:58 -07:00
Flavio Copes
01070a7ef9 Fix changelog message 2016-09-13 15:45:17 +02:00
Flavio Copes
fd8c7889d1 Fix #1034 redirect of page creation procedure when system.home.hide_in_urls is enabled 2016-09-13 13:45:09 +02:00
Andy Miller
838dfe7a65 Merge branch 'release/1.2.2' into develop 2016-09-08 14:56:15 -06:00
Andy Miller
0e2a706c00 version update 2016-09-08 14:55:55 -06:00
Andy Miller
a7b3f7aafe changelog update 2016-09-08 14:55:17 -06:00
Flavio Copes
a86623f432 Fix issue with checking the package dependencies when more than one package is being inspected 2016-09-08 19:37:50 +02:00
Andy Miller
5176e5b3ff Use cache/tmp fallback rather than just cache/ 2016-09-08 08:56:48 -06:00
Andy Miller
1f097a7500 added update styles back 2016-09-08 08:50:25 -06:00
Andy Miller
f119da9f36 Fixed some conflicts 2016-09-08 08:48:29 -06:00
Flavio Copes
76be8eeb11 Update changelog 2016-09-08 13:08:02 +02:00
Flavio Copes
2584004787 Update template.css 2016-09-08 13:06:43 +02:00
Flavio Copes
f3e3233602 Merge remote-tracking branch 'origin/develop' into develop 2016-09-08 13:06:24 +02:00
Flavio Copes
820313161e Fix #767 Add styling for new HTML5 input field types
Fields introduced in
https://github.com/getgrav/grav-plugin-form/commit/a14e28f15105c2e5e6258
afb4fbe72b43a663ebd
2016-09-08 13:06:21 +02:00
Andy Miller
4a309213fd Merge branch 'release/1.2.1' into develop 2016-09-07 22:01:46 -06:00
Andy Miller
0db6cb1312 version update 2016-09-07 22:01:30 -06:00
Andy Miller
8a02b72307 Fallback for missing tmp:// stream and unified method 2016-09-07 22:00:57 -06:00
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