Skip to content

Commit c93db01

Browse files
committed
Merge branch 'develop' into 1.2
2 parents 70592de + e026c37 commit c93db01

File tree

200 files changed

+6395
-2456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+6395
-2456
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ trim_trailing_whitespace = true
1010
insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
13+
14+
[.github/workflows/**.{yml,yaml}]
15+
indent_size = 2

.github/workflows/tests.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ jobs:
5656
with:
5757
node-version: ${{ env.nodeVersion }}
5858

59-
- name: Echo branches
60-
run: echo "${{ github.ref }} | ${{ github.head_ref }} | ${{ github.ref_name }} | ${{ github.base_ref }}"
61-
6259
- name: Switch library dependency (develop)
6360
if: github.ref == 'refs/heads/develop' || github.base_ref == 'develop'
6461
run: php ./.github/workflows/utilities/library-switcher "dev-develop as 1.2"
@@ -99,7 +96,7 @@ jobs:
9996
max-parallel: 8
10097
matrix:
10198
operatingSystem: [ubuntu-latest, windows-latest]
102-
phpVersion: ['8.0', '8.1']
99+
phpVersion: ['8.0', '8.1', '8.2']
103100
fail-fast: false
104101
runs-on: ${{ matrix.operatingSystem }}
105102
name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"files.associations": {
33
"**/modules/*/behaviors/*/partials/*.htm": "php",
4+
"**/modules/*/blocks/*.block": "wintercms",
45
"**/modules/*/controllers/*/*.htm": "php",
56
"**/modules/*/formwidgets/*/partials/*.htm": "php",
67
"**/modules/*/layouts/*.htm": "php",
@@ -11,6 +12,7 @@
1112
"**/modules/*/widgets/*/partials/*.htm": "php",
1213

1314
"**/plugins/*/*/behaviors/*/partials/*.htm": "php",
15+
"**/plugins/*/*/blocks/*.block": "wintercms",
1416
"**/plugins/*/*/components/**/*.htm": "wintercms-twig",
1517
"**/plugins/*/*/controllers/*/*.htm": "php",
1618
"**/plugins/*/*/formwidgets/*/partials/*.htm": "php",
@@ -21,11 +23,16 @@
2123
"**/plugins/*/*/views/mail/*.htm": "wintercms",
2224
"**/plugins/*/*/widgets/*/partials/*.htm": "php",
2325

26+
"**/themes/*/blocks/**/*.block": "wintercms",
2427
"**/themes/*/content/**/*.htm": "wintercms",
2528
"**/themes/*/layouts/*.htm": "wintercms",
2629
"**/themes/*/pages/**/*.htm": "wintercms",
2730
"**/themes/*/partials/**/*.htm": "wintercms"
2831
},
32+
"emmet.includeLanguages": {
33+
"wintercms": "html",
34+
"wintercms-twig": "html",
35+
},
2936
"eslint.validate": [
3037
"javascript",
3138
"vue"

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
No matter how large or small your project is, Winter provides a rich development environment, regardless of your level of experience.
88

99
[![Version](https://img.shields.io/github/v/release/wintercms/winter?sort=semver&style=flat-square)](https://github.com/wintercms/winter/releases)
10-
[![Tests](https://img.shields.io/github/workflow/status/wintercms/winter/Tests/develop?label=tests&style=flat-square)](https://github.com/wintercms/winter/actions)
10+
[![Tests](https://img.shields.io/github/actions/workflow/status/wintercms/winter/tests.yml?branch=develop&label=tests&style=flat-square)](https://github.com/wintercms/winter/actions)
1111
[![License](https://img.shields.io/github/license/wintercms/winter?label=open%20source&style=flat-square)](https://packagist.org/packages/wintercms/winter)
1212
[![Discord](https://img.shields.io/discord/816852513684193281?label=discord&style=flat-square)](https://discord.gg/D5MFSPH6Ux)
1313

@@ -89,8 +89,7 @@ Winter CMS development is financially supported by the generosity of the followi
8989

9090
### Organizations
9191

92-
[![Spatial Media logo](https://cdn.ca.spatialmedia.io/media/images/sm-logo-dark-full.svg)](https://spatialmedia.io)
93-
Spatial Media employs two of the core contributors (Luke Towers & Jack Wilkinson) and contributes to the ongoing development of Winter.
92+
Spatial Media employs one of the core maintainers (Jack Wilkinson) who contributes to the ongoing development of Winter.
9493

9594
[![Froala logo](https://froala.com/wp-content/uploads/2019/10/froala.svg)](https://froala.com/wysiwyg-editor/)
9695

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"winter/wn-backend-module": "~1.2.0",
3636
"winter/wn-cms-module": "~1.2.0",
3737
"laravel/framework": "^9.1",
38-
"wikimedia/composer-merge-plugin": "~2.0.1"
38+
"wikimedia/composer-merge-plugin": "~2.1.0"
3939
},
4040
"require-dev": {
4141
"phpunit/phpunit": "^9.5.8",
@@ -72,6 +72,7 @@
7272
],
7373
"recurse": true,
7474
"replace": false,
75+
"merge-replace": false,
7576
"merge-dev": false
7677
}
7778
},

config/cms.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446
|
447447
*/
448448

449-
'restrictBaseDir' => true,
449+
'restrictBaseDir' => env('RESTRICT_BASE_DIR', true),
450450

451451
/*
452452
|--------------------------------------------------------------------------

config/develop.php

+13
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,17 @@
4242
*/
4343

4444
'allowDeepSymlinks' => false,
45+
46+
/*
47+
|--------------------------------------------------------------------------
48+
| Enable Snowboard debugging
49+
|--------------------------------------------------------------------------
50+
|
51+
| By default, Snowboard debugging and client-side logging is disabled.
52+
|
53+
| If you wish to enable Snowboard debugging, set this value to `true`.
54+
|
55+
*/
56+
57+
'debugSnowboard' => env('DEBUG_SNOWBOARD', false),
4558
];

modules/backend/ServiceProvider.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php namespace Backend;
22

3-
use App;
43
use Backend;
54
use BackendMenu;
65
use BackendAuth;
@@ -20,18 +19,20 @@ class ServiceProvider extends ModuleServiceProvider
2019
*/
2120
public function register()
2221
{
22+
parent::register();
23+
2324
$this->registerConsole();
2425
$this->registerMailer();
2526
$this->registerAssetBundles();
27+
$this->registerBackendPermissions();
2628

2729
/*
2830
* Backend specific
2931
*/
30-
if (App::runningInBackend()) {
32+
if ($this->app->runningInBackend()) {
3133
$this->registerBackendNavigation();
3234
$this->registerBackendReportWidgets();
3335
$this->registerBackendWidgets();
34-
$this->registerBackendPermissions();
3536
$this->registerBackendSettings();
3637
}
3738
}
@@ -90,10 +91,8 @@ protected function registerAssetBundles()
9091
$combiner->registerBundle('~/modules/backend/formwidgets/fileupload/assets/less/fileupload.less');
9192
$combiner->registerBundle('~/modules/backend/formwidgets/nestedform/assets/less/nestedform.less');
9293
$combiner->registerBundle('~/modules/backend/formwidgets/richeditor/assets/js/build-plugins.js');
93-
$combiner->registerBundle('~/modules/backend/formwidgets/colorpicker/assets/less/colorpicker.less');
9494
$combiner->registerBundle('~/modules/backend/formwidgets/permissioneditor/assets/less/permissioneditor.less');
9595
$combiner->registerBundle('~/modules/backend/formwidgets/markdowneditor/assets/less/markdowneditor.less');
96-
$combiner->registerBundle('~/modules/backend/formwidgets/sensitive/assets/less/sensitive.less');
9796

9897
/*
9998
* Rich Editor is protected by DRM
@@ -229,6 +228,7 @@ protected function registerBackendWidgets()
229228
$manager->registerFormWidget('Backend\FormWidgets\MediaFinder', 'mediafinder');
230229
$manager->registerFormWidget('Backend\FormWidgets\NestedForm', 'nestedform');
231230
$manager->registerFormWidget('Backend\FormWidgets\Sensitive', 'sensitive');
231+
$manager->registerFormWidget('Backend\FormWidgets\IconPicker', 'iconpicker');
232232
});
233233
}
234234

0 commit comments

Comments
 (0)