6231 Commits

Author SHA1 Message Date
Luke Towers
680fe81539 Ensure that mix:watch cleans up after itself 2022-02-24 22:02:38 -06:00
Luke Towers
b1aa0fce60 Cleanup console docblocks 2022-02-24 22:02:01 -06:00
Luke Towers
3152265c81 Cleanup scaffolding stubs 2022-02-24 21:58:25 -06:00
Luke Towers
f060c7f983 Move the winter:passwd command into the Backend module
Also add suggestion support for the username argument (last 20 most recently updated records)
2022-02-24 20:53:25 -06:00
Luke Towers
183661d0e3 Improve confirmation behavior for destructive actions 2022-02-24 20:29:53 -06:00
Luke Towers
2368afc981 Improved support for autocompletion for the plugin:* commands
Also added System\Console\Traits\HasPluginArgument that can be added to any CLI commands that interact with plugins to provide autocompletion for the plugin argument.
2022-02-23 22:13:34 -06:00
Ben Thomson
e3fecdb9c2
Move scaffold commands (#471)
Fixes #270. See c4cd4402c0

Moves the Scaffolding commands out of Storm, and into the modules that the scaffold generates code for.

As discussed in the issue above, this makes more sense to keep Storm agnostic, and allows for the commands to be hidden if a particular module is not used in a Winter instance.
2022-02-23 14:54:17 -06:00
Ben Thomson
f58633cd45 Re-compile Snowboard 2022-02-23 21:14:40 +08:00
Ben Thomson
05b3a35e79
Remove plugins and themes from last commit 2022-02-23 20:49:31 +08:00
Ben Thomson
59b055c9e1
Don't apply data attribute functionality if there's no element 2022-02-23 20:48:04 +08:00
Ben Thomson
98ca545718
Correctly handle if element is "null" or "false" for requests 2022-02-23 20:47:19 +08:00
Ben Thomson
040c6b936b Let's try this... 2022-02-23 10:55:52 +08:00
Ben Thomson
2a47cec76f Further debugging 2022-02-23 10:51:53 +08:00
Ben Thomson
30a4f80cf3 Debug branches in action 2022-02-23 10:49:40 +08:00
Ben Thomson
89397eb85d Prevent testing direct pushes to wip/1.2 - test the PR instead 2022-02-23 10:46:03 +08:00
Ben Thomson
defb57f59c Re-establish full YAML processor with tweaks.
Should hopefully handle most cases of pre-YAML 4.x version schemas.

Co-Authored-By: Marc Jauvin <marc.jauvin@gmail.com>
2022-02-23 10:40:47 +08:00
Ben Thomson
f594d44537 Restore original YAML processor, merge changes 2022-02-23 10:09:09 +08:00
Luke Towers
f24a6388cf WIP test adjustments 2022-02-22 19:52:48 -06:00
Luke Towers
8e766dce58 Don't attempt to setup the ThemeLog if the settings table can't be found. 2022-02-22 19:34:18 -06:00
Luke Towers
687b44145c Temporarily avoid testing problematic YAML 2022-02-22 19:10:54 -06:00
Marc Jauvin
f38f38f02f fix assetic modules path 2022-02-22 17:33:16 -05:00
Luke Towers
7026baf4b7
Switch to using Assetic v3 instead of embedded Assetic v1 (#470) 2022-02-22 16:17:08 -06:00
Luke Towers
d0c7b5982a
Replaces october/ssstem 2022-02-22 13:58:39 -06:00
Marc Jauvin
9a6f71e0d4
Fix route order with new system.beforeRoute and system.route events (#465)
With the recent change to module routes being registered in their boot methods the Backend & CMS modules were registering their routes before the System module could. 

Due to the greedy nature of the CMS module's route it must always be registered last.
2022-02-21 12:28:09 -06:00
Luke Towers
d3d49181fc
Add asset alias for Snowboard extras css (#464)
Co-authored-by: Marc Jauvin <marc.jauvin@gmail.com>
2022-02-20 12:59:07 -06:00
Luke Towers
9b1154ba31 Temporarily disable extra functionality in the VersionYamlProcessor 2022-02-19 16:06:14 -06:00
Luke Towers
7edb3e02c5 Temporarily disable VersionYamlProcessor 2022-02-19 15:34:36 -06:00
Luke Towers
3147d97cf0 Compile client side translations 2022-02-19 14:49:25 -06:00
Luke Towers
4312ad36c3 Include newly added filters-test in test case to fix tests 2022-02-19 14:49:01 -06:00
Luke Towers
661110276c Fix support for | page filter.
Credit to @mjauvin
2022-02-19 14:44:05 -06:00
Marc Jauvin
7130a80997
Fix support for morphOne/hasOne relations in FormModelSaver (#463)
Fixes #413
2022-02-18 15:52:47 -06:00
Luke Towers
8132617357
Merge pull request #455 from wintercms/wip/twig-environments
Refactor Twig registration and usage
2022-02-18 14:23:04 -06:00
Luke Towers
22cbfe94ac Fix ExportModelTest on PHP 8.1 2022-02-18 14:01:23 -06:00
Luke Towers
216583fbe4 Add more detailed failure message to the ExportModelTest 2022-02-18 13:50:16 -06:00
Luke Towers
55fa690c67 Fix Spaceless test on Windows 2022-02-18 13:47:43 -06:00
Luke Towers
29c051bf87 Fix FilterTest on Windows 2022-02-18 13:45:06 -06:00
Luke Towers
1ff786a4ca Fix twig tests on Windows 2022-02-18 13:36:26 -06:00
Luke Towers
ec03986892 Unskip working tests 2022-02-18 12:16:46 -06:00
Luke Towers
b568f36f1f Add tests for polyfilled {% filter %} Twig tag 2022-02-18 12:01:24 -06:00
Luke Towers
c2ad6b309f Code style fix and replaced use of {% filter %} in the demo theme 2022-02-18 09:50:18 -06:00
der_On
62c30c30d7
Improve German translation (#457)
Thanks to @der-On!
2022-02-18 09:42:30 -06:00
Luke Towers
cdffe6d179
Add AssetCombiner aliases for Snowboard (#459) 2022-02-18 09:41:43 -06:00
Luke Towers
c713c7d8d5 Polyfill {% filter %} token removed in Twig v3 2022-02-18 09:33:22 -06:00
Ben Thomson
f4efb897ac
Retain spaceless tag in Twig (#456)
Keeps the {% spaceless %} ... {% endspaceless %} tag available in Twig 3.x for Winter CMS backwards compatibility.

While it was deprecated and removed in Twig 3.x, it appears to work still, but may need some more testing.
2022-02-18 09:25:12 -06:00
Luke Towers
a8160d017e Fix Twig type hints 2022-02-18 09:14:32 -06:00
Luke Towers
895c032196 loadTemplate($name) -> load($name)
Required as of Twig v3
2022-02-18 09:13:53 -06:00
Luke Towers
77ef563f43 Refactor CMS Twig environment.
Credit to @SeriousKen for the original work in https://github.com/octobercms/october/pull/3575
2022-02-18 01:44:36 -06:00
Luke Towers
3fec059a74 Initial work on refactoring the Twig usage to use separate environments as required 2022-02-17 21:28:37 -06:00
Luke Towers
33441c0987 Revert changes to winter:install, ConfigWriter uses ArrayFile internally 2022-02-17 20:20:43 -06:00
Luke Towers
c3bdfae664 Run the default config through ArrayFile parser
This serves the dual purpose of both testing the output of the ArrayFile parser and normalizing the configs so that any future uses of ArrayFile on them will have easier to understand diffs.

These were generated by running the following in Tinker:

use Winter\Storm\Parse\PHP\ArrayFile;

$configPaths = glob(base_path('config/*'));

foreach ($configPaths as $path) {
  if (is_file($path)) {
  	ArrayFile::open($path)->write();
  }
}
2022-02-17 12:38:51 -06:00