Skip to content

Commit 16955e0

Browse files
committed
Merge branch 'develop' into add-duplication-to-mediamanager
2 parents 34ad045 + f0eeee8 commit 16955e0

206 files changed

Lines changed: 4329 additions & 32873 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
1313

14-
[.github/workflows/**.{yml,yaml}]
14+
[**/.github/workflows/**.{yml,yaml}]
1515
indent_size = 2

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
.gitattributes export-ignore
99
.gitpod.yml export-ignore
1010
CHANGELOG.md export-ignore
11+
/package.json export-ignore

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ No matter how large or small your project is, Winter provides a rich development
99
[![Version](https://img.shields.io/github/v/release/wintercms/winter?sort=semver&style=flat-square)](https://github.com/wintercms/winter/releases)
1010
[![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)
12-
[![Discord](https://img.shields.io/discord/816852513684193281?label=discord&style=flat-square)](https://discord.gg/D5MFSPH6Ux)
13-
[![RINGER](https://www.ringerhq.com/images/get-support-on-ringer.svg)](https://www.ringerhq.com/i/wintercms/winter)
12+
[![Discord](https://img.shields.io/badge/discord-join-purple?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/D5MFSPH6Ux)
1413

1514
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/wintercms/winter)
1615

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"support": {
2626
"issues": "https://github.com/wintercms/winter/issues",
27-
"docs": "https://wintercms.github.io/docs/",
27+
"docs": "https://wintercms.com/docs/",
2828
"discord": "https://discord.gg/D5MFSPH6Ux",
2929
"source": "https://github.com/wintercms/winter"
3030
},
@@ -46,9 +46,6 @@
4646
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1"
4747
},
4848
"scripts": {
49-
"post-root-package-install": [
50-
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
51-
],
5249
"post-create-project-cmd": [
5350
"@php artisan key:generate"
5451
],

config/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
| You can create a CMS page with route "/error" to set the contents
1515
| of this page. Otherwise a default error page is shown.
1616
|
17+
| IMPORTANT: Always have debug mode set to false in production environments
18+
| as it can reveal sensitive information about your application and
19+
| infrastructure to untrusted users through more detailed errors.
20+
|
1721
*/
1822

1923
'debug' => env('APP_DEBUG', true),

config/cors.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Cross-Origin Resource Sharing (CORS) Configuration
8+
|--------------------------------------------------------------------------
9+
|
10+
| Here you may configure your settings for cross-origin resource sharing
11+
| or "CORS". This determines what cross-origin operations may execute
12+
| in web browsers. You are free to adjust these settings as needed.
13+
|
14+
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
15+
|
16+
*/
17+
18+
'paths' => [],
19+
20+
'allowed_methods' => ['*'],
21+
22+
'allowed_origins' => ['*'],
23+
24+
'allowed_origins_patterns' => [],
25+
26+
'allowed_headers' => ['*'],
27+
28+
'exposed_headers' => [],
29+
30+
'max_age' => 0,
31+
32+
'supports_credentials' => false,
33+
34+
];

