5667 Commits

Author SHA1 Message Date
Luke Towers
435179061f
Add missing import 2022-10-26 10:45:37 -06:00
Luke Towers
ef7a0b7353 Merge branch 'develop' into wip/child-theme
* develop:
  Switch from using Request::getBasePath() to Url::asset() (#742)
2022-10-26 10:29:30 -06:00
Jack Wilkinson
6b07509e7c
Switch from using Request::getBasePath() to Url::asset() (#742) 2022-10-26 10:28:48 -06:00
Luke Towers
3dccee54c7
Coding style fix 2022-10-26 02:29:38 -06:00
Luke Towers
2b140f449c
Improve databaseLayerEnabled() check 2022-10-26 02:28:35 -06:00
Luke Towers
5cee4bfcb7 Merge branch 'develop' into wip/child-themes-luke
* develop:
  Set pivot data when initially syncing the relationship (#739)
  Added CLI signature to mix:list command
  Fix Navigation Manager unit test
2022-10-26 01:28:41 -06:00
Luke Towers
e9739361bb
Set pivot data when initially syncing the relationship (#739)
Also performs the sync with model instances rather than just raw IDs to support relationships with a custom relatedKey set (the key on the related model's table that is stored on the pivot table to connect the relationship, normally just the primary key but can be anything).
2022-10-26 01:24:52 -06:00
Luke Towers
dd479281cd
Added CLI signature to mix:list command 2022-10-26 01:00:38 -06:00
Ben Thomson
98c78bdbf1 Fix Navigation Manager unit test
The Singleton changes introduced to Storm (ca5959495b) that bind singletons to the app means that in unit tests, we will need to re-initialise any scope we need for tests, as the app is cleared upon each test case being run.
2022-10-25 17:33:14 +08:00
Luke Towers
83420ebc9b Merge commit '966edea734a0e330f19ebe2547a1332ed39cb907' into wip/child-themes-luke
* commit '966edea734a0e330f19ebe2547a1332ed39cb907':
  Set pivot data when initially syncing the relationship
  Update jobs tables to support Laravel 9 (#730)
  Add migrate to list of protected commands (#733)
  Add "Send password reset email" button to backend users update page (#723)
  Adjust descriptor for local event
  Change event doc to test new event functionality in Docs plugin
  Removed NPX from webpack bin call (#728)
  Add test case for getParentData method in AJAX framework
  Recompile Snowboard
  Allow for custom AJAX error responses to be passed through handlers
  Allow detached AJAX request to be called with 2 params
  Improve IDE knowledge of the PluginBase object
  Fix support for data-request-parent
2022-10-24 14:55:46 -06:00
Luke Towers
966edea734
Set pivot data when initially syncing the relationship
Also performs the sync with model instances rather than just raw IDs to support relationships with a custom relatedKey set (the key on the related model's table that is stored on the pivot table to connect the relationship, normally just the primary key but can be anything).
2022-10-24 12:10:13 -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
222b60b29b
Added file detection allowing per file based theme overrides 2022-10-19 09:42:49 +01:00
Luke Towers
0a9f21d4bf
Avoid Twig cache conflicts when running multiple themes
Related: a18e3ed112
2022-10-18 22:20:47 -06:00
Luke Towers
a18e3ed112
Remove unintentional debugging statement 2022-10-18 22:17:11 -06:00
Luke Towers
527fa69a6e
Avoid cache conflicts when running multiple themes
Instead of using 4 characters split across two folders for avoiding cache conflicts just use the relative path to the file directly. Also makes it easier to find files in the cache when debugging
2022-10-18 22:16:40 -06:00
Luke Towers
991717a96f
Add initial support for child themes referencing combined assets in parent themes 2022-10-18 21:45:43 -06:00
Suhas P R
2fc9997542
Add "Send password reset email" button to backend users update page (#723) 2022-10-13 03:35:23 -06:00
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