6507 Commits

Author SHA1 Message Date
WebVPF
3dc98efbea
Improved Ukrainian translation (#701) 2022-09-16 16:54:09 -06:00
Marc Jauvin
8f2a468041
Fix plugin:remove argument name in winter:fresh command (#694) 2022-09-16 10:31:47 +08:00
Ben Thomson
9637b67c23
Correctly handle arrayed POST data in AJAX calls (#689)
Uses FormData object to handle arrayed POST data.

Fixes https://github.com/wintercms/winter/issues/683.

Refs:
- https://github.com/wintercms/winter/issues/683#issuecomment-1244682887 (also fixed)
- a4cfd0d23f
2022-09-16 10:00:43 +08:00
Ben Thomson
581079a20c Add ability to define local config overrides in DataConfig
This will enable the ability to override data attribute config values on the JavaScript side.

This can be useful for per-instance overrides derived from other frontend code, and saves developers having to override data attributes using JavaScript.
2022-09-16 09:37:35 +08:00
Ben Thomson
2a13faf999
Harden Snowboard (#687)
- The Snowboard and PluginLoader objects are now frozen and cannot be modified.
- Added a Proxy in front of Snowboard to handle plugin loading
- Plugin "Snowboard" instances are blocked from running certain methods
- Update tests to check hardening
2022-09-13 09:04:16 +08:00
Marc Jauvin
e695dd837c
Apply imageWidth/imageHeight to the image itself, not the whole widget (#685)
Fixes an issue where the imageWidth constraints were smaller than the field itself which would cause the entire field to shrink in size instead of just the image itself. Fixes #684
2022-09-12 10:55:37 -06:00
hecc127
cc4346ee9f
Minor fix on numberrange filter (#682) 2022-09-07 16:00:16 -06:00
Robert Alexa
951290d256
Enforce elements beginning with # or . in accordance to the documentation (#681)
As per documenation, key names must start with a # or .

However there was no validation to this, which in turns translating to elements unexpectedly being replaced by random keys. One such example is title replacing the page <title>. You could test for example with a div key and see everything fall on itself :)

The way this was discovered was by using the Crop and Insert functionality which upon inserting the image replaces the page title with the name of the file inserted.

The PR is making changes to 2 systems, the old one which is used by the above and also the Snowboard system which I have learnt to be the new way.
2022-09-07 10:57:28 -06:00
Ben Thomson
a795659fc8
Clean up of base plugin test case class (#672)
- Deprecate "runPluginRefreshCommand" method and replace with "instantiatePlugin", to better describe the functionality within.
- Use namespace to guess plugin being detected, falling back to path if there is no namespace given - this fixes testing for symlinked plugins.
- Add type hints and return types for most methods
2022-09-06 02:37:51 -06:00
Romain 'Maz' BILLOIR
e5fa59efab
Add richeditor settings form french translation (#674) 2022-09-06 00:39:00 -06:00
Romain 'Maz' BILLOIR
1a2fe34bcd
Fix richeditor html custom styles field comment translations (#675) 2022-09-06 00:38:20 -06:00
Ben Thomson
63133ee41b Fix branch deletion in subsplit 2022-09-06 11:38:16 +08:00
Ben Thomson
51cb6c75fd Print out ref to debug branch deletion 2022-09-06 11:35:06 +08:00
Robert Alexa
f2f58935b2
Fix issue where labels are not toggling the switches (#676) 2022-09-05 13:43:20 -06:00
Robert Alexa
c42e5399cd
Increase width of MediaManager Crop & insert inputs (#673) 2022-09-05 12:44:16 -06:00
Ben Thomson
c90597fba5 Remove create branch task - not needed with the "push" handling it 2022-09-05 13:22:49 +08:00
Ben Thomson
9c02a1d2ef Further debugging 2022-09-05 13:22:06 +08:00
Ben Thomson
845dfcf37b Debug subsplit on deleting branch 2022-09-05 12:08:33 +08:00
Ben Thomson
0edd087d89
Merge pull request #671 from wintercms/wip/test-subsplit-branch
Add README and licenses to module sub-splits
2022-09-05 11:55:25 +08:00
Ben Thomson
a283413bc5 Add licenses 2022-09-05 11:53:22 +08:00
Ben Thomson
886d38dc26 Add simple notes about subsplit repos 2022-09-05 11:48:56 +08:00
Ben Thomson
a7c54ad7fe Add other actions for subsplit 2022-09-05 11:37:36 +08:00
Ben Thomson
9d3ad152d8 Add test push split 2022-09-05 11:33:50 +08:00
Ben Thomson
ae6e4741f1 Fix variables 2022-09-05 11:29:09 +08:00
Ben Thomson
15c1752886 Fix comparisons 2022-09-05 11:27:25 +08:00
Ben Thomson
321fc3d9d5 Add action 2022-09-05 11:26:03 +08:00
Luke Towers
c4d20a1560 Appeasing the mighty linter 2022-09-04 13:24:33 -06:00
Luke Towers
6e13c7b4ff Code style cleanup 2022-09-04 13:08:12 -06:00
Luke Towers
fb81fa5a1f Support ignoring specific packages during the mix:install process
Very useful for projects using mix for their own plugins that would like to avoid running any mix packages provided by either the Winter core or other plugins that the project owner doesn't control.
2022-09-04 00:19:38 -06:00
Luke Towers
c32ba82eae Code review and switch to using handleCleanup() method now provided by base Winter Storm command class. 2022-09-04 00:18:28 -06:00
Yigit Koc
2319fc9210
Fix support for Winter Mix commands on Windows (#624)
Includes handling of Windows interrupt/break signals in Powershell to correctly cleanup when terminating the Mix commands early.

Co-authored-by: Ben Thomson <git@alfreido.com>
2022-09-04 11:19:54 +08:00
Robert Alexa
3787bad410
Add support for input range (#668)
Co-authored-by: Luke Towers <github@luketowers.ca>
2022-09-03 11:18:27 +08:00
vllvll
1d5bf6b233
Allow "0" as a search term (#669) 2022-09-02 08:51:14 -06:00
Hendrik Erz
c2b44bea2c
Pass autogenerated admin password as the default during winter:install (#665)
Also enables the use of `admin` as a password during the seeding process, not that it would be a good idea to use it.
2022-08-31 15:37:34 -06:00
Luke Towers
707e8f61f0
Don't use type submit on update pages
Type = submit causes the form to be submitted if the enter key is pressed in non-multiline fields.
2022-08-31 10:22:16 -06:00
Luke Towers
6e1862f0d0
Don't use submit buttons on create pages
Type = submit causes the form to be submitted if the enter key is pressed in non-multiline fields.
2022-08-31 10:21:59 -06:00
AIC BV
8a46279880
Properly centre list-icon in filelist widget (#660) 2022-08-25 11:11:26 -06:00
AIC BV
d33a3de89d
Fix recordfinder button icon alignment (#661) 2022-08-25 11:09:57 -06:00
Luke Towers
e4fb509336
Merge pull request #656 from wintercms/wip/s3-stream
Added support for extending upload systems to allow for streaming direct to S3
2022-08-24 21:20:58 -06:00
Luke Towers
46c7893cc3 Update frontend event names 2022-08-24 21:12:57 -06:00
Luke Towers
1013f7691a Add note for stream_uploads flag on S3 disks 2022-08-24 19:14:17 -06:00
Luke Towers
4fc736790a Fix support for getting URLs to uploaded files 2022-08-23 21:48:51 -06:00
Luke Towers
b58af6a313 Fix issues when processing uploads 2022-08-23 20:45:45 -06:00
Luke Towers
461549e733 Compile JS 2022-08-23 20:45:28 -06:00
Luke Towers
f758ca5a37 Make the UploadableWidget more configurable
Adds the following methods to the UploadableWidget trait to make it more portable / configurable.
- uploadableGetDisk()
- uploadableGetUploadPath()
- uploadableGetUploadUrl()
2022-08-23 15:01:20 -06:00
Luke Towers
3ab0dc68c3 Add stream_uploads S3 disk config option to enable streamed uploads 2022-08-23 15:00:05 -06:00
Luke Towers
bbca30e34a Merge branch 'develop' into wip/s3-stream
* develop:
  Revert "Fix default value for taglist formwidget in relation mode"
  Fix issue when saving file model related fields
2022-08-23 13:58:51 -06:00
Luke Towers
6ff502f404
Revert "Fix default value for taglist formwidget in relation mode"
This caused an issue with taglists where existing relation values were being converted into their IDs instead of the actual nameFrom value. 

If Post belongsToMany Authors and the following configuration is used:
```yaml
authors:
    label: Authors
    type: taglist
    mode: relation
    separator: comma
    customTags: true
    nameFrom: full_name
```
Then loading a form with the authors relation already set would cause the ID of the authors to be displayed in the field instead of the full name and would cause issues when attempting to save the form.
2022-08-23 12:47:54 -06:00
Luke Towers
0244745a96 Fix issue when saving file model related fields 2022-08-23 10:17:23 -06:00
Luke Towers
a017d6657d Revert public to protected, not necessary at this point in time 2022-08-22 16:50:43 -06:00