backports murph-skeleton
This commit is contained in:
parent
59aaffb0b6
commit
7bd99d0af8
|
@ -461,6 +461,17 @@ fieldset.form-group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-dialog-large {
|
||||||
|
max-width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.output {
|
||||||
|
&-console {
|
||||||
|
background: #073642;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.CodeMirror-fullscreen, .editor-toolbar.fullscreen {
|
.CodeMirror-fullscreen, .editor-toolbar.fullscreen {
|
||||||
z-index: 2000;
|
z-index: 2000;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,7 @@ class SymfonyCacheManager
|
||||||
'command' => 'cache:clear',
|
'command' => 'cache:clear',
|
||||||
'-e' => $this->kernel->getEnvironment(),
|
'-e' => $this->kernel->getEnvironment(),
|
||||||
'--no-warmup' => null,
|
'--no-warmup' => null,
|
||||||
|
'--ansi' => null,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$application->run($input, $output);
|
$application->run($input, $output);
|
||||||
|
|
|
@ -10,6 +10,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
|
||||||
|
use SensioLabs\AnsiConverter\Theme\SolarizedTheme;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/admin/task")
|
* @Route("/admin/task")
|
||||||
|
@ -45,7 +47,8 @@ class TaskAdminController extends AdminController
|
||||||
$event = new TaskRunRequestedEvent($task, $request->query, $output);
|
$event = new TaskRunRequestedEvent($task, $request->query, $output);
|
||||||
$eventDispatcher->dispatch($event, TaskRunRequestedEvent::RUN_REQUEST_EVENT);
|
$eventDispatcher->dispatch($event, TaskRunRequestedEvent::RUN_REQUEST_EVENT);
|
||||||
|
|
||||||
$content = $output->fetch();
|
$converter = new AnsiToHtmlConverter(new SolarizedTheme());
|
||||||
|
$content = $converter->convert($output->fetch());
|
||||||
|
|
||||||
return $this->render('@Core/task/task_admin/run.html.twig', [
|
return $this->render('@Core/task/task_admin/run.html.twig', [
|
||||||
'output' => $content,
|
'output' => $content,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog modal-dialog-large">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title">
|
<h5 class="modal-title">
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<pre>{{ output|trim }}</pre>
|
<pre class="output-console">{{ output|raw }}</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ 'Close'|trans }}</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ 'Close'|trans }}</button>
|
||||||
|
|
Loading…
Reference in a new issue