config/mail.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
'mailers' => [
3737
'smtp' => [
38-
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
3938
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
4039
'password' => env('MAIL_PASSWORD'),
4140
'port' => env('MAIL_PORT', 587),

modules/backend/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function registerConsole()
5555
$this->registerConsoleCommand('create.controller', \Backend\Console\CreateController::class);
5656
$this->registerConsoleCommand('create.formwidget', \Backend\Console\CreateFormWidget::class);
5757
$this->registerConsoleCommand('create.reportwidget', \Backend\Console\CreateReportWidget::class);
58-
58+
$this->registerConsoleCommand('user.create', \Backend\Console\UserCreate::class);
5959
$this->registerConsoleCommand('winter.passwd', \Backend\Console\WinterPasswd::class);
6060
}
6161

modules/backend/assets/css/winter.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch}
304304
.control-treeview ol>li>div{font-size:14px;font-weight:normal;background:#fff;border-bottom:1px solid #ecf0f1;position:relative}
305305
.control-treeview ol>li>div>a{color:#2b3e50;padding:11px 45px 10px 61px;display:block;line-height:150%;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
306306
.control-treeview ol>li>div:before{content:' ';background-image:url(../images/treeview-icons.png);background-position:0 -28px;background-repeat:no-repeat;background-size:42px auto;position:absolute;width:21px;height:22px;left:28px;top:15px}
307-
.control-treeview ol>li>div span.comment{display:block;font-weight:400;color:#95a5a6;font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis}
307+
.control-treeview ol>li>div span.comment{display:block;font-weight:400;color:#95a5a6;font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
308308
.control-treeview ol>li>div>span.expand{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;display:none;position:absolute;width:20px;height:20px;top:19px;left:2px;cursor:pointer;color:#bdc3c7;-webkit-transition:transform 0.1s ease;transition:transform 0.1s ease}
309309
.control-treeview ol>li>div>span.expand:before{font-family:"Font Awesome 6 Free";font-weight:900;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-variant:normal;text-rendering:auto;content:"\f0da";line-height:100%;font-size:15px;position:relative;left:8px;top:2px}
310310
.control-treeview ol>li>div>span.drag-handle{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;-webkit-transition:opacity 0.4s;transition:opacity 0.4s;position:absolute;right:9px;bottom:0;width:18px;height:19px;cursor:move;color:#bdc3c7;opacity:0;filter:alpha(opacity=0)}
@@ -358,8 +358,10 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch}
358358
.control-treeview ol>li.has-subitems>div.popover-highlight:before{background-position:0 -52px}
359359
.control-treeview ol>li.has-subitems>div span.expand{display:block}
360360
.control-treeview ol>li.placeholder{position:relative;opacity:0.5;filter:alpha(opacity=50)}
361+
.control-treeview ol>li.placeholder ol{display:none}
361362
.control-treeview ol>li.dragged{position:absolute;z-index:2000;opacity:0.25;filter:alpha(opacity=25)}
362363
.control-treeview ol>li.dragged>div{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}
364+
.control-treeview ol>li.dragged ol{display:none}
363365
.control-treeview ol>li.drop-target>div{background-color:#2581b8 !important}
364366
.control-treeview ol>li.drop-target>div>a{color:#fff}
365367
.control-treeview ol>li.drop-target>div>a>span.comment{color:#fff}
@@ -438,7 +440,7 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch}
438440
.control-treeview.treeview-light ol>li>div>ul.submenu li p a{display:table-cell;vertical-align:middle;height:100%;padding:0 20px;font-size:13px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
439441
.control-treeview.treeview-light ol>li>div>ul.submenu li p a i.control-icon{font-size:22px;margin-right:0}
440442
body.dragging .control-treeview ol.dragging,
441-
body.dragging .control-treeview ol.dragging ol{background:#ccc;padding-right:20px;-webkit-transition:padding 1s;transition:padding 1s}
443+
body.dragging .control-treeview ol.dragging ol{background:#ccc;padding-right:0}
442444
body.dragging .control-treeview ol.dragging>li>div,
443445
body.dragging .control-treeview ol.dragging ol>li>div{margin-right:0;-webkit-transition:margin 1s;transition:margin 1s}
444446
body.dragging .control-treeview ol.dragging>li>div .custom-checkbox,
@@ -1101,4 +1103,4 @@ html.cssanimations .fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.f
11011103
.flyout-toggle i{margin:7px 0 0 6px;display:inline-block}
11021104
.flyout-toggle:hover i{color:#fff}
11031105
body.flyout-visible{overflow:hidden}
1104-
body.flyout-visible .flyout-overlay{background-color:rgba(0,0,0,0.3)}
1106+
body.flyout-visible .flyout-overlay{background-color:rgba(0,0,0,0.3)}

modules/backend/assets/less/controls/treeview.less

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
margin-top: 2px;
5858
overflow: hidden;
5959
text-overflow: ellipsis;
60+
white-space: nowrap;
6061
}
6162

6263
> span.expand {
@@ -297,6 +298,10 @@
297298
&.placeholder {
298299
position: relative;
299300
.opacity(.5);
301+
302+
ol {
303+
display: none;
304+
}
300305
}
301306

302307
&.dragged {
@@ -307,6 +312,10 @@
307312
> div {
308313
.border-radius(3px);
309314
}
315+
316+
ol {
317+
display: none;
318+
}
310319
}
311320

312321
&.drop-target {
@@ -548,8 +557,7 @@
548557
body.dragging .control-treeview {
549558
ol.dragging, ol.dragging ol {
550559
background: #ccc;
551-
padding-right: 20px;
552-
.transition(padding 1s);
560+
padding-right: 0;
553561

554562
> li {
555563
> div {

0 commit comments

Comments
 (0)