6724 Commits

Author SHA1 Message Date
AIC BV
f986a5691f
Further tweaks to the fileupload thumbnail styles (#991)
Co-authored-by: Luke Towers <github@luketowers.ca>
2023-10-14 12:37:55 -06:00
Marc Jauvin
10b55d8384
Fix issue when page has no components (#993)
Triggered when getComponentProperties() called on a page with no components present.
2023-10-14 12:25:33 -06:00
AIC BV
751545f092
Fix fileupload thumbnail preview (#985)
Avoids weird cropping / stretching issues.
2023-10-10 08:51:59 -06:00
Marc Jauvin
2bd7cf290e
Hide toolbar when no content available (#983) 2023-10-08 02:27:20 -06:00
Luke Towers
cfb8cdfc06 Add methods to append / prepend datasources to an AutoDatasource instance
Used by the Blocks plugin to avoid nesting an autodatasource inside of another autodatasource.
2023-09-26 20:19:48 -06:00
Ben Thomson
f01103ad0b
Add Frostbyte Foundation backing 2023-09-26 11:17:29 +08:00
andyhethers
f731cbadc8
Add indexes to sessions table (#978)
Refs: 113ade3d55
2023-09-25 10:11:00 -06:00
Luke Towers
23ba829f19 Stop RichEditor from firing unnecessary change events
Fixes https://github.com/wintercms/wn-pages-plugin/issues/35
2023-09-20 22:22:18 -06:00
Arvis Lācis
c0065747e8
Updated Latvian translations (#975) 2023-09-16 14:36:25 -06:00
Luke Towers
c714d80b22
Fix namespace 2023-09-16 01:21:08 -06:00
Luke Towers
cf03a55ab4
Cache bust asset URL generation per host / scheme combination 2023-09-15 11:08:40 -06:00
Ben Thomson
090562a5ea
Share variables shared via View::share() with Twig templates (#969)
Fixes #630

This allows global variables populated by the View::share('name', 'value') method to be used in Twig templates. The values will only be populated if they have not been specified as a global previously, to prevent overriding system globals such as this.page. It will also allow the pages themselves to still override the values if need be.
2023-09-06 21:25:06 -06:00
Luke Towers
0aaefeb817
Improve support for BackedEnums in backend lists
See also 32f25ef755
2023-09-04 00:35:21 -06:00
Luke Towers
32f25ef755
Improve support for BackedEnums 2023-09-02 19:47:53 -06:00
Luke Towers
ca85e3c491
Don't include null results in CmsObject::listInTheme() 2023-08-25 14:34:28 -06:00
Ben Thomson
6c074473d3
Fix deprecation in backend DB seeder
The "${var}" variable format inside strings is deprecated as of PHP 8.2.
2023-08-25 08:21:11 +08:00
Luke Towers
5a2e397348 Don't fallback to app.develop for develop.debugSnowboard, disable by default. 2023-08-24 14:02:42 -06:00
Luke Towers
cf4cb1ce2b Fix issue with styling for nested repeaters under a repeater in grid mode 2023-08-24 13:59:20 -06:00
Luke Towers
40a23e4f34 Add "refresh" button to the RelationController 2023-08-14 12:57:39 -06:00
Luke Towers
eeb71496d8 Add support for scrollPastEnd on the codeeditor FormWidget 2023-08-13 15:04:12 -06:00
Luke Towers
a394f3f8bf
Support limit property on list column relation value queries 2023-08-13 11:43:14 -06:00
Luke Towers
e8a1285ff3 Fix User Impersonation notice styles
The LESS files weren't included in 857d42101e for some reason.
2023-08-07 22:43:44 -06:00
Luke Towers
c95b425a02
Improve error reporting of invalid Twig extensions 2023-08-04 20:12:53 -06:00
Marc Jauvin
6d641af3be
Allow extending the default relationcontroller modal footers (#954) 2023-08-04 16:50:42 -06:00
Luke Towers
a43e97afec
Store MediaManager view preferences as a UserPreference
This persists the user's selection of sort method, sort direction, and view mode to their user preferences so that they retain their view preferences across sessions. The selections are keyed by the widget's alias, which effectively out of the box means that the main mediamanager instance and most if not all mediafinder popup widgets will have separate settings for this.

Implemented from user feedback complaining about the minor annoyance having to switch to sorting by the Last Modified Desc every time they opened the media manager.
2023-08-04 00:12:55 -06:00
Ben Thomson
6cec80d950
Recompile Snowboard 2023-08-02 16:17:34 +08:00
Ben Thomson
d792becc1d
Allow request to disable stripe loader
Set the "stripe" option to false in the request options.
2023-08-02 16:17:05 +08:00
Ben Thomson
43594b4103
Defensive programming tweaks for some Snowboard extras
Fixes some intermittent errors with certain requests - mainly JS-driven requests that have no element attached.
2023-08-02 16:16:30 +08:00
Ben Thomson
02f16acf16
Resolve promise if "beforeUpdate" event is cancelled
This provides a way to cancel the updating of partials, but still allow the rest of the request lifecycle to proceed.
2023-08-02 16:15:37 +08:00
Luke Towers
0db059db56
Fix allowed types for Repeater Form configuration
System\Traits\ConfigMaker() is used to process the input provided to this property.
2023-07-30 13:35:20 -06:00
Luke Towers
32ea11837c
Add Ringer paid support link 2023-07-28 14:16:48 -06:00
Marc Jauvin
a32b6b7cae
Use localization strings for dropdown-like field options. (#910)
Documented by https://github.com/wintercms/docs/pull/133
2023-07-27 11:21:24 -06:00
Romain 'Maz' BILLOIR
71479dd51d
Put mail template style tags in the head (#951) 2023-07-26 11:17:02 -06:00
Marc Jauvin
646621cee8
Apply filterFields before saving the form (#927) 2023-07-25 15:04:43 -06:00
Ben Thomson
529ded7cb6
Fix URL regex for detecting absolute URLs in Snowboard URL utility
The previous iteration broke if someone was using a single domain (ie. "localhost")
2023-07-24 10:17:45 +08:00
Ben Thomson
842db82b99 Update block language in default settings 2023-07-19 20:59:28 +08:00
Luke Towers
725306c7ef Use the new Url().asset() helper for loading snowboard extras styling 2023-07-18 15:13:08 -04:00
Luke Towers
4566d8a15c Typo fix and recompile snowboard assets 2023-07-18 14:53:58 -04:00
Luke Towers
49f69e706a Merge branch 'develop' of github.com:wintercms/winter into develop 2023-07-18 14:21:39 -04:00
Luke Towers
1890091565 Added support for Asset URLs in Snowboard
- Added url().asset() method to the Url Snowboard plugin
- Switched the AssetLoader Snowboard plugin to use url().asset()
2023-07-18 14:21:26 -04:00
Ben Thomson
7ad522fc89
Add support for "grid" repeater (#926)
By setting "mode" to "grid" in the repeater config, the repeater will be formatted as a grid and will add items horizontally, crossing to a new row when the "columns" amount is met.

Docs: https://github.com/wintercms/docs/pull/134
Refs: https://github.com/wintercms/wn-blocks-plugin/pull/17
2023-07-17 20:02:09 +08:00
Luke Towers
7eba7e7b0a Fix type conflict 2023-07-14 20:24:20 -06:00
Luke Towers
cd2d769402 Code tidying for console commands
Also switches theme:list, plugin:list, and mix:list to output nicely formatted tables.
2023-07-14 16:41:48 -06:00
Luke Towers
5b297aeb28 Use new hasDatabaseTable() helpers 2023-07-14 15:31:21 -06:00
Luke Towers
433d1bc7a0 Code tidying 2023-07-14 14:54:54 -06:00
Luke Towers
71fcf8eef9 Limit plugins loaded for CLI requests when database is configured but not initialized yet
Related: octobercms/october#3208. This issue surfaces when deployment tools attempt to run various commands not already protected (i.e. vapor:health-check) before running any migrations, which causes issues if plugins attempt to access the database during their registration or booting process.

In theory we could also apply this logic to HTTP requests, however it is generally easier to see and handle the reported exception of the table being missing in an HTTP context, so it's acceptable to limit this protection to the CLI.

As a reminder, plugins making use of the $elevated permissions are responsible for defensive measures to reliably operate in potentially unstable states of the application.
2023-07-14 14:51:00 -06:00
Luke Towers
4441fcfbd0 Minor code tidying 2023-07-14 14:45:41 -06:00
Luke Towers
8c0d2f4900 Fix exception when accessing a SettingsModel before the table exists
Related: octobercms/october#3208. This solves an issue when attempting to access any SettingsModel before initial migrations have been run but the database exists (which is all App::hasDatabase() looks for).
2023-07-14 14:45:01 -06:00
Luke Towers
30ef051387 Add the bootstrap/cache folder
This folder is expected to exist by several core Laravel commands related to caching.
2023-07-12 21:11:52 -06:00
Ben Thomson
4c9840493e Partially revert previous changes, Windows didn't like it 2023-07-11 10:35:24 +08:00