5954 Commits

Author SHA1 Message Date
Luke Towers
0b6646213f Remove mentions of Rackspace and isolate the storage directory used by tests by default 2021-12-10 15:57:41 -06:00
Luke Towers
2119161d8e Support for Symfony 6 2021-12-10 15:04:11 -06:00
Luke Towers
f85342ce03 Initial support for Flysystem 2.0 2021-12-09 21:11:42 -06:00
Luke Towers
55e9cadc4e Use the VersionYamlParser when parsing the version.yaml file 2021-12-09 17:07:01 -06:00
Luke Towers
8dc65fb61f Merge branch 'develop' into wip/1.2
* develop:
  Don't try to access the system parameter database table if no database is in use
2021-12-09 16:32:53 -06:00
Luke Towers
ff30458cdb Don't try to access the system parameter database table if no database is in use
Fixes issue where attempting to load a static theme without a database present would fail because the AssetMaker trait was attempting to get the system build information from the database even though the DB wasn't present.
2021-12-09 16:32:34 -06:00
Luke Towers
6292bd32d9 Align the CmsException with the Winter ExceptionBase class 2021-12-09 16:30:34 -06:00
Luke Towers
2bee2f2daf Support Symfony 6.
See fcecefda3f
2021-12-09 16:00:05 -06:00
Luke Towers
8c75a83139 Merge branch 'develop' into wip/1.2
* develop: (90 commits)
  Define signature for "defineProperties" method
  Add definition of "componentDetails" method
  Update `system` french lang files (#366)
  Update `backend` french lang file (#364)
  Update `cms` french lang file (#365)
  Fix clear color picker function, allow empty value
  Trigger "change" event on color picker when value changes
  Use better cursors for readonly color picker
  Adjust "force" option for plugin:remove
  Require explicit confirmations for CLI deletions
  Add PHP 8.1 option, drop other details field
  Add md_line Twig filter to expose Markdown::parseLine() (#370)
  Don't use the Cache facade in the service provider registration process.
  Fix return type hints for CMS Page and Controller (#362)
  Fixes typo in list of available encodings for importing
  Improved Ukrainian translation (#360)
  Constrain PHP version >= 7.2.9 and 8.0.x (#361)
  Improve Latvian translation (#358)
  Docs UI Fix paths to screenshots of diagrams (#359)
  Coerce Inspector set values to string
  ...

# Conflicts:
#	composer.json
#	modules/backend/composer.json
#	modules/cms/composer.json
#	modules/system/composer.json
2021-12-09 15:39:05 -06:00
Luke Towers
b50a347762 Replace SwiftMailer with Symfony Mailer 2021-12-09 15:36:53 -06:00
Ben Thomson
845fe50cba Define signature for "defineProperties" method 2021-12-09 11:46:38 +08:00
Ben Thomson
c3992188bc Add definition of "componentDetails" method 2021-12-09 11:35:23 +08:00
Damien MATHIEU
7cb75fb722
Update system french lang files (#366)
Credit to @damsfx
2021-12-08 20:46:33 -06:00
Damien MATHIEU
745001b817
Update backend french lang file (#364)
Credit to @damsfx
2021-12-08 20:45:59 -06:00
Damien MATHIEU
4ea687a3fe
Update cms french lang file (#365)
Credit to @damsfx
2021-12-08 20:44:43 -06:00
Ben Thomson
1987c2f876
Fix clear color picker function, allow empty value
Fixes https://github.com/wintercms/winter/issues/353
2021-12-08 21:11:21 +08:00
Ben Thomson
dd2da8120e
Trigger "change" event on color picker when value changes
Allows color field to be a dependent of another field through "dependsOn"

Fixes https://github.com/wintercms/winter/issues/352
2021-12-08 20:43:59 +08:00
Ben Thomson
2ad97c78ed
Use better cursors for readonly color picker
Fixes https://github.com/wintercms/winter/issues/371
2021-12-08 20:25:42 +08:00
Ben Thomson
e85f98d0db Adjust "force" option for plugin:remove 2021-12-08 09:33:01 +08:00
Ben Thomson
e80fb59af4 Require explicit confirmations for CLI deletions
When removing a plugin via CLI or rolling back all DB migrations, we will now require the user to type out the plugin name (or "DELETE" for "winter:down") as a confirmation in order to proceed. This ensures that the user is well aware of what they are doing.

The "plugin:remove" command has now been added a "--no-rollback" option. When used, the plugin files will be removed, but the DB will remain untouched, allowing people to remove a plugin without losing their data.

Refs: https://github.com/wintercms/wn-translate-plugin/issues/13#issuecomment-988364253
2021-12-08 09:31:22 +08:00
Ben Thomson
ae57fa0eb1 Add PHP 8.1 option, drop other details field 2021-12-08 09:03:41 +08:00
Luke Towers
ae647903a6 Updated dependencies 2021-12-06 15:45:46 -06:00
Matteo Trubini
0a5f67e7b4
Add md_line Twig filter to expose Markdown::parseLine() (#370) 2021-12-06 15:19:59 -06:00
Luke Towers
9314a4442e Don't use the Cache facade in the service provider registration process.
Fixes #350. Refs https://github.com/laravel/framework/pull/38724. Final solution in v1.2 will be to extend the base Laravel Cache serviceprovider and make it no longer a deferred provider as well as consolidating the MemoryCache implementations currently present in QueryBuilder, Halcyon Models, and the Halcyon ServiceProvider into the Winter Cache service provider.
2021-12-06 15:19:41 -06:00
Ben Thomson
0e44230b27
Adjust tests for 1.2 2021-12-06 20:14:17 +08:00
Eric Pfeiffer
eb28d0584a
Fix return type hints for CMS Page and Controller (#362) 2021-11-30 14:56:59 -06:00
Luke Towers
b60c802b9a Fixes typo in list of available encodings for importing
Refs #360. Credit to @WebVPF for spotting
2021-11-30 14:54:33 -06:00
WebVPF
5c8f25eb78
Improved Ukrainian translation (#360)
Also fixed a typo in the list of available encodings for ISO 8859-9
2021-11-30 14:53:31 -06:00
Eric Pfeiffer
058e9e26bd
Constrain PHP version >= 7.2.9 and 8.0.x (#361) 2021-11-30 13:51:41 -06:00
Arvis Lācis
53094fbb32
Improve Latvian translation (#358) 2021-11-30 08:46:09 -06:00
WebVPF
7a8af96858
Docs UI Fix paths to screenshots of diagrams (#359) 2021-11-28 18:35:43 -06:00
Ben Thomson
31f8da8399 Coerce Inspector set values to string
These values have always traditionally been strings, but some custom implementations use integers (eg. for ID selections) which did not work previously.

This coerces both the selected items and available items to strings for comparison, which should allow integers to be used.

Fixes https://github.com/wintercms/winter/issues/351
2021-11-22 11:36:24 +08:00
Ben Thomson
e240747eb8 Determine constructor requirements for Inspector properties.
To allow more flexibility of where we can put handler methods for dynamic properties in the Inspector, we should try and call the given class' constructor with whatever required parameters it needs. The current implementation assumes that one argument will be provided to any given property class (with the value given being null). Ideally, we should make these methods static and have a look at this more thoroughly later, but this is a useful compromise for now.
2021-11-22 10:35:49 +08:00
WebVPF
3b551aed80
Update Russian language (#349) 2021-11-16 07:13:24 +08:00
Luke Towers
bd343c3936
Support embedded data URIs in the list image column type 2021-11-12 15:11:59 -06:00
Ben Thomson
1b94493ef1
Make some adjustments to the readme content 2021-11-10 13:28:16 +08:00
Ben Thomson
5c5533246f Update banner in readme 2021-11-10 12:06:17 +08:00
Ben Thomson
2f4b0c8180 Add new GitHub banner 2021-11-10 12:03:09 +08:00
WebVPF
5ac5bb2111
Documentation with icons (#347)
Correction of the display of icon library in UI-documentation on site page: https://wintercms.com/docs/ui/icon
2021-11-07 12:30:51 -06:00
Ben Thomson
4847f8bc92 Limit options shown in group filter, apply scope when retrieving filtered options
Implements original fix by @danielbidala (with permission) for https://github.com/octobercms/october/pull/5470

Fixes https://github.com/wintercms/winter/issues/27

Refs: https://github.com/wintercms/winter/discussions/301

Credit to @danielbidala for fix.
2021-10-27 14:22:36 +08:00
Romain 'Maz' BILLOIR
1aa8fe08b8
Add Exception on wrong relation type in relation formwidget (#334)
Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
2021-10-27 14:04:55 +08:00
Ben Thomson
6a2f234d63
Redesigned color picker widget (#324)
Co-authored-by: Luke Towers <github@luketowers.ca>
2021-10-25 11:19:39 +08:00
Romain 'Maz' BILLOIR
345f02e8e1
Add winter:test command (#202)
Credit to @RomainMazB. Documented in https://github.com/wintercms/docs/pull/34. Proposed in #201.

Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Jack Wilkinson <me@jackwilky.com>
2021-10-21 14:23:25 -06:00
Mantas Šimkūnas
e69f4f7ce9
Use the correct backend timezone config key (#337)
Credit to @msimkunas
2021-10-21 10:16:45 -06:00
Ben Thomson
4293141a6b Get changelog only of the current branch
We'll prompt people to upgrade to the next major version, but if they opt to stay on their current branch, to ensure that they don't end up filled with extraneous info, we'll just show the changelog of their current branch and those branches below the current one.
2021-10-11 13:48:35 +08:00
Ben Thomson
7aea162fe2 Fix Markdown editor sizing issue on Chrome.
Chrome exhibits an issue in stretch mode with the double min-height definition of the surrounding field container and the editor writing area where the height is interpreted incorrectly and the editor content is clipped if the viewport shrinks the editor below the minimum height.

This fix will define a minimum height just for the editor writing area based on the "size" option, and will still allow stretch to increase the height of the editor further as required.

Partially reverts the "improvements" in d7117f9cb2

Fixes https://github.com/wintercms/winter/issues/322
2021-09-30 09:42:46 +08:00
Marc Jauvin
4f43dfd7fc
Check overrides for parent locale when compiling language files (#242)
Credit to @mjauvin and @jaxwilko
2021-09-28 16:50:31 -06:00
Arvis Lācis
affdcce339
Fixing commas in English translation files (#305) 2021-09-09 09:54:41 -06:00
Arvis Lācis
b1fdf0745a
Added Latvian translations for Allowed IP messages (#304) 2021-09-09 21:22:13 +08:00
datune
f08e581b6d
Add missing filter translations (#303) 2021-09-08 14:51:51 +08:00