5358 Commits

Author SHA1 Message Date
Jack Wilkinson
b43bb0d1b9
Added mix:compile parent args to mix:watch signature (#647) 2022-08-15 09:26:27 +08:00
Jack Wilkinson
03aba8694b
Fixed comment for mix:compile (#648) 2022-08-15 09:25:16 +08:00
Arvis Lācis
5cbf1ec653
Store system first boot date in the database explicitly (#639)
The first plugin version record is unreliable, especially as plugins are added and removed; so this commit stores the first boot date in the database explicitly by using a database migration.
2022-08-11 11:12:45 -06:00
Jack Wilkinson
916151f20c
Add support for exit codes in MixCompile (#642)
This ensures that the mix:compile command returns the correct exit codes based on the status of the compilation. It also adds the following option flags to `mix:compile`:

- `--silent`: Runs the compilation process silently without outputting any details from Webpack / Mix
- `--stop-on-error`: Exits the compilation if an error is encountered
- `--manifest`: Defines the package.json file to be used for the compilation
2022-08-10 12:53:00 -06:00
Ben Thomson
6e8c8d90f1
Style up migrations and updates using new Laravel CLI components (#641) 2022-08-10 15:48:56 +08:00
Ben Thomson
a1b4a3fa30 Simplify "run migrations on login" check 2022-08-10 15:17:25 +08:00
Jack Wilkinson
609962a399
Disabled the plusplus checking rule (#643)
The no-plusplus rule is less than ideal as it prevents using a useful language feature without providing adequate justification (see https://airbnb.io/javascript/#variables--unary-increment-decrement for original justification). 

Prior to this commit the eslint configuration did not allow for:

```js
++something
something++
--something
something--
```
2022-08-09 15:27:24 -06:00
Marc Jauvin
305cb588c8
Fix default value for taglist formwidget in relation mode (#611) 2022-08-09 09:32:36 +08:00
Luke Towers
ed933b4d2e
Allow UserPreferences to be interacted without a logged in user
Winter\Storm\Auth\Models\Preference->get() allows for no user context to be present
2022-08-07 14:28:15 -06:00
Arvis Lācis
09aad658b5
Fix status widget output on clean installation (#633) 2022-08-04 13:56:22 -06:00
QuangTrọngOnline
1990badd26
Improve Vietnamese translation (#636)
Credit to @quangtrongonline
2022-08-04 13:54:02 -06:00
Simon Mannsfeld
929e8f2dd3
Improved German translation (#623)
Credit to @simonmannsfeld
2022-08-02 17:35:43 -06:00
Romain 'Maz' BILLOIR
b340855778
Fix -c option in create:model command (#631) 2022-08-02 15:52:01 -06:00
Arvis Lācis
b8046c2228
Fix return types for MediaManager widget functions (#632)
Fixes #629.
2022-08-02 15:49:31 -06:00
Luke Towers
f360667f2c
relativePath can be null
Relative path is generated from $this->assetPath which is by default null. Changing it to be an empty string by default instead would have consequences further down the line in the CombineAssets class.
2022-08-01 21:29:52 -06:00
Ben Thomson
108795e0a2 Rebuild Snowboard 2022-08-01 20:30:08 +08:00
Luke Towers
b1e8b84b77
Fix base URL 2022-07-31 20:28:40 -06:00
Luke Towers
df282fd0e7
Load Snowboard.js via the asset URL helper
Fixes an issue where assets are deployed to a CDN and not available on the local webserver.
2022-07-31 20:10:29 -06:00
Luke Towers
4252b8a428 Fix issue with Snowboard's StripeLoader 2022-07-31 18:38:37 -06:00
Luke Towers
3be17f520b
Normalize database version
Fixes an issue where the version number reported by the database wasn't normalized causing issues when comparing with the normalized version from the filesystem.
2022-07-27 19:05:43 -06:00
Eric Pfeiffer
4e9ff0d753
Ensure plugin dependencies are correctly sorted (#621)
Fixes #620
2022-07-20 20:19:32 -06:00
Luke Towers
7dd0eb1b7f
Don't provide twig.environment.cms as a singleton
If you need to use the CMS Controller's Twig instance then you should call getTwig() directly on the controller instance instead of relying upon twig.environment.cms being a singleton.

It being a singleton causes issues if for some reason you want to render another route in the same request as the second call to Controller->run() will pollute the variables of the first.
2022-07-19 14:51:13 -06:00
Chris Sadler
1218cd6cf9
Fix typo in MediaManager.php (#616)
Fix typo in reference to MediaLibrary, fixing an error when getting vector image thumbnails in the media manager.
2022-07-19 00:24:13 -06:00
Luke Towers
5561d6aa31
Fix fixture paths for case-sensitive filesystems
Fixes #619
2022-07-18 13:06:26 -06:00
Ben Thomson
43468b3b9f Automatically inject bootstrap into winter:test command
This commit also enforces some testing environment variables at the process level.
2022-07-18 08:32:12 +08:00
Luke Towers
cbe43569a7
Update AutoDatasource->lastModified return type
Updates to match the DBDatasource & FileDatasource
2022-07-15 13:51:47 -06:00
Luke Towers
ee3006e2a6
Add winter:password as an alias for winter:passwd
Easier to verbally communicate and have it "just work"
2022-07-15 01:37:49 -06:00
WebVPF
f84ba7c14f
Improved Russian translation (#605) 2022-07-14 22:36:00 -06:00
Luke Towers
5b8d189df4 Fix issues with accessing the expected context variables inside of Twig macros.
This fixes #578 by adding the ability to pass the CMS Controller instance to the CMS Twig Extension removing the reliance on context variables as well as making the expected "global" twig variables inside of the CMS Twig environment actually global within that environment.

Replaces #598 & #593.

Credit to @RomainMazB for the initial implementation.
2022-07-10 01:09:09 -06:00
Ben Thomson
e2683d8041 Actually finish the test 2022-07-09 19:54:39 +08:00
Ben Thomson
77f4606265 Add unit test for #578 2022-07-09 19:51:25 +08: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
b52d4ac275 Cleanup unnecessary imports 2022-07-06 15:35:56 -06:00
Luke Towers
b29d1b9883 Code style fixes 2022-07-06 15:00:34 -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
Jack Wilkinson
a31fa1b1d2 Added lazy resizing support for thumbnail view in media manager 2022-07-06 04:07:38 +01:00
Romain 'Maz' BILLOIR
c0119a09ce
Fix return type in placeholderFunction (#594) 2022-07-05 02:26:29 -06:00
Jack Wilkinson
60f06512c3
Added defaults to brand settings config calls (#595) 2022-07-05 02:22:28 -06:00
Ben Thomson
b90b4fe869 Fix constructor signature in User Throttle model 2022-07-04 09:34:08 +08:00
Ben Thomson
e13c4534db Fix constructor signature in Meta class 2022-07-04 09:28:34 +08: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