5205 Commits

Author SHA1 Message Date
Luke Towers
1934cead68 Plugins should be generated the same no matter what OS is being used to generate them 2022-04-03 13:53:26 -06:00
Luke Towers
574437b9be Moved GeneratorCommand back to Scaffold 2022-04-03 13:40:18 -06:00
Luke Towers
2c74cdb681 Merge branch 'wip/1.2' into wip/1.2-improve-scaffolding 2022-04-03 13:33:15 -06:00
Marc Jauvin
752d6ad47e
fix null coalescent operator (#518) 2022-03-31 07:41:16 -04: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
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
f2d9526d29 Support new mail config file structure 2022-03-16 14:51:21 -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
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
Jack Wilkinson
fb142e61ca Merge branch 'wip/config-file' into wip/config-write-replacement 2022-03-04 13:52:42 +00:00
Luke Towers
8dc6fd5e54 Merge branch 'develop' into wip/1.2 2022-03-02 15:10:20 -06:00
Luke Towers
3f19cb4cc8 Replaces october/*: 1.1.* 2022-03-02 15:09:27 -06:00
Luke Towers
896105e652 Merge branch 'develop' into wip/1.2
# Conflicts:
#	modules/cms/classes/Controller.php
2022-03-02 15:02:49 -06:00
Luke Towers
3de45535a9
Allow partials to override their vars through PHP
Follow up to ec03b7b2f8, this allows any changes to $this->vars made within the Partial's PHP code section to persist to when the partial content is actually rendered.
2022-03-02 15:00:22 -06:00
Ben Thomson
9a800ad656 Additional test cases and fixes for Version Yaml parser 2022-03-01 09:05:45 +08:00
Luke Towers
05b941e72b More fixes to the mailer 2022-02-28 18:53:15 -06:00
Luke Towers
0e53ff27c8 Fix missing import 2022-02-28 18:29:59 -06:00
Luke Towers
77f79f6c2b Add missing import 2022-02-28 00:08:51 -06:00
Luke Towers
fde586aba0 Merge branch 'develop' into wip/1.2 2022-02-24 23:41:27 -06:00
Ben Thomson
f487b1368b Code smell 2022-02-25 13:38:52 +08:00
Ben Thomson
ce3a913708 Merge branch 'wip/1.2' of github.com:wintercms/winter into wip/1.2 2022-02-25 13:33:34 +08:00
Ben Thomson
c21130ef2e Suppress exception when mix:watch is terminated 2022-02-25 13:33:26 +08:00
Luke Towers
c187a0813b
Update modules/system/classes/VersionManager.php 2022-02-24 23:26:36 -06:00
Luke Towers
5e1905623a
Update modules/system/classes/UpdateManager.php 2022-02-24 23:25:15 -06:00
Luke Towers
4d409cfe41
Update modules/system/classes/PluginBase.php 2022-02-24 23:23:07 -06:00
Ben Thomson
401af9244e Prevent mix:install from timing out prematurely 2022-02-25 13:20:41 +08:00
Jack Wilkinson
cdd2f3833a
Added check to ensure filesystem is writable before executing mkdir (#475)
Fixes the System Status widget on readonly filesystems
2022-02-24 22:25:41 -06:00