6688 Commits

Author SHA1 Message Date
Ben Thomson
c6a2fe557c Adjust descriptor for local event 2022-10-11 10:03:31 +08:00
Ben Thomson
90b360348a Change event doc to test new event functionality in Docs plugin 2022-10-11 09:41:13 +08:00
Luke Towers
4a71c759a2
Support child themes referencing their parent theme's localization strings 2022-10-10 16:12:28 -06:00
Jack Wilkinson
1bb81ac889 Switched order of execution 2022-10-07 17:17:54 +01:00
Jack Wilkinson
4b7b864a73
Removed NPX from webpack bin call (#728) 2022-10-07 10:03:57 -06:00
Ben Thomson
893293e825 Add test case for getParentData method in AJAX framework 2022-10-07 14:10:43 +08:00
Ben Thomson
25c8781ce4 Merge branch 'develop' of github.com:wintercms/winter into develop 2022-10-07 11:15:16 +08:00
Ben Thomson
999709a929 Recompile Snowboard 2022-10-07 11:15:10 +08:00
Ben Thomson
a2f8c3d2be Allow for custom AJAX error responses to be passed through handlers 2022-10-07 11:14:56 +08:00
Ben Thomson
9be71ce1a6 Allow detached AJAX request to be called with 2 params
This allows Snowboard.request() to be called with two params, assuming that no element is attached to the request.
2022-10-07 11:13:38 +08:00
Luke Towers
af77cff7b5
Improve IDE knowledge of the PluginBase object 2022-10-06 21:02:26 -06:00
Luke Towers
08785a4a68 Fix support for data-request-parent
Fixes bug introduced in 9637b67c23 that broke support for data-request-parent.
2022-10-06 14:55:58 -06:00
Jack Wilkinson
ef95051b03 Added fix for loading items at the top of the filesystem 2022-10-06 18:02:47 +01:00
Jack Wilkinson
c49562e759 Added early exit if theme directory not exists 2022-10-06 15:49:30 +01:00
Jack Wilkinson
a95b14cdf7 Switched asset url generation to rely on theme assetUrl method 2022-10-06 15:49:02 +01:00
Jack Wilkinson
0a4aeea8b8 Added an assetUrl helper for theme 2022-10-06 15:48:32 +01:00
Jack Wilkinson
21c9b682fc Added initial support for allowing a theme to extend a parent theme 2022-10-06 14:59:48 +01:00
Ben Thomson
1600288d18
Adjust lookup for bootstrap in "winter:test" (#724)
- If no bootstrap is provided in "phpunit.xml", the standard Winter CMS bootstrap is used.
- If a custom bootstrap is provided by the "-b" option, it will be used.
- Finally, the bootstrap specified in "phpunit.xml" will be used.
- Added the ability for relative and absolute paths to be used in "phpunit.xml" for the bootstrap path.
2022-10-03 22:15:00 -06:00
Marc Jauvin
8691f557fd
Fix export test (#722) 2022-10-02 14:36:09 -06:00
Arvis Lācis
75e51fb801
Remove default maxlength value from text fields (#721)
Fixes #680. Originally meant to support the default length of a VARCHAR column in MySQL it has since been rendered more unhelpful than helpful given that the default length is not always 255 and the silent failure mode when copying and pasting content into the field is a detriment to user experience.
2022-10-02 14:34:44 -06:00
Ben Thomson
bee6fb95cc Remove flash messages that are converted to JS flash
This stops the original flash messages from remaining on the page once shown.
2022-10-02 12:08:05 +08:00
Luke Towers
579955501f
Add support for "conditions" column property for relation columns
This adds support for applying conditions to a relation column. Given the following structure:

Entries:
- id
- created_at

EntryData:
- entry_id
- key
- value

You can display the individual EntryData records as separate columns in the list widget by using the following configuration:

```yaml
id:
    label: ID
created_at:
    label: Created at
_entry_field_email:
    label: Email
    relation: entry_data
    conditions: "`key` = 'email'"
    select: value
```
2022-09-28 16:00:26 -06:00
ASWA - Archimede Solutions Webspace Agency
2ba1d1c38c
Fix support for inline-options on checkboxlist form fields (#511)
Credit to @ArchimedeSolutions
2022-09-28 02:20:59 -06:00
Luke Towers
3b09403758 Trigger richeditor change event on the textarea element, not the form.
Related: 83b1350b4f
2022-09-25 23:05:06 -06:00
Luke Towers
83b1350b4f Trigger codeeditor change event on the textarea element, not the form. 2022-09-23 00:37:41 -06:00
Marc Jauvin
7fe03164c1
Fix column preview on Import (#707)
Fixes the following error when previewing a column on Import:

"Call to undefined method League\Csv\Reader::setOffset()"
on line 253 of modules/backend/behaviors/ImportExportController.php
Credit to @alxy
ref. octobercms/october#5629
2022-09-20 10:31:54 -06:00
Ben Thomson
2a4394b690 Allow input overrides to still function
The fixes in 9637b67c23 stopped overridden POST values from working, as these were interpreted as arrayed values. This makes the checkbox and switch inputs stop working, as these have a default "unchecked" value which is then overridden by the "checked" value when checked.
2022-09-20 14:18:02 +08:00
Jack Wilkinson
5e1de39264
Add support for overriding phpunit bootstrap (#664)
Configurable via the boostrap attribute in phpunit.xml
2022-09-19 22:40:23 -06:00
Ben Thomson
e84933775d
Add "mix:run" command (#698)
Allows running of scripts defined in the package.json of a Mix package, through Artisan.
2022-09-17 11:40:00 +08:00
Arvis Lācis
87a0a470d3
Update HTTP links to HTTPS links in comments (#699) 2022-09-16 17:43:19 -06:00
WebVPF
69a604e03e
Improved Russian translation (#700) 2022-09-16 17:42:07 -06:00
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