6493 Commits

Author SHA1 Message Date
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
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
Jack Wilkinson
20ac7f6773
Small refactor to workflow utilities (#555)
Refactored workflow utilities to use STDOUT & STDERR
2022-05-16 11:50:31 +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
Ben Thomson
ae2e2985ad Remove blog plugin from repo 2022-05-13 08:28:12 +08: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
40e625cbd2 Remove Workshop theme from repo.
Accidentally committed in last commit
2022-05-12 22:20:53 +08: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
Ben Thomson
a64422be20 View Maker guessed paths can be null 2022-05-12 09:10:24 +08:00
Ben Thomson
e6440daf05 Fix prefixed shims overriding entire element with FA font 2022-05-12 08:55:37 +08:00
Luke Towers
01d926a50a Fix icon usage for ReportContainers, AssetList, & Table widgets 2022-05-11 15:42:51 -06:00
Luke Towers
613a925051
Merge pull request #551 from wintercms/wip/1.2-font-awesome-6
Upgrade Font Awesome 4 to 6
2022-05-11 01:32:50 -06:00
Ben Thomson
eb37a26748 Add docs for icons 2022-05-11 14:24:20 +08:00
Ben Thomson
3e4246390d Load a subset of icons for the exception / message views 2022-05-11 13:07:12 +08:00
Ben Thomson
2df04a75b2 Fix font location 2022-05-11 13:02:40 +08:00
Ben Thomson
1a6ab951a8 Move icons into root UI folder.
Also separated the global base styles for icons with the actual icon list, so we can limit the icons loaded (ie. for the standard exception / error views)
2022-05-11 13:01:41 +08:00
Ben Thomson
8c9de1b399 Load separate icon file in Backend pages 2022-05-11 11:47:01 +08:00
Ben Thomson
af9876b7c9 Compile icon styling into separate CSS file 2022-05-11 11:43:04 +08:00
Ben Thomson
47e01dc84f Remove explicit links to icon LESS file.
We will load icons independently in another file so it can be cached independently.
2022-05-11 11:36:48 +08:00
Ben Thomson
1b3e01e2be Merge branch 'wip/1.2' into wip/1.2-font-awesome-6 2022-05-11 11:16:23 +08:00
Marco
ac130c462c
Fix undefined variable $packagePath in mix:watch error (#485)
When the package is not present in package.json, the correct error is not thrown because $packagePath not exists.

Co-authored-by: Luke Towers <github@luketowers.ca>
2022-05-09 10:48:19 +08:00
Luke Towers
872be9d671 Merge branch 'develop' into wip/1.2 2022-05-08 14:47:50 -06:00
Luke Towers
3fbc50f06a Improve support for custom configuration of ReportContainers
Previously any configuration that was made via makeConfig() before being passed to the ReportContainer would cause it to break. This fixes that issue.
2022-05-08 14:43:35 -06:00
Ben Thomson
ad4704360b
Remove extra license file 2022-05-07 11:46:42 +08:00
Ben Thomson
afb9ae8c0c Fix shimmed icons, remove some CSS variables, recompile 2022-05-06 13:43:23 +08:00
Ben Thomson
bd3401f6de Upgrade Font Awesome 4 to 6 2022-05-06 13:28:57 +08:00
Ben Thomson
6298026d20 Compile all assets 2022-05-06 10:09:51 +08:00