6475 Commits

Author SHA1 Message Date
Ben Thomson
0add2263b8
Code analysis tweaks (#589)
Implements fixes to some breaking changes introduced in https://github.com/wintercms/storm/pull/64.
2022-07-04 09:22:59 +08:00
Ben Thomson
ce63a34a8b Merge branch 'develop' into wip/1.2 2022-07-01 09:30:17 +08:00
Ben Thomson
bbc53388d4 Apply consistent path normalisation to fix Windows test 2022-07-01 09:24:05 +08:00
Jack Wilkinson
725fbc03f6
Use the ImageResizer for resizing and cropping in the MediaManager (#577)
This implements support for the ImageResizer within the media manager for thumbnail resizing & image cropping. This simplifies and centralizes the image resizing code within the media manager and allows for better support on readonly filesystems by relying on the ImageResizer class to process image modification requests.
2022-06-29 15:52:12 -06:00
Ben Thomson
3ff0360887 Fix view maker unit test for Windows 2022-06-29 20:17:48 +08:00
Jack Wilkinson
0860a7af92
Added fix to ensure correct normalization and return (#588)
Fixes https://github.com/wintercms/winter/issues/569
2022-06-29 19:56:18 +08:00
Ben Thomson
5ccde6fb46 Merge remote-tracking branch 'origin/develop' into wip/1.2 2022-06-28 13:12:15 +08:00
Arvis Lācis
e211bede7f
Outputs time respecting backend preferences (#572) 2022-06-26 14:19:41 -06:00
Luke Towers
e58c768945 Bump minimum Laravel version to 9.1
See 63ca843643
2022-06-24 22:19:00 -06:00
Ben Thomson
7a25524f73
Fix site relative partial paths failing in 1.2 (#587)
Matches the behavior of the ViewMaker in the 1.1 branch more closely by checking if the partial path is a local reference first, returning that path if it is. Only if this check fails will it then run through the view paths.

Fixes https://github.com/wintercms/winter/issues/571

Also fixes the ViewMaker tests by emulating the same behaviour as a web request and having the current directory be the base path of the site, not the directory of the current module or plugin being tested.
2022-06-24 22:09:40 -06:00
Luke Towers
3dd8d61ae4
Switch back to using Laravel CacheServiceProvider
Partially reverts part of 1bbfb67d8c in favour of https://github.com/wintercms/storm/pull/86/files
2022-06-24 21:40:02 -06:00
Ben Thomson
5a0649de72 Rebuild Snowboard agian 2022-06-25 11:18:03 +08:00
Ben Thomson
4085a734b6 Revert "Rebuild Snowboard"
This reverts commit ba986fa923724f9d1c961a7541a588d9e120b36e.
2022-06-25 11:17:10 +08:00
Ben Thomson
ba986fa923 Rebuild Snowboard 2022-06-24 22:44:31 +08:00
Ben Thomson
4e43366f7d Allow a string selector for the form in a request 2022-06-24 22:42:17 +08:00
Ben Thomson
fe312dff1a Allow a string selector for the form in a request 2022-06-24 22:41:10 +08:00
Ben Thomson
5201d710cb Merge branch 'develop' into wip/1.2 2022-06-24 11:58:58 +08:00
Ben Thomson
2497b8dc7b Use correct line breaks for Windows tests 2022-06-24 11:49:11 +08:00
Ben Thomson
8f7c504805 Backport ViewMaker tests from 1.2 branch 2022-06-24 11:26:26 +08:00
Marc Jauvin
5870275b21
Add additional testMakePartial cases to ViewMaker unit tests (#586) 2022-06-24 10:13:23 +08:00
Jack Wilkinson
9e4e36bad7
Added replaced plugins to the normalize map to ensure classloader namespace aliasing detects replacements (#585) 2022-06-22 18:14:55 -06:00
Jack Wilkinson
7fe167c41f
Split tests into relevant module folders
This splits the testing suite into the separate modules as appropriate in order to improve the reliability of the testing suite as a whole and make it easier for developers to have an up to date testing suite from the core to build off of. Additionally the tests are now namespaced and some minor improvements to the PluginManager were made.

Now the PluginManager will internally treat plugin identifiers as lower case strings, only transforming them to their normalized versions when requested by methods like getPlugins() & getAllPlugins(). The idea behind this is that it provides a much simpler way to internally handle checking, especially for plugin replacement where casing could cause issues.

Replaces #576. Fixes #575.
2022-06-21 18:30:30 -06:00
Jack Wilkinson
64b82f0241
[FIX] Fix plugin flags not loading from cache correctly (#582)
Fix issue where flags would not be set correctly from cache
2022-06-21 11:54:13 -06:00
Reza Lael
bbf12c875b
farsi spelling correction (#579) 2022-06-21 10:57:21 +08:00
Jack Wilkinson
225313f383
Moved plugin replacement namespace aliasing into register replacement method (#580)
Required to ensure that plugins that are marked as invalid to replace others will not have their namespaces aliases.
2022-06-20 15:05:15 -06:00
Marc Jauvin
018d39f0c8 fix typo 2022-06-18 09:10:58 -04:00
Ben Thomson
7652da88d0
Add Winter 1.2 as version option in bug report 2022-06-14 10:19:18 +08:00
Luke Towers
74b9df6e36
Improve reliability of cache:clear
This improves the reliability of the cache:clear command by not requiring the custom winter cache directories to exist when running cache:clear.

Also removes the clearing of disabled.json which is no longer used as of 1bbfb67d8c
2022-06-12 20:41:59 -06:00
Ben Thomson
01aa5fb6af Fix code smell 2022-06-05 21:59:37 +08:00
Ben Thomson
582725b25b Merge branch 'develop' into wip/1.2 2022-06-05 21:56:01 +08:00
Ben Thomson
2e4e55690b Adjust early termination of requests from success/error
The "success" and "error" callbacks would previously stop any further request handling from taking place if the handler returned a falsy value, including nothing at all. This is inconsistent with the previous framework and with our docs.

This change makes it so that only an explicit "false" value returned from the "success" or "error" callback will stop the request handling there and then.
2022-06-05 21:55:37 +08:00
Luke Towers
1bbfb67d8c
Revamp Plugin Manager (#501)
Reworked the internal disabled status checking and monitoring system for plugins.
Added better support for plugin disabled status management.
Added improvements to loading (should aid in improving app bootup speed)
2022-06-02 19:59:41 -06:00
Ben Thomson
7e1cdeccac
Increase stale check to 6 months 2022-05-27 09:29:44 +08:00
Ben Thomson
805b95b490
Allow decompilation of local assets that match local URL
https://github.com/wintercms/winter/pull/552 introduced a change where all backend assets are converted to URLs to provide support for the `app.asset_url` configuration variable. This change allows asset decompilation to still work by converting a (local) URL back to a relative path. If a URL doesn't match the root URL, then it is passed through as is with no decompilation taking place.

Fixes https://github.com/wintercms/winter/issues/562.
2022-05-25 16:18:55 +08:00
David Lüder
2dca142d61
Let composer resolve current php process in scripts (#563)
Commands like php8.1 composer.phar install resulted in a successful installation but failed during the execution of the "post-update-cmd"-Script.

`@php` should fix this (and did it on my environment), according to:
https://getcomposer.org/doc/articles/scripts.md#executing-php-scripts
2022-05-24 08:15:30 -06:00
Ben Thomson
5b4ca04814 Merge branch 'develop' into wip/1.2 2022-05-24 16:31:40 +08:00
Ben Thomson
5e5080b5a0 Fix track input not keeping timeout 2022-05-24 16:31:26 +08:00
Luke Towers
f758984b7c Improve error handling of invalid values provided to the DatePicker FormWidget 2022-05-23 13:53:12 -06:00
Ben Thomson
d526db3c28 Merge branch 'develop' into wip/1.2 2022-05-23 10:11:01 +08:00
Ben Thomson
e32ebdfb80 Add jQuery AJAX prefilter as early as possible 2022-05-23 10:10:32 +08:00
Ben Thomson
39f17357ab Merge branch 'develop' into wip/1.2 2022-05-19 12:13:06 +08:00
Ben Thomson
5e1097fbac Add additional debugging for errors thrown in events 2022-05-19 12:12:55 +08:00
Ben Thomson
edc99c7631 Merge branch 'develop' into wip/1.2 2022-05-19 09:24:51 +08:00
Ben Thomson
ec29f969cc
Abstract Snowboard plugin constructors and destructors (#561)
Previously, Snowboard plugins had been written to append the main JavaScript constructor. While this worked, it prevented the ability to destruct the plugin during construction (ie. prevent double initialisation on plugins, for example), as the "detach" method which is fired on destruction is added *after* construction.

This change abstracts the constructor and destructor to separate methods run after the true construction of the JavaScript object is complete. A bonus is that the constructor no longer needs to include "snowboard" as one of the parameters - this instead is done on the true construction.
2022-05-19 09:23:17 +08:00
Ben Thomson
97928c996a Merge branch 'develop' into wip/1.2 2022-05-17 23:08:30 +08:00
Ben Thomson
592f43f514 Load assets synchronously
This matches the previous behavior from the old framework, and resolves some issues with race conditions. It's not great - but it works for now, until we can have some true dependency resolution with the assets.
2022-05-17 23:05:32 +08:00
Ben Thomson
757c6a8823 Only call asset loader callback if assets load successfully
Matches previous framework functionality
2022-05-17 21:50:35 +08:00
Ben Thomson
368f57d39a Allow debug calls to contain more parameters for context 2022-05-17 21:49:05 +08:00
Ben Thomson
14f9de003c Merge branch 'develop' into wip/1.2 2022-05-16 14:40:51 +08:00
Luke Towers
3862bf284e Added TailwindCSS-based scaffold to the create:theme command 2022-05-16 00:18:57 -06:00