2516 Commits

Author SHA1 Message Date
Damien MATHIEU
e1d2853ebb
Improve progress bar styles (#1002)
General :
Added striped background to active progress bar
The background was animated, but without stripes it wasn't visible.
In list :
Set default height equal to cell line-height, maked use of css variable so than the user can still set a différent height.
Added background color
Added a slight box shadow for better visibility of progress bars at 0%.
Preferred to border for greater smoothness.
Added a background color when hovering over a line in the list to match the hover color.

Fixes #1000
2023-10-29 14:41:39 -06:00
Denis Yantarev
f69164ac23
Fix install error for some paths (#989)
Fixes #988.

Instead of str_replace (which instead of truncating the leading directory from the path might replace some random inner part of it) use substr to remove it.
2023-10-19 10:15:28 -06:00
andyhethers
f731cbadc8
Add indexes to sessions table (#978)
Refs: 113ade3d55
2023-09-25 10:11:00 -06:00
Arvis Lācis
c0065747e8
Updated Latvian translations (#975) 2023-09-16 14:36:25 -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
5a2e397348 Don't fallback to app.develop for develop.debugSnowboard, disable by default. 2023-08-24 14:02:42 -06:00
Luke Towers
c95b425a02
Improve error reporting of invalid Twig extensions 2023-08-04 20:12:53 -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
Romain 'Maz' BILLOIR
71479dd51d
Put mail template style tags in the head (#951) 2023-07-26 11:17:02 -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
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
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
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
Ben Thomson
9df99dc74a Add GH action for manifest update 2023-07-11 09:31:34 +08:00
der_On
af5f4c1d70
Make Clear button in the recordfinder visible (#937)
Credit to @der-On
2023-07-07 14:13:19 -06:00
Luke Towers
496a3e485a Finish implementing the create:migration command 2023-07-03 22:26:38 -06:00
Luke Towers
b7af5d300e Add support for getPlugin() helper on scaffolding commands implementing the HasPluginArgument trait 2023-07-03 22:25:57 -06:00
Luke Towers
643463943c Reuse getPluginVersions() in getPluginVersion() 2023-07-03 22:25:24 -06:00
Luke Towers
b6f147d16a Add support for --uninspiring flag on code generation commands 2023-07-03 22:24:50 -06:00
Luke Towers
f42b93de1d reorder imports 2023-07-03 20:17:46 -06:00
Luke Towers
40bfc57c3a Remove unnecessary imports 2023-07-03 20:16:45 -06:00
Luke Towers
e621f5938a Add getPluginVersions() to PluginBase 2023-07-03 20:15:52 -06:00
Marc Jauvin
428d2bcad8
Add inputmode attribute to datepicker formwidget (#891)
Co-authored-by: Ben Thomson <git@alfreido.com>
Co-authored-by: Luke Towers <luke@luketowers.ca>
2023-06-11 19:55:38 +08:00
Ben Thomson
0cb5585b4d
Show migration messages even if an exception is thrown (#903)
Fixes #510
2023-06-11 19:54:09 +08:00
Luke Towers
a3d01188fa Exclude ignored Mix packages from MixAssets->getPackages() 2023-06-07 09:29:27 -06:00
Luke Towers
749e20e752 Add visual indicator to artisan mix:list when a given package is ignored. 2023-06-02 22:41:54 -06:00
Szabó Gergő
55728c7b9a
Improved Hungarian translation (#912) 2023-05-31 14:52:56 -06:00
Luke Towers
2148ab537a Fix ImageResizer test 2023-04-27 11:00:16 -06:00
Ben Thomson
f92f3a3d17
Make "winter:util" artisan test clean up after itself 2023-04-22 22:16:05 +08:00
Ben Thomson
dfd2ec26e2
Convert Snowboard extras to classes
Follows on from 56b7a8f47f, for the same reason.
2023-04-06 15:37:52 +08:00
Ben Thomson
56b7a8f47f
Convert Snowboard requests to classes
For some reason, these were not true importable classes as they were using the global Snowboard variable, so they couldn't be used in custom Snowboard builds.

I've created two new build files that use the same names as the previous builds, so this should be BC, but the source files are now true classes so they can be imported at will.
2023-04-05 09:47:56 +08:00
Ben Thomson
16cdf50fc0
Properly handle arrayed fields when files are enabled in old framework
Fixes https://github.com/wintercms/winter/issues/872
2023-04-03 14:41:10 +08:00
Marc Jauvin
34609321b9
Add support for pathSymbols in asset filenames (#874) 2023-03-30 08:46:04 -06:00
Marc Jauvin
0e506ebdcb
Fix inspector depends functionality. (#710) 2023-03-28 21:16:27 +08:00
Jack Wilkinson
dde07a08ea
Manually register system class aliases in test bootstrap (#863) 2023-03-08 09:53:58 -06:00
Luke Towers
a2988a8025
Fixed incorrect variable
🤦
2023-03-03 13:12:28 -06:00
Luke Towers
482d7b5e1d
Fix issue where plugin replacing a version that isn't present in its version.yaml would fail
Fixes https://github.com/wintercms/wn-blog-plugin/issues/33.

Note for @bennothommo @jaxwilko @mjauvin, we may have issues at some point if the replaced plugin goes past the version that the replacing plugin starts its replacement at (for example, if RainLab.Blog starts going past 2.0 then we're going to have to rethink how we handle that migration process so that we can support taking over existing migrations that go past 2.0 on the original plugin while starting the replacement plugin's migrations at 2.0, although there's potentially some issues with that too. Perhaps we could require confirmation to rollback a plugin to the last version that it could be taken over from before allowing the takeover to proceed?
2023-03-03 13:03:36 -06:00
Damien MATHIEU
caf1c77a14
Improve French translations (#849)
Improve French translations
2023-02-28 10:51:31 -05:00
Luke Towers
ffa6f99210
Fix plugin:install call inside of winter:install
Also remove Winter.Drivers recommendation
2023-02-26 09:01:14 -06:00
Luke Towers
f37569b5de
Revert 4ed9b10
This reverts 4ed9b10b4e because it breaks the use of local file disks. We will need to just bite the bullet and refactor the CMS storage config to use proper filesystem disks in general instead of the current hacky approach that's causing these problems.

See https://laravel.com/docs/10.x/filesystem#scoped-and-read-only-filesystems
2023-02-21 15:14:04 -06:00