2477 Commits

Author SHA1 Message Date
Ben Thomson
07e3a24048 Recompile 2022-11-09 16:40:13 +08:00
Ben Thomson
9e03527c04 Add checkbox field 2022-11-09 16:12:34 +08:00
Ben Thomson
f2a8233b56 Fix focus state, add field types, tweaks 2022-11-09 15:59:31 +08:00
Ben Thomson
9622024669 Merge branch 'develop' into wip/inspector-rewrite 2022-11-09 10:03:23 +08:00
Ben Thomson
8f2d2c7f53 Allow Snowboard debugging to be controlled independently
Adds the "develop.debugSnowboard" config option to enable to disable Snowboard debugging, overriding the default behaviour in following the app debug mode.
2022-11-09 09:59:07 +08:00
Ben Thomson
5a539a9332 Recompile 2022-11-08 17:10:05 +08:00
Ben Thomson
9c8d8b4270 WIP secondary form, field inputs 2022-11-08 17:09:55 +08:00
Ben Thomson
e539aa7eff Force special text fields to always appear as text fields 2022-11-08 10:59:57 +08:00
Ben Thomson
fabfd3186b Adjust way configuration is read for an Inspector widget
This should be backwards compatible in that any classes who have `onGetInspectorConfiguration` methods will still use their overridden method, but for new applications, they can now use an `inspector.yaml` file within the class name for the inspector, or the controller itself.

It should also support the old `configuration` based array structure, as well as the new one without this key.
2022-11-08 10:59:36 +08:00
Ben Thomson
7f6935b227 Add tooltip support, add hover effect 2022-11-07 16:41:08 +08:00
Ben Thomson
b814ae58f2 WIP initial field functionality and management 2022-11-07 14:11:20 +08:00
Ben Thomson
ef9a94ace6 Linting, renaming base UI elements 2022-11-07 12:52:30 +08:00
Ben Thomson
c17fe627fa Add linting command 2022-11-07 12:45:37 +08:00
Ben Thomson
b5d753da82 Fix build 2022-11-07 11:20:24 +08:00
Ben Thomson
375cfb67f5 Merge remote-tracking branch 'origin/develop' into wip/inspector-rewrite 2022-11-07 11:02:24 +08:00
Jack Wilkinson
cdd9c6a433
Show required indicators on checkbox fields (#754) 2022-11-06 10:54:07 +08:00
Ben Thomson
d5923bddfd
Allow component assets to be mirrored by "winter:mirror" command 2022-11-04 15:15:41 +08:00
Luke Towers
dd479281cd
Added CLI signature to mix:list command 2022-10-26 01:00:38 -06:00
Eric Pfeiffer
dc70c90d3b
Update jobs tables to support Laravel 9 (#730)
Updates `failed_jobs` table to add missing `uuid` column. This also updates the `payload` and `exception` columns to be inline with the default Laravel migration.
2022-10-19 23:01:16 -06:00
Luke Towers
a52b466e8e
Add migrate to list of protected commands (#733)
Prevents issues with unelevated plugins that expect the database to exist always.
2022-10-19 18:10:49 -06: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
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
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
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
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
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
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
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