5962 Commits

Author SHA1 Message Date
Ben Thomson
c09e0706fd
Add simple cookie utility 2022-01-19 17:15:53 +08:00
Ben Thomson
46112985b9
Process flash messages before redirect 2022-01-19 14:28:22 +08:00
Ben Thomson
667894a90b
Fix list command 2022-01-19 14:21:01 +08:00
Ben Thomson
142d40fc05
Another trailing comma removed 2022-01-19 10:25:52 +08:00
Ben Thomson
37238841d3
Remove trailing comma 2022-01-19 10:17:23 +08:00
Ben Thomson
e254a71b28
Allow arguments to be passed through to NPM/Webpack 2022-01-19 10:14:56 +08:00
Ben Thomson
18d5dd5cbe Tidy up commands 2022-01-13 09:04:19 +08:00
Ben Thomson
7087020264 Re-add missing file, compile extra styles 2022-01-12 15:48:25 +08:00
Ben Thomson
5df9a61f90 Re-add missing test files 2022-01-12 15:43:18 +08:00
Ben Thomson
ae67e2fa9b Compile changes from wip/framework-rewrite branch
Represents the entire current state of the Snowboard framework.
2022-01-12 15:35:45 +08:00
Ben Thomson
6bbfd0e885 Fix issue with required parameters in Inspectable containers
An exception is thrown in cases where a constructor parameter is required and has no default value. This will return null for these parameters.
2022-01-12 10:47:20 +08:00
Luke Towers
4566318bfb
Tighten up comparison
Follow-up to a208f573f7
2022-01-11 19:21:02 -06:00
Luke Towers
0ed1e4c0c0
Fix infinite loop when impersonating users as a non-superadmin
Fixes #357. 

There was an infinite loop that occurred when attempting to impersonate users as a user that had the backend.impersonate_users permission but was not themselves a super user. This was caused because BackendAuth::getImpersonator() returned a separate user instance than the current user being evaluated despite the underlying DB row being the same.
2022-01-11 16:11:40 -06:00
Archimede Solutions
5b58103107
Improve Italian translation (#394)
Credit to @ArchimedeSolutions
2022-01-04 18:04:20 -06:00
WebVPF
cf1725392a
Remove MailBrandSettings custom CSS (#391)
Unneeded with the latest refactor of the colorpicker formwidget.
2022-01-02 08:36:57 -06:00
WebVPF
cc09f29ec5
Use HTTPS template for links in Markdown editor (#387) 2021-12-27 09:40:12 +08:00
WebVPF
d966d33030
Popup Docs UI - wrap configuration in code tags (#388) 2021-12-27 09:34:10 +08:00
Ben Thomson
9e833fe920
Check controller exists before checking method
PHP 8 compatibility fix.

Fixes https://github.com/wintercms/winter/issues/207
2021-12-18 20:24:08 +08:00
Luke Towers
7473cbe27b Backport changes from 1.2 and ignore public directory in default .gitignore 2021-12-14 02:29:17 -06:00
AIC-BV
2e4eacb58c
Update custom_styles language from CSS to LESS (#377) 2021-12-14 02:07:09 -06:00
Szabó Gergő
3774843f2d
Extend the user group and role list columns (#374)
Credit to @gergo85
2021-12-10 09:51:35 -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
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
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
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