2379 Commits

Author SHA1 Message Date
WebVPF
f84ba7c14f
Improved Russian translation (#605) 2022-07-14 22:36:00 -06:00
Luke Towers
c8d576713a Add create:job scaffolding command 2022-07-08 16:19:48 -06:00
Luke Towers
7586151d0e Add aliases for base test classes for compatibility 2022-07-08 16:16:43 -06:00
Luke Towers
6d23e21755 Remove plugin from pluginFlags property if it has no active flags
Fixes an issue that occurs when removing the last flag from a plugin doesn't re-enable it.
2022-07-06 20:21:53 -06:00
Luke Towers
585949abc4 Code review
Removed a bunch of thumbnail generation related methods that are no longer required now that the ImageResizer class handles it all.
2022-07-06 14:42:34 -06:00
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
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
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
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
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
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
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
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
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
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
Ben Thomson
f79e672a13
Establish base Snowboard framework in Backend (#548)
This PR establishes a base Snowboard framework in the Backend. While we won't likely have any specific Snowboard widgets or functionality in the 1.1 branch, it will allow people to use Snowboard in the Backend should they wish.

Fixes #541.

Co-authored-by: Luke Towers <github@luketowers.ca>
2022-05-16 13:31:49 +08:00
Luke Towers
af311f7001 Normalize versions pulled from the version.yaml
Fixes an issue where a plugin switches from no v prefix in version identifiers to having a v prefix and then gets replaced.
2022-05-13 09:29:43 -06:00
Luke Towers
78a7201461
Force resized images to be regenerated when the source image changes (#178)
This should fix https://github.com/wintercms/winter/issues/177, but it will cause all existing installations to resize all of their already resized images. 

Another alternative could have been to include the hash of the source image; but it would have been at the expense of more work every time this function is called, which could potentially include generating hashes of multiple extremely large (10+ MB) images on every page load if the page includes such images that need to be resized since the filter needs to identify the configuration in order to identify the path to the resized image to check if it needs to return a resizer/ URL or a /resized one.

Further improvements could potentially be made in the isResized()
2022-05-12 15:13:22 -06:00
Jack Wilkinson
907393a586
Respect app.asset_url in AssetMaker (#552) 2022-05-12 12:52:24 -06:00
Ben Thomson
6ac09adf9d Drop "oc-" prefix for icons introduced in Font Awesome 6.
We're only keeping that prefix for backwards compatibility, so no need for the prefix on new icons. Should bring the filesize down a fair chunk.
2022-05-12 22:19:11 +08:00
Ben Thomson
051826c9d8 Include brand icons, small optimisation 2022-05-12 21:46:53 +08:00
Ben Thomson
6cec274a4d Merge branch 'develop' into wip/1.2 2022-05-12 21:17:13 +08:00
Ben Thomson
4ca721cbd8 Manually optimise shimmed icon CSS 2022-05-12 11:44:14 +08:00
Ben Thomson
5e3e9efcf5 Revert "Optimise shimmed icon CSS"
This reverts commit f8be6d7e85bf0bbadcb19294d7309843f6a0eb1f.
2022-05-12 10:55:16 +08:00
Ben Thomson
f8be6d7e85 Optimise shimmed icon CSS 2022-05-12 09:22:23 +08:00