6251 Commits

Author SHA1 Message Date
Luke Towers
2c74cdb681 Merge branch 'wip/1.2' into wip/1.2-improve-scaffolding 2022-04-03 13:33:15 -06:00
Ben Thomson
107db21d65 Fix code smell 2022-04-01 11:49:56 +08:00
Ben Thomson
1b7fc17aa4 Allow removed plugin to be re-added 2022-04-01 11:46:36 +08:00
Ben Thomson
ffc9961ab9 Add better handling of Snowboard dependencies
This will allow for singletons to not fire off their "ready" handler until after the dependencies are fulfilled. Normal plugins which are used and have not had their dependencies fulfilled will still throw an error.
2022-04-01 11:31:15 +08:00
Ben Thomson
c39090bcec Check that Snowboard is loaded before the core plugins load 2022-04-01 10:21:13 +08:00
Ben Thomson
192b91af12 Snowboard updates
- Added events "flash.create" and "flash.remove" triggered when flash messages are created and removed
- Added URL utility into Snowboard core to handle URL generation and base URL detection
- Added base URL in Twig tag
- Updated Stylesheet Loader to use base URL when injecting extras CSS
2022-04-01 10:14:10 +08:00
Marc Jauvin
752d6ad47e
fix null coalescent operator (#518) 2022-03-31 07:41:16 -04:00
Ben Thomson
9b22dab824 Allow flash to display indefinitely with 0 duration 2022-03-31 15:03:57 +08:00
Ben Thomson
8d14838f81 Fix flash timer bar on hide, adjust colours for legibility 2022-03-31 14:47:13 +08:00
Luke Towers
7b7add2338 Merge develop into 1.2 2022-03-23 22:35:58 -06:00
Luke Towers
ecc258dbc4 Simplify prepareVars usage, fix create:theme usage 2022-03-23 15:32:08 -06:00
Luke Towers
00f721c351 Localized create:model scaffolding 2022-03-23 15:18:28 -06:00
Luke Towers
a02c33489d Add localization support to create:controller 2022-03-23 15:11:49 -06:00
Luke Towers
0641ab7243 Adjusted interfaces and made create:plugin include translations 2022-03-23 15:07:00 -06:00
Luke Towers
c37190065a Simplify diff 2022-03-23 14:30:59 -06:00
Luke Towers
9301a98d8c Merge branch 'wip/1.2' into wip/1.2-improve-scaffolding 2022-03-23 13:44:09 -06:00
Ben Thomson
e7eb6e3deb Fix code style 2022-03-23 20:38:30 +08:00
Ben Thomson
83861eaae7 Slight adjustments to code style 2022-03-23 20:34:49 +08:00
Flynsarmy
2224a6a57d
Allow disabling/enabling of sorting with Repeater widget (#506) 2022-03-23 10:57:35 +08:00
Luke Towers
02efa1ae1d Fixed ImageResizer support for "system" images (plugin, theme, module assets)
Also improved the developer experience by making it easier to see what the actual issue is if an error is encountered during the resizer initialization process.
2022-03-22 15:14:36 -06:00
Ben Thomson
0766194c7d Partially revert 3de45535
The above commit prevented components within a partial from populating their own parameters into the template. This partially reverts the change but still allows the main partial being rendered to override the variables if needed.
2022-03-21 11:43:40 +08:00
Marc Jauvin
e433aa3bb5
Prevent error if accessing undefined $resizer variable (#502) 2022-03-21 09:14:20 +08:00
Luke Towers
80880d1912 Refresh datasource path cache before syncing paths
Fixes an issue where if the underlying data behind a datasource changes through manual intervention (either in the database or the filesystem) before running theme:sync it wasn't being detected by the theme:sync command.
2022-03-18 11:35:08 -06:00
Damien MATHIEU
4a2bffafca
Multiple file attachments in theme customization (#495)
This PR add a `multiple` property to fields in [theme customization](https://wintercms.com/docs/themes/development#customization).  
If `multiple: true`, the field is added to `attachMany` and allow multiple files selection, in all other cases the current behaviour is applied.
2022-03-18 08:12:16 -06:00
Marc Jauvin
c1bc9002ad
Sync MailSettings model init with L9 mail config changes (#500) 2022-03-18 08:06:56 -06:00
Marc Jauvin
3cf4b5a5cb
Fix isActive for CMS page with "/" as URL (#479)
Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <git@alfreido.com>
2022-03-18 09:39:23 +08:00
Luke Towers
36a42a650c
Merge pull request #404 from wintercms/wip/config-file
[Enhancement] Refactor winter:env, winter:install to use new EnvFile & ArrayFile parsers
2022-03-16 14:55:14 -06:00
Luke Towers
f2d9526d29 Support new mail config file structure 2022-03-16 14:51:21 -06:00
Luke Towers
c137760498 Run all config files through ArrayFile parser
This will minimize changes when ConfigWriter is used to set config values through PHP.
2022-03-16 10:55:07 -06:00
Luke Towers
cd9f9097e8 Style fix 2022-03-15 21:52:46 -06:00
Luke Towers
3da0a32393 Merge branch 'wip/config-write-replacement' into wip/config-file
# Conflicts:
#	config/app.php
#	config/auth.php
#	config/cms.php
#	config/database.php
2022-03-15 21:52:10 -06:00
Luke Towers
520190f5e0 Tweaks to be more friendly with the ArrayFile parser 2022-03-15 21:26:52 -06:00
Luke Towers
140d388008 Merge branch 'wip/1.2' into wip/config-write-replacement 2022-03-15 21:05:47 -06:00
Luke Towers
70cfd902bd Revert "Run the default config through ArrayFile parser"
This reverts commit c3bdfae664c1cdde2ea1403027fc38b0822a0cf5.
2022-03-15 21:05:08 -06:00
Luke Towers
cb382a0be0
Added missing return statement 2022-03-14 21:01:08 -06:00
Luke Towers
765f55e84e
Merge pull request #491 from Flynsarmy/uploadFilepath
Strip double / prefix when uploading to Media root directory
2022-03-13 19:56:32 -06:00
flynsarmy
86938196de Make getMediaPath public 2022-03-14 09:24:14 +10:00
flynsarmy
7a0a41d05c Make getMediaPath and getStorageDisk methods public 2022-03-14 09:23:38 +10:00
flynsarmy
82dc1071ba Strip double / prefix when uploading to Media root directory 2022-03-12 16:16:17 +10:00
Luke Towers
f14642cc58 Fix scope overreach of migration from 2016.
Backend migrations should only touch the backend tables, same for the system module. This was added for build 345 in 2016 in the wrong migrations. See d7cfe61e67
2022-03-11 22:17:27 -06:00
Luke Towers
50417b2cb1 Remove support for varcharmax
This was originally added in bd9f88587f (and further refined in 160ae441ff) as a workaround for issues in MySQL < 5.7 and MariaDB < 10.2 related to the default string length when using the recommended utf8mb4 database encoding.

As of Laravel 8 the minimum supported versions of MySQL and MariaDB are not affected by this issue so we're now removing this configuration / workaround in Winter v1.2.
2022-03-09 16:05:58 -06:00
Luke Towers
ae5b0c2a54 Fix issue with refactored Symfony component 2022-03-08 19:43:13 -06:00
Luke Towers
574c7d4ef3 Initial work on re-aligning the scaffolding commands with Laravel 2022-03-08 19:42:36 -06:00
Luke Towers
86cfbfa98b
Fix module controller filetype association 2022-03-08 16:13:52 -06:00
Marc Jauvin
bb67f3ef11
Use env() settings by default in config/cms.php (#484) 2022-03-08 09:03:09 +08:00
Luke Towers
1288d35ecb Merge branch 'wip/config-write-replacement' of github.com:wintercms/winter into wip/config-write-replacement 2022-03-05 11:06:13 -06:00
Jack Wilkinson
fb142e61ca Merge branch 'wip/config-file' into wip/config-write-replacement 2022-03-04 13:52:42 +00:00
Jack Wilkinson
745b4f6ea3 Merge branch 'wip/1.2' into wip/config-write-replacement 2022-03-04 13:50:43 +00:00
Luke Towers
f6c5bbfaba Merge branch 'wip/1.2' into wip/config-write-replacement 2022-03-03 19:03:27 -06:00
Luke Towers
8013a57074 Revert "Run default config files through ConfigWriter to minimize changed lines on future uses"
This reverts commit 897263e2813596e116ed0b1350e1a9034a646cb0.
2022-03-03 18:59:46 -06:00