Skip to content

Commit 6385ef4

Browse files
committed
Sync upstream (4.2)
1 parent 758f75c commit 6385ef4

16 files changed

Lines changed: 161 additions & 70 deletions

File tree

config/queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@
116116
| can control how and where failed jobs are stored. Laravel ships with
117117
| support for storing failed jobs in a simple file or in a database.
118118
|
119-
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
119+
| Supported drivers: "database", "database-uuids", "dynamodb", "file", "null"
120120
|
121121
*/
122122

123123
'failed' => [
124-
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
124+
'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
125125
'database' => env('DB_CONNECTION', 'mysql'),
126126
'table' => 'failed_jobs',
127127
],

modules/backend/assets/css/october.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/backend/assets/less/layout/fancylayout.less

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ body.breadcrumb-fancy .control-breadcrumb,
470470
padding: 0 7px 6px;
471471

472472
&:before, &:after {
473-
display: none;
473+
display: none !important;
474474
}
475475

476476
span {
@@ -610,15 +610,9 @@ body.breadcrumb-fancy .control-breadcrumb,
610610
.loading-indicator-container {
611611
.loading-indicator {
612612
background-color: @color-fancy-form-tabless-fields-bg;
613-
padding: 0 0 0 45px;
614613
color: @color-fancy-form-label;
615-
margin-top: 4px;
616-
height: 90%;
617-
font-size: 12px;
618-
line-height: 100%;
619-
> span {
620-
left: 5px;
621-
top: 18px;
614+
> span, > div {
615+
margin-left: 15px;
622616
}
623617
}
624618
}
@@ -722,16 +716,4 @@ body.side-panel-not-fixed {
722716
}
723717
}
724718

725-
html.cssanimations {
726-
.fancy-layout {
727-
.form-tabless-fields {
728-
.loading-indicator-container {
729-
.loading-indicator > span {
730-
.animation(spin 1s linear infinite);
731-
//background-image: url('../../../system/assets/ui/images/loader-white.svg');
732-
background-size: 20px 20px;
733-
}
734-
}
735-
}
736-
}
737-
}
719+

modules/backend/vuecomponents/monacoeditor/assets/css/_decorations.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,22 @@
2121
.monaco-error-line {
2222
background: rgba(255, 0, 0, 0.4);
2323
}
24+
25+
.monaco-warning-glyph {
26+
margin-left: 5px;
27+
28+
&:before {
29+
content: '';
30+
display: block;
31+
width: 11px;
32+
height: 11px;
33+
background-color: #f0ad4e;
34+
border-radius: 100%;
35+
}
36+
}
37+
38+
.monaco-warning-line {
39+
background: rgba(240, 173, 78, 0.25);
40+
}
2441
}
2542
}

modules/cms/classes/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public static function resolveMenuItem($item, string $url, Theme $theme)
192192

193193
$page = self::loadCached($theme, $item->reference);
194194

195-
$params = PageLookupItem::extractUrlParams($item->attributes);
195+
$params = PageLookupItem::extractUrlParams($item->attributes ?? []);
196196

197197
$pageUrl = Cms::pageUrl($item->reference, $params);
198198

modules/system/assets/js/pages/market.installprocess.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/system/classes/PluginBase.php

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php namespace System\Classes;
22

33
use Backend;
4+
use Illuminate\Console\Application as Artisan;
45
use October\Contracts\Support\OctoberPackage;
56
use October\Rain\Support\ServiceProvider as ServiceProviderBase;
67
use ReflectionClass;
@@ -231,11 +232,7 @@ public function registerMailPartials()
231232
*/
232233
public function discoverConsoleCommands(): void
233234
{
234-
if (!$this->app->runningInConsole()) {
235-
return;
236-
}
237-
238-
$reflection = new \ReflectionClass(get_class($this));
235+
$reflection = new ReflectionClass(get_class($this));
239236
$pluginPath = dirname($reflection->getFileName());
240237
$consolePath = $pluginPath . '/console';
241238

@@ -246,22 +243,28 @@ public function discoverConsoleCommands(): void
246243
$pluginClass = get_class($this);
247244
$namespace = substr($pluginClass, 0, strrpos($pluginClass, '\\')) . '\\Console\\';
248245

249-
foreach (glob($consolePath . '/*.php') as $file) {
250-
$className = $namespace . basename($file, '.php');
246+
Artisan::starting(function ($artisan) use ($consolePath, $namespace) {
247+
$commands = [];
251248

252-
if (!class_exists($className)) {
253-
continue;
254-
}
249+
foreach (glob($consolePath . '/*.php') as $file) {
250+
$className = $namespace . basename($file, '.php');
255251

256-
$ref = new \ReflectionClass($className);
252+
if (!class_exists($className)) {
253+
continue;
254+
}
257255

258-
if (
259-
$ref->isSubclassOf(\Illuminate\Console\Command::class) &&
260-
!$ref->isAbstract()
261-
) {
262-
$this->commands($className);
256+
$ref = new ReflectionClass($className);
257+
258+
if (
259+
$ref->isSubclassOf(\Illuminate\Console\Command::class) &&
260+
!$ref->isAbstract()
261+
) {
262+
$commands[] = $className;
263+
}
263264
}
264-
}
265+
266+
$artisan->resolveCommands($commands);
267+
});
265268
}
266269

267270
/**

modules/system/classes/updatemanager/ManagesThemes.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ public function seedTheme(string $name)
143143
$theme = CmsTheme::load($themeName);
144144
$model = new ThemeSeed;
145145

146-
// Seed everything
147-
$allFolders = [
148-
'blueprints' => true,
149-
'data' => true,
150-
'lang' => true,
151-
];
152-
153-
$model->seed($theme, ['folders' => $allFolders]);
146+
$model->seed($theme);
154147
}
155148
}

modules/system/database/migrations/2015_10_01_000018_Db_FailedJobs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public function up()
99
{
1010
Schema::create($this->getTableName(), function (Blueprint $table) {
1111
$table->increments('id');
12+
$table->string('uuid')->unique()->nullable();
1213
$table->text('connection');
1314
$table->text('queue');
1415
$table->text('payload');

modules/system/widgets/updater/assets/js/updater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292

9393
var template = $('#executeFailed').html(),
94-
html = Mustache.to_html(template, reason);
94+
html = Mustache.render(template, reason);
9595

9696
$('#executeActivity').hide();
9797
$('#executeStatus').html(html);

0 commit comments

Comments
 (0)